自动化立体仓库 - WCS系统
#
yxFwq
2024-07-21 904c3bf52d9861330c0ca47748c8202db6ad7e98
#
3个文件已修改
32 ■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -5494,7 +5494,12 @@
            if (basJarMastList.isEmpty()){
                return false;
            }
            List<BasJarMast> basJarMastList10 = basJarMastService.getJarMastByJarIdAndStatusList(jarSlave.getId(), new ArrayList<Integer>() {{
                add(10);
            }});
            if (basJarMastList10.size()==jarMaxLoc){
                return false;
            }
            if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),4)!=0){
                return false;
            }
@@ -7800,6 +7805,8 @@
                        return true;
                    }
                    return true;
                } else {
                    log.error("{}号平衡车当前状态不满足入硫化罐条件,当前任务,平衡车从取货");
                }
            }
            return true;
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -133,7 +133,7 @@
    /**
     * 条码数量
     */
    private int barcodeSize = 9;
    private int barcodeSize = 5;
    /**
     * 入出库模式
@@ -354,11 +354,15 @@
        Thread.sleep(200);
        OperateResultExOne<byte[]> result2 = siemensS7Net.Read("DB101.2440",(short)(barcodeSize*8));
        if (result2.IsSuccess) {
            int[] staNosRgv = {281,292,173,214,120,100,101,102,103};
            for (int i = 0; i < barcodeSize; i++) {  //1:281  2:292  3:174(173) 4:214  5:120
            int[] staNosRgv = new int[]{281,292,173,214,120};
            if (slave.getId()==2){
                staNosRgv = new int[]{453,460,508,534,611};
            }
            for (int i = 0; i < barcodeSize; i++) {
                //1:281  2:292  3:174(173) 4:214  5:120
                //6:453  7:460  8:508 9:534  10:611
                String barcode = siemensS7Net.getByteTransform().TransString(result2.Content,i*8,8, "UTF-8");
                BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, i + 1);
                BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, (i + 1+((slave.getId()-1)*5)));
                if(!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) {
                    Integer siteId = staNosRgv[i]; // 站点编号
                    StaProtocol staProtocol = station.get(siteId);
src/main/resources/application.yml
@@ -306,11 +306,11 @@
    # 入库口1
    inSta[0]:
      staNo: 460
      barcode: ${wcs-slave.barcode[3].id}
      barcode: ${wcs-slave.barcode[6].id}
    # 入库口2
    inSta[1]:
      staNo: 453
      barcode: ${wcs-slave.barcode[4].id}
      barcode: ${wcs-slave.barcode[5].id}
    # 入硫化罐RGV
    enterRgv[0]:
      rgvNo: 623
@@ -407,6 +407,11 @@
    id: 9
    ip: 10.10.10.52
    port: 51236
  # 条码扫描仪
  barcode[9]:
    id: 10
    ip: 10.10.10.52
    port: 51236
   # LED1
  led[0]:
    id: 1