{"id":17004,"date":"2026-09-23T11:21:48","date_gmt":"2026-09-23T03:21:48","guid":{"rendered":"https:\/\/www.qec.tw\/?p=17004"},"modified":"2026-09-24T09:34:01","modified_gmt":"2026-09-24T01:34:01","slug":"cia402","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/ethercat\/api\/cia402\/","title":{"rendered":"EtherCAT CiA 402 \u30e6\u30fc\u30b6\u30fc\u30de\u30cb\u30e5\u30a2\u30eb"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">[EtherCAT]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2025.12.30, EtherCAT CiA 402 v1.2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can download the EtherCAT CiA 402 User Manual file&nbsp;<a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/DMP_EtherCAT_Lib_APIs-cia402_v1r2.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h2 id=\"h-1-introduction\" class=\"wp-block-heading\">1. Introduction<\/h2>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-1-1-nbsp-about-qec-maindevice-mdevice\" class=\"wp-block-heading\">1.1 &nbsp;About QEC MainDevice (MDevice)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">QEC MDevice is an EtherCAT MDevice compatible with 86Duino Coding IDE 501+. It offers real-time EtherCAT communication between the EtherCAT MDevice and the EtherCAT SubDevice. Except for the EtherCAT Library of 86Duino IDE, QEC MDevice also provides Modbus, Ethernet TCP\/IP, CAN bus, etc., industrial communication protocols, and uses a rich high-level C\/C++ programming language for rapid application development.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For additional QEC and EtherCAT details, please refer to the <a href=\"https:\/\/www.qec.tw\/ethercat\/api\/ethercat-library-api-user-manual\/\">EtherCAT Library API User Manual<\/a>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 id=\"h-1-1-1-nbsp-what-is-86duino-ide\" class=\"wp-block-heading\">1.1.1&nbsp; What is 86Duino IDE?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The 86Duino integrated development environment (IDE) software makes it easy to write and upload code to 86Duino boards and QEC MDevice. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Arduino IDE, Processing, DJGPP, and other open-source software, which can be downloaded from <a href=\"https:\/\/www.qec.tw\/software\/\">https:\/\/www.qec.tw\/software\/<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"198\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-1.png\" alt=\"\" class=\"wp-image-17219\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-1.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-1-18x12.png 18w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">QEC MDevice\u2019s software, 86Duino IDE, also offers a configuration utility: 86EVA, a graphic user interface tool for users to edit parameters for the EtherCAT network; its functions are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>EtherCAT SubDevice scanning<\/li>\n\n\n\n<li>Import ENI file<\/li>\n\n\n\n<li>Setting EtherCAT MDevice<\/li>\n\n\n\n<li>Configure EtherCAT SubDevice<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For additional details, please refer to the <a href=\"https:\/\/www.qec.tw\/ethercat\/86eva\/\">86EVA User Manual<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"h-1-2-about-ethercatdevice-cia402\" class=\"wp-block-heading\">1.2 About EthercatDevice_CiA402<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><em>EthercatDevice_CiA402<\/em> is a generic CiA 402 EtherCAT SubDevice class designed to control any EtherCAT servo drive that supports the CiA 402 standard.<br>It provides access functions for commonly used CiA 402 objects and operation functions for several CiA 402 operation modes and function groups, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Operation Modes<\/strong>\n<ul class=\"wp-block-list\">\n<li>Profile Position (pp)<\/li>\n\n\n\n<li>Profile Velocity (pv)<\/li>\n\n\n\n<li>Profile Torque (tq)<\/li>\n\n\n\n<li>Homing (hm)<\/li>\n\n\n\n<li>Cyclic Synchronous Position (csp)<\/li>\n\n\n\n<li>Cyclic Synchronous Velocity (csv)<\/li>\n\n\n\n<li>Cyclic Synchronous Torque (cst)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Function Groups<\/strong>\n<ul class=\"wp-block-list\">\n<li>Touch Probe<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Implementation Directive for <strong>CiA402 Drive Profile<\/strong>.<br>Directive for using <strong>IEC 61800-7-201<\/strong> within EtherCAT-based servo drives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more detailed information about CiA 402, please refer to the following documents:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CiA Draft Standard 402: <a href=\"https:\/\/www.can-cia.org\/can-knowledge\/cia-402-series-canopen-device-profile-for-drives-and-motion-control\" target=\"_blank\" rel=\"noopener\">CiA\u00ae 402-CANopen Drives and Motion Control Profile<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.ethercat.org\/en\/downloads\/downloads_733ABB98E11545EA901D80D9A4CA7F80.htm\" target=\"_blank\" rel=\"noopener\">ETG.6010 Implementation Directive for CiA402 Drive Profile<\/a><\/li>\n\n\n\n<li>User manual for the currently used CiA 402 drive device<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The class relationships of EthercatDevice_CiA402 are illustrated in the following diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"596\" height=\"357\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/CiA402_1.jpg\" alt=\"CiA402_1\" class=\"wp-image-17009\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/CiA402_1.jpg 596w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/CiA402_1-300x180.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/CiA402_1-18x12.jpg 18w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>EthercatDevice_CiA402 inherits from _EthercatDevice_CommonDriver.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more detailed information about EtherCAT Device Class, please refer to <a href=\"https:\/\/www.qec.tw\/ethercat\/api\/ethercat-library-api-user-manual\/\">EtherCAT Library API <\/a>&nbsp;<a href=\"https:\/\/www.qec.tw\/ethercat\/api\/ethercat-library-api-user-manual\/\">User Manual<\/a>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-1-2-1-nbsp-drives-and-motion-control\" class=\"wp-block-heading\">1.2.1&nbsp; Drives and Motion Control<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The device control function block controls all functions of the drive (drive function and power section). It is divided into device control of the state machine and the operation mode function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"845\" height=\"472\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-2.png\" alt=\"\" class=\"wp-image-17220\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-2.png 845w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-2-300x168.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-2-768x429.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-2-18x10.png 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-2-600x335.png 600w\" sizes=\"(max-width: 845px) 100vw, 845px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The controlword can control the state of the drive.<br>The state of the drive is shown in the statusword.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In remote mode, the device is controlled directly from the CANopen network by PDO and SDO.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The state machine is controlled externally by the controlword and external signals. The write access to the controlword is controlled by the optional hardware signal &#8216;Remote&#8217;. The state machine is also controlled by internal signals like faults and modes of operation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"507\" height=\"413\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-3.png\" alt=\"\" class=\"wp-image-17221\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-3.png 507w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-3-300x244.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-3-15x12.png 15w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-1-2-2-state-machine\" class=\"wp-block-heading\">1.2.2 State machine<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The state machine describes the device status and the possible control sequence of the drive. A single state represents a special internal or external behavior. The state of the drive also determines which commands are accepted. E.g. it is only possible to start a point-to-point move when the drive is in state OPERATION ENABLE.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">States may be changed using the controlword and\/or according to internal events. The current state can be read using the statusword.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"812\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4-1024x812.png\" alt=\"\" class=\"wp-image-17222\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4-1024x812.png 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4-300x238.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4-768x609.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4-15x12.png 15w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4-600x476.png 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-4.png 1090w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>State Description<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><tbody><tr><td><strong>State<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Not Ready to Switch On<\/td><td>Drive is initializing or running a self-test. Brake (if present) is applied. Function disabled.<\/td><\/tr><tr><td>Switch On Disabled<\/td><td>Initialization complete, parameters set. High voltage not applied for safety. Function disabled.<\/td><\/tr><tr><td>Ready to Switch On<\/td><td>High voltage may be applied. Drive parameters can be modified. Function disabled.<\/td><\/tr><tr><td>Switched On<\/td><td>High voltage applied. Power amplifier is ready. Drive parameters can be modified. Function disabled.<\/td><\/tr><tr><td>Operation Enable<\/td><td>Fault detected. Drive function disabled. High-voltage switch-off depends on the application.<\/td><\/tr><tr><td>Quick Stop Active<\/td><td>Quick stop executed. Power removed, function disabled. To resume, send Enable Operation.<\/td><\/tr><tr><td>Fault Reaction Active<\/td><td>Fault detected. Quick stop is being executed. Power removed, function disabled.<\/td><\/tr><tr><td>Fault<\/td><td>Fault detected. Drive function disabled. High voltage switch-off depends on application.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Notes:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If a command is received that causes a change of state, this command must be processed completely and the new state attained before the next command can be processed.<\/li>\n\n\n\n<li>&#8216;Drive function is disabled&#8217; implies no energy is supplied to the motor. This may be achieved by different manufacturers in different ways. Reference values are not processed.<\/li>\n\n\n\n<li>&#8216;Drive function is enabled&#8217; implies that energy can be supplied to the motor. The reference values (torque, velocity, position) are processed.<\/li>\n\n\n\n<li>&#8216;Fault occurred&#8217; implies that a fault in the drive has occurred. In this case, there is a transition to the state FAULT REACTION ACTIVE. In this state the device will execute a special fault reaction. After the execution of this fault reaction, the device will switch to the state FAULT. This state can only be left by the command &#8216;Fault Reset&#8217;, but only if the fault is not active anymore.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"h-2-functions\" class=\"wp-block-heading\">2. Functions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section will briefly introduce the EthercatDevice_CiA402 API usage list.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><tbody><tr><td><strong>Function Name<\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>Callback Available<\/strong><\/td><\/tr><tr><td colspan=\"3\"><strong>Initialization-related functions<\/strong><strong><\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-attach\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>attach()<\/code><\/a><\/td><td>Initialize the object of this EtherCAT SubDevice class.<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-detach\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>detach()<\/code><\/a><\/td><td>Deinitialize the object of this EtherCAT SubDevice class.<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-isstepper\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>isStepper()<\/code><\/a><\/td><td>Check if the EtherCAT SubDevice is a stepper motor drive.<\/td><td>O<\/td><\/tr><tr><td colspan=\"3\"><strong>Control-related functions<\/strong><strong><\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getcia402mode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getCiA402Mode()<\/code><\/a><\/td><td>Get the current mode of operation. (6061<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setcia402mode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setCiA402Mode()<\/code><\/a><\/td><td>Switch the mode of operation. (6060<sub>h<\/sub>, 6061<sub>h<\/sub>, 6502<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><sup>,<\/sup><sup> <\/sup><a href=\"#functions_table_note2\"><sup>2<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getcia402state\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getCiA402State()<\/code><\/a><\/td><td>Get the current CiA 402 state. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setcia402state\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setCiA402State()<\/code><\/a><\/td><td>Switch the CiA 402 state. (6040h, 6041<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note2\"><sup>2<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-enable\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>enable()<\/code><\/a><\/td><td>Enable the drive function and power on the motor. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note2\"><sup>2<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-disable\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>disable()<\/code><\/a><\/td><td>Disable the drive function and power off the motor. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note2\"><sup>2<\/sup><\/a><\/td><\/tr><tr><td colspan=\"3\"><strong>Operation-related functions<\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-settargetposition\/\"><code>setTargetPosition()<\/code><\/a><\/td><td>Set the target position. (607A<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-settargetvelocity\/\"><code>setTargetVelocity()<\/code><\/a><\/td><td>Set the target velocity. (60FF<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-settargettorque\/\"><code>setTargetTorque()<\/code><\/a><\/td><td>Set the target torque. (6071<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setprofileacceleration\/\"><code>setProfileAcceleration()<\/code><\/a><\/td><td>Set the profile acceleration. (6083<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setprofiledeceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setProfileDeceleration()<\/code><\/a><\/td><td>Set the profile deceleration. (6084<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmaxacceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setMaxAcceleration()<\/code><\/a><\/td><td>Set the max acceleration. (60C5<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmaxdeceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setMaxDeceleration()<\/code><\/a><\/td><td>Set the max deceleration. (60C6<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmaxdeceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setMaxProfileVelocity()<\/code><\/a><\/td><td>Set the max profile velocity. (607F<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmotionprofiletype\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setMotionProfileType()<\/code><\/a><\/td><td>Set the motion profile type. (6086<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setpositionwindow\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setPositionWindow()<\/code><\/a><\/td><td>Set the position window. (6067<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setpositionwindowtime\/\"><code>setPositionWindowTime()<\/code><\/a><\/td><td>Set the position window time. (6068<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setpositionoffset\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setPositionOffset()<\/code><\/a><\/td><td>Set the position offset. (60B0<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setsoftwarepositionlimit\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setSoftwarePositionLimit()<\/code><\/a><\/td><td>Set the software position limit. (607D<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setfollowingerrorwindow\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setFollowingErrorWindow()<\/code><\/a><\/td><td>Set the following error window. (6065<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setpositionpolarity\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setPositionPolarity()<\/code><\/a><\/td><td>Set the position polarity. (607E<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setvelocitywindow\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setVelocityWindow()<\/code><\/a><\/td><td>Set the velocity window. (606D<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setvelocitywindowtime\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setVelocityWindowTime()<\/code><\/a><\/td><td>Set the velocity window time. (606E<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setvelocitythreshold\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setVelocityThreshold()<\/code><\/a><\/td><td>Set the velocity threshold. (606F<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setvelocityoffset\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setVelocityOffset()<\/code><\/a><\/td><td>Set the velocity offset. (60B1<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmaxmotorspeed\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setMaxMotorSpeed()<\/code><\/a><\/td><td>Set the max motor speed. (6080<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setvelocitypolarity\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setVelocityPolarity()<\/code><\/a><\/td><td>Set the velocity polarity. (607E<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-settorqueoffset\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setTorqueOffset()<\/code><\/a><\/td><td>Set the torque offset. (60B2<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmaxtorque\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setMaxTorque()<\/code><\/a><\/td><td>Set the max torque. (6072<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setpositivetorquelimit\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setPositiveTorqueLimit()<\/code><\/a><\/td><td>Set the positive torque limit. (60E0<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setnegativetorquelimit\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setNegativeTorqueLimit()<\/code><\/a><\/td><td>Set the negative torque limit. (60E1<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setquickstopdeceleration\/\"><code>setQuickStopDeceleration()<\/code><\/a><\/td><td>Set the quick stop deceleration. (6085<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setquickstopoptioncode\/\"><code>setQuickStopOptionCode()<\/code><\/a><\/td><td>Set the quick stop option code. (605A<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setshutdownoptioncode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setShutdownOptionCode()<\/code><\/a><\/td><td>Set the shutdown option code. (605B<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setdisableoperationoptioncode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setDisableOperationOptionCode()<\/code><\/a><\/td><td>Set the disable operation option code. (605C<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-sethaltoptioncode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setHaltOptionCode()<\/code><\/a><\/td><td>Set the halt option code. (605D<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setfaultreactionoptioncode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setFaultReactionOptionCode()<\/code><\/a><\/td><td>Set the fault reaction option code. (605E<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-geterrorcode\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getErrorCode()<\/code><\/a><\/td><td>Get the error code. (603F<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getsupporteddrivemodes\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getSupportedDriveModes()<\/code><\/a><\/td><td>Get the supported drive modes. (6502<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getmotorresolution\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getMotorResolution()<\/code><\/a><\/td><td>Get the motor resolution. (60EF<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getpositionactualvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getPositionActualValue()<\/code><\/a><\/td><td>Get the position actual value. (6064<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getvelocityactualvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getVelocityActualValue()<\/code><\/a><\/td><td>Get the velocity actual value. (606C<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-gettorqueactualvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getTorqueActualValue()<\/code><\/a><\/td><td>Get the torque actual value. (6077<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getcurrentactualvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getCurrentActualValue()<\/code><\/a><\/td><td>Get the current actual value. (6078<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getpositiondemandvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getPositionDemandValue()<\/code><\/a><\/td><td>Get the position demand value. (6062<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getpositiondemandinternalvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getPositionDemandInternalValue()<\/code><\/a><\/td><td>Get the position demand internal value. (60FC<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getpositionactualinternalvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getPositionActualInternalValue()<\/code><\/a><\/td><td>Get the position actual internal value. (6063<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getadditionalpositionactualvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getAdditionalPositionActualValue()<\/code><\/a><\/td><td>Get the additional position actual value. (60E4<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getfollowingerroractualvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getFollowingErrorActualValue()<\/code><\/a><\/td><td>Get the following error actual value. (60F4<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getvelocitydemandvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getVelocityDemandValue()<\/code><\/a><\/td><td>Get the velocity demand value. (606B<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-gettorquedemandvalue\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getTorqueDemandValue()<\/code><\/a><\/td><td>Get the torque demand value. (6074<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-getdigitalinputs\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>getDigitalInputs()<\/code><\/a><\/td><td>Get the digital inputs. (60FD<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td colspan=\"3\"><strong>Profile Position mode (pp) related functions<\/strong><strong><\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_setvelocity\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_SetVelocity()<\/code><\/a><\/td><td>Set the profile velocity. (6081<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_setacceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_SetAcceleration()<\/code><\/a><\/td><td>Set the profile acceleration. (6083<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_setdeceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_SetDeceleration()<\/code><\/a><\/td><td>Set the profile deceleration. (6084<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_setmotionprofiletype\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_SetMotionProfileType()<\/code><\/a><\/td><td>Set the motion profile type. (6086<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_run\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_Run()<\/code><\/a><\/td><td>Move to the target position. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>, 607A<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_istargetreached\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_IsTargetReached()<\/code><\/a><\/td><td>Check if the target position has been reached. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_checkfollowingerror\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_CheckFollowingError()<\/code><\/a><\/td><td>Check if the following error occurs. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_halt\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_Halt()<\/code><\/a><\/td><td>Pause the current operation. (6040h, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pp_resume\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pp_Resume()<\/code><\/a><\/td><td>Resume the paused operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td>&nbsp;<\/td><\/tr><tr><td colspan=\"3\"><strong>Profile Velocity mode (pv) related functions<\/strong><strong><\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_setacceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_SetAcceleration()<\/code><\/a><\/td><td>Set the profile acceleration. (6083<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_setdeceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_SetDeceleration()<\/code><\/a><\/td><td>Set the profile deceleration. (6084<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_setmotionprofiletype\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_SetMotionProfileType()<\/code><\/a><\/td><td>Set the motion profile type. (6086<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_run\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_Run()<\/code><\/a><\/td><td>Move at a target velocity continuously. (6041<sub>h<\/sub>, 60FF<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_istargetreached\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_IsTargetReached()<\/code><\/a><\/td><td>Check if the target velocity has been reached. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_checkzerospeed\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_CheckZeroSpeed()<\/code><\/a><\/td><td>Check if the speed is zero. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_checkmaxslippageerror\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_CheckMaxSlippageError()<\/code><\/a><\/td><td>Check if the maximum slippage error occurs. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_halt\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_Halt()<\/code><\/a><\/td><td>Pause the current operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-pv_resume\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>pv_Resume()<\/code><\/a><\/td><td>Resume the paused operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td colspan=\"3\"><strong>Profile Torque mode (tq) related functions<\/strong><strong><\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_settorqueslope\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_SetTorqueSlope()<\/code><\/a><\/td><td>Set the torque slope. (6087<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_settorqueprofiletype\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_SetTorqueProfileType()<\/code><\/a><\/td><td>Set the torque profile type. (6088<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_setmotorratedcurrent\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_SetMotorRatedCurrent()<\/code><\/a><\/td><td>Set the motor rated current. (6075<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_setmotorratedtorque\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_SetMotorRatedTorque()<\/code><\/a><\/td><td>Set the motor rated torque. (6076<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_run\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_Run()<\/code><\/a><\/td><td>Drive continuously at the target torque. (6041<sub>h<\/sub>, 6071<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_istargetreached\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_IsTargetReached()<\/code><\/a><\/td><td>Check if the target torque has been reached. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_halt\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_Halt()<\/code><\/a><\/td><td>Pause the current operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-tq_resume\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tq_Resume()<\/code><\/a><\/td><td>Resume the paused operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td colspan=\"3\"><strong>Homing mode (hm) related functions<\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_sethomeoffset\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_SetHomeOffset()<\/code><\/a><\/td><td>Set the home offset. (607C<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_sethomingmethod\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_SetHomingMethod()<\/code><\/a><\/td><td>Set the homing method. (6098<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_sethomingspeeds\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_SetHomingSpeeds()<\/code><\/a><\/td><td>Set the homing speeds. (6099<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_sethomingacceleration\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_SetHomingAcceleration()<\/code><\/a><\/td><td>Set the homing acceleration. (609A<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_run\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_Run()<\/code><\/a><\/td><td>Initiate a homing operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_isattained\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_IsAttained()<\/code><\/a><\/td><td>Check the status of the homing operation. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-hm_stop\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>hm_Stop()<\/code><\/a><\/td><td>Stop the homing operation. (6040<sub>h<\/sub>, 6041<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td colspan=\"3\"><strong>Function Group &#8220;Touch Probe&#8221; related functions<\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-enabletouchprobe1\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>enableTouchProbe1()<\/code><\/a><\/td><td>Enable the touch probe 1. (60B8<sub>h<\/sub>, 60B9<sub>h<\/sub>, 60D0<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-enabletouchprobe2\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>enableTouchProbe2()<\/code><\/a><\/td><td>Enable the touch probe 2. (60B8<sub>h<\/sub>, 60B9<sub>h<\/sub>, 60D0<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-disabletouchprobe1\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>disableTouchProbe1()<\/code><\/a><\/td><td>Disable the touch probe 1. (60B8<sub>h<\/sub>, 60B9<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-disabletouchprobe2\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>disableTouchProbe2()<\/code><\/a><\/td><td>Disable the touch probe 2. (60B8<sub>h<\/sub>, 60B9<sub>h<\/sub>)<\/td><td><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-istouchprobe1valueready\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>isTouchProbe1ValueReady()<\/code><\/a><\/td><td>Check if a positive or negative edge has occurred on the touch probe 1 signal. (60B9<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-istouchprobe2valueready\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>isTouchProbe2ValueReady()<\/code><\/a><\/td><td>Check if a positive or negative edge has occurred on the touch probe 2 signal. (60B9<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-readtouchprobe1value\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>readTouchProbe1Value()<\/code><\/a><\/td><td>Read the touch probe position 1. (60BA<sub>h<\/sub>, 60BB<sub>h<\/sub>)<\/td><td>O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-readtouchprobe2value\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>readTouchProbe2Value()<\/code><\/a><\/td><td>Read the touch probe position 2. (60BC<sub>h<\/sub>, 60BD<sub>h<\/sub>)<\/td><td> O<a href=\"#functions_table_note1\"><sup>1<\/sup><\/a><\/td><\/tr><tr><td colspan=\"3\"><strong>Low-level functions for mode-specific flow control<\/strong><strong><\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-sethaltbit\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setHaltBit()<\/code><\/a><\/td><td>Set the halt bit in the controlword. (6040<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-istargetreached\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>isTargetReached()<\/code><\/a><\/td><td>Check if the target has reached. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmodespecificbit4\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setModeSpecificBit4()<\/code><\/a><\/td><td>Set the bit 4 in the controlword. (6040<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmodespecificbit5\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setModeSpecificBit5()<\/code><\/a><\/td><td>Set the bit 5 in the controlword. (6040<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-setmodespecificbit6\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>setModeSpecificBit6()<\/code><\/a><\/td><td>Set the bit 6 in the controlword. (6040<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-checkmodespecificbit12\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>checkModeSpecificBit12()<\/code><\/a><\/td><td>Check the value of bit 12 in the statusword. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><tr><td><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/device\/cia402\/motor-checkmodespecificbit13\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>checkModeSpecificBit13()<\/code><\/a><\/td><td>Check the value of bit 13 in the statusword. (6041<sub>h<\/sub>)<\/td><td>O<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"functions_table_note1\"><strong>Note 1:&nbsp;<\/strong>This function can be used in callback functions if the related object is mapped to PDO.<\/li>\n\n\n\n<li id=\"functions_table_note2\"><strong>Note 2: <\/strong>This function will ignore the timeout parameter and will not wait for the actual value to match the set value when used in a callback.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"h-3-example\" class=\"wp-block-heading\">3. Example<\/h2>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-1-profile-position-pp-control\" class=\"wp-block-heading\">3.1 Profile Position (pp) control<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement position control on a CiA 402 EtherCAT SubDevice supporting Profile Position mode (pp).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Move a relative distance of 10,000 units in the positive direction.<\/li>\n\n\n\n<li>Move a relative distance of 10,000 units in the negative direction.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \"Ethercat.h\" \n \nEthercatMaster master; \nEthercatDevice_CiA402 motor; \n \nvoid setup() { \n  master.begin(); \n  motor.attach(0, master); \n  motor.setCiA402Mode(CIA402_PP_MODE); \n  master.start(); \n \n  motor.enable(); \n  motor.pp_SetMotionProfileType(0); \n  motor.pp_SetVelocity(100000); \n  motor.pp_SetAcceleration(5000); \n  motor.pp_SetDeceleration(5000); \n} \n \nvoid loop() { \n  motor.pp_Run(100000, CIA402_PP_RELATIVE, true); \n  while (motor.pp_IsTargetReached() == 0); \n  motor.pp_Run(-100000, CIA402_PP_RELATIVE, true); \n  while (motor.pp_IsTargetReached() == 0); \n}<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-2-profile-position-pp-control-in-cyclic-callback\" class=\"wp-block-heading\">3.2 Profile Position (pp) control in cyclic callback<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement position control on a CiA 402 EtherCAT SubDevice supporting Profile Position mode (pp) in cyclic callback.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Move a relative distance of 10,000 units in the positive direction.<\/li>\n\n\n\n<li>Move a relative distance of 10,000 units in the negative direction.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To operate in cyclic callback, the relevant objects must be mapped to PDOs as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Output PDO (RxPDO)\n<ul class=\"wp-block-list\">\n<li>Object 6040h: Controlword<\/li>\n\n\n\n<li>Object 607Ah: Target position<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Input PDO (TxPDO)\n<ul class=\"wp-block-list\">\n<li>Object 6041h: Statusword<\/li>\n\n\n\n<li>Object 6064h: Position actual value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \"Ethercat.h\" \n \nEthercatMaster master; \nEthercatDevice_CiA402 motor; \n \n#define STATE_SET_COMMAND           (0) \n#define STATE_CHECK_ACK_SET         (1) \n#define STATE_CHECK_ACK_CLEAR       (2) \n#define STATE_WAIT_TARGET_REACHED   (3) \nint state = STATE_SET_COMMAND; \nint toggle = 0; \n \nvoid MyCyclicCallback() \n{ \n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED) \n    return; \n \n  switch (state) { \n    case STATE_SET_COMMAND: \n      toggle = !toggle; \n      motor.setTargetPosition(100000 * toggle - 100000 * !toggle); \n      motor.setModeSpecificBit6(true); \n      motor.setModeSpecificBit5(false); \n      motor.setModeSpecificBit4(true); \n      state = STATE_CHECK_ACK_SET; \n      break; \n    case STATE_CHECK_ACK_SET: \n      if (motor.checkModeSpecificBit12()) { \n        motor.setModeSpecificBit4(false); \n        state = STATE_CHECK_ACK_CLEAR; \n      } \n      break; \n    case STATE_CHECK_ACK_CLEAR: \n      if (motor.checkModeSpecificBit12() == 0) \n        state = STATE_WAIT_TARGET_REACHED; \n      break; \n    case STATE_WAIT_TARGET_REACHED: \n      if (motor.pp_IsTargetReached()) \n        state = STATE_SET_COMMAND; \n      break; \n  } \n} \n \nvoid setup() { \n  master.begin(); \n \n  motor.attach(0, master); \n  motor.setCiA402Mode(CIA402_PP_MODE); \n \n  \/* RxPDO mapping configuration. *\/ \n  motor.sdoDownload8(0x1C12, 0x00, 0); \n  motor.sdoDownload8(0x1601, 0x00, 0); \n  motor.sdoDownload32(0x1601, 0x01, 0x60400010); \n  motor.sdoDownload32(0x1601, 0x02, 0x607A0020); \n  motor.sdoDownload8(0x1601, 0x00, 2); \n  motor.sdoDownload16(0x1C12, 0x01, 0x1601); \n  motor.sdoDownload8(0x1C12, 0x00, 1); \n  \/* TxPDO mapping configuration. *\/ \n  motor.sdoDownload8(0x1C13, 0x00, 0); \n  motor.sdoDownload8(0x1A01, 0x00, 0); \n  motor.sdoDownload32(0x1A01, 0x01, 0x60410010); \n  motor.sdoDownload32(0x1A01, 0x02, 0x60640020); \n  motor.sdoDownload8(0x1A01, 0x00, 2); \n  motor.sdoDownload16(0x1C13, 0x01, 0x1A01); \n  motor.sdoDownload8(0x1C13, 0x00, 1); \n \n  master.attachCyclicCallback(MyCyclicCallback); \n  master.start(); \n  motor.enable(); \n  motor.pp_SetMotionProfileType(0); \n  motor.pp_SetVelocity(100000); \n  motor.pp_SetAcceleration(5000); \n  motor.pp_SetDeceleration(5000); \n} \nvoid loop() { \n\/\/ ... \n} <\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-3-profile-velocity-pv-control\" class=\"wp-block-heading\">3.3 Profile Velocity (pv) control<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement velocity control on a CiA 402 EtherCAT SubDevice supporting Profile Velocity mode (pv).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Move in the positive direction at a speed of 1,000 units per second for 3 seconds.<\/li>\n\n\n\n<li>Move in the negative direction at a speed of 1,000 units per second for 3 seconds.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\nEthercatMaster master; \nEthercatDevice_CiA402 motor; \nvoid setup() {\n  master.begin();\n  motor.attach(0, master);\n  motor.setCiA402Mode(CIA402_PV_MODE);\n  master.start();\n  \n  motor.enable(); \n  motor.pv_SetMotionProfileType(0);\n  motor.pv_SetAcceleration(5000);\n  motor.pv_SetDeceleration(5000);\n} \nvoid loop() {\n  motor.pv_Run(1000); \n  while (motor.pv_IsTargetReached() == 0);\n  delay(3000); \n  \n  motor.pv_Run(-1000);\n  while (motor.pv_IsTargetReached() == 0);\n  delay(3000);\n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-4-profile-velocity-pv-control-in-cyclic-callback\" class=\"wp-block-heading\">3.4 Profile Velocity (pv) control in cyclic callback<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement velocity control on a CiA 402 EtherCAT SubDevice supporting Profile Velocity mode (pv).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Move in the positive direction at a speed of 1,000 units per second for 3 seconds.<\/li>\n\n\n\n<li>Move in the negative direction at a speed of 1,000 units per second for 3 seconds.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To operate in cyclic callback, the relevant objects must be mapped to PDOs as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Output PDO (RxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6040h: Controlword<\/li>\n\n\n\n<li>Object 60FFh: Target velocity<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Input PDO (TxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6041h: Statusword<\/li>\n\n\n\n<li>Object 606Ch: Velocity actual value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\nEthercatMaster master;\nEthercatDevice_CiA402 motor; \nint toggle = 0;\nint cycle_count = 3000; \nvoid MyCyclicCallback()\n{ \n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED)\n    return;\n  \n  if (++cycle_count &lt; 3000)\n    return;\n  \n  cycle_count = 0; \n  toggle = !toggle; \n  motor.setTargetVelocity(1000 * toggle - 1000 * !toggle);\n} \nvoid setup() {\n  master.begin();\n  motor.attach(0, master);\n  motor.setCiA402Mode(CIA402_PV_MODE); \n  \n  \/* RxPDO mapping configuration. *\/ \n  motor.sdoDownload8(0x1C12, 0x00, 0);\n  motor.sdoDownload8(0x1601, 0x00, 0); \n  motor.sdoDownload32(0x1601, 0x01, 0x60400010);\n  motor.sdoDownload32(0x1601, 0x02, 0x60FF0020);\n  motor.sdoDownload8(0x1601, 0x00, 2); \n  motor.sdoDownload16(0x1C12, 0x01, 0x1601); \n  motor.sdoDownload8(0x1C12, 0x00, 1); \n  \/* TxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C13, 0x00, 0); \n  motor.sdoDownload8(0x1A01, 0x00, 0);\n  motor.sdoDownload32(0x1A01, 0x01, 0x60410010);\n  motor.sdoDownload32(0x1A01, 0x02, 0x606C0020); \n  motor.sdoDownload8(0x1A01, 0x00, 2); \n  motor.sdoDownload16(0x1C13, 0x01, 0x1A01);\n  motor.sdoDownload8(0x1C13, 0x00, 1); \n  \n  master.attachCyclicCallback(MyCyclicCallback); \n  master.start(1000000);\n  \n  motor.enable(); \n  motor.pv_SetMotionProfileType(0);\n  motor.pv_SetAcceleration(5000); \n  motor.pv_SetDeceleration(5000); \n} \nvoid loop() {\n  \/\/ ...\n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-5-profile-torque-tq-control\" class=\"wp-block-heading\">3.5 Profile Torque (tq) control<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement torque control on a CiA 402 EtherCAT SubDevice supporting Profile Torque mode (tq).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Maintain a positive torque of 50 units for 3 seconds.<\/li>\n\n\n\n<li>Maintain a negative torque of 50 units for 3 seconds.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\nEthercatMaster master;\nEthercatDevice_CiA402 motor;\nvoid setup() {\n  master.begin();\n  motor.attach(0, master); \n  motor.setCiA402Mode(CIA402_TQ_MODE);\n  master.start(); \n  \n  motor.enable();\n  motor.tq_SetTorqueProfileType(0);\n  motor.tq_SetTorqueSlope(200);\n  motor.tq_SetMotorRatedTorque(0);\n  motor.tq_SetMotorRatedCurrent(0); \n} \nvoid loop() {\n  motor.tq_Run(50);\n  while (motor.tq_IsTargetReached() == 0);\n  delay(3000);\n  \n  motor.tq_Run(-50);\n  while (motor.tq_IsTargetReached() == 0);\n  delay(3000); \n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-6-profile-torque-tq-control-in-cyclic-callback\" class=\"wp-block-heading\">3.6 Profile Torque (tq) control in cyclic callback<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement torque control on a CiA 402 EtherCAT SubDevice supporting Profile Torque mode (tq).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Maintain a positive torque of 50 units for 3 seconds.<\/li>\n\n\n\n<li>Maintain a negative torque of 50 units for 3 seconds.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To operate in cyclic callback, the relevant objects must be mapped to PDOs as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Output PDO (RxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6040h: Controlword<\/li>\n\n\n\n<li>Object 6071h: Target torque<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Input PDO (TxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6041h: Statusword<\/li>\n\n\n\n<li>Object 6077h: Torque actual value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\nEthercatMaster master;\nEthercatDevice_CiA402 motor;\nint toggle = 0;\nint cycle_count = 3000;\nvoid MyCyclicCallback()\n{\n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED) \n    return;\n  \n  if (++cycle_count &lt; 3000)\n    return;\n  \n  cycle_count = 0;\n  toggle = !toggle;\n  motor.setTargetTorque(50 * toggle - 50 * !toggle);\n} \nvoid setup() {\n  master.begin(); \n  motor.attach(0, master); \n  motor.setCiA402Mode(CIA402_TQ_MODE);\n  \/* RxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C12, 0x00, 0);\n  motor.sdoDownload8(0x1601, 0x00, 0); \n  motor.sdoDownload32(0x1601, 0x01, 0x60400010);\n  motor.sdoDownload32(0x1601, 0x02, 0x60710010);\n  motor.sdoDownload8(0x1601, 0x00, 2);\n  motor.sdoDownload16(0x1C12, 0x01, 0x1601);\n  motor.sdoDownload8(0x1C12, 0x00, 1);\n  \/* TxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C13, 0x00, 0);\n  motor.sdoDownload8(0x1A01, 0x00, 0); \n  motor.sdoDownload32(0x1A01, 0x01, 0x60410010);\n  motor.sdoDownload32(0x1A01, 0x02, 0x60770010);\n  motor.sdoDownload8(0x1A01, 0x00, 2);\n  motor.sdoDownload16(0x1C13, 0x01, 0x1A01); \n  motor.sdoDownload8(0x1C13, 0x00, 1); \n  \n  master.attachCyclicCallback(MyCyclicCallback);\n  master.start(1000000);\n  \n  motor.enable();\n  motor.tq_SetTorqueProfileType(0);\n  motor.tq_SetTorqueSlope(200);\n  motor.tq_SetMotorRatedTorque(0);\n  motor.tq_SetMotorRatedCurrent(0);\n} \nvoid loop() {\n  \/\/ ... \n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-7-homing-hm-operation\" class=\"wp-block-heading\">3.7 Homing (hm) operation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Initiate the <strong>homing method 33<\/strong> operation on a CiA 402 compliant EtherCAT SubDevice.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot; \nEthercatMaster master; \nEthercatDevice_CiA402 motor;\nvoid setup() {\n  master.begin();\n  motor.attach(0, master);\n  motor.setCiA402Mode(CIA402_HOMING_MODE);\n  master.start();\n  \n  motor.enable();\n  \n  motor.hm_SetHomingMethod(CIA402_HM33);\n  motor.hm_SetHomeOffset(0);\n  motor.hm_SetHomingSpeeds(100, 20);\n  motor.hm_SetHomingAcceleration(100); \n  motor.hm_Run();\n  while (motor.hm_IsAttained() == CIA402_HM_RUNNING);\n}\nvoid loop() {\n  \/\/ ...\n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-8-cyclic-synchronous-position-csp-control-in-cyclic-callback\" class=\"wp-block-heading\">3.8 Cyclic synchronous position (CSP) control in cyclic callback<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement Cyclic Synchronous Position (CSP) control on a CiA 402 EtherCAT SubDevice.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The target position is incremented by 1,000 units in each cycle.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To operate in cyclic callback, the relevant objects must be mapped to PDOs as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Output PDO (RxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6040h: Controlword<\/li>\n\n\n\n<li>Object 607Ah: Target position<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Input PDO (TxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6041h: Statusword<\/li>\n\n\n\n<li>Object 6064h: Position actual value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot; \nEthercatMaster master; \nEthercatDevice_CiA402 motor; \nint32_t position = 0;\nvoid MyCyclicCallback() \n{\n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED)\n    return; \n  \n  motor.setTargetPosition(position += 1000); \n}\nvoid setup() { \n  master.begin();\n  \n  motor.attach(0, master);\n  motor.setDc(1000000);\n  motor.setCiA402Mode(CIA402_CSP_MODE);\n  \n  \/* RxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C12, 0x00, 0); \n  motor.sdoDownload8(0x1601, 0x00, 0); \n  motor.sdoDownload32(0x1601, 0x01, 0x60400010); \n  motor.sdoDownload32(0x1601, 0x02, 0x607A0020);\n  motor.sdoDownload8(0x1601, 0x00, 2);\n  motor.sdoDownload16(0x1C12, 0x01, 0x1601);\n  motor.sdoDownload8(0x1C12, 0x00, 1);\n  \/* TxPDO mapping configuration. *\/ \n  motor.sdoDownload8(0x1C13, 0x00, 0);\n  motor.sdoDownload8(0x1A01, 0x00, 0); \n  motor.sdoDownload32(0x1A01, 0x01, 0x60410010); \n  motor.sdoDownload32(0x1A01, 0x02, 0x60640020);\n  motor.sdoDownload8(0x1A01, 0x00, 2);\n  motor.sdoDownload16(0x1C13, 0x01, 0x1A01);\n  motor.sdoDownload8(0x1C13, 0x00, 1); \n  \n  master.attachCyclicCallback(MyCyclicCallback);\n  master.start(1000000, ECAT_SYNC); \n  \n  motor.setTargetPosition(position = motor.getPositionActualValue());\n  motor.enable();\n}\nvoid loop() {\n  \/\/ ... \n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-9-cyclic-synchronous-velocity-csv-control-in-cyclic-callback\" class=\"wp-block-heading\">3.9 Cyclic synchronous velocity (CSV) control in cyclic callback<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement Cyclic Synchronous Velocity (CSV) control on a CiA 402 EtherCAT SubDevice.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The target velocity is incremented by 1 unit each cycle until it reaches 3,000 units.<\/li>\n\n\n\n<li>The target velocity is decremented by 1 unit each cycle until it reaches -3,000 units.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To operate in cyclic callback, the relevant objects must be mapped to PDOs as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Output PDO (RxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6040h: Controlword<\/li>\n\n\n\n<li>Object 60FFh: Target velocity<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Input PDO (TxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6041h: Statusword<\/li>\n\n\n\n<li>Object 606Ch: Velocity actual value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot; \nEthercatMaster master; \nEthercatDevice_CiA402 motor;\nint32_t velocity = 0;\nint toggle = 0;\nvoid MyCyclicCallback() \n{\n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED)\n    return;\n  \n  if (abs(velocity) &gt;= 3000) \n    toggle = !toggle; \n  \n  velocity = velocity + toggle - !toggle;\n  motor.setTargetVelocity(velocity); \n}\nvoid setup() {\n  master.begin();\n  motor.attach(0, master);\n  motor.setDc(1000000);\n  motor.setCiA402Mode(CIA402_CSV_MODE);\n  \n  \/* RxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C12, 0x00, 0);\n  motor.sdoDownload8(0x1601, 0x00, 0);\n  motor.sdoDownload32(0x1601, 0x01, 0x60400010);\n  motor.sdoDownload32(0x1601, 0x02, 0x60FF0020);\n  motor.sdoDownload8(0x1601, 0x00, 2); \n  motor.sdoDownload16(0x1C12, 0x01, 0x1601); \n  motor.sdoDownload8(0x1C12, 0x00, 1); \n  \/* TxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C13, 0x00, 0);\n  motor.sdoDownload8(0x1A01, 0x00, 0);\n  motor.sdoDownload32(0x1A01, 0x01, 0x60410010);\n  motor.sdoDownload32(0x1A01, 0x02, 0x606C0020);\n  motor.sdoDownload8(0x1A01, 0x00, 2);\n  motor.sdoDownload16(0x1C13, 0x01, 0x1A01);\n  motor.sdoDownload8(0x1C13, 0x00, 1);\n  \n  master.attachCyclicCallback(MyCyclicCallback);\n  master.start(1000000, ECAT_SYNC); \n  \n  motor.setTargetVelocity(0);\n  motor.enable(); \n} \nvoid loop() {\n  \/\/ ... \n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-3-10-cyclic-synchronous-torque-cst-control-in-cyclic-callback\" class=\"wp-block-heading\">3.10 Cyclic synchronous torque (CST) control in cyclic callback<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement Cyclic Synchronous Torque (CST) control on a CiA 402 EtherCAT SubDevice.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The target torque is incremented by 1 unit each cycle until it reaches 50 units.<\/li>\n\n\n\n<li>The target torque is decremented by 1 unit each cycle until it reaches -50 units.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To operate in cyclic callback, the relevant objects must be mapped to PDOs as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Output PDO (RxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6040h: Controlword<\/li>\n\n\n\n<li>Object 6071h: Target torque<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Input PDO (TxPDO)<\/strong>\n<ul class=\"wp-block-list\">\n<li>Object 6041h: Statusword<\/li>\n\n\n\n<li>Object 6077h: Torque actual value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the example code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\nEthercatMaster master; \nEthercatDevice_CiA402 motor; \nint16_t torque = 0;\nint toggle = 0;\nvoid MyCyclicCallback()\n{ \n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED) \n    return;\n  \n  if (abs(torque) &gt;= 50) \n    toggle = !toggle;\n  \n  torque = torque + toggle - !toggle; \n  motor.setTargetTorque(torque);\n} \nvoid setup() {\n  master.begin();\n  motor.attach(0, master);\n  motor.setDc(1000000); \n  motor.setCiA402Mode(CIA402_CST_MODE); \n  \n  \/* RxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C12, 0x00, 0);\n  motor.sdoDownload8(0x1601, 0x00, 0); \n  motor.sdoDownload32(0x1601, 0x01, 0x60400010); \n  motor.sdoDownload32(0x1601, 0x02, 0x60710010);\n  motor.sdoDownload8(0x1601, 0x00, 2);\n  motor.sdoDownload16(0x1C12, 0x01, 0x1601); \n  motor.sdoDownload8(0x1C12, 0x00, 1);\n  \/* TxPDO mapping configuration. *\/\n  motor.sdoDownload8(0x1C13, 0x00, 0);\n  motor.sdoDownload8(0x1A01, 0x00, 0);\n  motor.sdoDownload32(0x1A01, 0x01, 0x60410010);\n  motor.sdoDownload32(0x1A01, 0x02, 0x60770010); \n  motor.sdoDownload8(0x1A01, 0x00, 2);\n  motor.sdoDownload16(0x1C13, 0x01, 0x1A01);\n  motor.sdoDownload8(0x1C13, 0x00, 1);\n  \n  master.attachCyclicCallback(MyCyclicCallback);\n  master.start(1000000, ECAT_SYNC);\n  \n  motor.setTargetTorque(0);\n  motor.enable();\n}\nvoid loop() {\n  \/\/ ... \n}<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"h-appendix\" class=\"wp-block-heading\">Appendix<\/h2>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"h-a-1-error-list\" class=\"wp-block-heading\">A.1 Error List<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For most functions, a returned value less than zero indicates an error, and the value represents an error code. If there is an error code, you can find the error cause and corrective actions below.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><tbody><tr><td><strong>Definition<\/strong><\/td><td><strong>Code<\/strong><\/td><\/tr><tr><td><code>ECAT_SUCCESS<\/code><\/td><td>0<\/td><\/tr><tr><td><code>ECAT_ERR_MODULE_INIT_FAIL<\/code><\/td><td>-100<\/td><\/tr><tr><td><code>ECAT_ERR_MODULE_GET_VERSION_FAIL<\/code><\/td><td>-101<\/td><\/tr><tr><td><code>ECAT_ERR_MODULE_VERSION_MISMATCH<\/code><\/td><td>-102<\/td><\/tr><tr><td><code>ECAT_ERR_MODULE_GENERIC_TRANSFER_INIT_FAIL<\/code><\/td><td>-103<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_DOWNLOAD_SETTINGS_FAIL<\/code><\/td><td>-200<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_SET_DEVICE_SETTINGS_FAIL<\/code><\/td><td>-201<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_GET_GROUP_INFO_FAIL<\/code><\/td><td>-202<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_GET_MASTER_INFO_FAIL<\/code><\/td><td>-203<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_GET_DEVICE_INFO_FAIL<\/code><\/td><td>-204<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_SET_GROUP_SETTINGS_FAIL<\/code><\/td><td>-205<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_MAPPING_INIT_FAIL<\/code><\/td><td>-206<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_INTERRUPT_INIT_FAIL<\/code><\/td><td>-207<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACTIVE_FAIL<\/code><\/td><td>-208<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ENI_INITCMDS_FAIL<\/code><\/td><td>-209<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_NO_DEVICE<\/code><\/td><td>-210<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACYCLIC_INIT_FAIL<\/code><\/td><td>-300<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACYCLIC_REQUEST_FAIL<\/code><\/td><td>-301<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACYCLIC_BUSY<\/code><\/td><td>-302<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACYCLIC_TIMEOUT<\/code><\/td><td>-303<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACYCLIC_ERROR<\/code><\/td><td>-304<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ACYCLIC_WRONG_STATUS<\/code><\/td><td>-405<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_GENERIC_SEND_FAIL<\/code><\/td><td>-400<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_GENERIC_RECV_FAIL<\/code><\/td><td>-401<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_NOT_BEGIN<\/code><\/td><td>-1000<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_WRONG_BUFFER_SIZE<\/code><\/td><td>-1001<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_REDUNDANCY_NO_DC<\/code><\/td><td>-1002<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_MEMORY_ALLOCATION_FAIL<\/code><\/td><td>-1003<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_OSLAYER_INIT_FAIL<\/code><\/td><td>-1004<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_NIC_INIT_FAIL<\/code><\/td><td>-1005<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_BASE_INIT_FAIL<\/code><\/td><td>-1006<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_CIA402_INIT_FAIL<\/code><\/td><td>-1007<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_SETUP_PDO_FAIL<\/code><\/td><td>-1008<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_SCAN_NETWORK_FAIL<\/code><\/td><td>-1009<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_START_MASTER_FAIL<\/code><\/td><td>-1010<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_CYCLETIME_TOO_SMALL<\/code><\/td><td>-1011<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_DUMP_OUTPUT_PDO_FAIL<\/code><\/td><td>-1012<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_CONFIG_DEVICE_FAIL<\/code><\/td><td>-1013<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_CONFIG_MAPPING_FAIL<\/code><\/td><td>-1014<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_WAIT_BUS_SYNC_TIMEOUT<\/code><\/td><td>-1015<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_WAIT_MASTER_SYNC_TIMEOUT<\/code><\/td><td>-1016<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_CYCLIC_START_FAIL<\/code><\/td><td>-1017<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_WRONG_BUFFER_POINTER<\/code><\/td><td>-1018<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ENI_INIT_FAIL<\/code><\/td><td>-1050<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_ENI_MISMATCH<\/code><\/td><td>-1051<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_STOPPED<\/code><\/td><td>-1100<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_STARTED<\/code><\/td><td>-1101<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_NOT_IN_PREOP<\/code><\/td><td>-1102<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_NOT_IN_SAFEOP<\/code><\/td><td>-1103<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_NOT_IN_OP<\/code><\/td><td>-1104<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_II_TRANSITION_FAIL<\/code><\/td><td>-1200<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_IP_TRANSITION_FAIL<\/code><\/td><td>-1201<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_PS_TRANSITION_FAIL<\/code><\/td><td>-1202<\/td><\/tr><tr><td><code>ECAT_ERR_MASTER_SO_TRANSITION_FAIL<\/code><\/td><td>-1203<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_NOT_EXIST<\/code><\/td><td>-2000<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_NOT_ATTACH<\/code><\/td><td>-2001<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_NO_MAILBOX<\/code><\/td><td>-2002<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_NO_DC<\/code><\/td><td>-2003<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_WRONG_INPUT<\/code><\/td><td>-2004<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_MEMORY_ALLOCATION_FAIL<\/code><\/td><td>-2005<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_VENDOR_ID_MISMATCH<\/code><\/td><td>-2006<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_PRODUCT_CODE_MISMATCH<\/code><\/td><td>-2007<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_NO_SUCH_FUNCTION<\/code><\/td><td>-2008<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FUNCTION_NOT_INIT<\/code><\/td><td>-2009<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_BUSY<\/code><\/td><td>-2010<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_TIMEOUT<\/code><\/td><td>-2011<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_NO_DATA<\/code><\/td><td>-2012<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_SII_READ_FAIL<\/code><\/td><td>-2100<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_SII_WRITE_FAIL<\/code><\/td><td>-2101<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_PDO_NOT_EXIST<\/code><\/td><td>-2200<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_PDO_OUT_OF_RANGE<\/code><\/td><td>-2201<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_NOT_SUPPORT<\/code><\/td><td>-2300<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_REQUEST_FAIL<\/code><\/td><td>-2310<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_TIMEOUT<\/code><\/td><td>-2311<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_ERROR<\/code><\/td><td>-2312<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_BUFFER_TOO_SMALL<\/code><\/td><td>-2313<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_READ_FAIL<\/code><\/td><td>-2314<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_FOE_WRITE_FAIL<\/code><\/td><td>-2315<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_COE_SDO_NOT_SUPPORT<\/code><\/td><td>-2400<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_COE_SDO_INFO_NOT_SUPPORT<\/code><\/td><td>-2401<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_COE_BUSY<\/code><\/td><td>-2410<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_COE_REQUEST_FAIL<\/code><\/td><td>-2411<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_COE_TIMEOUT<\/code><\/td><td>-2412<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_COE_ERROR<\/code><\/td><td>-2413<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_NOT_EXIST<\/code><\/td><td>-2500<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_ADD_FAIL<\/code><\/td><td>-2501<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_TYPE_MISMATCH<\/code><\/td><td>-2502<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_NO_MODE_SUPPORT<\/code><\/td><td>-2503<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_WRONG_MODE<\/code><\/td><td>-2504<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_MODE_NOT_SUPPORT<\/code><\/td><td>-2505<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_CHANGE_WRONG_STATE<\/code><\/td><td>-2506<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_WRITE_OBJECT_FAIL<\/code><\/td><td>-2507<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_NO_SUCH_TOUCH_PROBE<\/code><\/td><td>-2580<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_CIA402_NO_SUCH_TOUCH_PROBE_SOURCE<\/code><\/td><td>-2581<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_EOE_NOT_SUPPORT<\/code><\/td><td>-2600<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_EOE_NO_SUCH_PORT<\/code><\/td><td>-2601<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_EOE_TOO_MUCH_CONTENT<\/code><\/td><td>-2602<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_EOE_BUSY<\/code><\/td><td>-2610<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_EOE_REQUEST_FAIL<\/code><\/td><td>-2611<\/td><\/tr><tr><td><code>ECAT_ERR_DEVICE_EOE_TIMEOUT<\/code><\/td><td>-2612<\/td><\/tr><tr><td><code>ECAT_ERR_GROUP_WRONG_INPUT<\/code><\/td><td>-3000<\/td><\/tr><tr><td><code>ECAT_ERR_GROUP_NOT_ATTACH<\/code><\/td><td>-3001<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-a-2-nbsp-error-description-and-corrective-actions\" class=\"wp-block-heading\">A.2&nbsp; Error Description and Corrective Actions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For Error Code Description and Corrective Actions.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.qec.tw\/ethercat\/api\/error-code\/\">More Information<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-a-3-nbsp-sdo-abort-code\" class=\"wp-block-heading\">A.3&nbsp; SDO Abort Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The CoE SDO Abort Codes are defined in ETG.1000.6:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Meaning<\/strong><\/td><\/tr><tr><td><strong>0x05030000<\/strong><strong><\/strong><\/td><td>Toggle bit not changed.<\/td><\/tr><tr><td><strong>0x05040000<\/strong><\/td><td>SDO protocol timeout.<\/td><\/tr><tr><td><strong>0x05040001<\/strong><strong><\/strong><\/td><td>Client\/Server command specifier not valid or unknown.<\/td><\/tr><tr><td><strong>0x05040005<\/strong><\/td><td>Out of memory.<\/td><\/tr><tr><td><strong>0x06010000<\/strong><strong><\/strong><\/td><td>Unsupported access to an object.<\/td><\/tr><tr><td><strong>0x06010001<\/strong><\/td><td>Attempt to read to a write only object.<\/td><\/tr><tr><td><strong>0x06010002<\/strong><strong><\/strong><\/td><td>Attempt to write to a read only object.<\/td><\/tr><tr><td><strong>0x06010003<\/strong><\/td><td>Subindex cannot be written, SI0 must be 0 for write access.<\/td><\/tr><tr><td><strong>0x06010004<\/strong><strong><\/strong><\/td><td>SDO Complete access not supported for objects of variable length such as ENUM object types.<\/td><\/tr><tr><td><strong>0x06010005<\/strong><\/td><td>Object length exceeds mailbox size.<\/td><\/tr><tr><td><strong>0x06010006<\/strong><strong><\/strong><\/td><td>Object mapped to RxPDO, SDO Download blocked.<\/td><\/tr><tr><td><strong>0x06020000<\/strong><\/td><td>The object does not exist in the object directory.<\/td><\/tr><tr><td><strong>0x06040041<\/strong><strong><\/strong><\/td><td>The object can not be mapped into the PDO.<\/td><\/tr><tr><td><strong>0x06040042<\/strong><\/td><td>The number and length of the objects to be mapped would exceed the PDO length.<\/td><\/tr><tr><td><strong>0x06040043<\/strong><strong><\/strong><\/td><td>General parameter incompatibility reason.<\/td><\/tr><tr><td><strong>0x06040047<\/strong><\/td><td>General internal incompatibility in the device.<\/td><\/tr><tr><td><strong>0x06060000<\/strong><strong><\/strong><\/td><td>Access failed due to a hardware error.<\/td><\/tr><tr><td><strong>0x06070010<\/strong><\/td><td>Data type does not match, length of service parameter does not match.<\/td><\/tr><tr><td><strong>0x06070012<\/strong><strong><\/strong><\/td><td>Data type does not match, length of service parameter too high.<\/td><\/tr><tr><td><strong>0x06070013<\/strong><\/td><td>Data type does not match, length of service parameter too low.<\/td><\/tr><tr><td><strong>0x06090011<\/strong><strong><\/strong><\/td><td>Subindex does not exist.<\/td><\/tr><tr><td><strong>0x06090030<\/strong><\/td><td>Value range of parameter exceeded (only for write access).<\/td><\/tr><tr><td><strong>0x06090031<\/strong><strong><\/strong><\/td><td>Value of parameter written too high.<\/td><\/tr><tr><td><strong>0x06090032<\/strong><\/td><td>Value of parameter written too low.<\/td><\/tr><tr><td><strong>0x06090036<\/strong><strong><\/strong><\/td><td>Maximum value is less than minimum value.<\/td><\/tr><tr><td><strong>0x08000000<\/strong><\/td><td>General error.<\/td><\/tr><tr><td><strong>0x08000020<\/strong><strong><\/strong><\/td><td>Data cannot be transferred or stored to the application.<br>NOTE: This is the general Abort Code in case no further detail on the reason can determined. It is recommended to use one of the more detailed Abort Codes. (0x08000021, 0x08000022)<\/td><\/tr><tr><td><strong>0x08000021<\/strong><\/td><td>Data cannot be transferred or stored to the application because of local control.<br>NOTE: \u201clocal control\u201d means an application specific reason. It does not mean the ESM-specific control.<\/td><\/tr><tr><td><strong>0x08000022<\/strong><strong><\/strong><\/td><td>Data cannot be transferred or stored to the application because of the present device state.<br>NOTE: \u201cdevice state\u201d means the ESM state.<\/td><\/tr><tr><td><strong>0x08000023<\/strong><\/td><td>Object dictionary dynamic generation fails or no object dictionary is present.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-a-4-data-type\" class=\"wp-block-heading\">A.4 Data Type<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Basic Data Types defined in ETG.1000.6:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><tbody><tr><td><strong>Index (hex)<\/strong><\/td><td><strong>Object Type<\/strong><\/td><td><strong>Name<\/strong><\/td><\/tr><tr><td><strong>0001<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>BOOLEAN<\/td><\/tr><tr><td><strong>0002<\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER8<\/td><\/tr><tr><td><strong>0003<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER16<\/td><\/tr><tr><td><strong>0004<\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER32<\/td><\/tr><tr><td><strong>0005<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED8<\/td><\/tr><tr><td><strong>0006<\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED16<\/td><\/tr><tr><td><strong>0007<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED32<\/td><\/tr><tr><td><strong>0008<\/strong><\/td><td>DEFTYPE<\/td><td>REAL32<\/td><\/tr><tr><td><strong>0009<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>VISIBLE_STRING<\/td><\/tr><tr><td><strong>000A<\/strong><\/td><td>DEFTYPE<\/td><td>OCTET_STRING<\/td><\/tr><tr><td><strong>000B<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>UNICODE_STRING<\/td><\/tr><tr><td><strong>000C<\/strong><\/td><td>DEFTYPE<\/td><td>TIME_OF_DAY<\/td><\/tr><tr><td><strong>000D<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>TIME_DIFFERENCE<\/td><\/tr><tr><td><strong>000F<\/strong><\/td><td>DEFTYPE<\/td><td>DOMAIN<\/td><\/tr><tr><td><strong>0010<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER24<\/td><\/tr><tr><td><strong>0011<\/strong><\/td><td>DEFTYPE<\/td><td>REAL64<\/td><\/tr><tr><td><strong>0012<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER40<\/td><\/tr><tr><td><strong>0013<\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER48<\/td><\/tr><tr><td><strong>0014<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER56<\/td><\/tr><tr><td><strong>0015<\/strong><\/td><td>DEFTYPE<\/td><td>INTEGER64<\/td><\/tr><tr><td><strong>0016<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED24<\/td><\/tr><tr><td><strong>0018<\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED40<\/td><\/tr><tr><td><strong>0019<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED48<\/td><\/tr><tr><td><strong>001A<\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED56<\/td><\/tr><tr><td><strong>001B<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>UNSIGNED64<\/td><\/tr><tr><td><strong>001D<\/strong><\/td><td>DEFTYPE<\/td><td>GUID<\/td><\/tr><tr><td><strong>001E<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>BYTE<\/td><\/tr><tr><td><strong>002D<\/strong><\/td><td>DEFTYPE<\/td><td>BITARR8<\/td><\/tr><tr><td><strong>002E<\/strong><strong><\/strong><\/td><td>DEFTYPE<\/td><td>BITARR16<\/td><\/tr><tr><td><strong>002F<\/strong><\/td><td>DEFTYPE<\/td><td>BITARR32<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-a-5-nbsp-about-cia-dsp-402\" class=\"wp-block-heading\">A.5&nbsp; About CiA DSP 402<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The CiA DSP 402 represents the standardized CANopen device profile for digital controlled motion products like servo controllers, frequency converters or stepper motors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All the devices mentioned above use communication techniques which conform to those described in the CiA Draft Standard DS 301 (CANopen Application Layer and Communication Profile). This document should be consulted in parallel to <a href=\"https:\/\/www.can-cia.org\/can-knowledge\/cia-402-series-canopen-device-profile-for-drives-and-motion-control\" target=\"_blank\" rel=\"noopener\">CiA\u00ae 402-CANopen Drives and Motion Control Profile<\/a>.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>REFERENCES<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>ISO 7498, 1984, Information Processing Systems &#8211; Open Systems Interconnection \u2013 Basic Reference Model<\/li>\n\n\n\n<li>ISO 11898-1, 1999, Road Vehicles, Interchange of Digital Information &#8211; Controller Area Network (CAN) for high-speed Communication<\/li>\n\n\n\n<li>CiA DS 301, CANopen Application Layer and Communication Profile, Version 4.02, February 2002<\/li>\n\n\n\n<li>CiA DS 401, CANopen Device Profile I\/O Modules, Version 2.1, May 2002<\/li>\n\n\n\n<li>DRIVECOM Profil Antriebstechnik\/Profil 21<\/li>\n\n\n\n<li>DRIVECOM Profil Antriebstechnik\/Servo 22, Jan. 1994<\/li>\n<\/ol>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DEFINITIONS AND ABBREVIATION<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><tbody><tr><td><strong>Abbr.<\/strong><\/td><td><strong>Definition<\/strong><\/td><\/tr><tr><td>CAN<\/td><td>Controller Area Network<\/td><\/tr><tr><td>CiA<\/td><td>CAN in Automation e. V.<\/td><\/tr><tr><td>COB<\/td><td>Communication Object (CAN message). A unit of transportation in a CAN network. Data must be sent across a network inside a COB.<\/td><\/tr><tr><td>COB-ID<\/td><td>COB-Identifier. Identifies a COB uniquely in a network. The identifier determines the priority of that COB in the MAC sub-layer too.<\/td><\/tr><tr><td>PDO<\/td><td>Process Data Object. Object for data exchange between several devices.<\/td><\/tr><tr><td>SDO<\/td><td>Service Data Object. Peer-to-peer communication with access to the object dictionary of a device.<\/td><\/tr><tr><td>pp<\/td><td>Profile Position Mode<\/td><\/tr><tr><td>pv<\/td><td>Profile Velocity Mode<\/td><\/tr><tr><td>vl<\/td><td>Velocity Mode<\/td><\/tr><tr><td>hm<\/td><td>Homing Mode<\/td><\/tr><tr><td>ip<\/td><td>Interpolated Position Mode<\/td><\/tr><tr><td>tq<\/td><td>Profile Torque Mode<\/td><\/tr><tr><td>all<\/td><td>Mandatory for all modes<\/td><\/tr><tr><td>ce<\/td><td>Common entries in the object dictionary<\/td><\/tr><tr><td>dc<\/td><td>Device Control<\/td><\/tr><tr><td>pc<\/td><td>Position Control Function<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-a-6-nbsp-object-dictionary-entries\" class=\"wp-block-heading\">A.6 &nbsp;Object Dictionary Entries<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">All information follows the <a href=\"https:\/\/www.can-cia.org\/can-knowledge\/cia-402-series-canopen-device-profile-for-drives-and-motion-control\" target=\"_blank\" rel=\"noopener\">CiA\u00ae 402-CANopen Drives and Motion Control Profile<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-a-7-nbsp-homing-methods\" class=\"wp-block-heading\">A.7&nbsp; Homing Methods<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">All information follows the <a href=\"https:\/\/www.can-cia.org\/can-knowledge\/cia-402-series-canopen-device-profile-for-drives-and-motion-control\" target=\"_blank\" rel=\"noopener\">CiA\u00ae 402-CANopen Drives and Motion Control Profile<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">The text of the 86Duino reference is a modification of&nbsp;<a href=\"http:\/\/arduino.cc\/en\/Reference\/HomePage\" target=\"_blank\" rel=\"noopener\">the Arduino reference<\/a>&nbsp;and is licensed under a&nbsp;<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\" target=\"_blank\" rel=\"noopener\">Creative Commons Attribution-ShareAlike 3.0 License<\/a>. Code samples in the reference are released into the public domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more info and&nbsp;sample requests, please write to&nbsp;<a href=\"mailto:info@icop.com.tw\">info@icop.com.tw<\/a>, call your nearest&nbsp;<a href=\"https:\/\/www.icop.com.tw\/branches\" target=\"_blank\" rel=\"noopener\">ICOP Branch<\/a>, or contact our&nbsp;<a href=\"https:\/\/www.icop.com.tw\/distributors\" target=\"_blank\" rel=\"noopener\">Worldwide Official Distributor.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[EtherCAT] 2025.12.30, EtherCAT CiA 402 v1.2. You can download the EtherCAT CiA 402 User Manual file&nbsp;here. 1. Introduction 1.1 &nbsp;About QEC MainDevice (MDevice) QEC MDevice [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":17224,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[226,315],"tags":[162,54,191],"class_list":["post-17004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-cia402","tag-86duino","tag-ethercat","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/comments?post=17004"}],"version-history":[{"count":110,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17004\/revisions"}],"predecessor-version":[{"id":18960,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17004\/revisions\/18960"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/17224"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=17004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=17004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=17004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}