這個(gè)程序該怎么理解,這個(gè)是先運(yùn)行if語句再運(yùn)行for循環(huán)語句嗎?
GetData(name[0], "Local HMI", LW, 10, 7) // get name strings
for i=0 to 500 step 1
GetData(temp[0], "Local HMI", RW, var+13, 7)
if name[0]==temp[0] and name[1]==temp[1] and name[2]==temp[2] and name[3]==temp[3] and name[4]==temp[4] and name[5]==temp[5] and name[6]==temp[6] then
SetData(var, "Local HMI", LW, 9200, 1)
i=501
else
var=var+20
end if
next i
SetData(OFF, "Local HMI", LB, 7, 1)