Difference between revisions of "EtherCAT:EC SDO READ"
| 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.<br/> | In order to communicate with a specific slave we use its address and the functions EC_SDO_READ, EC_SDO_WRITE.<br/> | ||
| − | To read data from the slave we have to specify a | + | To read data from the slave we have to specify a SDO index, a sub-index and its size.<br/> |
The first sub-index is 0. If only one sub-index exists, we still have to specify 0 (we cannot omit this field).<br/> | The first sub-index is 0. If only one sub-index exists, we still have to specify 0 (we cannot omit this field).<br/> | ||
The read value is returned from the function and can be set to a variable.<br/> | The read value is returned from the function and can be set to a variable.<br/> | ||