經(jīng)過折騰一番,貌似已有效果。把它用二維碼顯示,用微信掃描,看到的字符和LW里的相同。
macro_command main()
unsigned int re
char result[6]
GetData(re,"Local HMI",LW,10,1)
DEC2ASCII(re, result[0], 6)
SetData(result[0],"Local HMI", LW, 50, 1)
SetData(result[1],"Local HMI", LW, 51, 1)
SetData(result[2],"Local HMI", LW, 52, 1)
SetData(result[3],"Local HMI", LW, 53, 1)
SetData(result[4],"Local HMI", LW, 54, 1)
SetData(result[5],"Local HMI", LW, 55, 1)
end macro_command