自动化立体仓库 - WCS系统
#
tqs
2023-01-02 7cca3a02642588e13644a35e6b995b60fa43c56b
#
2个文件已修改
9 ■■■■■ 已修改文件
src/main/java/com/zy/core/thread/SiemensDevpThread.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -205,11 +205,11 @@
        //条码扫描器
        Thread.sleep(200);
        OperateResultExOne<byte[]> result2 = null;
        result2 = siemensS7Net.Read("DB100.200",(short)(barcodeSize*8));
        result2 = siemensS7Net.Read("DB100.200",(short)(barcodeSize*16));
        if (result2.IsSuccess) {
            for (int i = 0; i < barcodeSize; i++) {
                String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*8,8, "UTF-8");
                BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, slave.getId() == 1 ? i + 1 : i+ 3);
                String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*16,8, "UTF-8");
                BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, slave.getId() == 1 ? i + 1 : i + 3);
                if(!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) {
                    barcodeThread.setBarcode(barcode);
                }
src/main/resources/application.yml
@@ -198,7 +198,6 @@
    # 空板入库口2
    emptyInSta[1]:
      staNo: 111
    # 出库口1
    outSta[0]:
      staNo: 100
@@ -215,7 +214,7 @@
      barcode: ${wcs-slave.barcode[1].id}
  # 输送线2
  devp[1]:
    id: 1
    id: 2
    ip: 10.10.10.131
    port: 102
    rack: 0