感謝!大蝦的回復!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語句沒有配對的then請問大蝦如何解決