| | |
| | | ShuttleProtocol status1 = shuttleThread1.getStatus(); |
| | | ShuttleProtocol status2 = shuttleThread2.getStatus(); |
| | | List<String> loc = new ArrayList<>(); |
| | | loc.add(status1.getCurrentLocNo()); |
| | | loc.add(status2.getCurrentLocNo()); |
| | | if (status1 != null) { |
| | | loc.add(status1.getCurrentLocNo()); |
| | | } |
| | | if (status2 != null) { |
| | | loc.add(status2.getCurrentLocNo()); |
| | | } |
| | | DevpSlave devpSlave = slaveProperties.getDevp().get(0); |
| | | // 遍历堆垛机出库站 |
| | | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, devpSlave.getId()); |
| | |
| | | //获取提升机命令 |
| | | List<LiftCommand> liftCommands = liftThread.getPalletOutCommand(wrkMast.getWrkNo(), sourceLev, wrkMast.getStaNo()); |
| | | LiftCommand liftCommand = liftCommands.get(0); |
| | | if ( wrkMast.getStaNo()==1031){ |
| | | if (wrkMast.getStaNo() == 1031) { |
| | | liftCommand.setTaskNo(wrkMast.getWrkNo()); |
| | | }else { |
| | | } else { |
| | | int deviceWrk = commonService.getWorkNo(8);//生成提升机设备工作号 |
| | | liftCommand.setTaskNo(deviceWrk);//更换随机任务号 |
| | | } |