宏指令部分:
macro_command main()
short a=7,b,c=0
GetData(b,"Local HMI", lw, 9,1)
if (b<360) then
b=b+5
SetData(b,"Local HMI", lw, 9,1)
else
b=1
SetData(a,"Local HMI", lw, 9,1)
SetData(a,"Local HMI", lb, 0,1)
end if
SetData(a,"Local HMI", lw, 0,1)
end macro_command