| | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Service("noLiftOutService") |
| | |
| | | |
| | | /** |
| | | * 从没有提升机侧出库,有两种情况,一种1,5库到同层,一种非1,5库到1,5,则需要提升机 |
| | | * |
| | | * @param wrkMast |
| | | */ |
| | | public void shuttleMoveExecute(WrkMast wrkMast, Integer staNo, Integer lev) { |
| | |
| | | return false; |
| | | } |
| | | |
| | | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | Map<Integer, StaProtocol> station = devpThread.getStation(); |
| | | StaProtocol staProtocol2 = null; |
| | | if (Utils.getLev(shuttleThread.getStatus().getCurrentLocNo()) == 1) { |
| | | staProtocol2 = station.get(1015); |
| | | if (staProtocol2.isLoading()) { |
| | | News.taskInfo(wrkMast.getWrkNo(), "{}任务,{}号输送线有物12432", wrkMast.getWrkNo(), 1015); |
| | | return false; |
| | | } |
| | | } else { |
| | | staProtocol2 = station.get(1026); |
| | | if (staProtocol2.isLoading()) { |
| | | News.taskInfo(wrkMast.getWrkNo(), "{}任务,{}号输送线有物12341", wrkMast.getWrkNo(), 1026); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | ShuttleAssignCommand assignCommand = new ShuttleAssignCommand(); |
| | | assignCommand.setShuttleNo(shuttleProtocol.getShuttleNo()); // 四向穿梭车编号 |
| | | assignCommand.setTaskMode(ShuttleTaskModeType.MOVE_LOC_NO.id);//小车移库任务 |
| | |
| | | News.taskInfo(wrkMast.getWrkNo(), "{}任务,{}小车,小车忙碌中,禁止派发", wrkMast.getWrkNo(), shuttleProtocol.getShuttleNo()); |
| | | return false; |
| | | } |
| | | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | Map<Integer, StaProtocol> station = devpThread.getStation(); |
| | | StaProtocol staProtocol2 = null; |
| | | if (Utils.getLev(shuttleThread.getStatus().getCurrentLocNo()) == 1) { |
| | | staProtocol2 = station.get(1015); |
| | | if (staProtocol2.isLoading()) { |
| | | News.taskInfo(wrkMast.getWrkNo(), "{}任务,{}号输送线有物12432", wrkMast.getWrkNo(), 1015); |
| | | return false; |
| | | } |
| | | } else { |
| | | staProtocol2 = station.get(1026); |
| | | if (staProtocol2.isLoading()) { |
| | | News.taskInfo(wrkMast.getWrkNo(), "{}任务,{}号输送线有物12341", wrkMast.getWrkNo(), 1026); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | if (!shuttleProtocol.getCurrentLocNo().equals(wrkMast.getSourceLocNo())) { |
| | | return false; |