本帖最后由 fanseal 于 2013-3-23 09:26 编辑
我做了个指令,可是用不了,请大家多多指较
macro_command main()
short a
bool Jump
bool off = false
GetData(jump, "PLC", s, 100, 1)
if Jump = 1 then
GetData(a, "PLC", D, 38, 1)
SetData(a, "HMI", LW, 0, 1)
GetData(jump, "PLC", s, 102, 1)
if Jump = 1 then
GetData(a, "PLC", D, 42, 1)
SetData(a, "HMI", LW, 0, 1)
GetData(jump, "PLC", s, 104, 1)
if Jump = 1 then
GetData(a, "PLC", D, 48, 1)
SetData(a, "HMI", LW, 0, 1)
end if
end macro_command |