This commit is contained in:
psh
2024-01-03 09:04:31 +08:00
parent 4059504425
commit dfb31d0307
2 changed files with 6 additions and 1 deletions

View File

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

View File

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