Commit 83e4ac3e LN

入料条码错乱修改。

1 个父辈 34609464
...@@ -887,12 +887,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -887,12 +887,12 @@ namespace OnlineStore.DeviceLibrary
{ {
InLog("料盘移栽" + MoveInfo.SLog + ":上料机构下降, 托盘号【" + currTrayNum + "】,获取库位号,更新托盘信息 ,"); InLog("料盘移栽" + MoveInfo.SLog + ":上料机构下降, 托盘号【" + currTrayNum + "】,获取库位号,更新托盘信息 ,");
} }
Task.Factory.StartNew(delegate getPosTask = Task.Factory.StartNew(delegate
{ { //更新托盘条码信息
//更新托盘条码信息
string code = CodeManager.ProcessCode(LastCodeList); string code = CodeManager.ProcessCode(LastCodeList);
lastcode = code; lastcode = code;
// TrayManager.UpdateTrayInfo(currTrayNum, true, 1, code, "", LastHeight, LastWidth); try
{
if (code.Equals("")) if (code.Equals(""))
{ {
InOutParam param = new InOutParam(currTrayNum, code, "", LastHeight, LastWidth, true); InOutParam param = new InOutParam(currTrayNum, code, "", LastHeight, LastWidth, true);
...@@ -908,7 +908,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -908,7 +908,13 @@ namespace OnlineStore.DeviceLibrary
// TrayManager.UpdateInStoreNG(currTrayNum, true, result); // TrayManager.UpdateInStoreNG(currTrayNum, true, result);
LogUtil.error(Name + "托盘【" + currTrayNum + "】" + result); LogUtil.error(Name + "托盘【" + currTrayNum + "】" + result);
} }
}
catch (Exception ex)
{
LogUtil.error(Name + "托盘【" + currTrayNum + "】【"+code+"】获取库位号报错:" + ex.ToString());
}
}); });
} }
else if (MoveInfo.IsTimeOut(180)) else if (MoveInfo.IsTimeOut(180))
{ {
...@@ -960,9 +966,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -960,9 +966,16 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_28_UpDownAxisToP1)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_28_UpDownAxisToP1))
{ {
if (getPosTask == null || getPosTask.IsCompleted)
{
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构上升已到位 "); InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构上升已到位 ");
CheckHasTray(); CheckHasTray();
} }
else
{
LogUtil.error(Name + "["+MoveInfo.MoveType+"][" + MoveInfo.SLog + "] 获取库位号还未完成,状态:" + getPosTask.Status);
}
}
#endregion #endregion
#region 未检测到托盘或放料完成 #region 未检测到托盘或放料完成
...@@ -1044,7 +1057,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1044,7 +1057,7 @@ namespace OnlineStore.DeviceLibrary
#endregion #endregion
} }
private Task getPosTask = null;
private void FI_27_CylinderUp() private void FI_27_CylinderUp()
{ {
MoveInfo.NextMoveStep(LineMoveStep.FI_27_CylinderUp); MoveInfo.NextMoveStep(LineMoveStep.FI_27_CylinderUp);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!