| | |
| | | continue; |
| | | } |
| | | String barcode = barcodeThread.getBarcode(); |
| | | |
| | | barcode = "80011105"; |
| | | |
| | | if (!Cools.isEmpty(barcode)) { |
| | | log.info("{}号条码扫描器检测条码信息:{}", inSta.getBarcode(), barcode); |
| | | if ("NG".endsWith(barcode) || "NoRead".equals(barcode)) { |
| | |
| | | } |
| | | |
| | | // 获取入库站信息 |
| | | // 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) { |
| | |
| | | |
| | | // 入出库模式判断 |
| | | // 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)) { |
| | |
| | | // } |
| | | |
| | | // 只有当堆垛机空闲 并且 无任务时才继续执行 |
| | | 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")) { |
| | |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | /** |
| | |
| | | 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} |
| | | |
| | | # 条码扫描仪 |
| | |
| | | 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 |
| | |
| | | }], |
| | | "crns": [{ |
| | | "type": "crane", |
| | | "id": "crn-4", |
| | | "text": "4", |
| | | "id": "crn-1", |
| | | "text": "1", |
| | | "top": 252, |
| | | "left": 501, |
| | | "width": 93, |
| | |
| | | "height": 2 |
| | | }, { |
| | | "type": "crane", |
| | | "id": "crn-3", |
| | | "text": "3", |
| | | "id": "crn-2", |
| | | "text": "2", |
| | | "top": 367, |
| | | "left": 512, |
| | | "width": 93, |
| | |
| | | "height": 2 |
| | | }, { |
| | | "type": "crane", |
| | | "id": "crn-2", |
| | | "text": "2", |
| | | "id": "crn-3", |
| | | "text": "3", |
| | | "top": 481, |
| | | "left": 501, |
| | | "width": 93, |
| | |
| | | "height": 2 |
| | | }, { |
| | | "type": "crane", |
| | | "id": "crn-1", |
| | | "text": "1", |
| | | "id": "crn-4", |
| | | "text": "4", |
| | | "top": 595, |
| | | "left": 501, |
| | | "width": 93, |
| | |
| | | <!-- 主体内容 --> |
| | | <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> |