From 2226caa4a28c068b1351cd665cc5ecef30a35e83 Mon Sep 17 00:00:00 2001 From: psh Date: Fri, 27 Oct 2023 16:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=A1=E8=B6=B3=E4=BF=A1=E5=8F=B7=E6=97=B6?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E4=BA=94=E7=A7=92=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E5=88=9A=E7=9B=98=E7=82=B9=E5=AE=8C=E6=AF=95?= =?UTF-8?q?lms=E5=BA=93=E5=AD=98=E4=BF=A1=E6=81=AF=E8=BF=98=E6=9C=AA?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=AE=8C=E6=AF=95=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hongfeng/hf_station/HfStationDeviceDriver.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 c9ccc74..2221f2e 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 @@ -505,6 +505,12 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De if (status != 2) { return false; } + //满足信号时等待五秒,防止出现刚盘点完毕lms库存信息还未同步完毕的情况 + try { + Thread.sleep(5000L); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } logServer.deviceInfo("acs申请任务", this.getDevice_code(), "开始申请压机叫料任务!"); this.instruction_call_material_time = date; JSONObject json = new JSONObject();