Commit 8608cc51 LN

获取库位号失败时显示失败原因

1 个父辈 222d25d4
......@@ -499,12 +499,12 @@ namespace OnlineStore.DeviceLibrary
{
InLog(" " + MoveInfo.SLog + " 入库料,开始拦截空托盘 ");
}
getPosIdMsg = "";
ClearTimeoutAlarm("获取库位号超时");
}
else if (MoveInfo.IsTimeOut(120))
{
MoveTimeOut(MoveInfo, "获取库位号超时");
MoveTimeOut(MoveInfo, "获取库位号超时 "+getPosIdMsg);
}
}
else if (MoveInfo.IsStep(LineMoveStep.FI_32_WaitTray))//TODO
......@@ -746,6 +746,7 @@ namespace OnlineStore.DeviceLibrary
private Task getPosTask = null;
private InOutParam LastPosParam = null;
private int LastResult = 0;
private string getPosIdMsg = "";
private void FI_31_GetPosID()
{
MoveInfo.NextMoveStep(LineMoveStep.FI_31_GetPosID);
......@@ -783,6 +784,7 @@ namespace OnlineStore.DeviceLibrary
{
ms = 3000;
}
getPosIdMsg = result.Msg;
Thread.Sleep(ms);
LogUtil.error(Name + "【" + code + "】第[" + count + "]次 " + MoveInfo.SLog + " 结果【" + result.Result + "】,等待" + ms + "后重新获取");
}
......
......@@ -471,7 +471,8 @@ namespace OnlineStore.DeviceLibrary
else if ((!string.IsNullOrEmpty(serverResult.msg)) || serverResult.result.Equals(0).Equals(false))
{
result.Result = serverResult.result;
result.Msg = deviceName + " 【" + codeStr + "】结果:" + serverResult.msg;
//result.Msg = deviceName + " 【" + codeStr + "】结果:" + serverResult.msg;
result.Msg = serverResult.msg;
result.Param = new InOutParam(0, codeStr, "", height, width, true);
result.Param.rfid = rfid;
result.Param.InStoreNg = true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!