EtherCAT:EC SET IO MODULE OUTPUT/zh-hans

From SoftMC-Wiki
< EtherCAT:EC SET IO MODULE OUTPUT
Revision as of 18:00, 6 May 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 描述 == 该子程序将IO模块输出设置为ON(1)或OFF(0) 如果数字I / O与系统的数字I / O相关联,则设置更为容易。<br/> 参...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

描述

该子程序将IO模块输出设置为ON(1)或OFF(0) 如果数字I / O与系统的数字I / O相关联,则设置更为容易。
参考Digital I/Os获取更多信息。

输入

Slave address, PDO index, PDO sub-index, new LED setting.

输出

None

返回值

Void

声明

public sub EC_SET_IO_MODULE_OUTPUT(byval slaveaddress as long, byval index as long, byval subindex as long, byval new_val as long)

格式

call EC_SET_IO_MODULE_OUTPUT(<Slave address>, <PDO index>, <PDO sub-index>, <LED setting>)

例子

call EC_SET_IO_MODULE_OUTPUT(1, 0x7020, 0x01, 1) call EC_SET_IO_MODULE_OUTPUT(1, 0x7040, 0x01, 0)