Difference between revisions of "EtherCAT:EC SDO WRITE"
Line 3: | Line 3: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
In order to communicate with a specific slave we use its address and the functions EC_SDO_READ, EC_SDO_WRITE. | In order to communicate with a specific slave we use its address and the functions EC_SDO_READ, EC_SDO_WRITE. | ||
− | EC_SDO_WRITE sends data to the slave over a specific | + | EC_SDO_WRITE sends data to the slave over a specific SDO. We have to specify the SDO's index, 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). | The first sub-index is 0. If only one sub-index exists, we still have to specify 0 (we cannot omit this field). |