|
@ -14,6 +14,7 @@ import org.nl.acs.auto.run.OneNDCSocketConnectionAutoRun; |
|
|
import org.nl.acs.device.domain.Device; |
|
|
import org.nl.acs.device.domain.Device; |
|
|
import org.nl.acs.device.service.DeviceService; |
|
|
import org.nl.acs.device.service.DeviceService; |
|
|
import org.nl.acs.device_driver.DeviceDriver; |
|
|
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.siemens_conveyor.SiemensConveyorDeviceDriver; |
|
|
import org.nl.acs.device_driver.basedriver.standard_inspect_site.StandardInspectSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.basedriver.standard_inspect_site.StandardInspectSiteDeviceDriver; |
|
|
import org.nl.acs.device_driver.basedriver.standard_ordinary_site.StandardOrdinarySiteDeviceDriver; |
|
|
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); |
|
|
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)) { |
|
|
if (ObjectUtil.isEmpty(device_code)) { |
|
|
log.info(agvaddr + "对应设备号为空!"); |
|
|
log.info(agvaddr + "对应设备号为空!"); |
|
|
return; |
|
|
return; |
|
|