jqryygyjcf
級別: 略有小成
|
macro_command main() short b,c GetData(b,"Local HMI", LW,9011, 1) GetData(c,"Local HMI", RW,1, 1) if b==c then SetData(b,"MITSUBISHI FX0n/FX2", M,0,1) end if end macro_command 本人剛接觸宏指令請教 有什么辦法解決M0一直置位的問題呢? 要求是9011和RW1為1是輸出,不為1時關(guān)閉 [ 此帖被jqryygyjcf在2014-11-10 10:49重新編輯 ] |
---|---|
|
wwjfsk
級別: 探索解密
|
macro_command main() short b,c bool on=true,off=false GetData(b,"Local HMI", LW9011, 1) GetData(c,"Local HMI", RW1, 1) if b=1 and c=1 then SetData(on,"MITSUBISHI FX0n/FX2",M0,1) else SetData(off,"MITSUBISHI FX0n/FX2",M0,1) end if end macro_command |
---|---|
本帖最近評分記錄: |