macro_command main()
short a,b,c,d,E,f,l,m,n,o,p
bool g,h,I,J,K
a=80
b=80
c=200
d=50
e=100
GetData(g,"Local HMI",lb,0,1)
GetData(h,"Local HMI",lb,1,1)
GetData(i,"Local HMI",lb,2,1)
GetData(j,"Local HMI",lb,3,1)
GetData(k,"Local HMI",lb,4,1)
if g==1 then
SetData(a"Local HMI",lw,2,1)
GetData(l,"Local HMI",lw,2,1)
end if
if h==1 then
SetData(b,"Local HMI",lw,4,1)
GetData(m,"Local HMI",lw,4,1)
end if
if i==1 then
SetData(c,"Local HMI",lw,6,1)
GetData(n,"Local HMI",lw,6,1)
end if
if j==1 then
SetData(d,"Local HMI",lw,8,1)
GetData(o,"Local HMI",lw,8,1)
end if
if k==1 then
SetData(e,"Local HMI",lw,10,1)
GetData(p,"Local HMI",lw,10,1)
end if
f=l+m+n+o+p
SetData(f"Local HMI",lw,0,1)
end macro_command