This commit is contained in:
psh
2024-04-19 16:58:20 +08:00
parent 2a950f6058
commit 5b43f6b1f5
4 changed files with 23 additions and 6 deletions

View File

@@ -117,9 +117,9 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements
json.put("device_code",device_code);
json.put("type",1);
acsToWmsService.notify(json);
if (number == max_emptypalletnum) {
this.requireSucess = false;
}
}
if(mode!=last_mode && mode==8){
this.requireSucess=false;
}
} catch (Exception var17) {
@@ -154,6 +154,8 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements
log.debug("设备运转模式:等待工作");
break;
case 2:
break;
case 8:
if (!this.requireSucess) {
this.shipDeviceUpdate();
}
@@ -214,6 +216,7 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements
if (StrUtil.equals(res_jo.getString("code"), "200")) {
log.info("叠盘位堆叠数量满自动申请搬运任务成功!");
this.requireSucess = true;
this.writing(8);
}
}
}