From 902d1c47021818d6d8454694cc8349c0235ece7c Mon Sep 17 00:00:00 2001 From: psh Date: Thu, 11 Jan 2024 14:07:33 +0800 Subject: [PATCH] fix --- .../basedriver/cw_site/CwSiteDeviceDriver.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java index 05e9766..51afc0f 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java @@ -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; }