This commit is contained in:
2023-01-03 13:40:00 +08:00
parent 01348ffbfb
commit 65b64084ca
2 changed files with 52 additions and 6 deletions

View File

@@ -366,14 +366,16 @@ public class HfTwoRGVDeviceDriver extends AbstractOpcDeviceDriver implements Dev
logServer.queryTask("RGV申请后工位任务", this.getDevice_code(), "RGV开始申请后工位任务满足信号->mode == 2 && move2 == 0 && action2 == 0");
instruction_require2();
} else {
logServer.queryTask("RGV申请后工位任务", this.getDevice_code(), "RGV不满足申请后工位任务此时:mode = " + mode + "move2 = " + move2 + "action2 = " + action2 + "requireBackSucess = " + requireBackSucess);
if (!requireBackSucess)
logServer.queryTask("RGV申请后工位任务", this.getDevice_code(), "RGV不满足申请后工位任务此时:mode = " + mode + "move2 = " + move2 + "action2 = " + action2 + "requireBackSucess = " + requireBackSucess);
}
//前工位申请任务
if (mode == 2 && move2 == 0 && action2 == 0 && task2 == 0 && move1 == 0 && !requireHeadSucess) {
logServer.queryTask("RGV申请前工位任务", this.getDevice_code(), "RGV开始申请前工位任务满足信号->mode == 2 && move2 == 0 && action2 == 0 && task2 == 0 && move1 == 0");
instruction_require();
} else {
logServer.queryTask("RGV申请前工位任务", this.getDevice_code(), "RGV不满足申请前工位任务此时:mode = " + mode + "move2 = " + move2 + "action2 = " + action2 + "task2 = " + task2 + "move1 = " + move1 + "requireHeadSucess = " + requireHeadSucess);
if (!requireHeadSucess)
logServer.queryTask("RGV申请前工位任务", this.getDevice_code(), "RGV不满足申请前工位任务此时:mode = " + mode + "move2 = " + move2 + "action2 = " + action2 + "task2 = " + task2 + "move1 = " + move1 + "requireHeadSucess = " + requireHeadSucess);
}
break;
case 3:
@@ -382,7 +384,8 @@ public class HfTwoRGVDeviceDriver extends AbstractOpcDeviceDriver implements Dev
logServer.queryTask("RGV申请前工位任务", this.getDevice_code(), "RGV开始申请前工位任务满足信号->mode == 3 && move2 == 1 && action2 == 1 && move1 == 0");
instruction_require();
} else {
logServer.queryTask("RGV申请前工位任务", this.getDevice_code(), "RGV不满足申请前工位任务此时:mode = " + mode + "move2 = " + move2 + "action2 = " + action2 + "move1 = " + move1 + "requireHeadSucess = " + requireHeadSucess);
if (!requireHeadSucess)
logServer.queryTask("RGV申请前工位任务", this.getDevice_code(), "RGV不满足申请前工位任务此时:mode = " + mode + "move2 = " + move2 + "action2 = " + action2 + "move1 = " + move1 + "requireHeadSucess = " + requireHeadSucess);
}
}
@@ -444,6 +447,8 @@ public class HfTwoRGVDeviceDriver extends AbstractOpcDeviceDriver implements Dev
if (repeatDeviceCodeList.contains(startDeviceCode)) {
if (!repeatPutDeviceCodeList.contains(next_device_code)) {
continue;
} else {
if (ObjectUtil.isNotEmpty(task)) break;
}
}
}
@@ -548,10 +553,12 @@ public class HfTwoRGVDeviceDriver extends AbstractOpcDeviceDriver implements Dev
if (repeatDeviceCodeList.contains(startDeviceCode)) {
if (!repeatPutDeviceCodeList.contains(next_device_code)) {
continue;
} else {
if (ObjectUtil.isNotEmpty(task)) break;
}
}
}
if (ObjectUtil.isNotEmpty(task)) break;
if (ObjectUtil.isNotEmpty(task));
}
}