Difference between revisions of "EtherCAT:EC SDO WRITE"
(Created page with "{{Axystems:Template:EtherCAT-Function |DESCRIPTION= In order to communicate with a specific slave we use its address and the functions EC_SDO_READ, EC_SDO_WRITE. EC_SDO_WRITE...") |
|||
Line 5: | Line 5: | ||
EC_SDO_WRITE sends data to the slave over a specific PDO. We have to specify this PDO, and its sub-index, its size, and the new value<br/> | EC_SDO_WRITE sends data to the slave over a specific PDO. We have to specify this PDO, and its sub-index, its size, and the new value<br/> | ||
that we would like to write to the slave. | that we would like to write to the slave. | ||
+ | The first sub-index is 0. If only one sub-index exists, we still have to specify 0 (we cannot omit this field). | ||
|INPUT= | |INPUT= | ||
Line 22: | Line 23: | ||
|EXAMPLE= | |EXAMPLE= | ||
− | call EC_SDO_WRITE(EC_SLAVE_ADDRESSES[i],0x6040,0,16,128) 'clear faults | + | call EC_SDO_WRITE(EC_SLAVE_ADDRESSES[i], 0x6040, 0, 16, 128) 'clear faults |
|SEE ALSO= | |SEE ALSO= |