From 751a1d523c6813e87e1031ff91d1ec10ffb7f358 Mon Sep 17 00:00:00 2001 From: rszn <645583145@qq.com> Date: Sun, 30 Jun 2024 13:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E4=BB=93=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Mgr/PlcTaskMgr.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Service/Mgr/PlcTaskMgr.cs b/Service/Mgr/PlcTaskMgr.cs index 629a012..ab035f4 100644 --- a/Service/Mgr/PlcTaskMgr.cs +++ b/Service/Mgr/PlcTaskMgr.cs @@ -13,7 +13,7 @@ public class PlcTaskMgr { private static readonly ILog Log = LogManager.GetLogger(typeof(PlcTaskMgr)); - + public bool QueryPlcTask(int taskNo, int ingStatus, int exceptionStatus) { @@ -24,6 +24,7 @@ public class PlcTaskMgr () => isSuccess, () => { var readPlcTaskStatus = PlcMgr.ReadPlcTaskStatus(); + Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute resp readPlcTaskStatus={readPlcTaskStatus}"); if (ingStatus == readPlcTaskStatus) { } @@ -35,11 +36,12 @@ public class PlcTaskMgr } else if (9000 == readPlcTaskStatus || 1001== readPlcTaskStatus ) { + Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute success readPlcTaskStatus={readPlcTaskStatus}"); isSuccess = true; } }, () => { - + Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute ing"); if (taskNo == 2) { @@ -59,5 +61,5 @@ public class PlcTaskMgr return true; } - -} \ No newline at end of file + +}