IODisableFailover() 脚本函数
- Last UpdatedJan 15, 2020
- 1 minute read
您可以在脚本中使用 IODisableFailover() 函数给指定的“访问名”禁用故障转移功能。IODisableFailover() 禁用除 IOForceFailover() 脚本函数方法之外的所有故障转移方法的切换功能。
类别
I/O 通讯
语法
IODisableFailover("AccessName",Option);
参数
AccessName
配置了故障转移的“访问名”。
Option
1 = 禁用故障转移
0 = 启用故障转移
附注
“访问名”可以指定为字符串,或是使用其它 InTouch 标记或函数提供的字符串值。
示例
本例禁用 ModbusPLC1“访问名”的故障转移功能。
IODisableFailover ("ModbusPLC1",1)
本例启用 ModbusPLC1“访问名”的故障转移功能。
IODisableFailover ("ModbusPLC1",0)