EtherCAT:EC SLAVE NMT STATESET/zh-hans
语言: | [[::EtherCAT:EC SLAVE NMT STATESET|English]] • [[::EtherCAT:EC SLAVE NMT STATESET/zh-hans|中文(简体)]] |
---|
描述
此功能最多可以尝试设置从机的运行状态10次,如果失败,则会抛出异常。
输入
Axis' address (example: Ax.dAdd), new state as long where:
EC_STATE_INIT - 0x01
EC_STATE_PREOP - 0x02
EC_STATE_SAFEOP - 0x04
EC_STATE_OP - 0x08
输出
None
返回值
None
声明
public sub EC_Slave_NMT_StateSet(byval slaveaddr as long, byval new_state as long)
例子
call EC_Slave_NMT_StateSet(slaveaddr, EC_STATE_PREOP)