psh 11 months ago
parent
commit
dfb31d0307
  1. 4
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/standard_autodoor/ItemProtocol.java
  2. 3
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/standard_autodoor/StandardAutodoorDeviceDriver.java

4
acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/standard_autodoor/ItemProtocol.java

@ -39,6 +39,10 @@ public class ItemProtocol {
return this.getOpcIntegerValue(item_error); return this.getOpcIntegerValue(item_error);
} }
public int getState() {
return this.getOpcIntegerValue(item_state);
}
public int getToCommand() { public int getToCommand() {
return this.getOpcIntegerValue(item_to_command); return this.getOpcIntegerValue(item_to_command);
} }

3
acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/standard_autodoor/StandardAutodoorDeviceDriver.java

@ -107,6 +107,7 @@ public class StandardAutodoorDeviceDriver extends AbstractOpcDeviceDriver implem
mode = this.itemProtocol.getMode(); mode = this.itemProtocol.getMode();
action = this.itemProtocol.getAction(); action = this.itemProtocol.getAction();
error = this.itemProtocol.getError(); error = this.itemProtocol.getError();
state = this.itemProtocol.getState();
if (mode != last_mode) { if (mode != last_mode) {
} }
if (action != last_action) { if (action != last_action) {
@ -117,7 +118,7 @@ public class StandardAutodoorDeviceDriver extends AbstractOpcDeviceDriver implem
//固化室状态变更后通知lms更新固化室状态 //固化室状态变更后通知lms更新固化室状态
FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest(); FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();
request.setState(String.valueOf(state)); request.setState(String.valueOf(state));
request.setDevice_code(this.devicecode); request.setDevice_code(this.getDeviceCode());
request.setType("1"); request.setType("1");
acsToWmsService.notify(request); acsToWmsService.notify(request);
} }

Loading…
Cancel
Save