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