macro_command main()
short var0,i,day[18]
var0=1
for i=0 to 17 step 1
GetData(day[i], "MODBUS RTU", 4X, var0#25487, 1)
if var0>=18 then
var0=1
else
var0=var0+1
end if
next i
SetData(day[0], "Local HMI" , RW, 70, 18)
end macro_command
离线模拟可以,下到屏幕中就不行。请大神指点下什么问题