Update SiemensConveyorDeviceDriver.java

This commit is contained in:
张江玮
2023-02-02 13:51:41 +08:00
parent c6d1522ee9
commit 44d179c360

View File

@@ -113,7 +113,7 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
boolean requireApplyLaStrangulationSuccess = false;
boolean requireEmptyInSuccess = false;
boolean requireEmptyOutSuccess = false;
boolean requiresShipDeviceUpdate = false;
boolean requiresShipDeviceUpdate = true;
private int instruction_finished_time_out;
int branchProtocol = 0;
@@ -163,7 +163,7 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
inst_message = null;
this.clearWrite();
}
if (move == 0 && last_move == 1) {
if (move == 0 && last_move == 1 && mode != 0) {
this.requiresShipDeviceUpdate = false;
}
logServer.deviceItemValue(this.device_code, "move", String.valueOf(move));