| | |
| | | // 获取堆垛机信息 |
| | | SteThread steThread = (SteThread) SlaveConnection.get(SlaveType.Ste, ste.getId()); |
| | | SteProtocol steProtocol = steThread.getSteProtocol(); |
| | | if (steProtocol == null) { continue; } |
| | | if (Utils.getGroupRow(locNo, true).equals(Utils.getGroupRow(steProtocol.getRow().intValue(), true)) |
| | | && steProtocol.getBay() == Utils.getBay(locNo) |
| | | && steProtocol.getLev() == Utils.getLev(locNo)) { |
| | | return steProtocol.getSteNo().intValue(); |
| | | BasSte basSte = basSteService.selectById(ste.getId()); |
| | | if (Cools.isEmpty(steProtocol, basSte)) { continue; } |
| | | if (Utils.getGroupRow(locNo, true).equals(Utils.getGroupRow(basSte.getRow(), true)) |
| | | && basSte.getBay() == Utils.getBay(locNo) |
| | | && basSte.getLev() == Utils.getLev(locNo)) { |
| | | return ste.getId(); |
| | | } |
| | | } |
| | | return null; |
| | |
| | | if (steProtocol == null) { return; } |
| | | if (steProtocol.isIdle()) { |
| | | // 堆垛机空闲 |
| | | if (crnProtocol.getStatusType().equals(CrnStatusType.IDLE) || crnProtocol.getTaskNo() == 0) { |
| | | if (crnProtocol.getStatusType().equals(CrnStatusType.IDLE) && crnProtocol.getTaskNo() == 0) { |
| | | LocMast locMast; |
| | | // 入库搬 |
| | | if (wrkMast.getWrkSts() <= 10) { |
| | |
| | | // 穿梭车空闲 |
| | | if (steProtocol.isIdle()) { |
| | | // 堆垛机空闲 |
| | | if (crnProtocol.getStatusType().equals(CrnStatusType.IDLE) || crnProtocol.getTaskNo() == 0) { |
| | | if (crnProtocol.getStatusType().equals(CrnStatusType.IDLE) && crnProtocol.getTaskNo() == 0) { |
| | | |
| | | BasSte basSte = basSteService.selectById(steNo); |
| | | if (basSte == null) { |