Browse Source

正极板空架缓存区放货完成后写1通知电气有货

master
psh 10 months ago
parent
commit
3b2088b2f0
  1. 8
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java

8
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;

Loading…
Cancel
Save