楼主最近还看过
问题解决了,下面是宏指令供有需要朋友可以参考。
macro_command main()
short A,B,C
GetData(A, "Local HMI", LW, 9022, 1)//读取年
GetData(B, "Local HMI", LW, 9021, 1)//读取月
GetData(C, "Local HMI", LW, 9020, 1)//读取日
SetData(A, "Panasonic FP ", DT, 100, 1)
SetData(B, "Panasonic FP ", DT, 101, 1)
SetData(C, "Panasonic FP ", DT, 102, 1)
end macro_command