維綸宏指令
我是想把整批的位狀態(tài)傳送到PLC中
的是這樣做的,但是不怎么理想
M500-510的都能傳過(guò)去,后面的就不行了,麻煩您給指點(diǎn)下
macro_command main()
bool f=0
bool a,b[40]
GetData(a, "DELTA DVP", M, 1000, 1)
SetData(a, "Local HMI", LB, 101, 1)
GetData(b[0], "Local HMI", RW_Bit, 500, 40)
SetData(b[0], "DELTA DVP", M, 500, 40)
SetData(f, "Local HMI", LB, 101, 1)
end macro_command