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 + +}