| | |
| | | if (crnProtocol == null) { |
| | | continue; |
| | | } |
| | | |
| | | TaskWrk taskWrk1 = taskWrkService.selectOne(new EntityWrapper<TaskWrk>().eq("crn_no",crn.getCrnNo()).eq("io_type",3)); |
| | | if (taskWrk1 != null) { |
| | | continue; |
| | | } |
| | | // 只有当堆垛机空闲 并且 无任务时才继续执行 |
| | | if (crnProtocol.getStatusType() == CrnStatusType.IDLE && crnProtocol.getTaskNo() == 0 && crnProtocol.getModeType() == CrnModeType.AUTO) { |
| | | // 获取移库工作档信息 |
| | | WrkMast wrkMast = wrkMastMapper.selectLocMove(crn.getCrnNo()); |
| | | if (null != wrkMast) { |
| | | continue; |
| | | } |
| | | |
| | | LocMast sourceLoc = locMastService.queryDemoSourceLoc(crn.getCrnNo()); |
| | | |
| | | LocMast loc = locMastService.queryDemoLoc(crn.getCrnNo(),sourceLoc.getLocType1()); |
| | |
| | | if (result2.IsSuccess) { |
| | | for (int i = 0; i < 1; i++) { |
| | | String barcode = siemensS7Net.getByteTransform().TransString(result2.Content, i * 8, 8, "UTF-8"); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, i + 1); |
| | | BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, slave.getId()); |
| | | if (!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) { |
| | | barcodeThread.setBarcode(barcode); |
| | | } |
| | |
| | | crnInStn[5]: #堆垛机入库站点1--2F输送线 取货口 |
| | | staNo: 2056 |
| | | row: 7 |
| | | bay: 12 |
| | | bay: 2 |
| | | lev: 13 |
| | | backSta: 106 |
| | | devpPlcId: ${wcs-slave.devp[3].id} |
| | |
| | | staNo: 1053 |
| | | devp[3]: #输送线--成品2F |
| | | id: 4 |
| | | ip: 192.168.110.70 |
| | | ip: 192.168.110.40 |
| | | rack: 0 |
| | | port: 102 |
| | | slot: 0 |
| | |
| | | # 拣料入库口1 |
| | | pickSta[0]: |
| | | staNo: 2051 |
| | | barcode: ${wcs-slave.barcode[3].id} |
| | | # 拣料入库口2 |
| | | pickSta[1]: |
| | | staNo: 2052 |
| | | barcode: ${wcs-slave.barcode[3].id} |
| | | # 拣料入库口3 |
| | | pickSta[2]: |
| | | staNo: 2057 |
| | | barcode: ${wcs-slave.barcode[3].id} |
| | | # 拣料入库口4 |
| | | pickSta[3]: |
| | | staNo: 2058 |
| | | barcode: ${wcs-slave.barcode[3].id} |
| | | barcode[0]: #条码扫描仪 |
| | | port: 51236 |
| | | ip: 172.17.91.39 |
| | |
| | | barcode[1]: #条码扫描仪 |
| | | port: 51236 |
| | | ip: 172.17.91.39 |
| | | id: 1 |
| | | id: 2 |
| | | barcode[2]: #条码扫描仪 |
| | | port: 51236 |
| | | ip: 172.17.91.39 |
| | | id: 1 |
| | | id: 3 |
| | | barcode[3]: #条码扫描仪 |
| | | port: 51236 |
| | | ip: 172.17.91.39 |
| | | id: 1 |
| | | id: 4 |
| | | # crn[0]: #堆垛机1 |
| | | # rack: 0 |
| | | # offset: 2 #偏移量,当堆垛机站点列号=1时,偏移量=2 |
| | |
| | | |
| | | <select id="queryDemoLoc" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_type1 = #{locType1} and loc_sts = 'O' and (ctn_kind=0 or ctn_kind is null) |
| | | ORDER BY NEWID() |
| | | ORDER BY lev1 asc,bay1 asc |
| | | </select> |
| | | |
| | | <select id="selectByLocNo" resultMap="BaseResultMap"> |
| | |
| | | </select> |
| | | |
| | | <select id="selectLocMove" resultMap="BaseResultMap"> |
| | | select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} order by io_time,wrk_no |
| | | select top 1 * from dbo.asr_wrk_mast where io_type=3 and crn_no=#{crnNo} order by io_time,wrk_no |
| | | </select> |
| | | |
| | | <select id="selectLocMoving" resultMap="BaseResultMap"> |