更新
This commit is contained in:
@@ -103,6 +103,7 @@ public class HailiangSmartplcTestDeviceDriver extends AbstractOpcDeviceDriver im
|
||||
try {
|
||||
device_code = this.getDeviceCode();
|
||||
heartbeat = this.itemProtocol.getItem_heartbeat();
|
||||
System.out.println();
|
||||
mode = this.itemProtocol.getItem_mode();
|
||||
move = this.itemProtocol.getItem_move();
|
||||
action = this.itemProtocol.getItem_action();
|
||||
@@ -110,6 +111,7 @@ public class HailiangSmartplcTestDeviceDriver extends AbstractOpcDeviceDriver im
|
||||
number = this.itemProtocol.getItem_number();
|
||||
container_type = this.itemProtocol.getItem_container_type();
|
||||
task = this.itemProtocol.getItem_task();
|
||||
System.out.println("设备:" + device_code + "共挤线mode=" + mode);
|
||||
if (mode != last_mode) {
|
||||
if (mode == 4) {
|
||||
logServer.deviceExecuteLog(device_code, "", "", "请求标记变化前:requireSucess = " + requireSucess);
|
||||
@@ -149,6 +151,7 @@ public class HailiangSmartplcTestDeviceDriver extends AbstractOpcDeviceDriver im
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号error:" + last_error + "->" + error);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println("未执行到创建任务代码");
|
||||
logServer.deviceExecuteLog(device_code, "", "", "未执行到创建任务代码---" + e.getMessage());
|
||||
return;
|
||||
}
|
||||
@@ -169,6 +172,7 @@ public class HailiangSmartplcTestDeviceDriver extends AbstractOpcDeviceDriver im
|
||||
message = "有报警";
|
||||
//无报警
|
||||
} else {
|
||||
System.out.println("执行到else了");
|
||||
this.setIsonline(true);
|
||||
this.setIserror(false);
|
||||
JSONObject jo = new JSONObject();
|
||||
@@ -238,6 +242,11 @@ public class HailiangSmartplcTestDeviceDriver extends AbstractOpcDeviceDriver im
|
||||
last_mode = mode;
|
||||
last_move = move;
|
||||
last_error = error;
|
||||
last_action = action;
|
||||
last_number = number;
|
||||
last_container_type = container_type;
|
||||
last_task = task;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user