From 56ae491aa1488b10020cdeaf4bb9408be7f2d21c Mon Sep 17 00:00:00 2001
From: gengby <858962040@qq.com>
Date: Mon, 29 May 2023 11:20:28 +0800
Subject: [PATCH 1/4] =?UTF-8?q?rev=20=E6=A0=87=E8=AE=B0=E5=A4=8D=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SiemensConveyorDeviceDriver.java | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
index ea5398420..853600f67 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
@@ -216,6 +216,11 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
requireSucess = false;
requireEmptyInSuccess = false;
}
+ } else if (StrUtil.equals(this.device_code, "1016")) {
+ if (mode == 8 && last_mode == 2) {
+ requireSucess = false;
+ requireEmptyInSuccess = false;
+ }
} else {
requireSucess = false;
requireEmptyInSuccess = false;
@@ -748,8 +753,8 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
map3.put("value", "1");
list.add(map3);
this.writing(list);
- while(!StrUtil.equals(this.getOpcValueAccessor().getValue(this.getOpcServer()+"."+this.getOpcPlc()+"."+this.getDevice_code()+".task").toString()
- ,instdto.getInstruction_code())){
+ while (!StrUtil.equals(this.getOpcValueAccessor().getValue(this.getOpcServer() + "." + this.getOpcPlc() + "." + this.getDevice_code() + ".task").toString()
+ , instdto.getInstruction_code())) {
this.writing(list);
logServer.deviceExecuteLog(device_code, "", "", inst.getInstruction_code() + "再次下发电气信号");
try {
@@ -790,8 +795,8 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
map3.put("value", "1");
list.add(map3);
this.writing(list);
- while(!StrUtil.equals(this.getOpcValueAccessor().getValue(this.getOpcServer()+"."+this.getOpcPlc()+"."+this.getDevice_code()+".task").toString()
- ,inst.getInstruction_code())){
+ while (!StrUtil.equals(this.getOpcValueAccessor().getValue(this.getOpcServer() + "." + this.getOpcPlc() + "." + this.getDevice_code() + ".task").toString()
+ , inst.getInstruction_code())) {
this.writing(list);
logServer.deviceExecuteLog(device_code, "", "", inst.getInstruction_code() + "再次下发电气信号");
try {
From a429621f46f543d3e26f7b86fef69e0974f7f281 Mon Sep 17 00:00:00 2001
From: "USER-20220102CG\\noblelift" <546428999@qq.com>
Date: Thu, 1 Jun 2023 09:48:21 +0800
Subject: [PATCH 2/4] =?UTF-8?q?fix=20agv=E7=8A=B6=E6=80=81=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../agv/ndcone/AgvNdcOneDeviceDriver.java | 6 +
.../agv/ndctwo/AgvNdcTwoDeviceDriver.java | 58 +-
.../basedriver/agv/utils/OneAgvPhase.java | 18 +-
.../basedriver/agv/utils/TwoAgvPhase.java | 66 +-
.../SiemensConveyorDeviceDriver.java | 43 +-
.../src/views/acs/monitor/device/index.vue | 571 ------------------
.../src/views/system/monitor/device/index.vue | 32 +-
7 files changed, 114 insertions(+), 680 deletions(-)
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java
index 8d2af4734..65bb8d07a 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java
@@ -11,6 +11,7 @@ import org.nl.acs.auto.run.OneNDCSocketConnectionAutoRun;
import org.nl.acs.device.service.DeviceService;
import org.nl.acs.device_driver.DeviceDriver;
import org.nl.acs.device_driver.FeedLmsRealFailed;
+import org.nl.acs.device_driver.basedriver.agv.utils.OneAgvPhase;
import org.nl.acs.device_driver.basedriver.siemens_conveyor.SiemensConveyorDeviceDriver;
import org.nl.acs.device_driver.basedriver.siemens_onefloor_agv_conveyor.SiemensOneFloorAGVConveyorDeviceDriver;
import org.nl.acs.device_driver.basedriver.standard_ordinary_site.StandardOrdinarySiteDeviceDriver;
@@ -57,6 +58,8 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
DeviceService deviceService = SpringContextHolder.getBean(DeviceService.class);
DeviceErrorLogService deviceErrorLogService = SpringContextHolder.getBean(DeviceErrorLogServiceImpl.class);
+ OneAgvPhase oneAgvPhase = new OneAgvPhase();
+
int agvaddr = 0;
int agvaddr_copy = 0;
int weight = 0;
@@ -451,6 +454,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
status = ikey;
}
if (!ObjectUtil.isEmpty(data)) {
+ phase = 0;
logServer.deviceExecuteLog(this.device_code, "", "", "agvphase:" + phase + "反馈:" + Bytes2HexString(data));
OneNDCSocketConnectionAutoRun.write(data);
}
@@ -483,6 +487,8 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
jo.put("y", this.getY());
//角度
jo.put("angle", this.getAngle());
+ jo.put("phase", phase);
+ jo.put("phase_name", oneAgvPhase.getPhaseName(phase));
//电量
jo.put("electricity", this.getElectric_qty());
String status_name = this.status == 1 ? "关机" : this.status == 2 ? "工作中" : this.status == 3 ? "交通管制" : this.status == 4 ? "任务等待" : this.status == 5 ? "充电中" : this.status == 6 ? "故障中" : this.status == 7 ? "电量低" : "正常";
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndctwo/AgvNdcTwoDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndctwo/AgvNdcTwoDeviceDriver.java
index ee99e3442..edfa702ee 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndctwo/AgvNdcTwoDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndctwo/AgvNdcTwoDeviceDriver.java
@@ -12,6 +12,8 @@ import org.nl.acs.auto.run.TwoNDCSocketConnectionAutoRun;
import org.nl.acs.device.service.DeviceService;
import org.nl.acs.device_driver.DeviceDriver;
import org.nl.acs.device_driver.FeedLmsRealFailed;
+import org.nl.acs.device_driver.basedriver.agv.utils.OneAgvPhase;
+import org.nl.acs.device_driver.basedriver.agv.utils.TwoAgvPhase;
import org.nl.acs.device_driver.basedriver.photoelectric_inspection_site.PhotoelectricInspectionSiteDeviceDriver;
import org.nl.acs.device_driver.basedriver.standard_autodoor.StandardAutodoorDeviceDriver;
import org.nl.acs.device_driver.basedriver.standard_inspect_site.StandardInspectSiteDeviceDriver;
@@ -59,6 +61,7 @@ public class AgvNdcTwoDeviceDriver extends AbstractDeviceDriver implements Devic
DeviceAppService deviceAppService = SpringContextHolder.getBean(DeviceAppService.class);
DeviceService deviceService = SpringContextHolder.getBean(DeviceService.class);
DeviceErrorLogService deviceErrorLogService = SpringContextHolder.getBean(DeviceErrorLogServiceImpl.class);
+ TwoAgvPhase twoAgvPhase = new TwoAgvPhase();
String error_code = "0";
int agvaddr = 0;
@@ -712,6 +715,7 @@ public class AgvNdcTwoDeviceDriver extends AbstractDeviceDriver implements Devic
}
if (!ObjectUtil.isEmpty(data)) {
+ phase =0;
logServer.deviceExecuteLog(this.device_code, "", "", "agvphase:" + phase + "反馈:" + Bytes2HexString(data));
if (StrUtil.equals(inst.getAgv_system_type(), "2")) {
TwoNDCSocketConnectionAutoRun.write(data);
@@ -748,8 +752,10 @@ public class AgvNdcTwoDeviceDriver extends AbstractDeviceDriver implements Devic
jo.put("y", this.getY());
//角度
jo.put("angle", this.getAngle());
+ jo.put("phase", phase);
+ jo.put("phase_name", twoAgvPhase.getPhaseName(phase));
//电量
- jo.put("electricity", this.getDevice().getDevice_code().equals("2") ? "98" : "88.5");
+ jo.put("electricity", this.getElectric_qty());
String status_name = this.status == 1 ? "关机" : this.status == 2 ? "工作中" : this.status == 3 ? "交通管制" : this.status == 4 ? "任务等待" : this.status == 5 ? "充电中" : this.status == 6 ? "故障中" : this.status == 7 ? "电量低" : "正常";
//agv状态
jo.put("status_name", status_name);
@@ -758,56 +764,6 @@ public class AgvNdcTwoDeviceDriver extends AbstractDeviceDriver implements Devic
//异常
jo.put("fault", this.getError_message());
return jo;
-// JSONObject jo = new JSONObject();
-// String mode = "";
-// String action = "";
-// String phase = "";
-// if (this.getMode() == 0) {
-// mode = "未联机";
-// } else if (this.getMode() == 1) {
-// mode = "联机";
-// } else if (this.getMode() == 2) {
-// mode = "联机";
-// }
-//
-// if (this.getPhase() == 0) {
-// phase = "无任务";
-// } else if (this.getPhase() == 1) {
-// phase = "1 0X01 开始任务";
-// } else if (this.getPhase() == 2) {
-// phase = "2 0X02 分配车号";
-// } else if (this.getPhase() == 3) {
-// phase = "3 0X03 到达取货点1";
-// } else if (this.getPhase() == 5) {
-// phase = "5 0X05 取货点1请求离开";
-// } else if (this.getPhase() == 8) {
-// phase = "8 0X08 到达取货点2";
-// } else if (this.getPhase() == 10) {
-// phase = "10 0X0A 取货点2请求离开";
-// } else if (this.getPhase() == 12) {
-// phase = "12 0X0C 到达放货点";
-// } else if (this.getPhase() == 14) {
-// phase = "14 0X0E 放货完成";
-// } else if (this.getPhase() == 16) {
-// phase = "16 0X10 到达放货点";
-// } else if (this.getPhase() == 18) {
-// phase = "18 0X12 放货完成";
-// } else if (this.getPhase() == 20) {
-// phase = "20 0X14 任务完毕";
-// } else if (this.getPhase() == 100) {
-// phase = "100 0X64 上报称重";
-// }
-// jo.put("phase", phase);
-// jo.put("isOnline", true);
-// jo.put("error", this.getError());
-// jo.put("isError", this.getIserror());
-// jo.put("message", this.getMessage());
-// jo.put("agv_power", this.getAgv_power());
-//
-// jo.put("device_name", this.getDevice().getDevice_name());
-// jo.put("mode", mode);
-// jo.put("action", action);
-// return jo;
}
@Override
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/OneAgvPhase.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/OneAgvPhase.java
index 4a1586d0f..118f719b7 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/OneAgvPhase.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/OneAgvPhase.java
@@ -6,7 +6,9 @@ import org.springframework.stereotype.Service;
public class OneAgvPhase implements IAgv{
@Override
public String getPhaseName(Integer phase) {
- if (phase == 0x01) {
+ if (phase == 0x00) {
+ return "无请求";
+ } else if (phase == 0x01) {
return "开始任务/上报订单号";
} else if (phase == 0x02){
return "分配车id";
@@ -28,6 +30,20 @@ public class OneAgvPhase implements IAgv{
return "到达位置点";
} else if (phase == 0x65){
return "称重就绪";
+ } else if (phase == 0x50){
+ return "请求开门";
+ } else if (phase == 0x51){
+ return "请求关门";
+ } else if (phase == 0x70){
+ return "上报X坐标";
+ } else if (phase == 0x71){
+ return "上报Y坐标";
+ } else if (phase == 0x72){
+ return "上报角度";
+ } else if (phase == 0x73){
+ return "上报电量";
+ } else if (phase == 0x74){
+ return "上报状态";
}
return null;
}
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/TwoAgvPhase.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/TwoAgvPhase.java
index 8d75d337e..c893243bc 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/TwoAgvPhase.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/utils/TwoAgvPhase.java
@@ -6,50 +6,52 @@ import org.springframework.stereotype.Service;
public class TwoAgvPhase implements IAgv {
@Override
public String getPhaseName(Integer phase) {
- if (phase == 0x01) {
+ if (phase == 0x00) {
+ return "无请求";
+ } else if (phase == 0x01) {
return "开始任务/上报订单号";
} else if (phase == 0x02){
return "分配车id";
} else if (phase == 0x03){
- return "到达取货点1";
+ return "到达取货点";
} else if (phase == 0x05){
- return "取货点1取货完毕";
- } else if (phase == 0x07){
- return "到达取货点2";
- } else if (phase == 0x09){
- return "取货点2取货完毕";
+ return "取货完毕";
+ } else if (phase == 0x08){
+ return "到达取货点";
} else if (phase == 0x0A){
- return "自动缓存线--到达送满框1";
- } else if (phase == 0x0B){
- return "到达倒料点1";
+ return "取货完毕";
+ } else if (phase == 0x64){
+ return "上报重量";
} else if (phase == 0x0C){
- return "自动缓存线--送满框完毕1";
- } else if (phase == 0x0D){
- return "倒料点1倒料完毕";
+ return "到达放货点";
} else if (phase == 0x0E){
- return "自动缓存线--到达取空框1";
- } else if (phase == 0x0F){
- return "到达倒料点2";
- } else if (phase == 0x11){
- return "倒料点2倒料完毕";
- } else if (phase == 0x13){
- return "到达送箱点1";
- } else if (phase == 0x15){
- return "送箱点1送箱完毕";
- } else if (phase == 0x17){
- return "到达送箱点2";
- } else if (phase == 0x19){
- return "送箱完毕/送空框完毕2";
+ return "放货完成";
+ } else if (phase == 0x10){
+ return "到达放货点";
+ } else if (phase == 0x12){
+ return "放货完成";
+ } else if (phase == 0x14){
+ return "任务完毕";
} else if (phase == 0x30){
return "请求删除任务";
} else if (phase == 0xFF){
return "任务删除确认";
- } else if (phase == 0x64){
- return "取货完毕/取满框完毕1/点对点取货完毕";
- } else if (phase == 0x65){
- return "称重就绪";
- } else if (phase == 0x1A){
- return "任务完毕";
+ } else if (phase == 0x67){
+ return "上报异常信息";
+ } else if (phase == 0x50){
+ return "请求开门";
+ } else if (phase == 0x51){
+ return "请求关门";
+ } else if (phase == 0x70){
+ return "上报X坐标";
+ } else if (phase == 0x71){
+ return "上报Y坐标";
+ } else if (phase == 0x72){
+ return "上报角度";
+ } else if (phase == 0x73){
+ return "上报电量";
+ } else if (phase == 0x74){
+ return "上报状态";
}
return null;
}
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
index 853600f67..48346a162 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
@@ -566,7 +566,9 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
} else if (StrUtil.equals(requestSucess, "1")) {
this.requireSucess = true;
}
- this.hand_barcode = data.getString("hand_barcode");
+
+ String hand_barcode = data.getString("hand_barcode");
+ this.setHand_barcode(hand_barcode);
}
@Override
@@ -824,26 +826,27 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
} else {
this.require_apply_strangulation_time = date;
String vehicle_code = "";
- if (task > 0) {
- Instruction instruction = instructionService.findByCodeFromCache(String.valueOf(task));
- if (ObjectUtil.isEmpty(instruction)) {
- message = "申请捆扎电气设备任务号:" + task + "未找到对应指令";
- logServer.deviceExecuteLog(device_code, "", "", "申请捆扎电气设备任务号:" + task + "未找到对应指令");
- return;
-// throw new RuntimeException("该电气任务号未找到对应指令!");
- }
- vehicle_code = instruction.getVehicle_code();
+ if (StrUtil.isNotEmpty(hand_barcode)) {
+ vehicle_code = hand_barcode;
} else {
- logServer.deviceExecuteLog(device_code, "", "", "申请捆扎电气设备任务号:" + task + "异常");
- message = "申请捆扎电气设备任务号:" + task + "异常";
- return;
-// throw new RuntimeException("任务号为空!");
- }
- if (StrUtil.isEmpty(vehicle_code)) {
- logServer.deviceExecuteLog(device_code, "", "", "申请捆扎电气设备任务号:" + task + "未找到载具号");
- message = "申请捆扎电气设备任务号:" + task + "未找到载具号";
- return;
-// throw new RuntimeException("载具号为空!");
+ if (task > 0) {
+ Instruction instruction = instructionService.findByCodeFromCache(String.valueOf(task));
+ if (ObjectUtil.isEmpty(instruction)) {
+ message = "申请捆扎电气设备任务号:" + task + "未找到对应指令";
+ logServer.deviceExecuteLog(device_code, "", "", "申请捆扎电气设备任务号:" + task + "未找到对应指令");
+ return;
+ }
+ vehicle_code = instruction.getVehicle_code();
+ } else {
+ logServer.deviceExecuteLog(device_code, "", "", "申请捆扎电气设备任务号:" + task + "异常");
+ message = "申请捆扎电气设备任务号:" + task + "异常";
+ return;
+ }
+ if (StrUtil.isEmpty(vehicle_code)) {
+ logServer.deviceExecuteLog(device_code, "", "", "申请捆扎电气设备任务号:" + task + "未找到载具号");
+ message = "申请捆扎电气设备任务号:" + task + "未找到载具号";
+ return;
+ }
}
ApplyLabelingAndBindingRequest applyLabelingAndBindingRequest =
new ApplyLabelingAndBindingRequest();
diff --git a/acs/nladmin-ui/src/views/acs/monitor/device/index.vue b/acs/nladmin-ui/src/views/acs/monitor/device/index.vue
index a3530ae03..e69de29bb 100644
--- a/acs/nladmin-ui/src/views/acs/monitor/device/index.vue
+++ b/acs/nladmin-ui/src/views/acs/monitor/device/index.vue
@@ -1,571 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 禁止进出
- 允许进入
- 允许离开
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无货
- 空料斗
- 满料斗
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 否
- 是
-
-
-
-
- 否
- 是
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/acs/nladmin-ui/src/views/system/monitor/device/index.vue b/acs/nladmin-ui/src/views/system/monitor/device/index.vue
index 4b0f0ef85..71b477df6 100644
--- a/acs/nladmin-ui/src/views/system/monitor/device/index.vue
+++ b/acs/nladmin-ui/src/views/system/monitor/device/index.vue
@@ -354,11 +354,12 @@ export default {
} else if (clickObj.data.driver_type === 'slit_two_manipulator') {
this.dialogFormVisible4 = true
} else if (clickObj.data.driver_type === 'siemens_conveyor') {
- if (clickObj.data.device_name.includes('1016')) {
- this.dialogFormVisible7 = true
- } else {
- this.dialogFormVisible5 = true
- }
+ // if (clickObj.data.device_name.includes('1016')) {
+ // this.dialogFormVisible7 = true
+ // } else {
+ // this.dialogFormVisible5 = true
+ // }
+ this.dialogFormVisible7 = true
} else if (clickObj.data.driver_type === 'siemens_conveyor_ckk') {
this.dialogFormVisible7 = true
} else if (clickObj.data.driver_type === 'standard_conveyor_control_with_scanner') {
@@ -496,6 +497,9 @@ export default {
} else if (val === 'phase') {
const obj = { name: 'AGV交互阶段', value: data[val] }
this.arr.push(obj)
+ } else if (val === 'phase_name') {
+ const obj = { name: 'AGV交互阶段说明', value: data[val] }
+ this.arr.push(obj)
} else if (val === 'option') {
const obj = { name: 'AGV动作', value: data[val] }
this.arr.push(obj)
@@ -568,6 +572,24 @@ export default {
} else if (val === 'hand_barcode') {
const obj = { name: '手补条码', value: data[val] }
this.arr.push(obj)
+ } else if (val === 'x') {
+ const obj = { name: 'X坐标', value: data[val] }
+ this.arr.push(obj)
+ } else if (val === 'y') {
+ const obj = { name: 'Y坐标', value: data[val] }
+ this.arr.push(obj)
+ } else if (val === 'angle') {
+ const obj = { name: '角度', value: data[val] }
+ this.arr.push(obj)
+ } else if (val === 'electricity') {
+ const obj = { name: '电量', value: data[val] }
+ this.arr.push(obj)
+ } else if (val === 'status_name') {
+ const obj = { name: '状态', value: data[val] }
+ this.arr.push(obj)
+ } else if (val === 'fault') {
+ const obj = { name: '异常', value: data[val] }
+ this.arr.push(obj)
}
}
}
From bbdfe376d685b3012a5375b28dda7a238d60e086 Mon Sep 17 00:00:00 2001
From: pangshenghao
Date: Thu, 1 Jun 2023 15:14:45 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
acs/nladmin-ui/src/views/acs/history/instRecord/index.vue | 3 +++
acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue | 3 +++
acs/nladmin-ui/src/views/acs/history/taskTreeRecord/index.vue | 3 +++
3 files changed, 9 insertions(+)
diff --git a/acs/nladmin-ui/src/views/acs/history/instRecord/index.vue b/acs/nladmin-ui/src/views/acs/history/instRecord/index.vue
index 982e32e8e..89b62682d 100644
--- a/acs/nladmin-ui/src/views/acs/history/instRecord/index.vue
+++ b/acs/nladmin-ui/src/views/acs/history/instRecord/index.vue
@@ -113,6 +113,9 @@
+
+
+
diff --git a/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue b/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue
index 757c8b61e..8fe3b0a31 100644
--- a/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue
+++ b/acs/nladmin-ui/src/views/acs/history/taskRecord/index.vue
@@ -247,6 +247,9 @@
+
+
+
diff --git a/acs/nladmin-ui/src/views/acs/history/taskTreeRecord/index.vue b/acs/nladmin-ui/src/views/acs/history/taskTreeRecord/index.vue
index ddb97af42..8c2e5cb24 100644
--- a/acs/nladmin-ui/src/views/acs/history/taskTreeRecord/index.vue
+++ b/acs/nladmin-ui/src/views/acs/history/taskTreeRecord/index.vue
@@ -104,6 +104,9 @@
+
+
+
From c1e8d6fe11ea3466cf9a190a53f1b7545904bafb Mon Sep 17 00:00:00 2001
From: "USER-20220102CG\\noblelift" <546428999@qq.com>
Date: Thu, 1 Jun 2023 16:34:38 +0800
Subject: [PATCH 4/4] =?UTF-8?q?fix=20=E6=B8=85=E6=A5=9A=E6=8C=87=E4=BB=A4?=
=?UTF-8?q?=E5=8F=B7=E3=80=81=E5=A2=9E=E5=8A=A0=E6=9D=A1=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SiemensConveyorDeviceDriver.java | 4 ++--
.../SiemensConveyorCkkDeviceDriver.java | 18 +++++++-----------
2 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
index 48346a162..789badd6f 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor/SiemensConveyorDeviceDriver.java
@@ -277,14 +277,14 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
inst.setInstruction_status("1");
inst.setExecute_device_code(this.device_code);
instructionService.update(inst);
- logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task);
+ logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task + ",载具号:"+ inst.getVehicle_code());
}
if (StrUtil.equals(inst.getInstruction_status(), "1")) {
if (StrUtil.equals(this.getDeviceCode(), inst.getNext_device_code())) {
vehicle_code = inst.getVehicle_code();
inst.setExecute_device_code(this.device_code);
finish_instruction();
- logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task);
+ logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task + ",载具号:"+ inst.getVehicle_code());
} else {
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor_ckk/SiemensConveyorCkkDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor_ckk/SiemensConveyorCkkDeviceDriver.java
index 241d8e696..8ca258cbf 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor_ckk/SiemensConveyorCkkDeviceDriver.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/siemens_conveyor_ckk/SiemensConveyorCkkDeviceDriver.java
@@ -231,7 +231,7 @@ public class SiemensConveyorCkkDeviceDriver extends AbstractOpcDeviceDriver impl
inst.setInstruction_status("1");
inst.setExecute_device_code(this.device_code);
instructionService.update(inst);
- logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task);
+ logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task + ",载具号:"+ inst.getVehicle_code());
}
if (StrUtil.equals(inst.getInstruction_status(), "1")) {
if (!StrUtil.equals(inst.getExecute_code(), this.device_code)) {
@@ -340,10 +340,10 @@ public class SiemensConveyorCkkDeviceDriver extends AbstractOpcDeviceDriver impl
map.put("code", "to_target");
map.put("value", "0");
list.add(map);
-// Map map2 = new HashMap();
-// map2.put("code", "to_task");
-// map2.put("value", "0");
-// list.add(map2);
+ Map map2 = new HashMap();
+ map2.put("code", "to_task");
+ map2.put("value", "0");
+ list.add(map2);
Map map3 = new HashMap();
map3.put("code", "to_command");
map3.put("value", "0");
@@ -611,7 +611,7 @@ public class SiemensConveyorCkkDeviceDriver extends AbstractOpcDeviceDriver impl
} catch (Exception e) {
e.printStackTrace();
}
- logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task);
+ logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task + ",载具号:"+ inst.getVehicle_code());
}
}
} else {
@@ -792,16 +792,12 @@ public class SiemensConveyorCkkDeviceDriver extends AbstractOpcDeviceDriver impl
list.add(map);
Map map2 = new HashMap();
map2.put("code", "to_task");
- map2.put("value", "0");
+ map2.put("value", inst.getInstruction_code());
list.add(map2);
Map map3 = new HashMap();
map3.put("code", "to_command");
map3.put("value", "1");
list.add(map3);
- Map map4 = new HashMap();
- map2.put("code", "to_task");
- map2.put("value", inst.getInstruction_code());
- list.add(map4);
this.writing(list);
if (task != Integer.parseInt(inst.getInstruction_code())) {
this.writing(list);