| | |
| | | if (wrkMast != null) { |
| | | News.warn(""+mark+" - 4"+" - 满托盘入库工作档中已存在该站状态为( 2.设备上走 )的数据,工作号={}", wrkMast.getWrkNo()); |
| | | if (devp.getId() == 2) { |
| | | staProtocol.setWorkNo((short)9999); |
| | | staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | // staProtocol.setWorkNo((short)9999); |
| | | // staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | staProtocol.setWorkNo(wrkMast.getWrkNo().shortValue()); |
| | | staProtocol.setStaNo(wrkMast.getStaNo().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | if (!result) { |
| | |
| | | // led 异常显示 |
| | | if (ledThread != null) { |
| | | String errorMsg = "工作档已存在该条码号===>>" + barcode; |
| | | MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(5, errorMsg)); |
| | | // MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(5, errorMsg)); |
| | | } |
| | | continue; |
| | | } |
| | |
| | | ledCommand.setBarcode(barcode); |
| | | commands.add(ledCommand); |
| | | if (devp.getId() == 1) { |
| | | if (MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(1, commands))){ |
| | | ledThread.setLedMk(false); |
| | | } |
| | | // if (MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(1, commands))){ |
| | | // ledThread.setLedMk(false); |
| | | // } |
| | | } else { |
| | | if (MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(3, commands))){ |
| | | ledThread.setLedMk(false); |
| | |
| | | ledCommand.setMatDtos(matDtos); |
| | | commands.add(ledCommand); |
| | | if (devp.getId() == 1) { |
| | | if (MessageQueue.offer(SlaveType.Led, pickSta.getLed(), new Task(1, commands))) { |
| | | ledThread.setLedMk(false); |
| | | } |
| | | // if (MessageQueue.offer(SlaveType.Led, pickSta.getLed(), new Task(1, commands))) { |
| | | // ledThread.setLedMk(false); |
| | | // } |
| | | } else { |
| | | if (MessageQueue.offer(SlaveType.Led, pickSta.getLed(), new Task(3, commands))){ |
| | | ledThread.setLedMk(false); |
| | |
| | | ledCommand.setMatDtos(matDtos); |
| | | commands.add(ledCommand); |
| | | if (devp.getId() == 1) { |
| | | MessageQueue.offer(SlaveType.Led, emptyInSta.getLed(), new Task(1, commands)); |
| | | // MessageQueue.offer(SlaveType.Led, emptyInSta.getLed(), new Task(1, commands)); |
| | | } else { |
| | | MessageQueue.offer(SlaveType.Led, emptyInSta.getLed(), new Task(3, commands)); |
| | | } |