| | |
| | | command.setComplete(true); |
| | | } |
| | | } else if (command.getMode() == LiftCommandModeType.PALLET_IN.id) { |
| | | // //托盘入 |
| | | // Integer target = liftDispatcher.getLiftLevLogic(liftThread.getDevice().getId().intValue(), command.getTargetLev()); |
| | | // if (liftProtocol.getLev() == target) { |
| | | // command.setComplete(true); |
| | | // } |
| | | // |
| | | // //判断提升机托盘是否存在 |
| | | // if (!liftProtocol.getHasTray()) { |
| | | // return false; |
| | | // } |
| | | |
| | | //判断提升机托盘是否存在 |
| | | if (!liftProtocol.getHasTray()) { |
| | | return false; |
| | | } |
| | | command.setComplete(true); |
| | | } else if (command.getMode() == LiftCommandModeType.PALLET_OUT.id) { |
| | | // //托盘出 |
| | | // Integer target = liftDispatcher.getLiftLevLogic(liftThread.getDevice().getId().intValue(), command.getTargetLev()); |
| | | // if (liftProtocol.getLev() == target) { |
| | | // command.setComplete(true); |
| | | // } |
| | | // |
| | | // //判断提升机托盘是否存在 |
| | | // if (liftProtocol.getHasTray()) { |
| | | // return false; |
| | | // } |
| | | //判断提升机托盘是否存在 |
| | | if (liftProtocol.getHasTray()) { |
| | | return false; |
| | | } |
| | | command.setComplete(true); |
| | | } else if (command.getMode() == LiftCommandModeType.RESET.id) { |
| | | //复位 |
| | | command.setComplete(true); |