这个功能块 ( ⇘ SM3_Basic.library) 获取当前轴的通讯状态。
|
类型 |
初始值 |
描述 |
---|---|---|---|
VAR_IN_OUT |
|
|
|
Axis |
AXIS_REF |
|
关联到一个轴,参阅 ⇘ AXIS_REF_SM3 |
VAR_INPUT |
|
|
|
bEnable |
BOOL |
FALSE |
当这个输入为 TRUE ,启动功能块的处理 |
VAR_OUTPUT |
|
|
|
bValid |
BOOL |
FALSE |
TRUE,如果输出值无效 |
bError |
BOOL |
FALSE |
TRUE,错误产生 |
bErrorID |
SMC_ERROR |
错误序号,参阅 ⇘ “SMC_ERROR” |
|
bOperational |
LREAL |
0 |
TRUE,如果通讯状态为 "Operational" (100) |
eComState |
SMC_CommunicationState |
0 |
通讯状态,以枚举变量SMC_CommunicationState的整数值定义: SMC_CommunicationState: SMC_COMSTATE_NOT_STARTED, SMC_COMSTATE_VARIABLE_INITIALIZATION, SMC_COMSTATE_BASE_COM_INITIALIZATION, SMC_COMSTATE_DRIVE_INITIALIZATION, SMC_COMSTATE_DRIVE_WAITING_FOR_SYNC, SMC_COMSTATE_INITIALIZATION_DONE, SMC_COMSTATE_OPERATIONAL, SMC_COMSTATE_REINITIALIZATION, SMC_COMSTATE_ERROR, SMC_COMSTATE_UNKNOWN |
wComState |
参数 1013 (wCommunicationState) 的值,用于区分当前的通讯状态 |