From 3b2088b2f00c644405c9e02fd19be9ba354e0da4 Mon Sep 17 00:00:00 2001 From: psh Date: Wed, 31 Jan 2024 17:01:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E6=9E=81=E6=9D=BF=E7=A9=BA=E6=9E=B6?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=8C=BA=E6=94=BE=E8=B4=A7=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=90=8E=E5=86=991=E9=80=9A=E7=9F=A5=E7=94=B5=E6=B0=94?= =?UTF-8?q?=E6=9C=89=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java index 408a4af..cf0dc02 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java @@ -14,6 +14,7 @@ import org.nl.acs.auto.run.OneNDCSocketConnectionAutoRun; import org.nl.acs.device.domain.Device; import org.nl.acs.device.service.DeviceService; import org.nl.acs.device_driver.DeviceDriver; +import org.nl.acs.device_driver.basedriver.cw_site.CwSiteDeviceDriver; import org.nl.acs.device_driver.basedriver.siemens_conveyor.SiemensConveyorDeviceDriver; import org.nl.acs.device_driver.basedriver.standard_inspect_site.StandardInspectSiteDeviceDriver; import org.nl.acs.device_driver.basedriver.standard_ordinary_site.StandardOrdinarySiteDeviceDriver; @@ -300,6 +301,13 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic } device = deviceAppService.findDeviceByCode(device_code); + CwSiteDeviceDriver cwSiteDeviceDriver; + if(device.getDeviceDriver() instanceof CwSiteDeviceDriver){ + cwSiteDeviceDriver = (CwSiteDeviceDriver) device.getDeviceDriver(); + if(cwSiteDeviceDriver.getDeviceCode().startsWith("HCQ06")){ + cwSiteDeviceDriver.writing(1); + } + } if (ObjectUtil.isEmpty(device_code)) { log.info(agvaddr + "对应设备号为空!"); return;