Difference between revisions of "EtherCAT:EC SET STATUS OBJECT"

From SoftMC-Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This subroutine associates a PCMD with a certain PDO .
+
This subroutine associates the StatusWord with a certain PDO.
  
 
|INPUT=
 
|INPUT=
Line 14: Line 14:
  
 
|DECLARATION=
 
|DECLARATION=
public sub SET_PCMD_OBJECT(byval busid as long,byval slaveid as long, byval index as long,byval subindex as long)
+
public sub EC_SET_STATUS_OBJECT(byval busid as long, byval slaveid as long, byval index as long, byval subindex as long)
  
 
|EXAMPLE=
 
|EXAMPLE=
call EC_SLAVE_HOME(ax1, 5000)
+
call EC_SET_STATUS_OBJECT(0, 1, EC_STATUS_INDEX, EC_STATUS_SUBINDEX)
  
 
|SEE ALSO=
 
|SEE ALSO=

Revision as of 13:06, 10 January 2013