离线都没问题。上传到触摸屏,扫描仪扫描条码后,数据没有传送到PLC,PLC是LS XBC-DN20S
macro_command main()
char string[10]
int a[20]
char b[20]
GetData(string[0], "Barcode (USB/COM)", BARCODE, 0, 8)
StringMid(string[1], 8, b[0])
SetData(b[0], "Local HMI", LW, 10, 8)
StringDecAsc2Bin(b[0], a[0])
SetData(a[0], "Local HMI", LW, 20, 8)
SetData(a[0], "LS XGB Cnet", D, 10, 8)
end macro_command |