最近一段时间一直在做触摸屏的程序,希望使其支持电力上的103规约,一直以来总通不过
现在终于找到原因了,高兴,也更感觉到了平时所用的C的好
比如注释掉的程序,谁能知道基本上一样的东西,竟然跳不出循环
for counter2=0 to len1
counter1=start_addr+counter2
//for counter1=start_addr to end_addr
//counter2=counter1-start_addr
//SetData(counter1, "Local HMI", LW, 1900, 1)//测试用,无错
GetData(rbuff[counter2], "Local HMI", LW,counter1, 1)
/// if counter1==1310 then//测试用
//SetData(counter1, "Local HMI", LW, 1900, 1)
//SetData(counter2, "Local HMI", LW, 1901, 1)
//SetData(rbuff[counter2], "Local HMI", LW, 1902, 1)
///end if
//DELAY(100)
next counter2
//next counter1