rainbow
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 13 個(gè)
工控威望: 109 點(diǎn)
下載積分: 698 分
在線時(shí)間: 16(小時(shí))
注冊(cè)時(shí)間: 2017-05-23
最后登錄: 2024-10-24
查看rainbow的 主題 / 回貼
樓主  發(fā)表于: 2018-03-24 18:20
macro_command main()
int i
int a
int b
int c
//int j
int page
int zjwindow
//  GetData (j,"Local HMI",lw,100,1)
GetData (i,"Local HMI",lw,10,1)
GetData (a,"PLC",r,10,1)
GetData (c,"PLC",r,30,1)
if (a==1 and c==1 )then
b==1
DELAY(10000)
SetData (b,"Local HMI",lb,40,1)
end if
if i==1111  then
page=0
SetData (page,"Local HMI",lb,40,1)
else
zjwindow=1
SetData (zjwindow,"Local HMI",lb,30,1)
end if
if a==1 then
i=0
SetData(i,"Local HMI",lw,10,1)
end if

end macro_command