add:添加输送线指令号丢失日志
This commit is contained in:
@@ -308,6 +308,9 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号error:" + last_error + "->" + error);
|
||||
}
|
||||
if (task != last_task) {
|
||||
if (task > 0) {
|
||||
logServer.deviceExecuteLog("SSX", "", "", "指令号:" + task + "在" + this.device_code +"设备上出现过");
|
||||
}
|
||||
logServer.deviceItemValue(this.device_code, "task", String.valueOf(task));
|
||||
logServer.deviceExecuteLog(this.device_code, "", "", "信号task:" + last_task + "->" + task);
|
||||
if ("true".equals(this.device.getExtraValue().get("task_update"))) {
|
||||
@@ -1279,9 +1282,9 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
|
||||
if (StrUtil.equals(this.getDeviceCode(), inst.getNext_device_code())) {
|
||||
vehicle_code = inst.getVehicle_code();
|
||||
inst.setExecute_device_code(this.device_code);
|
||||
if (mode == 2 || mode == 8) {
|
||||
finish_instruction();
|
||||
}
|
||||
// if (mode == 2 || mode == 8) {
|
||||
finish_instruction();
|
||||
// }
|
||||
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task + ",载具号:" + inst.getVehicle_code());
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user