| | |
| | | command.setComplete(true); |
| | | } |
| | | |
| | | if (task.getTaskSts() < 100) {//入库判断托盘是否进入提升机 |
| | | if (!liftProtocol.getHasTray()) { |
| | | return false; |
| | | } |
| | | } else if (task.getTaskSts() >= 100 && task.getTaskSts() < 200) {//出库判断托盘是否离开提升机 |
| | | if (liftProtocol.getHasTray()) { |
| | | return false; |
| | | } |
| | | //判断提升机托盘是否存在 |
| | | if (liftProtocol.getHasTray()) { |
| | | return false; |
| | | } |
| | | |
| | | } else if (command.getMode() == LiftCommandModeType.RESET.id) { |
| | | //复位 |
| | | command.setComplete(true); |
| | | } else if (command.getMode() == LiftCommandModeType.LOCK.id) { |
| | | //复位 |
| | | //锁定 |
| | | command.setComplete(true); |
| | | } else if (command.getMode() == LiftCommandModeType.UNLOCK.id) { |
| | | //复位 |
| | | //解锁 |
| | | command.setComplete(true); |
| | | } |
| | | |