更新
This commit is contained in:
@@ -912,6 +912,11 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
||||
HttpResponse result = acsToWmsService.queryCribbingInfo(json);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(result)) {
|
||||
if (ObjectUtil.isEmpty(result.body())) {
|
||||
this.writing(20);
|
||||
this.setRequireSucess(true);
|
||||
return true;
|
||||
}
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||
JSONObject content = jsonObject.getJSONObject("content");
|
||||
|
||||
@@ -352,6 +352,7 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
}
|
||||
//前工位申请任务
|
||||
if (mode == 2 && move_2 == 0 && action_2 == 0 && move_1 == 0 && task2 == 0 && !requireSucess1) {
|
||||
System.out.println("move_2:" + move_2 + ",action_2:" + action_2 + ",move_1:" + move_1 + ",task2:" + task2 + ",requireSucess1:" + requireSucess1);
|
||||
instruction_require();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1138,6 +1138,11 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
HttpResponse result = acsToWmsService.queryCribbingInfo(json);
|
||||
|
||||
if (ObjectUtil.isNotEmpty(result)) {
|
||||
if (ObjectUtil.isEmpty(result.body())) {
|
||||
this.writing(20);
|
||||
this.setRequireSucess(true);
|
||||
return true;
|
||||
}
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"), "200")) {
|
||||
JSONObject content = jsonObject.getJSONObject("content");
|
||||
@@ -1391,9 +1396,9 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
List<String> demoList = Arrays.asList(demoArray);
|
||||
json.put("device_code",demoList.get(put_station-1).replace("\"",""));
|
||||
//如果是1号对接位请求,那么数量就传1号垛数量
|
||||
if (put_station == 1) {
|
||||
if (put_station == 3) {
|
||||
json.put("qty",one_qty);
|
||||
} else if (put_station == 2) {
|
||||
} else if (put_station == 4) {
|
||||
json.put("qty",two_qty);
|
||||
}
|
||||
json.put("vehicle_code",barcode);
|
||||
|
||||
Reference in New Issue
Block a user