Difference between revisions of "EtherCAT:EC VER"

From SoftMC-Wiki
Jump to: navigation, search
(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.<br/> To read...")
 
Line 2: Line 2:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
In order to communicate with a specific slave we use its address and the functions EC_SDO_READ, EC_SDO_WRITE.<br/>
+
Query the version of the Ethercat Master.
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 read value is returned from the function and can be set to a variable.<br/>
 
  
 
|INPUT=
 
|INPUT=
Slave address, SDO index, SDO sub-index.
+
None
  
 
|OUTPUT=
 
|OUTPUT=
Line 14: Line 11:
  
 
|RETURN VALUE=
 
|RETURN VALUE=
Query the version of the Ethercat Master.
+
A string that contains the version of the Ethercat Master.
  
 
|DECLARATION=
 
|DECLARATION=

Revision as of 14:09, 27 November 2013