維綸觸摸屏,宏指令 macro_command main()
short aa
short bb
bool a531,a532 ,a533,a534,a535,cc
cc=0
GetData(bb, "Local HMI", RW, 2274, 1)
if bb==1 then
aa=bb+0
end if
if bb==2 then
aa=bb+0
end if
if bb==3 then
aa=bb+1
end if
if bb==4 then
aa=bb+4
end if
if bb==5 then
aa=bb+11
end if
GETBIT(aa, a531, 0)
GETBIT(aa, a532, 1)
GETBIT(aa, a533, 2)
GETBIT(aa, a534, 3)
GETBIT(aa, a535, 4)
SetData(a531, "Local HMI", RW_Bit, 531, 1)
SetData(a532, "Local HMI", RW_Bit, 532, 1)
SetData(a533, "Local HMI", RW_Bit, 533, 1)
SetData(a534, "Local HMI", RW_Bit, 534, 1)
SetData(a535, "Local HMI", RW_Bit, 535, 1)
SetData(cc, "Local HMI", LB, 121, 1) 標(biāo)示什么意識?