Difference between revisions of "EtherCAT:EC SDO READ"

From SoftMC-Wiki
Jump to: navigation, search
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 SDO index, a sub-index and its size.<br/>
+
To read data from the slave we have to specify a SDO index and a sub-index.<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/>

Revision as of 10:05, 1 May 2013