| | |
| | | vo.setStaNo(staProtocol.getStaNo()); // 目标站 |
| | | // vo.setLocType1(staProtocol.isHigh() != staProtocol.isLow() && staProtocol.isLow() ? "低" : "高"); //高低库位 |
| | | vo.setLocType1(devp.getDevNo()==102 ? "高" : "低"); |
| | | vo.setFull(staProtocol.isFull()?"Y":"N"); // 满 |
| | | vo.setBarcode(staProtocol.getBarcode()); // 条码 |
| | | } |
| | | |
| | | return R.ok().add(list); |
| | |
| | | |
| | | //高低库位 |
| | | private String locType1 = "-"; |
| | | private String full = "-"; |
| | | private String barcode = "-"; |
| | | } |
| | |
| | | // continue; |
| | | } |
| | | // 判断堆垛机出库站状态 |
| | | // if (staProtocol.isAutoing() && !staProtocol.isLoading() && staDetl.getCanouting() != null && staDetl.getCanouting().equals("Y") |
| | | // if (staProtocol.isAutoing() && !staProtocol.isLoading() && staDetl.getCanouting() != null && staDetl.getCanouting().equals("Y") |
| | | // && staProtocol.getWorkNo() == 0 && staProtocol.isOutEnable()) { |
| | | |
| | | if (staProtocol.isAutoing() && staDetl.getCanouting() != null && staDetl.getCanouting().equals("Y") |
| | |
| | | } |
| | | |
| | | public synchronized void autoEmptyIn() { |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | List<Integer> list = new ArrayList<>(); |
| | | list.add(1038); |
| | | for (Integer site:list){ |
| | |
| | | |
| | | public static final String ARM_URL = "http://10.10.10.171:7002"; |
| | | public static final String ARM_URL1 = "http://10.10.10.171:7002"; |
| | | public static final String ARM_URL2 = "http://10.10.10.172:7002"; |
| | | public static final String ARM_URL3 = "http://10.10.10.173:7002"; |
| | | public static final String ARM_URL4 = "http://10.10.10.174:7002"; |
| | | public static final String ARM_URL5 = "http://10.10.10.175:7002"; |
| | | public static final String ARM_URL6 = "http://10.10.10.176:7002"; |
| | | public static final String ARM_URL2 = "http://10.10.10.174:7002"; |
| | | public static final String ARM_URL3 = "http://10.10.10.177:7002"; |
| | | public static final String ARM_URL4 = "http://10.10.10.180:7002"; |
| | | public static final String ARM_URL5 = "http://10.10.10.183:7002"; |
| | | public static final String ARM_URL6 = "http://10.10.10.186:7002"; |
| | | |
| | | public static final String ARM_ADAPTOR = "adaptor/api/wcs/order";//创建订单 |
| | | |
| | |
| | | basDevp.setLocType3((short) 0); // 轻重类型{0:未知,1:轻库位,2:重库位} |
| | | basDevp.setLocType1(high != low && low ? (short) 1 : (short) 2); |
| | | basDevp.setInQty(inQty !=null ?(int)inQty : 0); |
| | | basDevp.setBarcode(this.getBarcode()); |
| | | return basDevp; |
| | | } |
| | | |
| | |
| | | crnProtocol.setyDistance((short) 0); |
| | | crnProtocol.setxDuration((short) 0); |
| | | crnProtocol.setyDuration((short) 0); |
| | | try{ |
| | | // 根据实时信息更新数据库 |
| | | BasCrnpService basCrnpService = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = new BasCrnp(); |
| | | basCrnp.setCrnNo(slave.getId()); |
| | | basCrnp.setCrnSts((int)crnProtocol.getMode()); |
| | | if (!basCrnpService.updateById(crnProtocol.toSqlModel(basCrnp))){ |
| | | News.error("SiemensCrn"+" - 3"+" - 堆垛机plc数据库更新失败 ===>> [id:{}] [ip:{}] [port:{}] [rack:{}] [slot:{}]", slave.getId(), slave.getIp(), slave.getPort(), slave.getRack(), slave.getSlot()); |
| | | } |
| | | } catch (Exception e){ |
| | | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | if (!basCrnpService.updateById(crnProtocol.toSqlModel(basCrnp))){ |
| | | News.error("SiemensCrn"+" - 3"+" - 堆垛机plc数据库更新失败 ===>> [id:{}] [ip:{}] [port:{}] [rack:{}] [slot:{}]", slave.getId(), slave.getIp(), slave.getPort(), slave.getRack(), slave.getSlot()); |
| | | } |
| | | } catch (Exception ignore){} |
| | | } catch (Exception ignore){ |
| | | |
| | | } |
| | | |
| | | } else { |
| | | initCrn(); |
| | |
| | | Arrays.asList(1051,1055,1057,1065,1067,1069,1077,1081,1083,1086,1089,1092,1095,1097,1100)); |
| | | |
| | | private static final Set<Integer> specialSites3 = new HashSet<>(//机械臂站点 |
| | | Arrays.asList(1098,1093,1087,1082,1074,1071,1062,1059)); |
| | | Arrays.asList(1098,1093,1087,1082,1074,1071,1061,1058)); |
| | | |
| | | |
| | | public static final ArrayList<Integer> BarcodeList = new ArrayList<Integer>() {{ |
| | |
| | | // staProtocol.setHigh(status[6]); // 高库位 |
| | | // staProtocol.setLow(status[7]); // 低库位 |
| | | |
| | | if (!staProtocol.isPakMk() && !staProtocol.isLoading()) { |
| | | if (!staProtocol.isPakMk() && (!staProtocol.isLoading() || !staProtocol.isInEnable())) { |
| | | staProtocol.setPakMk(true); |
| | | } |
| | | } |
| | |
| | | staNo: 1093 |
| | | armNo: 1 |
| | | sortingLine: 7 |
| | | staNoEnd: 1103 |
| | | staNoEnd: 1093 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 码垛位 |
| | | armSta[2]: |
| | | staNo: 1044 |
| | | staNo: 1087 |
| | | armNo: 2 |
| | | sortingLine: 1044 |
| | | staNoEnd: 1044 |
| | | sortingLine: 6 |
| | | staNoEnd: 1087 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 码垛位 |
| | | armSta[3]: |
| | | staNo: 1044 |
| | | staNo: 1082 |
| | | armNo: 2 |
| | | sortingLine: 1044 |
| | | staNoEnd: 1044 |
| | | sortingLine: 5 |
| | | staNoEnd: 1082 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 码垛位 |
| | | armSta[4]: |
| | | staNo: 1044 |
| | | staNo: 1074 |
| | | armNo: 3 |
| | | sortingLine: 1044 |
| | | staNoEnd: 1044 |
| | | sortingLine: 4 |
| | | staNoEnd: 1074 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 码垛位 |
| | | armSta[5]: |
| | | staNo: 1044 |
| | | staNo: 1071 |
| | | armNo: 3 |
| | | sortingLine: 1044 |
| | | staNoEnd: 1044 |
| | | sortingLine: 3 |
| | | staNoEnd: 1071 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 码垛位 |
| | | armSta[6]: |
| | | staNo: 1044 |
| | | staNo: 1061 |
| | | armNo: 4 |
| | | sortingLine: 1044 |
| | | staNoEnd: 1044 |
| | | sortingLine: 2 |
| | | staNoEnd: 1061 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 码垛位 |
| | | armSta[7]: |
| | | staNo: 1044 |
| | | staNo: 1058 |
| | | armNo: 4 |
| | | sortingLine: 1044 |
| | | staNoEnd: 1044 |
| | | sortingLine: 1 |
| | | staNoEnd: 1058 |
| | | barcode: ${wcs-slave.barcode[0].id} |
| | | led: ${wcs-slave.led[1].id} |
| | | # 入库口1 |
| | |
| | | <th>空板信号</th> |
| | | <th>目标站</th> |
| | | <th>高低库位</th> |
| | | <th>满信号</th> |
| | | <th>条码</th> |
| | | </tr> |
| | | </thead> |
| | | <!-- 表格内容 --> |
| | |
| | | setVal(tr.children("td").eq(7), table[i-1].emptyMk); |
| | | setVal(tr.children("td").eq(8), table[i-1].staNo); |
| | | setVal(tr.children("td").eq(9), table[i-1].locType1); |
| | | setVal(tr.children("td").eq(10), table[i-1].full); |
| | | setVal(tr.children("td").eq(11), table[i-1].barcode); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " <td></td>\n" + |
| | | " </tr>\n"; |
| | | } |
| | | $('#site-table tbody').after(html); |