This commit is contained in:
USER-20220102CG\noblelift
2023-03-01 19:48:20 +08:00
parent f5e496f642
commit 6f80e1bc83
5 changed files with 13 additions and 15 deletions

View File

@@ -171,17 +171,6 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
inst1.setInstruction_status("1");
inst1.setExecute_device_code(this.device_code);
instructionService.update(inst1);
// TaskDto tas未反馈电气信号原因kDto = taskserver.findByCodeFromCache(inst1.getTask_code());
// if (ObjectUtil.isNotEmpty(taskDto)) {
// if (StrUtil.isNotEmpty(taskDto.getExt_task_id())) {
// JSONArray array = new JSONArray();
// JSONObject map = new JSONObject();
// map.put("task_id", taskDto.getExt_task_id());
// map.put("task_status", "1");
// array.add(map);
// acsToWmsService.feedbackTaskStatusToWms(array);
// }
// }
}
}
}
@@ -592,6 +581,10 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
this.writing("to_target", next_addr);
this.writing("to_task", instruction.getInstruction_code());
this.writing("to_command", "1");
if (startdevice.getDeviceDriver() instanceof HongXiangConveyorDeviceDriver) {
hongXiangConveyorDeviceDriver = (HongXiangConveyorDeviceDriver) startdevice.getDeviceDriver();
hongXiangConveyorDeviceDriver.writing("to_open_door","1");
}
if (nextdevice.getDeviceDriver() instanceof HongXiangConveyorDeviceDriver) {
hongXiangConveyorDeviceDriver = (HongXiangConveyorDeviceDriver) nextdevice.getDeviceDriver();
hongXiangConveyorDeviceDriver.writing("to_open_door","1");

View File

@@ -553,6 +553,7 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe
+ "已存在对应任务");
requireSucess = true;
applySucess = true;
return true;
}
}
}

View File

@@ -130,7 +130,7 @@ public class DeviceOpcProtocolRunable implements Runnable {
System.out.println("线程:"+tag + " 读取耗时:"+ duration);
if (duration > 1000L) {
if (!time_out) {
log.warn("{} 读取超时 : {}", tag, duration);
log.warn(" {} 读取超时 : {}", tag, duration);
}
time_out = true;
@@ -138,7 +138,11 @@ public class DeviceOpcProtocolRunable implements Runnable {
time_out = false;
}
// if(ObjectUtil.isEmpty(itemStatus)) continue label97;
// if(ObjectUtil.isEmpty(itemStatus)) {
// System.out.println( tag + " :itemStatus is null");
// break;
// }
Set<Item> items = itemStatus.keySet();
Iterator var18 = items.iterator();