此函数用于返回特定通道的运行状况位值。
要查看 IL 或 ST 语言的一般表示形式,请参阅功能和功能块表示形式。
下表介绍了输入变量:
输入
类型
注释
channelID
UINT
要监控的通道的通道 ID(请参阅 Modbus TCP 通道)。
下表描述了输出变量:
输出
IOS_GETHEALTH
0:通道 I/O 值未更新
1:通道 I/O 值已更新
以下是调用此功能的示例:
chID:=1 ;
channelHealth := IOS_GETHEALTH(chID)(* Get the health value (1=OK, 0=Not OK) of the channel number chID. The channel ID is displayed in the configuration editor of the device *)