diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/hongfeng/hf_station/HfStationDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/hongfeng/hf_station/HfStationDeviceDriver.java index 9de861c..ad1808a 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/hongfeng/hf_station/HfStationDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/hongfeng/hf_station/HfStationDeviceDriver.java @@ -270,12 +270,6 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De applyMoveEmpty(); } - if (!updateBarcodeRequireSucess || !moveUpdateSuccess) { - if (device_code.startsWith("MLZ") || "GT03".equals(device_code)) { - updateBarcode(); - } - } - } catch (Exception var17) { return; @@ -310,6 +304,11 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De log.debug("设备运转模式:等待工作"); break; case 2: + if (!updateBarcodeRequireSucess || !moveUpdateSuccess) { + if (device_code.startsWith("MLZ") || "GT03".equals(device_code)) { + updateBarcode(); + } + } break; case 3: //人工排产确认