From d1fb8af6375e7083a83396c249c3c46477902cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=97=AD=E6=98=8E=5C73939?= <739390650@QQ.COM> Date: Mon, 26 Jan 2026 13:41:07 +0800 Subject: [PATCH] =?UTF-8?q?opt:=E6=8E=A5=E5=8F=A3=E9=A2=91=E7=8E=87?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ConveyorWithScannerWeightDeviceDriver.java | 1 + .../PullTailManipulatorDeviceDriver.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/one_conveyor/scanner_weight_conveyor/ConveyorWithScannerWeightDeviceDriver.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/one_conveyor/scanner_weight_conveyor/ConveyorWithScannerWeightDeviceDriver.java index 866111267..3e8b39a1c 100644 --- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/one_conveyor/scanner_weight_conveyor/ConveyorWithScannerWeightDeviceDriver.java +++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/one_conveyor/scanner_weight_conveyor/ConveyorWithScannerWeightDeviceDriver.java @@ -704,6 +704,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv log.trace("触发时间因为小于{}毫秒,而被无视", this.require_apply_in_time_out); return; } + this.require_apply_in_time = date; try { JSONObject param = new JSONObject(); param.put("device_code", device_code); diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_tail_manipulator/PullTailManipulatorDeviceDriver.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_tail_manipulator/PullTailManipulatorDeviceDriver.java index b949d087f..265c595cd 100644 --- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_tail_manipulator/PullTailManipulatorDeviceDriver.java +++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/pull_tail_manipulator/PullTailManipulatorDeviceDriver.java @@ -132,8 +132,11 @@ public class PullTailManipulatorDeviceDriver extends AbstractOpcDeviceDriver imp private int instruction_update_time_out = 1000; Integer heartbeat_tag; private Date instruction_require_time = new Date(); + private Date apply_feedback_require_time = new Date(); private int instruction_require_time_out = 3000; + private int apply_feedback_require_time_out = 3000; + //行架机械手申请任务成功标识 boolean requireSucess = false; @@ -230,6 +233,12 @@ public class PullTailManipulatorDeviceDriver extends AbstractOpcDeviceDriver imp //反馈重量 if (mode == 3 && action == 5 && move == 0 && weight > 0 && StrUtil.isNotEmpty(sub_volume_no) && !requireSucess) { + Date date = new Date(); + if (date.getTime() - this.apply_feedback_require_time.getTime() < (long) this.apply_feedback_require_time_out) { + log.trace("触发时间因为小于{}毫秒,而被无视", this.apply_feedback_require_time_out); + return ; + } + this.apply_feedback_require_time = date; logServer.deviceExecuteLog(this.device_code, "", "", "反馈重量"); ApplyfeedbackSubVolumeWeightRequest applyfeedbackSubVolumeWeightRequest = new ApplyfeedbackSubVolumeWeightRequest(); ApplyfeedbackSubVolumeWeightResponse applyfeedbackSubVolumeWeightResponse;