移仓日志

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));
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;
}
}
}

Loading…
Cancel
Save