更新rgv执行单任务
This commit is contained in:
@@ -261,6 +261,11 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
if (inst1 != null) {
|
||||
if (StrUtil.equals(inst1.getInstruction_status(), "1")) {
|
||||
finish_instruction(inst1);
|
||||
writing("to_command1","0");
|
||||
writing("to_onset1","0");
|
||||
writing("to_target1","0");
|
||||
writing("to_task1","0");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -281,21 +286,36 @@ public class LnshRGVDeviceDriver extends AbstractOpcDeviceDriver implements Devi
|
||||
if (inst2 != null) {
|
||||
if (StrUtil.equals(inst2.getInstruction_status(), "1")) {
|
||||
finish_instruction(inst2);
|
||||
writing("to_command2","0");
|
||||
writing("to_onset2","0");
|
||||
writing("to_target2","0");
|
||||
writing("to_task2","0");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//执行双任务下的业务逻辑
|
||||
//给后工位下发空盘放货信号
|
||||
if(mode ==3 && action_1 == 2 && action_2 == 2 && move_1 != 0 && move_2 != 0 && task1>0 && task2>0 ){
|
||||
writing("to_command2","2");
|
||||
}
|
||||
|
||||
|
||||
//给前工位下发放货信号
|
||||
if(mode ==3 && action_2 == 4 && move_1 != 0 && move_2 == 0 && task1>0 ){
|
||||
writing("to_command1","2");
|
||||
}
|
||||
|
||||
//执行单任务下的业务逻辑
|
||||
//给后工位下发空盘放货信号
|
||||
//判断条件 前工位无任务、无货 后工位有任务取货完成
|
||||
if(mode ==3 && action_2 == 2 && move_2 != 0 && move_1 == 0 && ObjectUtil.isNotEmpty(inst2) && ObjectUtil.isEmpty(inst1) ){
|
||||
writing("to_command2","2");
|
||||
}
|
||||
//给前工位取满托下发放货信号
|
||||
if(mode ==3 && action_1 == 2 && move_1 != 0 && move_2 == 0 && task1>0 && ObjectUtil.isNotEmpty(inst1) && ObjectUtil.isEmpty(inst2) ){
|
||||
writing("to_command1","2");
|
||||
}
|
||||
|
||||
} catch (Exception var17) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user