| | |
| | | public void outTaskPreviewDispatchForkLift() { |
| | | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>() |
| | | .in("wrk_sts" |
| | | , WrkStsType.OUTBOUND_SHUTTLE_RUN.sts |
| | | , WrkStsType.OUTBOUND_SHUTTLE_RUN_COMPLETE.sts |
| | | )); |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | if(wrkMast.getShuttleNo() == null){ |
| | |
| | | continue; |
| | | } |
| | | |
| | | //åå¨è°åº¦é |
| | | Object object = redisUtil.get(RedisKeyType.OUT_TASK_PREVIEW_DISPATCH_FORKLIFT.key + forkLiftProtocol.getLiftNo()); |
| | | if (object != null) { |
| | | continue; |
| | | } |
| | | |
| | | //夿æåæºæ¯å¦æå
¶ä»ä»»å¡ |
| | | WrkMast liftWrkMast = wrkMastService.selectLiftWrkMast(wrkMast.getLiftNo()); |
| | | if (liftWrkMast != null) { |
| | |
| | | } |
| | | |
| | | //æåæºä¸å¨åºåºå± |
| | | if (forkLiftProtocol.getLev() != Utils.getLev(wrkMast.getSourceLocNo())) { |
| | | if (forkLiftProtocol.getLev().equals(Utils.getLev(wrkMast.getSourceLocNo()))) { |
| | | continue; |
| | | } |
| | | |
| | |
| | | assignCommand.setTaskMode(ForkLiftTaskModeType.MOVE.id.shortValue()); |
| | | |
| | | forkLiftAction.assignWork(forkLiftProtocol.getLiftNo(), assignCommand); |
| | | |
| | | redisUtil.set(RedisKeyType.OUT_TASK_PREVIEW_DISPATCH_FORKLIFT.key + forkLiftProtocol.getLiftNo(), "lock", 30);//30ç§ä¸åè°åº¦ |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | //åå§å宿¶å°å¾ |
| | | mainService.initRealtimeBasMap(); |
| | | |
| | | //åºåºä»»å¡é¢è°åº¦æåæº |
| | | mainService.outTaskPreviewDispatchForkLift(); |
| | | |
| | | // å
¥åº ===>> ååç©¿æ¢è½¦å
¥åºä½ä¸ä¸å |
| | | mainService.shuttleInExecute(); |
| | | // åºåº ===>> ååç©¿æ¢è½¦åºåºä½ä¸ä¸å |
| | |
| | | |
| | | //èªå¨åæ¢åºå
¥åºæ¨¡å¼ |
| | | mainService.autoSwitchForkLiftIOMode(); |
| | | |
| | | //åºåºä»»å¡é¢è°åº¦æåæº |
| | | mainService.outTaskPreviewDispatchForkLift(); |
| | | |
| | | // é´é |
| | | Thread.sleep(200); |
| | |
| | | IDLE(0, "空é²"), |
| | | PICK_UP(1, "åè´§ä¸"), |
| | | PUT_DOWN(2, "æ¾è´§ä¸"), |
| | | MOVING(3, "ç§»å¨ä¸"), |
| | | WAITING(98, "çå¾
确认"), |
| | | ERROR(99, "æ
é"), |
| | | ; |
| | |
| | | QUEUE_FORK_LIFT("queue_fork_lift_"), |
| | | QUEUE_TASK("queue_task_"), |
| | | FORK_LIFT_PUT_COMPLETE("fork_lift_put_complete_"), |
| | | OUT_TASK_PREVIEW_DISPATCH_FORKLIFT("out_task_preview_dispatch_forklift_"), |
| | | ; |
| | | |
| | | public String key; |
| | |
| | | ArrayList<HashMap<String, Object>> addressList = new ArrayList<>(); |
| | | |
| | | HashMap<String, Object> lift1 = new HashMap<>(); |
| | | lift1.put("status", new DbData("DB101.0", (short) 16));//æåæºæ°æ® |
| | | lift1.put("status", new DbData("DB101.0", (short) 18));//æåæºæ°æ® |
| | | lift1.put("staStatusTray", new DbData("DB102.0", (short) 14));//ç«ç¹æ°æ® |
| | | lift1.put("staStatusCar", new DbData("DB102.50", (short) 14));//ç«ç¹æ°æ® |
| | | lift1.put("write", new DbData("DB103.0", null));//åå
¥æ°æ® |
| | |
| | | lift1.put("switchIOMode", new DbData("DB103.12", null));//åºå
¥åºæ¨¡å¼ |
| | | |
| | | HashMap<String, Object> lift2 = new HashMap<>(); |
| | | lift2.put("status", new DbData("DB104.0", (short) 16));//æåæºæ°æ® |
| | | lift2.put("status", new DbData("DB104.0", (short) 18));//æåæºæ°æ® |
| | | lift2.put("staStatusTray", new DbData("DB105.0", (short) 14));//ç«ç¹æ°æ® |
| | | lift2.put("staStatusCar", new DbData("DB105.50", (short) 14));//ç«ç¹æ°æ® |
| | | lift2.put("write", new DbData("DB106.0", null));//åå
¥æ°æ® |
| | |
| | | short[] array = new short[4]; |
| | | array[0] = command.getTaskNo();//ä»»å¡å· |
| | | array[1] = command.getMode();//任塿¨¡å¼ |
| | | array[2] = command.getPick();//åè´§æ°æ® |
| | | array[3] = command.getPut();//æ¾è´§æ°æ® |
| | | array[2] = command.getPut();//æ¾è´§æ°æ® |
| | | OperateResult result = this.masterThread.write(this.slave.getId(), "write", array); |
| | | if (result.IsSuccess) { |
| | | OperateResult result2 = this.masterThread.write(this.slave.getId(), "writeConfirm", command.getConfirm()); |
| | |
| | | } |
| | | } |
| | | |
| | | //***************夿æ¯å¦æ»¡å
æ ¡å*************** |
| | | Config shuttleMaxPowerVerifyConfig = configService.selectOne(new EntityWrapper<Config>() |
| | | .eq("code", "shuttleMaxPowerVerify") |
| | | .eq("status", 1)); |
| | | if (shuttleMaxPowerVerifyConfig != null) { |
| | | if (shuttleMaxPowerVerifyConfig.getValue().equals("true")) { |
| | | if (this.shuttleProtocol.getBatteryVoltage() < 5630) { |
| | | return false;//çµåä¸å¤ç»§ç»å
çµ |
| | | } |
| | | } |
| | | } |
| | | //***************夿æ¯å¦æ»¡å
æ ¡å*************** |
| | | |
| | | if (this.shuttleProtocol.getHasCharge() == null) { |
| | | return false; |
| | | } |
| | |
| | | INSERT INTO `asr_wrk_lastno` (`wrk_mk`, `wrk_no`, `modi_user`, `modi_time`, `appe_user`, `appe_time`, `s_no`, `e_no`, `memo_m`) VALUES (98, 35001, 9527, '2025-04-24 14:57:34', 9527, '2025-04-24 14:57:39', 35001, 40000, NULL); |
| | | INSERT INTO `asr_wrk_lastno` (`wrk_mk`, `wrk_no`, `modi_user`, `modi_time`, `appe_user`, `appe_time`, `s_no`, `e_no`, `memo_m`) VALUES (98, 8001, 9527, '2025-04-24 14:57:34', 9527, '2025-04-24 14:57:39', 8001, 1000, NULL); |
| | |
| | | <th>æ¾è´§æ°æ®</th> |
| | | <th>åºå
¥åºæ¨¡å¼</th> |
| | | <th>æ
éç </th> |
| | | <th>å±</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | |
| | | setVal(tr.children("td").eq(7), table[i-1].put); |
| | | setVal(tr.children("td").eq(8), table[i-1].iOMode$); |
| | | setVal(tr.children("td").eq(9), table[i-1].errorCode$); |
| | | setVal(tr.children("td").eq(10), table[i-1].lev); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |