Commit 06fba567 LN

库位号超时显示超时消息

1 个父辈 3845ee28
......@@ -930,12 +930,12 @@ namespace OnlineStore.DeviceLibrary
LastHeight = LastPosParam.PlateH;
}
InLog(" " + MoveInfo.SLog + " 开始拦截空托盘 " + LastPosParam.ToStr() + "");
getPosIdMsg = "";
ClearTimeoutAlarm("获取库位号超时");
}
else if (MoveInfo.IsTimeOut(120))
{
WarnMsg = MoveInfo.Name + "[" + MoveInfo.MoveStep + "] 获取库位号超时 [" + Math.Round(MoveInfo.StepSpan().TotalSeconds, 1) + "]秒";
WarnMsg = MoveInfo.Name + "[" + MoveInfo.MoveStep + "] 获取库位号超时 "+ getPosIdMsg + " [" + Math.Round(MoveInfo.StepSpan().TotalSeconds, 1) + "]秒";
LogUtil.error(WarnMsg, DeviceID * 1000 + 30);
Alarm(LineAlarmType.IoSingleTimeOut);
}
......@@ -1111,6 +1111,7 @@ namespace OnlineStore.DeviceLibrary
}
private Task getPosTask = null;
private InOutParam LastPosParam = null;
private string getPosIdMsg = "";
private void FI_24_GetPosID()
{
MoveInfo.NextMoveStep(LineMoveStep.FI_24_GetPosID);
......@@ -1146,6 +1147,7 @@ namespace OnlineStore.DeviceLibrary
ms = 3000;
}
Thread.Sleep(ms);
getPosIdMsg = result.Msg;
LogUtil.error(Name + "【" + code + "】第[" + count + "]次 FI_23_GetPosID 结果【" + result.Result + "】,等待" + ms + "后重新获取");
}
else if (!result.Msg.Equals(""))
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!