Difference between revisions of "EtherCAT:EC SET PCMD OBJECT"
Line 2: | Line 2: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | This subroutine associates | + | This subroutine associates the PCMD command with a certain PDO. |
|INPUT= | |INPUT= | ||
− | Bus ID, slave | + | Bus ID, slave address, PDO index, PDO sub-index |
|OUTPUT= | |OUTPUT= | ||
Line 14: | Line 14: | ||
|DECLARATION= | |DECLARATION= | ||
− | public sub | + | 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 | + | call EC_SET_PCMD_OBJECT(0, 1, 0x607A, 0x00) |
|SEE ALSO= | |SEE ALSO= |