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 (Ethernet)", DT, 100, 1)
SetData(B, "Panasonic FP (Ethernet)", DT, 101, 1)
SetData(C, "Panasonic FP (Ethernet)", DT, 102, 1)
end macro_command