Commit cf108a75 LN

料仓25,26在等待空托盘时,入料2不拦截空托盘

1 个父辈 499d7c53
......@@ -1772,33 +1772,46 @@ namespace OnlineStore.DeviceLibrary
{
try
{
List<int> moveIds = new List<int>() { };
if (DeviceID.Equals(102))
{
MoveEquip moveEquip7 = LineManager.Line.GetMoveByDId(7);
if (moveEquip7.IsWaitEmptyTray())
{
return true;
}
MoveEquip moveEquip8 = LineManager.Line.GetMoveByDId(8);
if (moveEquip8.IsWaitEmptyTray())
{
return true;
}
moveIds = new List<int>() { 7, 8, 19, 20 };
//MoveEquip moveEquip7 = LineManager.Line.GetMoveByDId(7);
//if (moveEquip7.IsWaitEmptyTray())
//{
// return true;
//}
//MoveEquip moveEquip8 = LineManager.Line.GetMoveByDId(8);
//if (moveEquip8.IsWaitEmptyTray())
//{
// return true;
//}
} //如果是入料三入库,且进仓19,进仓20需要空托盘,先放托盘经过
if (DeviceID.Equals(103))
{
MoveEquip moveEquip19 = LineManager.Line.GetMoveByDId(19);
if (moveEquip19.IsWaitEmptyTray())
{
return true;
}
MoveEquip moveEquip20 = LineManager.Line.GetMoveByDId(20);
if (moveEquip20.IsWaitEmptyTray())
moveIds = new List<int>() { 19, 20 };
//MoveEquip moveEquip19 = LineManager.Line.GetMoveByDId(19);
//if (moveEquip19.IsWaitEmptyTray())
//{
// return true;
//}
//MoveEquip moveEquip20 = LineManager.Line.GetMoveByDId(20);
//if (moveEquip20.IsWaitEmptyTray())
//{
// return true;
//}
}
if (moveIds.Count > 0)
{
foreach (int id in moveIds)
{
return true;
MoveEquip moveEquip = LineManager.Line.GetMoveByDId(id);
if (moveEquip != null && moveEquip.IsWaitEmptyTray())
{
return true;
}
}
}
}
}
catch (Exception ex)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!