感謝!大蝦的回復(fù)!macro_command main()
short b,c
bool on=true,off=false
GetData(b,"Local HMI", LW,9011, 1)
GetData(c,"Local HMI", RW,1, 1)
if b=1 and c=1 then
SetData(on,"MITSUBISHI FX0n/FX2",M,0,1)
else
SetData(off,"MITSUBISHI FX0n/FX2",M,0,1)
end if
end macro_command
if b=1 and c=1 fhen編譯不能通過if語(yǔ)句沒有配對(duì)的then請(qǐng)問大蝦如何解決