更新
This commit is contained in:
@@ -721,10 +721,10 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
||||
case 7:
|
||||
//码垛强制完成 半托缓存
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
if (resultSucess) {
|
||||
// applyEmpty();
|
||||
// if (resultSucess) {
|
||||
mandatoryPalletizing("0");
|
||||
}
|
||||
// }
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
@@ -747,10 +747,10 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
||||
case 11:
|
||||
//强制去包装
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
if (resultSucess) {
|
||||
// applyEmpty();
|
||||
// if (resultSucess) {
|
||||
mandatoryPalletizing("1");
|
||||
}
|
||||
// }
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,8 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
private int instruction_require_time_out;
|
||||
boolean requireSucess = false;
|
||||
|
||||
boolean resultSucess = false;
|
||||
|
||||
private int instruction_finished_time_out;
|
||||
|
||||
int branchProtocol = 0;
|
||||
@@ -727,19 +729,23 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
//码垛完成
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
palletizing();
|
||||
if (resultSucess) {
|
||||
palletizing();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
//码垛强制完成 半托缓存
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
mandatoryPalletizing("0");
|
||||
// applyEmpty();
|
||||
// if (resultSucess) {
|
||||
mandatoryPalletizing("0");
|
||||
// }
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
//申请空盘
|
||||
if (!requireSucess) {
|
||||
if (!resultSucess) {
|
||||
applyEmpty();
|
||||
}
|
||||
break;
|
||||
@@ -764,8 +770,10 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
case 11:
|
||||
//强制去包装
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
mandatoryPalletizing("1");
|
||||
// applyEmpty();
|
||||
// if (resultSucess) {
|
||||
mandatoryPalletizing("1");
|
||||
// }
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
@@ -1485,7 +1493,7 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||
this.writing(this.mode);
|
||||
this.setRequireSucess(true);
|
||||
this.setResultSucess(true);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user