更新
This commit is contained in:
@@ -31,10 +31,6 @@ public class ItemProtocol {
|
|||||||
this.driver = driver;
|
this.driver = driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getItem_heartbeat() {
|
|
||||||
return this.getOpcIntegerValue(item_heartbeat);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getItem_mode() {
|
public int getItem_mode() {
|
||||||
return this.getOpcIntegerValue(item_mode);
|
return this.getOpcIntegerValue(item_mode);
|
||||||
}
|
}
|
||||||
@@ -75,14 +71,12 @@ public class ItemProtocol {
|
|||||||
|
|
||||||
public static List<ItemDto> getReadableItemDtos() {
|
public static List<ItemDto> getReadableItemDtos() {
|
||||||
ArrayList list = new ArrayList();
|
ArrayList list = new ArrayList();
|
||||||
list.add(new ItemDto(item_heartbeat, "心跳", "D0000000"));
|
|
||||||
list.add(new ItemDto(item_mode, "模式", "D0000004"));
|
list.add(new ItemDto(item_mode, "模式", "D0000004"));
|
||||||
list.add(new ItemDto(item_move, "光电信号", "D0000008"));
|
list.add(new ItemDto(item_move, "光电信号", "D0000008"));
|
||||||
list.add(new ItemDto(item_action, "取放信号", "D0000012"));
|
list.add(new ItemDto(item_action, "取放信号", "D0000012"));
|
||||||
list.add(new ItemDto(item_error, "故障", "D0000016"));
|
list.add(new ItemDto(item_error, "故障", "D0000016"));
|
||||||
list.add(new ItemDto(item_number, "数量", "D0000020"));
|
list.add(new ItemDto(item_number, "数量", "D0000020"));
|
||||||
list.add(new ItemDto(item_task, "任务号", "D0000024"));
|
list.add(new ItemDto(item_task, "任务号", "D0000024"));
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,8 @@ public class PaintConveyorDeviceDriver extends AbstractOpcDeviceDriver implement
|
|||||||
|
|
||||||
if (mode != last_mode) {
|
if (mode != last_mode) {
|
||||||
this.setRequireSucess(false);
|
this.setRequireSucess(false);
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "信号mode:" + last_mode + "->" + mode);
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "请求标记:" + requireSucess);
|
||||||
}
|
}
|
||||||
if (move != last_move) {
|
if (move != last_move) {
|
||||||
if (move == 0) {
|
if (move == 0) {
|
||||||
@@ -132,6 +134,7 @@ public class PaintConveyorDeviceDriver extends AbstractOpcDeviceDriver implement
|
|||||||
message = "有报警";
|
message = "有报警";
|
||||||
//无报警
|
//无报警
|
||||||
} else {
|
} else {
|
||||||
|
System.out.println("进入到else。。。。。");
|
||||||
this.setIsonline(true);
|
this.setIsonline(true);
|
||||||
this.setIserror(false);
|
this.setIserror(false);
|
||||||
JSONObject jo = new JSONObject();
|
JSONObject jo = new JSONObject();
|
||||||
@@ -154,6 +157,7 @@ public class PaintConveyorDeviceDriver extends AbstractOpcDeviceDriver implement
|
|||||||
}
|
}
|
||||||
case 6:
|
case 6:
|
||||||
//下料位满拖申请
|
//下料位满拖申请
|
||||||
|
logServer.deviceExecuteLog(this.device_code, "", "", "下料位满拖申请,此时:move == " + move + ",请求标记为:" + requireSucess);
|
||||||
if (move == 1 && !requireSucess) {
|
if (move == 1 && !requireSucess) {
|
||||||
//向LMS发送请求,发送起点
|
//向LMS发送请求,发送起点
|
||||||
jo.put("type","7");
|
jo.put("type","7");
|
||||||
|
|||||||
Reference in New Issue
Block a user