Difference between revisions of "EtherCAT:EC SET IO MODULE OUTPUT"
m (Text replace - "Axystems:" to "") |
|||
Line 3: | Line 3: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
This subroutine sets an IO module's output. ON (1) or OFF (0). | This subroutine sets an IO module's output. ON (1) or OFF (0). | ||
+ | It is easier to set Digital I/O's if they are associated with System's Digital I/O's.<br/> | ||
+ | Please refer to [[EtherCAT:DIGITAL-IOS|Digital I/O's]] for more information.<br/> | ||
|INPUT= | |INPUT= |
Revision as of 13:12, 23 October 2014
This subroutine sets an IO module's output. ON (1) or OFF (0).
It is easier to set Digital I/O's if they are associated with System's Digital I/O's.
Please refer to Digital I/O's for more information.
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)