3.select2
macro_command main()
short a
bool zero=0 这条语句起什么作用?
GetData(a, "Local HMI", LW, 9200, 1) 这个地址后面的1该怎么理解?
a=a+20
SetData(a, "Local HMI", RW, 1000, 1)
end macro_command
4.add
macro_command main()
short m,c[10],i[180],name[5],index,temp,index1=0,count=0
bool zero=0
GetData(index, "Local HMI", RW, 1000, 1)
temp=index+10
count=180-index
GetData(i[0], "Local HMI", RW, index, count)
SetData(i[0], "Local HMI", RW, temp, count)
FILL(c[0], 0, 10)
SetData(c[0], "Local HMI", RW, index, 10)
for m=0 to 17
GetData(name[0], "Local HMI", RW, 0+index1, 5)
SetData(name[0], "Local HMI", LW, 3000+index1, 5)
index1=index1+10
next
SetData(zero, "Local HMI", LB, 3, 1)
end macro_command |