怎么处理提取后的高低字节,比如"a,b,c,d,e" 提取后希望是"abcde" 现在是提取后:“a b c d e"
macro_command main()
char a[2]
char b[2]
char c[2]
char d[2]
char e[2]
char h[2]
char i[2]
char j[2]
char k[2]
char q[2]
short ZZQ =1
StringGet(a[0], "Local HMI", LW, 60, 1)
StringGet(b[0], "Local HMI", LW, 61, 1)
StringGet(c[0], "Local HMI", LW, 62, 1)
StringGet(d[0], "Local HMI", LW, 63, 1)
StringGet(e[0], "Local HMI", LW, 64, 1)
StringMid(a[0], ZZQ, h[0])
StringMid(b[0], ZZQ, i[0])
StringMid(c[0], ZZQ, j[0])
StringMid(d[0], ZZQ, k[0])
StringMid(e[0], ZZQ, q[0])
StringSet(h[0], "Local HMI", LW, 70, 1)
StringSet(i[0], "Local HMI", LW, 71 ,1)
StringSet(j[0], "Local HMI", LW, 72, 1)
StringSet(k[0], "Local HMI", LW, 73, 1)
StringSet(q[0], "Local HMI", LW, 74, 1)
end macro_command |