Difference between revisions of "EtherCAT:EC SET IO MODULE OUTPUT"
m (Miborich moved page Axystems:EtherCAT:EC SET IO MODULE OUTPUT to EtherCAT:EC SET IO MODULE OUTPUT: Global renaming of Axystems: namespace into (Main):) |
m (Text replace - "Axystems:" to "") |
||
Line 1: | Line 1: | ||
− | {{ | + | {{Template:EtherCAT-Function |
|DESCRIPTION= | |DESCRIPTION= |
Revision as of 09:14, 22 May 2014
This subroutine sets an IO module's output. ON (1) or OFF (0).
Input
Slave address, PDO index, PDO sub-index, new LED setting.
Output
None
Return Value
Void
Declaration
public sub EC_SET_IO_MODULE_OUTPUT(byval slaveaddress as long, byval index as long, byval subindex as long, byval new_val as long)
Syntax
call EC_SET_IO_MODULE_OUTPUT(<Slave address>, <PDO index>, <PDO sub-index>, <LED setting>)
Examples
call EC_SET_IO_MODULE_OUTPUT(1, 0x7020, 0x01, 1) call EC_SET_IO_MODULE_OUTPUT(1, 0x7040, 0x01, 0)