自动化立体仓库 - WCS系统
#
mrzhssss
2022-11-28 704ce3e8e648592e8b5c73399603d9831fd952cb
#
6个文件已修改
72 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/model/LocTypeDto.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/console.map.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/monitor/data/map.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -106,6 +106,9 @@
                    continue;
                }
                String barcode = barcodeThread.getBarcode();
                barcode = "80011105";
                if (!Cools.isEmpty(barcode)) {
                    log.info("{}号条码扫描器检测条码信息:{}", inSta.getBarcode(), barcode);
                    if ("NG".endsWith(barcode) || "NoRead".equals(barcode)) {
@@ -116,6 +119,7 @@
                }
                // 获取入库站信息
//                SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId());
                SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId());
                StaProtocol staProtocol = devpThread.getStation().get(inSta.getStaNo());
                if (staProtocol == null) {
@@ -126,14 +130,16 @@
                // 入出库模式判断
//                if ( inSta.getStaNo()==203 && devpThread.ioModeOf2F != IoModeType.PAKIN_MODE) { continue; }
                if (inSta.getStaNo() == 203 && devpThread.ioModeOf2F == IoModeType.PAKOUT_MODE) {
                    continue;
                }
//                if (inSta.getStaNo() == 203 && devpThread.ioModeOf2F == IoModeType.PAKOUT_MODE) {
//                    continue;
//                }
                // 判断是否满足入库条件
                if (staProtocol.isAutoing() && staProtocol.isLoading()
                if (staProtocol.isAutoing()
                        && staProtocol.isLoading()
                        && staProtocol.isInEnable()
                        && !staProtocol.isEmptyMk() && (staProtocol.getWorkNo() == 0 || staProtocol.getWorkNo() > 9990)
                        && !staProtocol.isEmptyMk()
                        && (staProtocol.getWorkNo() == 0 || staProtocol.getWorkNo() > 9990)
                        && staProtocol.isPakMk()) {// && !Cools.isEmpty(barcode)) {
//                    if(Cools.isEmpty(barcode) || "NG".endsWith(barcode) || "NoRead".equals(barcode)) {
@@ -532,8 +538,11 @@
//            }
            // 只有当堆垛机空闲 并且 无任务时才继续执行
            if (crnProtocol.getStatusType() == CrnStatusType.IDLE && crnProtocol.getTaskNo() == 0 && crnProtocol.getModeType() == CrnModeType.AUTO
                    && crnProtocol.getLoaded() == 0 && crnProtocol.getForkPos() == 0) {
            if (crnProtocol.getStatusType() == CrnStatusType.IDLE
                    && crnProtocol.getTaskNo() == 0
                    && crnProtocol.getModeType() == CrnModeType.AUTO
                    && crnProtocol.getLoaded() == 0
                    && crnProtocol.getForkPos() == 0) {
                // 如果最近一次是入库模式
                if (crnProtocol.getLastIo().equals("I")) {
                    if (basCrnp.getInEnable().equals("Y")) {
src/main/java/com/zy/common/model/LocTypeDto.java
@@ -29,14 +29,15 @@
    }
    public LocTypeDto(StaProtocol staProtocol) {
        if (staProtocol.isHigh() == staProtocol.isLow()) {
            throw new CoolException("plc高低检测异常");
        }
        if (staProtocol.isLow()) {
            this.locType1 = 1; // 低库位
        } else {
            this.locType1 = 2; // 高库位
        }
//        if (staProtocol.isHigh() == staProtocol.isLow()) {
//            throw new CoolException("plc高低检测异常");
//        }
//        if (staProtocol.isLow()) {
//            this.locType1 = 1; // 低库位
//        } else {
//            this.locType1 = 2; // 高库位
//        }
        this.locType1 = 1;
    }
    /**
src/main/resources/application.yml
@@ -149,17 +149,17 @@
    slot: 0
    # 入库口1
    inSta[0]:
      staNo: 015
      staNo: 15
      barcode: ${wcs-slave.barcode[0].id}
    # 空板入库口1
    emptyInSta[0]:
      staNo: 012
      staNo: 12
    # 出库口1
    outSta[0]:
      staNo: 011
      staNo: 11
    # 拣料入库口1
    pickSta[0]:
      staNo: 011
      staNo: 11
      barcode: ${wcs-slave.barcode[0].id}
  # 条码扫描仪
@@ -173,11 +173,11 @@
    ip: 10.10.10.201
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 015
    staArr: 15
  # LED2
  led[1]:
    id: 2
    ip: 10.10.10.202
    port: 5005
    devpPlcId: ${wcs-slave.devp[0].id}
    staArr: 011
    staArr: 11
src/main/webapp/static/js/console.map.js
@@ -170,8 +170,8 @@
    }],
    "crns": [{
        "type": "crane",
        "id": "crn-4",
        "text": "4",
        "id": "crn-1",
        "text": "1",
        "top": 252,
        "left": 501,
        "width": 93,
@@ -186,8 +186,8 @@
        "height": 2
    }, {
        "type": "crane",
        "id": "crn-3",
        "text": "3",
        "id": "crn-2",
        "text": "2",
        "top": 367,
        "left": 512,
        "width": 93,
@@ -202,8 +202,8 @@
        "height": 2
    }, {
        "type": "crane",
        "id": "crn-2",
        "text": "2",
        "id": "crn-3",
        "text": "3",
        "top": 481,
        "left": 501,
        "width": 93,
@@ -226,8 +226,8 @@
        "height": 2
    }, {
        "type": "crane",
        "id": "crn-1",
        "text": "1",
        "id": "crn-4",
        "text": "4",
        "top": 595,
        "left": 501,
        "width": 93,
src/main/webapp/views/index.html
@@ -26,7 +26,7 @@
<!-- 主体内容 -->
<iframe id="content" src="console.html"></iframe>
<footer class="footer">
    Copyright © 2015 All Rights Reserved. <a href="http://www.zoneyung.com" target="_blank">浙江中扬立库技术有限公司</a>  保留所有权利
    Copyright © 2015 All Rights Reserved. <a href="https://www.superton.cn/" target="_blank">浙江速腾电子技术有限公司</a>  保留所有权利
</footer>
</body>
<script>
src/main/webapp/views/monitor/data/map.json
@@ -72,4 +72,4 @@
      }
    }
  ]
};
}