EtherCAT:EC SLAVE GET STATE/zh-hans

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

描述

该功能返回从站的运行状态。

输入

Axis address (example: Ax.dAdd)

输出

None

返回值

EC_STATE_INIT - 0x01
EC_STATE_PREOP - 0x02
EC_STATE_SAFEOP - 0x04
EC_STATE_OP - 0x08
EC_STATE_INVALID- 0x00

声明

public function EC_SLAVE_GET_STATE(byval addr as long) as long

例子

retVal = EC_SLAVE_GET_STATE(slave_addr[i])

参见