EtherCAT:EC USE SLAVE/zh-hans

From SoftMC-Wiki
< EtherCAT:EC USE SLAVE
Revision as of 08:15, 7 May 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 描述 == 该子程序根据其地址向主站通知要使用的从站(在整个拓扑中)。<br/> 它接收一个表示从站类型的字符串。 有...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

描述

该子程序根据其地址向主站通知要使用的从站(在整个拓扑中)。
它接收一个表示从站类型的字符串。 有两种可能的类型:
"ECAT_AXIS_SLAVE" - 该字符串表示从站是运动驱动器
"ECAT_IO_SLAVE" - 该字符串表示从站是IO模块

输入

Slave address, vendor ID, product ID.
slave type - 一个区分运动驱动器和IO模块的字符串: "ECAT_AXIS_SLAVE" or "ECAT_IOMODULE_SLAVE"
dc_sync - 指示EtherCAT主站是否同步从站的时钟。(真或假)

输出

None

返回值

Void

声明

public sub EC_USE_SLAVE(byval slaveaddress as long, byval vendor as long, byval product as long, byval slave_type as string, byval dc_sync as long)

格式

call EC_USE_SLAVE(<slave address>, <slave vendor>, <slave product>, <slave type>, <dc sync>)

例子

call EC_USE_SLAVE(slaveAddr, slave0_vendor, slave0_product, "ECAT_AXIS_SLAVE", TRUE)

参见