感謝!大蝦的回復(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編譯不能通過(guò)if語(yǔ)句沒(méi)有配對(duì)的then請(qǐng)問(wèn)大蝦如何解決