feat: 装箱入库

This commit is contained in:
2026-09-29 10:04:36 +08:00
parent 4b9ce864b2
commit bff4d7a673
2 changed files with 3 additions and 3 deletions

View File

@@ -210,7 +210,7 @@ public class BoxPackingInManipulatorDeviceDriver extends AbstractOpcDeviceDriver
}
// 更新指令状态
if (mode == 3 && task > 0) {
if (task > 0) {
updateInstructionStatus();
}
@@ -303,11 +303,11 @@ public class BoxPackingInManipulatorDeviceDriver extends AbstractOpcDeviceDriver
}
}
//任务完成
if (action == 5 && move == 0) {
if (action == 9 && move == 0) {
if (inst != null) {
try {
instructionService.finish(inst.getInstruction_id());
writing("to_command", 5);
writing("to_command", 9);
} catch (Exception e) {
message = "指令完成触发失败: " + e.getMessage();
}