如何编写wincc 按钮的vbs脚本

如题所述

i/o域的属性中输入输出属性连接变量a,
按钮脚本:事件中 点击左键
Dim a

set a=hmiruntime.tags("a")
a.read
hmiruntime.tags("b").write a.value
你试试
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-01-12
按钮事件;点击左键
在光标处写
IF HMIRuntime.Tags("变量名").Read=1 Then
HMIRuntime.Tags("变量名").Writ 0
Else
HMIRuntime.Tags("变量名").Writ 1
End IF
(括号内双引号一定要在英文状态下写)
这样点击一下按钮为1 ,再点击一下为0
学习学习
相似回答