|
|
@ -21,6 +21,7 @@ import org.nl.acs.device_driver.standard_autodoor.StandardAutodoorDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_conveyor_control.StandardCoveyorControlDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_emptypallet_site.StandardEmptyPalletSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_inspect_site.StandardInspectSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_inspect_site2.StandardInspectSite2DeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_manipulator_inspect_site.StandardManipulatorInspectSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_manipulator_stacking_site.StandardManipulatorStackingSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_ordinary_site.StandardOrdinarySiteDeviceDriver; |
|
|
@ -167,6 +168,7 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
device = deviceAppService.findDeviceByCode(device_code); |
|
|
|
} |
|
|
|
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver; |
|
|
|
StandardInspectSite2DeviceDriver standardInspectSite2DeviceDriver; |
|
|
|
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver; |
|
|
|
StandardCoveyorControlDeviceDriver standardCoveyorControlDeviceDriver; |
|
|
|
StandardStorageDeviceDriver standardStorageDeviceDriver; |
|
|
@ -253,6 +255,12 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
|
flag = true; |
|
|
|
} |
|
|
|
//检测站点2
|
|
|
|
if (device.getDeviceDriver() instanceof StandardInspectSite2DeviceDriver) { |
|
|
|
|
|
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
|
flag = true; |
|
|
|
} |
|
|
|
//空盘堆叠站点
|
|
|
|
if (device.getDeviceDriver() instanceof StandardEmptyPalletSiteDeviceDriver) { |
|
|
|
standardEmptyPalletSiteDeviceDriver = (StandardEmptyPalletSiteDeviceDriver) device.getDeviceDriver(); |
|
|
@ -356,6 +364,14 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
standardInspectSiteDeviceDriver.writing(2); |
|
|
|
flag = true; |
|
|
|
} |
|
|
|
|
|
|
|
if (device.getDeviceDriver() instanceof StandardInspectSite2DeviceDriver) { |
|
|
|
standardInspectSite2DeviceDriver = (StandardInspectSite2DeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
|
standardInspectSite2DeviceDriver.writing(2); |
|
|
|
flag = true; |
|
|
|
} |
|
|
|
if (device.getDeviceDriver() instanceof StandardCoveyorControlDeviceDriver) { |
|
|
|
standardCoveyorControlDeviceDriver = (StandardCoveyorControlDeviceDriver) device.getDeviceDriver(); |
|
|
|
if (standardCoveyorControlDeviceDriver.getMove() == 0) { |
|
|
@ -472,6 +488,17 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
flag = true; |
|
|
|
// } else {
|
|
|
|
// log.info("AGV请求放货设备{}有货,无法反馈", device_code);
|
|
|
|
// }
|
|
|
|
} |
|
|
|
if (device.getDeviceDriver() instanceof StandardInspectSite2DeviceDriver) { |
|
|
|
standardInspectSite2DeviceDriver = (StandardInspectSite2DeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
|
|
inst.setExecute_status("3"); |
|
|
|
instructionService.update(inst); |
|
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
|
flag = true; |
|
|
|
// } else {
|
|
|
|
// log.info("AGV请求放货设备{}有货,无法反馈", device_code);
|
|
|
|
// }
|
|
|
|
} |
|
|
|
if (device.getDeviceDriver() instanceof StandardCoveyorControlDeviceDriver) { |
|
|
@ -570,6 +597,19 @@ public class NDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
// log.info("AGV放货完成请求离开设备{}无货,无法反馈", device_code);
|
|
|
|
// }
|
|
|
|
} |
|
|
|
if (device.getDeviceDriver() instanceof StandardInspectSite2DeviceDriver) { |
|
|
|
standardInspectSite2DeviceDriver = (StandardInspectSite2DeviceDriver) device.getDeviceDriver(); |
|
|
|
// if (standardInspectSiteDeviceDriver.getMove() != 0) {
|
|
|
|
inst.setExecute_status("6"); |
|
|
|
instructionService.update(inst); |
|
|
|
standardInspectSite2DeviceDriver.writing(3); |
|
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
|
flag = true; |
|
|
|
// } else {
|
|
|
|
// log.info("AGV放货完成请求离开设备{}无货,无法反馈", device_code);
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
if (device.getDeviceDriver() instanceof StandardCoveyorControlDeviceDriver) { |
|
|
|
standardCoveyorControlDeviceDriver = (StandardCoveyorControlDeviceDriver) device.getDeviceDriver(); |
|
|
|
if (standardCoveyorControlDeviceDriver.getMove() != 0) { |
|
|
|