|
|
@ -22,6 +22,7 @@ import org.nl.acs.device_driver.ndxy_special_two.NdxySpecialTwoDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.special_ordinary_site.SpecialOrdinarySiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_autodoor.StandardAutodoorDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_inspect_site.StandardInspectSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_inspect_site_smart200.StandardInspectSiteSmartDeviceDriver; |
|
|
|
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; |
|
|
@ -859,10 +860,11 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
Instruction inst = instructionService.findByCodeFromCache(jobno); |
|
|
|
TaskDto task = taskService.findByCode(inst.getTask_code()); |
|
|
|
|
|
|
|
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class); |
|
|
|
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class); |
|
|
|
Device addressdevice = appService.findDeviceByCode(address); |
|
|
|
|
|
|
|
StandardManipulatorStackingSiteDeviceDriver standardManipulatorStackingSiteDeviceDriver; |
|
|
|
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver; |
|
|
|
//取货的进入前等待和离开等待
|
|
|
|
if (action.equals("Load")) { |
|
|
|
if ("EntryRequired".equals(type)) { |
|
|
@ -879,6 +881,14 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
|
is_feedback = true; |
|
|
|
} |
|
|
|
if(addressdevice.getDeviceDriver() instanceof StandardInspectSiteSmartDeviceDriver){ |
|
|
|
standardInspectSiteDeviceDriver=(StandardInspectSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
|
if(standardInspectSiteDeviceDriver.getMove()==1&&standardInspectSiteDeviceDriver.getAction()==1){ |
|
|
|
is_feedback = true; |
|
|
|
}else { |
|
|
|
log.info("设备{} 请求取货,光电信号:{}",addressdevice,standardInspectSiteDeviceDriver.getMove()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("PauseOnStation".equals(type)) { |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
@ -892,6 +902,14 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
|
is_feedback = true; |
|
|
|
} |
|
|
|
if(addressdevice.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver){ |
|
|
|
standardInspectSiteDeviceDriver=(StandardInspectSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
|
if(standardInspectSiteDeviceDriver.getMove()==0){ |
|
|
|
is_feedback = true; |
|
|
|
}else { |
|
|
|
log.info("设备{} 请求离开,光电信号:{}",addressdevice,standardInspectSiteDeviceDriver.getMove()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -909,6 +927,14 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
|
is_feedback = true; |
|
|
|
} |
|
|
|
if(addressdevice.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver){ |
|
|
|
standardInspectSiteDeviceDriver=(StandardInspectSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
|
if(standardInspectSiteDeviceDriver.getMove()==0&&standardInspectSiteDeviceDriver.getAction()==2){ |
|
|
|
is_feedback = true; |
|
|
|
}else { |
|
|
|
log.info("设备{} 请求放货,光电信号:{}",addressdevice,standardInspectSiteDeviceDriver.getMove()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ("PauseOnStation".equals(type)) { |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
@ -922,6 +948,14 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
|
is_feedback = true; |
|
|
|
} |
|
|
|
if(addressdevice.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver){ |
|
|
|
standardInspectSiteDeviceDriver=(StandardInspectSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
|
if(standardInspectSiteDeviceDriver.getMove()==1){ |
|
|
|
is_feedback = true; |
|
|
|
}else { |
|
|
|
log.info("设备{} 请求离开,光电信号:{}",addressdevice,standardInspectSiteDeviceDriver.getMove()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
com.alibaba.fastjson.JSONObject requestjo = new com.alibaba.fastjson.JSONObject(); |
|
|
|