這玩意 不是有手就會寫的嗎
macro_command main()
char result[8],a[1]=":"
short d10[3]
GetData(d10[0], "PLC", D, 10, 3)
DEC2ASCII(d10[0], result[0], 2)
DEC2ASCII(d10[1], result[3], 2)
DEC2ASCII(d10[2], result[6], 2)
result[2]=a[0]
result[5]=a[0]
SetData(result[0], "Local HMI", LW, 0, 8)
end macro_command
D 整數(shù)型
LW 字符型 4字