恭喜,你发布的帖子
发布于 2016-09-10 15:40:39
1楼
WINCC插入系统驱动,然后创建变量可以读取系统时间变量用脚本的话
VBS:if hmiruntime.tags("Hour").read >=0 and hmiruntime.tags("Hour").read<8 then
hmiruntime.tags("M1_0").write 1
else
hmiruntime.tags("M1_0").wtite 0
end if
变量名称和意思你的一样
C:
if GetTagWord("Hour")>=0 && GetTagWord("Hour") < 8
SetTagBit("M1_0",1);
else
SetTagBit("M1_0",0);
语法上倒是差不多
只是读取变量和设置变量有专门的函数
请填写推广理由:
分享
只看
楼主