macro_command main()
short a
short b=1
short c=0
GetData(a, "Local HMI", LW, 9017, 1)
SetData(a, "Local HMI", LW, 0, 1)
if a>30 then
SetData(b, "Local HMI", LW, 2, 1)
SetData(b, "Local HMI", LB, 2, 1)
else
SetData(c, "Local HMI", LW, 2, 1)
SetData(c, "Local HMI", LB, 2, 1)
end if
end macro_command |