psh 1 year ago
parent
commit
902d1c4702
  1. 7
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java

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

Loading…
Cancel
Save