感谢!大虾的回复!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请问大虾如何解决