恭喜,你发布的帖子
发布于 2016-01-07 09:37:52
4楼
按钮按下,
HMIRuntime.Tags("位号").Write 1
wincc中用全局脚本周期为1s
vbs:
dim mycount,mybit
mybit=HMIRuntime.Tags("位号").read
mycount=HMIRuntime.Tags("count").read
if mybit then
mycount=mycount+1
end if
if mycount>8 then'延时8秒,根据你实际需要延时的时间修改这个常数
HMIRuntime.Tags("位号").write 0
HMIRuntime.Tags("count").write 0
end if
请填写推广理由:
分享
只看
楼主