Commit 664e6f40 LN

移栽等待托盘bug修改

1 个父辈 b4847330
...@@ -1164,7 +1164,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1164,7 +1164,8 @@ namespace OnlineStore.DeviceLibrary
} }
public string GetLastTrayInfo() public string GetLastTrayInfo()
{ {
return "" + LastWidth + "X" + LastHeight + "=" + lastcode +( (LastPosParam!=null) ?("[" + LastPosParam.PosId + "]"): "")+(LastPosParam.IsNG?("入库NG:"+LastPosParam.NgMsg):"");
return "" + LastWidth + "X" + LastHeight + "=" + lastcode +( (LastPosParam!=null) ?("[" + LastPosParam.PosId + "]"): "")+((bool)(LastPosParam?.IsNG)?("入库NG:"+LastPosParam?.NgMsg):"");
} }
} }
} }
...@@ -383,9 +383,19 @@ namespace OnlineStore.DeviceLibrary ...@@ -383,9 +383,19 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.IsStep(LineMoveStep.MO_57_WaitHasReel)) else if (MoveInfo.IsStep(LineMoveStep.MO_57_WaitHasReel))
{ {
if (IsBigStore())
{
MoveInfo.NextMoveStep(LineMoveStep.MO_58_WaitTray); MoveInfo.NextMoveStep(LineMoveStep.MO_58_WaitTray);
OutLog("出库 " + MoveInfo.SLog + ": 等待托盘到达"); OutLog("出库 " + MoveInfo.SLog + ": 等待托盘到达");
} }
else
{
MoveInfo.NextMoveStep(LineMoveStep.MO_59_CylinderAfter);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
OutLog("出库 " + MoveInfo.SLog + ": 前后气缸后退");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
}
}
else if (MoveInfo.IsStep(LineMoveStep.MO_58_WaitTray)) else if (MoveInfo.IsStep(LineMoveStep.MO_58_WaitTray))
{ {
if (TrayIsOk()) if (TrayIsOk())
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!