GetData(tem1, "CAN Device", DATA, 40A05141108, 1)
tem1=tem1-50
SetData(tem1, "Local HMI", EM0, 3, 1)
GetData(tem[1], "CAN Device", DATA, 40A05142108, 1)
tem[1]=tem[1]-50
SetData(tem[1], "Local HMI", EM0, 4, 1)
//for i=3 to 10
//GetData(tem[i], "CAN Device", DATA, add, 1)
//tem[i]=tem[i]-45
//SetData(tem[i], "Local HMI", EM0, i, 1)
//add=add+1000
//next i
请问我这for循环有什么问题吗,用未注释部分的代码读em0数据就是有的变化的
用了for循环读的数据一直-45????
楼主最近还看过