Commit 17d3f500 张东亮

设备空闲时清除异常消息

1 个父辈 6ffd9024
...@@ -195,7 +195,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -195,7 +195,14 @@ namespace OnlineStore.DeviceLibrary
} }
protected virtual void OnTimerProcess() protected virtual void OnTimerProcess()
{ {
//空闲时,自动清除
if (runStatus == RunStatus.Runing)
{
if(!string.IsNullOrEmpty(WarnMsg))
{
WarnMsg = "";
}
}
} }
protected DateTime preIoTimerOutTime = DateTime.Now; protected DateTime preIoTimerOutTime = DateTime.Now;
protected virtual void IOTimeOutProcess() protected virtual void IOTimeOutProcess()
...@@ -516,7 +523,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -516,7 +523,7 @@ namespace OnlineStore.DeviceLibrary
msg += "alarm: " + alarmType + " " + LastAlarmTime.ToLongTimeString() + "\n"; msg += "alarm: " + alarmType + " " + LastAlarmTime.ToLongTimeString() + "\n";
msg += "MoveT:" + MoveInfo.MoveType + "\n"; msg += "MoveT:" + MoveInfo.MoveType + "\n";
msg += "MoveS :" + MoveInfo.MoveStep + "\n"; msg += "MoveS :" + MoveInfo.MoveStep + "\n";
msg += "StepMsg :" + StepMsg + "\n"; msg += "StepMsg :" + StepMsg + "\n";
return msg; return msg;
} }
......
...@@ -863,7 +863,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -863,7 +863,6 @@ namespace OnlineStore.DeviceLibrary
if (runStatus.Equals(RunStatus.Runing)) if (runStatus.Equals(RunStatus.Runing))
{ {
ExecuteOutListProcess(); ExecuteOutListProcess();
} }
if (isInitPosDebugInfo) if (isInitPosDebugInfo)
{ {
......
...@@ -56,7 +56,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -56,7 +56,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (param == null || param.PosInfo == null) if (param == null || param.PosInfo == null)
return false; return false;
SetWarnMsg(Name + $" 启动入库出错,入口料盘无入库信息[barcode={param.PosInfo.barcode},PosSide={param.PosInfo.GetPosSide()}], 任务取消"); LogUtil.error(Name + $" 启动入库出错,入口料盘无入库信息[barcode={param.PosInfo.barcode},PosSide={param.PosInfo.GetPosSide()}], 任务取消");
SServerManager.cancelPutInTask(Name, param.PosInfo.barcode); SServerManager.cancelPutInTask(Name, param.PosInfo.barcode);
return false; return false;
} }
...@@ -104,7 +104,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -104,7 +104,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (posinfo == null) if (posinfo == null)
return false; return false;
SetWarnMsg(Name + $" 启动入库出错,入口料盘无入库信息[barcode={posinfo.barcode},PosSide={posinfo.GetPosSide()}], 任务取消"); LogUtil.error(Name + $" 启动入库出错,入口料盘无入库信息[barcode={posinfo.barcode},PosSide={posinfo.GetPosSide()}], 任务取消");
SServerManager.cancelPutInTask(Name, posinfo.barcode); SServerManager.cancelPutInTask(Name, posinfo.barcode);
return false; return false;
} }
...@@ -215,7 +215,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -215,7 +215,7 @@ namespace OnlineStore.DeviceLibrary
if (!InDoorCheck(MoveInfo.MoveParam)) if (!InDoorCheck(MoveInfo.MoveParam))
{ {
BuffAreaInstoreDoor(false); BuffAreaInstoreDoor(false);
SetWarnMsg($"入库 {MoveInfo.SLog}:入口料盘无入库信息[barcode={MoveInfo.MoveParam.PosInfo.barcode},PosSide={MoveInfo.MoveParam.PosInfo.GetPosSide()}], 任务取消"); //SetWarnMsg($"入库 {MoveInfo.SLog}:入口料盘无入库信息[barcode={MoveInfo.MoveParam.PosInfo.barcode},PosSide={MoveInfo.MoveParam.PosInfo.GetPosSide()}], 任务取消");
if (MoveInfo.MoveParam.PosInfoBack == null) if (MoveInfo.MoveParam.PosInfoBack == null)
{ {
LogInfo($"入库 {MoveInfo.SLog}:入口料盘因无入库信息且AB面料叉无料,结束入库"); LogInfo($"入库 {MoveInfo.SLog}:入口料盘因无入库信息且AB面料叉无料,结束入库");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!