请问下版主:
为什么PLC触发的次数与宏指令触发的次数不一样,是不是触摸屏反应不过来.
macro_command main()
bool I
bool k
GetData(I, "Mitsubishi FX3U/FX3G", Y, 0, 1)//读取PLC Y0值
SetData(I, "Local HMI", LB, 0, 1)//将PLC Y0值写入到LB0
GetData(k, "Local HMI", LB, 0, 1)//读取LB0值
SetData(k, "Mitsubishi FX3U/FX3G", Y, 1, 1)//将LB0值写入到PLC Y1
end macro_command |