This commit is contained in:
psh
2024-01-11 14:07:33 +08:00
parent 1bfb6c4b96
commit 902d1c4702

View File

@@ -73,6 +73,7 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
int move = 0;
int task = 0;
int action = 0;
int last_action=0;
int last_mode = 0;
int last_error = 0;
int last_move = 0;
@@ -154,7 +155,7 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
this.writing(0);
}
}
if (move != last_move) {
if (move != last_move && this.getDeviceCode().startsWith("ZJBDJW")) {
//点位数量变更后通知lms
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
request.setState(String.valueOf(move));
@@ -172,6 +173,9 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
}
if (error != last_error) {
}
if (action != last_action) {
this.setRequireSucess(false);
}
} catch (Exception var17) {
@@ -246,6 +250,7 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic
last_move = move;
last_task = task;
last_tier = tier;
last_action = action;
}