EtherCAT:EC SET CTRL OBJECT/zh-hans

From SoftMC-Wiki
Jump to: navigation, search
语言: English  • 中文(简体)‎

描述

该子程序将ControlWord与某个PDO相关联。

输入

Bus ID, slave address, PDO index, PDO sub-index

输出

None

返回值

Void

声明

public sub EC_SET_CTRL_OBJECT(byval busid as long, byval slaveid as long, byval index as long, byval subindex as long)

格式

call EC_SET_CTRL_OBJECT(<Bus ID>, <Slave address>, <CTRL PDO Index>, <CTRL PDO Sub-Index>)

例子

call EC_SET_CTRL_OBJECT(busid, slaveAddr, EC_CTRL_INDEX, EC_CTRL_SUBINDEX)
call EC_SET_CTRL_OBJECT(0, 1, 0x6040, 0x00)

参见