Difference between revisions of "EtherCAT:EC SET PCMD 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 PCMD command with a certain PDO.
  
 
|INPUT=
 
|INPUT=
Bus ID, slave index, PDO index, PDO sub-index
+
Bus ID, slave address, PDO index, PDO sub-index
  
 
|OUTPUT=
 
|OUTPUT=
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_PCMD_OBJECT(byval busid as long, byval slaveid as long, byval index as long, byval subindex as long)
 +
 
 +
|SYNTAX=
 +
call EC_SET_PCMD_OBJECT(<Bus ID>, <Slave address>, <PCMD PDO Index>, <PCMD PDO Sub-Index>)
  
 
|EXAMPLE=
 
|EXAMPLE=
call EC_SLAVE_HOME(ax1, 5000)
+
call EC_SET_PCMD_OBJECT(0, 1, 0x607A, 0x00)
  
 
|SEE ALSO=
 
|SEE ALSO=

Revision as of 12:55, 10 January 2013