移仓日志

zw
rszn 5 months ago
parent 555c4481ff
commit 751a1d523c

@ -13,7 +13,7 @@ public class PlcTaskMgr
{ {
private static readonly ILog Log = LogManager.GetLogger(typeof(PlcTaskMgr)); private static readonly ILog Log = LogManager.GetLogger(typeof(PlcTaskMgr));
public bool QueryPlcTask(int taskNo, int ingStatus, int exceptionStatus) public bool QueryPlcTask(int taskNo, int ingStatus, int exceptionStatus)
{ {
@ -24,6 +24,7 @@ public class PlcTaskMgr
() => isSuccess, () => () => isSuccess, () =>
{ {
var readPlcTaskStatus = PlcMgr.ReadPlcTaskStatus(); var readPlcTaskStatus = PlcMgr.ReadPlcTaskStatus();
Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute resp readPlcTaskStatus={readPlcTaskStatus}");
if (ingStatus == readPlcTaskStatus) if (ingStatus == readPlcTaskStatus)
{ {
} }
@ -35,11 +36,12 @@ public class PlcTaskMgr
} }
else if (9000 == readPlcTaskStatus || 1001== readPlcTaskStatus ) else if (9000 == readPlcTaskStatus || 1001== readPlcTaskStatus )
{ {
Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute success readPlcTaskStatus={readPlcTaskStatus}");
isSuccess = true; isSuccess = true;
} }
}, () => }, () =>
{ {
Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute ing"); Log.Info($"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute ing");
if (taskNo == 2) if (taskNo == 2)
{ {
@ -59,5 +61,5 @@ public class PlcTaskMgr
return true; return true;
} }
} }

Loading…
Cancel
Save