From f9e58f9c365d4d9a5d0c1ce8c7c0f17fbeb4bd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E7=8E=AE?= Date: Tue, 26 Sep 2023 08:39:40 +0800 Subject: [PATCH] Update HfStationDeviceDriver.java --- .../hongfeng/hf_station/HfStationDeviceDriver.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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: //人工排产确认