Compare commits
4 Commits
agv_twoFlo
...
1919e0f5f7
| Author | SHA1 | Date | |
|---|---|---|---|
| 1919e0f5f7 | |||
| 6bb12efd46 | |||
| 1f91405a40 | |||
| 45422b6939 |
@@ -218,10 +218,10 @@ public class AbstractOpcDeviceDriver extends AbstractDeviceDriver implements Opc
|
|||||||
int var18 = itemValues.length;
|
int var18 = itemValues.length;
|
||||||
|
|
||||||
for (int var19 = 0; var19 < var18; ++var19) {
|
for (int var19 = 0; var19 < var18; ++var19) {
|
||||||
ItemValue itemValue = var17[var19];
|
//ItemValue itemValue = var17[var19];
|
||||||
String code = itemValue.getItem_code();
|
//String code = itemValue.getItem_code();
|
||||||
Object value = itemValue.getItem_value();
|
//Object value = itemValue.getItem_value();
|
||||||
opcValueAccessor.setValue(code, value);
|
//opcValueAccessor.setValue(code, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -274,10 +274,10 @@ public class AbstractOpcDeviceDriver extends AbstractDeviceDriver implements Opc
|
|||||||
int var18 = itemValues.length;
|
int var18 = itemValues.length;
|
||||||
|
|
||||||
for (int var19 = 0; var19 < var18; ++var19) {
|
for (int var19 = 0; var19 < var18; ++var19) {
|
||||||
ItemValue itemValue = var17[var19];
|
//ItemValue itemValue = var17[var19];
|
||||||
String code = itemValue.getItem_code();
|
//String code = itemValue.getItem_code();
|
||||||
Object value = itemValue.getItem_value();
|
//Object value = itemValue.getItem_value();
|
||||||
opcValueAccessor.setValue(code, value);
|
//opcValueAccessor.setValue(code, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ public class UnBoxLableConveyorDeviceDriver extends AbstractOpcDeviceDriver impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
//空箱出库开盖位,申请开盖
|
//空箱出库开盖位,申请开盖
|
||||||
if (mode == 15 && move == 1 && task > 0) {
|
if (mode == 15 && move == 1 && task > 0 && !requireSucess) {
|
||||||
Instruction instruction = instructionService.findByCode(String.valueOf(task));
|
Instruction instruction = instructionService.findByCode(String.valueOf(task));
|
||||||
//不允许开盖,完成出库任务,自动去扫码位
|
//不允许开盖,完成出库任务,自动去扫码位
|
||||||
if (instruction == null || StrUtil.isEmpty(instruction.getVehicle_code())) {
|
if (instruction == null || StrUtil.isEmpty(instruction.getVehicle_code())) {
|
||||||
|
|||||||
@@ -424,14 +424,16 @@ public class BoxPackageManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
throw new BadRequestException("设备:" + nextDevice.getDevice_code() + "未设置电气调度号!");
|
throw new BadRequestException("设备:" + nextDevice.getDevice_code() + "未设置电气调度号!");
|
||||||
}
|
}
|
||||||
|
|
||||||
BoxSubvolumesConveyorDeviceDriver boxSubvolumesConveyorDeviceDriver;
|
//效率提升屏蔽光电判断
|
||||||
if (nextDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
|
|
||||||
boxSubvolumesConveyorDeviceDriver = (BoxSubvolumesConveyorDeviceDriver) nextDevice.getDeviceDriver();
|
// BoxSubvolumesConveyorDeviceDriver boxSubvolumesConveyorDeviceDriver;
|
||||||
if (boxSubvolumesConveyorDeviceDriver.getMove() != 1) {
|
// if (nextDevice.getDeviceDriver() instanceof BoxSubvolumesConveyorDeviceDriver) {
|
||||||
notCreateInstMessage = "universal_notCreateInstMessage2";
|
// boxSubvolumesConveyorDeviceDriver = (BoxSubvolumesConveyorDeviceDriver) nextDevice.getDeviceDriver();
|
||||||
return false;
|
// if (boxSubvolumesConveyorDeviceDriver.getMove() != 1) {
|
||||||
}
|
// notCreateInstMessage = "universal_notCreateInstMessage2";
|
||||||
}
|
// return false;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
ManipulatorCacheDeviceDriver manipulatorCacheDeviceDriver;
|
ManipulatorCacheDeviceDriver manipulatorCacheDeviceDriver;
|
||||||
if (startDevice.getDeviceDriver() instanceof ManipulatorCacheDeviceDriver) {
|
if (startDevice.getDeviceDriver() instanceof ManipulatorCacheDeviceDriver) {
|
||||||
@@ -553,11 +555,11 @@ public class BoxPackageManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
map12.put("value", interactionJsonDTO.getFrpModel());
|
map12.put("value", interactionJsonDTO.getFrpModel());
|
||||||
list.add(map12);
|
list.add(map12);
|
||||||
}
|
}
|
||||||
if (ObjectUtil.isNotEmpty(interactionJsonDTO.getIsHave())) {
|
// if (ObjectUtil.isNotEmpty(interactionJsonDTO.getIsHave())) {
|
||||||
map13.put("code", "to_have_or_not");
|
// map13.put("code", "to_have_or_not");
|
||||||
map13.put("value", interactionJsonDTO.getIsHave());
|
// map13.put("value", interactionJsonDTO.getIsHave());
|
||||||
list.add(map13);
|
// list.add(map13);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
this.writing(list);
|
this.writing(list);
|
||||||
luceneExecuteLogService.deviceExecuteLog(LuceneLogDto.builder()
|
luceneExecuteLogService.deviceExecuteLog(LuceneLogDto.builder()
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ public class OpcUtl {
|
|||||||
Map<Item, Integer> e = null;
|
Map<Item, Integer> e = null;
|
||||||
try {
|
try {
|
||||||
e = group.write(requests);
|
e = group.write(requests);
|
||||||
|
log.info("Group返回下发信号结果:" + String.valueOf(e));
|
||||||
// group.write(requests);
|
// group.write(requests);
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
e1.printStackTrace();
|
|
||||||
throw new BadRequestException("下发信号失败:" + e1.getMessage());
|
throw new BadRequestException("下发信号失败:" + e1.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user