xueli521
生而無畏學至終章
級別: 探索解密
|
威綸通宏指令,使用while后,無法停止。 macro_command main() bool a,b,c = 1 ,d = 0 int e GetData(a,"HMI",LB,2,1) GetData(b,"HMI",LB,3,1) while (a == true and b == false) SetData(c,"HMI",LB,0,1) SetData(d,"HMI",LB,1,1) DELAY(1000) SetData(d,"HMI",LB,0,1) SetData(C,"HMI",LB,1,1) DELAY(1000) if b == true then break end if wend end macro_command |
---|---|
|