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.setInstruction_status("1");
inst1.setExecute_device_code(this.device_code); inst1.setExecute_device_code(this.device_code);
instructionService.update(inst1); 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_target", next_addr);
this.writing("to_task", instruction.getInstruction_code()); this.writing("to_task", instruction.getInstruction_code());
this.writing("to_command", "1"); 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) { if (nextdevice.getDeviceDriver() instanceof HongXiangConveyorDeviceDriver) {
hongXiangConveyorDeviceDriver = (HongXiangConveyorDeviceDriver) nextdevice.getDeviceDriver(); hongXiangConveyorDeviceDriver = (HongXiangConveyorDeviceDriver) nextdevice.getDeviceDriver();
hongXiangConveyorDeviceDriver.writing("to_open_door","1"); hongXiangConveyorDeviceDriver.writing("to_open_door","1");

View File

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

View File

@@ -138,7 +138,11 @@ public class DeviceOpcProtocolRunable implements Runnable {
time_out = false; 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(); Set<Item> items = itemStatus.keySet();
Iterator var18 = items.iterator(); Iterator var18 = items.iterator();

View File

@@ -174,7 +174,7 @@ https://juejin.cn/post/6844903775631572999
<!--生产环境:打印控制台和输出到文件--> <!--生产环境:打印控制台和输出到文件-->
<springProfile name="prod"> <springProfile name="prod">
<root level="debug"> <root level="info">
<appender-ref ref="ERROR"/> <appender-ref ref="ERROR"/>
<appender-ref ref="lokiAppender" /> <appender-ref ref="lokiAppender" />
<appender-ref ref="asyncFileAppender"/> <appender-ref ref="asyncFileAppender"/>

View File

@@ -153,7 +153,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible1 = false"> </el-button> <el-button @click="dialogFormVisible1 = false"> </el-button>
<el-button type=this"primary" @click="saveBarcode"> </el-button> <el-button type="primary" @click="saveBarcode"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>