|
|
@ -69,12 +69,9 @@ public class OneNDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
|
|
|
|
public void autoRun() throws IOException { |
|
|
|
System.out.println("NDCAgv链接开始"); |
|
|
|
ParamService ParamService = SpringContextHolder.getBean(ParamServiceImpl.class); |
|
|
|
InstructionService instructionService = SpringContextHolder.getBean(InstructionServiceImpl.class); |
|
|
|
AcsToWmsService acsToWmsService = SpringContextHolder.getBean(AcsToWmsServiceImpl.class); |
|
|
|
NDCAgvService NDCAgvService = SpringContextHolder.getBean(NDCAgvService.class); |
|
|
|
DeviceAppService deviceAppService = SpringContextHolder.getBean(DeviceAppService.class); |
|
|
|
DeviceService deviceService = SpringContextHolder.getBean(DeviceService.class); |
|
|
|
DeviceExecuteLogService logServer = SpringContextHolder.getBean(DeviceExecuteLogService.class); |
|
|
|
ip = paramService.findByCode(AcsConfig.AGVURL).getValue(); |
|
|
|
port = Integer.parseInt(paramService.findByCode(AcsConfig.AGVPORT).getValue()); |
|
|
@ -177,11 +174,9 @@ public class OneNDCSocketConnectionAutoRun extends AbstractAutoRunnable { |
|
|
|
//(需要WCS反馈)
|
|
|
|
else if (phase == 0xFF) { |
|
|
|
|
|
|
|
if (!ObjectUtil.isEmpty(inst)) { |
|
|
|
if (!ObjectUtil.isEmpty(inst)) { |
|
|
|
instructionService.cancelNOSendAgv(inst.getInstruction_id()); |
|
|
|
} |
|
|
|
} |
|
|
|
data = NDCAgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
|
|
|
|
|
} else { |
|
|
|