正极板对接位堆叠3层逻辑调整

This commit is contained in:
psh
2024-01-15 10:42:43 +08:00
parent b6b9d9bc03
commit c728ceb800
3 changed files with 27 additions and 17 deletions

View File

@@ -105,6 +105,8 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
private int instruction_require_time_out;
boolean requireSucess = false;
boolean resultSucess = false;
private int instruction_finished_time_out;
int branchProtocol = 0;
@@ -155,21 +157,25 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
this.writing(0);
}
}
if (move != last_move && this.getDeviceCode().startsWith("ZJBDJW")) {
//点位数量变更后通知lms
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
request.setState(String.valueOf(move));
request.setDevice_code(this.getDeviceCode());
request.setType("2");
acsToWmsService.notify(request);
if (move !=last_move||tier!=last_tier){
resultSucess=false;
}
if (tier != last_tier&&move!=0 && this.getDeviceCode().startsWith("ZJBDJW")) {
if (tier != last_tier&&move!=0 && this.getDeviceCode().endsWith("0101")||this.getDeviceCode().endsWith("0201") &&!resultSucess) {
//高度数量变更后通知lms
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
request.setState(String.valueOf(tier));
request.setDevice_code(this.getDeviceCode());
request.setType("2");
acsToWmsService.notify(request);
resultSucess=true;
}else if (move ==1 && this.getDeviceCode().startsWith("ZJBDJW") &&!resultSucess) {
//点位数量变更后通知lms
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
request.setState("3");
request.setDevice_code(this.getDeviceCode());
request.setType("2");
acsToWmsService.notify(request);
resultSucess=true;
}
if (error != last_error) {
}