fix:堆垛机驱动路由判断修复
This commit is contained in:
@@ -535,7 +535,7 @@ public class DoubleStationStackerDeviceDriver extends AbstractOpcDeviceDriver im
|
||||
for (RouteLineDto routeLineDto : routeLines) {
|
||||
if (this.getDeviceCode().equals(routeLineDto.getNext_device_code())) {
|
||||
List<RouteLineDto> routeLineDtoList = routeLineService.selectDeviceCodeList(this.getDeviceCode());
|
||||
if (CollUtil.isEmpty(routeLines) || routeLines.size() < 1) {
|
||||
if (CollUtil.isEmpty(routeLineDtoList) || routeLineDtoList.size() < 1) {
|
||||
message = "没有输送线到堆垛机的路由";
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "没有" + instruction.getStart_device_code() + "->"
|
||||
+ this.device_code + "的路由");
|
||||
|
||||
@@ -522,20 +522,28 @@ public class FinishedProductOutBindLableDeviceDriver extends AbstractOpcDeviceDr
|
||||
String width = jo.get("width").toString();
|
||||
String height = jo.get("height").toString();
|
||||
String isBinding = jo.get("isBinding").toString();
|
||||
String isLabeling = jo.get("isLabeling").toString();
|
||||
String printQty = jo.get("printQty").toString();
|
||||
String labelingTemplate = jo.get("labelingTemplate").toString();
|
||||
String bindingTemplate = jo.get("bindingTemplate").toString();
|
||||
String printDevice = jo.get("printDevice").toString();
|
||||
String bundleTimes = jo.get("bundleTimes").toString();
|
||||
String to_case = jo.get("box_structure").toString();
|
||||
|
||||
|
||||
if (mode == 10 || mode == 16) {
|
||||
List<String> keys = Arrays.asList(ItemProtocol.TO_LENGTH.getKey(), ItemProtocol.TO_WIDTH.getKey(), ItemProtocol.TO_HEIGHT.getKey(),
|
||||
ItemProtocol.TO_IS_BINDING.getKey(), ItemProtocol.TO_COMMAND.getKey(),
|
||||
List<String> keys = Arrays.asList(
|
||||
ItemProtocol.TO_LENGTH.getKey(),
|
||||
ItemProtocol.TO_WIDTH.getKey(),
|
||||
ItemProtocol.TO_HEIGHT.getKey(),
|
||||
ItemProtocol.TO_IS_BINDING.getKey(),
|
||||
ItemProtocol.TO_BINDING_TEMPLATE.getKey(),
|
||||
ItemProtocol.TO_BINDING_TIMES.getKey());
|
||||
List<Object> values = Arrays.asList(length, width, height, isBinding, mode, isLabeling, printQty, printDevice, bindingTemplate, bundleTimes, labelingTemplate, to_case);
|
||||
ItemProtocol.TO_BINDING_TIMES.getKey(),
|
||||
ItemProtocol.TO_COMMAND.getKey()
|
||||
);
|
||||
List<Object> values = Arrays.asList(
|
||||
length,
|
||||
width,
|
||||
height,
|
||||
isBinding,
|
||||
bindingTemplate,
|
||||
bundleTimes,
|
||||
mode);
|
||||
this.writing(keys, values);
|
||||
}
|
||||
this.requireSuccess = true;
|
||||
@@ -628,10 +636,10 @@ public class FinishedProductOutBindLableDeviceDriver extends AbstractOpcDeviceDr
|
||||
return;
|
||||
}
|
||||
List<String> targetDeviceCode = this.getExtraDeviceCodes("targetDeviceCode");
|
||||
if (!targetDeviceCode.contains(inst.getNext_device_code())) {
|
||||
this.unExecutedMessage = LangProcess.msg("310006");
|
||||
return;
|
||||
}
|
||||
// if (!targetDeviceCode.contains(next_device_code)) {
|
||||
// this.unExecutedMessage = LangProcess.msg("310006");
|
||||
// return;
|
||||
// }
|
||||
//判断终点是否是双向点位
|
||||
if (!this.isIssued(nextDevice)) {
|
||||
this.unExecutedMessage = LangProcess.msg("310004");
|
||||
|
||||
Reference in New Issue
Block a user