opt: 设备监控
This commit is contained in:
@@ -267,7 +267,7 @@ public class BoxPalletizingManipulatorDeviceDriver extends AbstractOpcDeviceDriv
|
|||||||
action = "放货完成";
|
action = "放货完成";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -481,7 +481,7 @@ public class CasingStationConveyorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
move = "有托盘";
|
move = "有托盘";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("task", task);
|
jo.put("task", task);
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ public class HongXiangConveyorDeviceDriver extends AbstractOpcDeviceDriver imple
|
|||||||
jo.put("hasGoods", true);
|
jo.put("hasGoods", true);
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("temperature", temperature);
|
jo.put("temperature", temperature);
|
||||||
|
|||||||
@@ -756,7 +756,7 @@ public class IndoorManipulatorDeviceDriver extends AbstractOpcDeviceDriver imple
|
|||||||
}
|
}
|
||||||
if(deviceStatus && error == 0){
|
if(deviceStatus && error == 0){
|
||||||
iserror = true;
|
iserror = true;
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
if(error == 0 && !deviceStatus){
|
if(error == 0 && !deviceStatus){
|
||||||
iserror = false;
|
iserror = false;
|
||||||
|
|||||||
@@ -854,7 +854,7 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
|||||||
}
|
}
|
||||||
if(deviceStatus && error == 0){
|
if(deviceStatus && error == 0){
|
||||||
iserror = true;
|
iserror = true;
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
if(error == 0 && !deviceStatus){
|
if(error == 0 && !deviceStatus){
|
||||||
iserror = false;
|
iserror = false;
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ public class PaperTubeConveyorDeviceDriver extends AbstractOpcDeviceDriver imple
|
|||||||
message = "";
|
message = "";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -760,7 +760,7 @@ public class PaperTubeConveyor2DeviceDriver extends AbstractOpcDeviceDriver impl
|
|||||||
requireSucess = "1";
|
requireSucess = "1";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
this.message = "信号连接超时!";
|
this.message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
map.put("message", message);
|
map.put("message", message);
|
||||||
map.put("requireSucess", requireSucess);
|
map.put("requireSucess", requireSucess);
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ public class RgvDeviceDriver extends AbstractOpcDeviceDriver implements DeviceDr
|
|||||||
jo.put("hasGoods", true);
|
jo.put("hasGoods", true);
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -631,7 +631,7 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
|
|||||||
requireSucess = "1";
|
requireSucess = "1";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ public class SiemensConveyorCkkDeviceDriver extends AbstractOpcDeviceDriver impl
|
|||||||
requireSucess = "1";
|
requireSucess = "1";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ public class SiemensConveyorLabelingDeviceDriver extends AbstractOpcDeviceDriver
|
|||||||
requireSucess = "1";
|
requireSucess = "1";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ public class SiemensOneFloorAGVConveyorDeviceDriver extends AbstractOpcDeviceDri
|
|||||||
requireSucess = "1";
|
requireSucess = "1";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -1282,7 +1282,7 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
|||||||
map.put("9", "双任务前工位允许放货");
|
map.put("9", "双任务前工位允许放货");
|
||||||
map.put("10", "双任务前工位放货完成");
|
map.put("10", "双任务前工位放货完成");
|
||||||
}else if(type == 4){
|
}else if(type == 4){
|
||||||
return "信号连接超时!";
|
return "信号连接异常!";
|
||||||
} else {
|
} else {
|
||||||
return "未执行任务";
|
return "未执行任务";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ public class StandardCoveyorControlDeviceDriver extends AbstractOpcDeviceDriver
|
|||||||
jo.put("hasGoods", true);
|
jo.put("hasGoods", true);
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
@@ -874,7 +874,7 @@ public class StandardCoveyorControlWithPlcScannerDeviceDriver extends AbstractOp
|
|||||||
applySucess = "1";
|
applySucess = "1";
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("requireSucess", requireSucess);
|
jo.put("requireSucess", requireSucess);
|
||||||
jo.put("applySucess", applySucess);
|
jo.put("applySucess", applySucess);
|
||||||
|
|||||||
@@ -1106,7 +1106,7 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe
|
|||||||
jo.put("hasGoods", true);
|
jo.put("hasGoods", true);
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("driver_type", "standard_conveyor_control_with_scanner");
|
jo.put("driver_type", "standard_conveyor_control_with_scanner");
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
|
|||||||
jo.put("hasGoods", true);
|
jo.put("hasGoods", true);
|
||||||
}
|
}
|
||||||
if(error == 0 && iserror){
|
if(error == 0 && iserror){
|
||||||
message = "信号连接超时!";
|
message = "信号连接异常!";
|
||||||
}
|
}
|
||||||
jo.put("device_name", this.getDevice().getDevice_name());
|
jo.put("device_name", this.getDevice().getDevice_name());
|
||||||
jo.put("mode", mode);
|
jo.put("mode", mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user