新版EB8000 V4.40安装后,发现原来的程序运行出错,经检查是下面的宏指令执行后,LW0-9不能正确写入RW(用LW9200变址索引)的值
macro_command main()
bool k=0
short a,b,c,d[10]
GetData(a,"Local HMI",LW,100,1)
GetData(b,"Local HMI",LW,102,1)
c=a+b
SetData(c,"Local HMI",LW,9200,1)
DELAY(100)
GetData(d[0],"Local HMI",RW,c,10)
SetData(d[0],"Local HMI",LW,0,10)
SetData(k,"Local HMI",LB,101,1)
end macro_command
应该是软件的BUG吧,希望尽快改正 |