| | |
| | | // 获取穿梭车信息 |
| | | SteThread steThread = (SteThread) SlaveConnection.get(SlaveType.Ste, vo.getSteNo()); |
| | | SteProtocol steProtocol = steThread.getSteProtocol(); |
| | | if (steProtocol != null) { |
| | | if (steProtocol == null) { |
| | | throw new CoolException(vo.getSteNo() + "号穿梭车不在线,无法保存"); |
| | | } |
| | | if (!Cools.isEmpty(vo.getRow(), vo.getBay(), vo.getLev())) { |
| | |
| | | steCommand.setSteNo(ste.getId()); // 穿梭车编号 |
| | | if (param.getSteTaskMode() == 16) { |
| | | steCommand.setComplete(true); |
| | | } else if (param.getSteTaskMode() == 17) { |
| | | steCommand.setControlMode((short) 1); |
| | | } else if (param.getSteTaskMode() == 18) { |
| | | steCommand.setControlMode((short) 0); |
| | | } else { |
| | | if (steTaskModeType == null) { |
| | | throw new CoolException("任务类型错误"); |