Difference between revisions of "EtherCAT:EC SET IO MODULE OUTPUT"
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|EtherCAT:EC_SET_IO_MODULE_OUTPUT}} | ||
{{Template:EtherCAT-Function | {{Template:EtherCAT-Function | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | This subroutine sets an IO module | + | This subroutine sets an IO module output to ON (1) or OFF (0).<br/> |
− | It is easier to set | + | It is easier to set digital I/Os if they are associated with system's digital I/Os.<br/> |
− | + | Refer to [[EtherCAT:DIGITAL-IOS|Digital I/Os]] for more information.<br/> | |
|INPUT= | |INPUT= |
Latest revision as of 17:46, 6 May 2017
Language: | English • 中文(简体) |
---|
This subroutine sets an IO module output to ON (1) or OFF (0).
It is easier to set digital I/Os if they are associated with system's digital I/Os.
Refer to Digital I/Os 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)