| | |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>() |
| | | .eq("loc_no", dto.getLocNo())); |
| | | |
| | | short staNo = dto.getStaNo().shortValue(); |
| | | if (inSta.getStaNo() == 1002) { |
| | | staNo = 2002; |
| | | } |
| | | |
| | | barcodeThread.setBarcode(""); |
| | | staProtocol.setWorkNo(dto.getWorkNo().shortValue()); |
| | | staProtocol.setStaNo(dto.getStaNo().shortValue()); |
| | | staProtocol.setStaNo(staNo); |
| | | staProtocol.setPalletSize(locMast.getLocType2()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | |
| | | |
| | | // RGV ===>> 执行对RGV操作 |
| | | public synchronized void rgvExecute(Integer mark) { |
| | | ArrayList<Integer> list = new ArrayList<Integer>(){{add(1090);add(1091);}}; |
| | | ArrayList<Integer> list = new ArrayList<Integer>(){{add(2003);add(2002);}}; |
| | | for (Integer staNo : list) { |
| | | Integer devpId = null; |
| | | Integer rgvStaNo = null; |
| | | if (staNo == 1090) { |
| | | if (staNo == 2003) { |
| | | devpId = 1; |
| | | rgvStaNo = 1091; |
| | | rgvStaNo = 2002; |
| | | }else { |
| | | devpId = 2; |
| | | rgvStaNo = 1090; |
| | | rgvStaNo = 2003; |
| | | } |
| | | |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devpId); |
| | |
| | | |
| | | if (staProtocol.isAutoing() |
| | | && staProtocol.isLoading() |
| | | && staProtocol.isInEnable() |
| | | // && staProtocol.isInEnable() |
| | | && staProtocol.getWorkNo() > 0 |
| | | ) { |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>() |