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

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Axystems:Template:EtherCAT-Advanced_Function |DESCRIPTION= This subroutine associates a PCMD with a certain PDO . |INPUT= Bus ID, slave index, PDO index, PDO sub-index |O...")
 
Line 2: Line 2:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This subroutine associates a PCMD with a certain PDO .
+
This subroutine associates the VCMD 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_VCMD_OBJECT(byval busid as long, byval slaveid as long, byval index as long, byval subindex as long)
 +
 
 +
|SYNTAX=
 +
call EC_SET_VCMD_OBJECT(<Bus ID>, <Slave address>, <VCMD PDO Index>, <VCMD PDO Sub-Index>)
  
 
|EXAMPLE=
 
|EXAMPLE=
call EC_SLAVE_HOME(ax1, 5000)
+
call EC_SET_VCMD_OBJECT(0, 1, 0x6071, 0x00)
  
 
|SEE ALSO=
 
|SEE ALSO=

Revision as of 12:58, 10 January 2013