fix:扫码位终点信号判断、信息提示
This commit is contained in:
@@ -765,6 +765,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (!ObjectUtil.isEmpty(taskdto)) {
|
if (!ObjectUtil.isEmpty(taskdto)) {
|
||||||
if (creatInstruction(taskdto)) return false;
|
if (creatInstruction(taskdto)) return false;
|
||||||
} else {
|
} else {
|
||||||
|
message = "未找到补码信息相匹配的任务";
|
||||||
//如果不存在则直接找对应指令直接下发信号
|
//如果不存在则直接找对应指令直接下发信号
|
||||||
if (pushPLC()) return false;
|
if (pushPLC()) return false;
|
||||||
|
|
||||||
@@ -776,6 +777,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
if (!ObjectUtil.isEmpty(taskdto)) {
|
if (!ObjectUtil.isEmpty(taskdto)) {
|
||||||
if (creatInstruction(taskdto)) return false;
|
if (creatInstruction(taskdto)) return false;
|
||||||
}else {
|
}else {
|
||||||
|
message = "未找到载具码信息相匹配的任务";
|
||||||
//如果不存在则直接找对应指令直接下发信号
|
//如果不存在则直接找对应指令直接下发信号
|
||||||
if (pushPLC()) return false;
|
if (pushPLC()) return false;
|
||||||
|
|
||||||
@@ -909,7 +911,18 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Device nextdevice = deviceAppservice.findDeviceByCode(instdto.getNext_device_code());
|
Device nextdevice = deviceAppservice.findDeviceByCode(instdto.getNext_device_code());
|
||||||
|
BeltConveyorDeviceDriver beltConveyorDeviceDriver;
|
||||||
|
if (nextdevice.getDeviceDriver() instanceof BeltConveyorDeviceDriver) {
|
||||||
|
beltConveyorDeviceDriver = (BeltConveyorDeviceDriver) nextdevice.getDeviceDriver();
|
||||||
|
String ignorePickupCheck = (String) beltConveyorDeviceDriver.getExtraValue().get("ignore_pickup_check");
|
||||||
|
if ("false".equals(ignorePickupCheck)) {
|
||||||
|
if (beltConveyorDeviceDriver.getMode() != 2 || beltConveyorDeviceDriver.getMove() == 1) {
|
||||||
|
log.error("输送机,{}未联机或执行中", instdto.getNext_device_code());
|
||||||
|
this.setNotCreateInstMessage("universal_notCreateInstMessage4");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
//创建指令后修改任务状态
|
//创建指令后修改任务状态
|
||||||
taskdto.setTask_status(TaskStatusEnum.BUSY.getIndex());
|
taskdto.setTask_status(TaskStatusEnum.BUSY.getIndex());
|
||||||
taskserver.update(taskdto);
|
taskserver.update(taskdto);
|
||||||
|
|||||||
Reference in New Issue
Block a user