|
|
@ -283,6 +283,13 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case EDischargeFlowStep.进料盘产品定位:
|
|
|
|
case EDischargeFlowStep.进料盘产品定位:
|
|
|
|
|
|
|
|
if(GlobalVar.RunSpace)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
flowStep = EDischargeFlowStep.料仓取料;
|
|
|
|
|
|
|
|
productLocationResult = OneGrabSixteenManager.Instance.GetResults();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
ProductLocationFlow.Instance.Grab(ETrayType.Input, takeSlotIndex);
|
|
|
|
ProductLocationFlow.Instance.Grab(ETrayType.Input, takeSlotIndex);
|
|
|
|
productLocationResult = OneGrabSixteenManager.Instance.GetResults();
|
|
|
|
productLocationResult = OneGrabSixteenManager.Instance.GetResults();
|
|
|
|
if (productLocationResult != null)
|
|
|
|
if (productLocationResult != null)
|
|
|
@ -341,12 +348,14 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
//对结果进行处理
|
|
|
|
//对结果进行处理
|
|
|
|
flowStep = EDischargeFlowStep.料仓取料;
|
|
|
|
flowStep = EDischargeFlowStep.料仓取料;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case EDischargeFlowStep.料仓取料:
|
|
|
|
case EDischargeFlowStep.料仓取料:
|
|
|
|
ProductLocationResult ret = productLocationResult.Where(r => r.SlotIndex == takeSlotIndex).First();
|
|
|
|
ProductLocationResult ret = productLocationResult.Where(r => r.SlotIndex == takeSlotIndex).FirstOrDefault();
|
|
|
|
if(ret != null || GlobalVar.RunSpace)
|
|
|
|
if(ret != null || GlobalVar.RunSpace)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(ret.Result== EOneGrabSixteenResult.Ok || GlobalVar.RunSpace)
|
|
|
|
if((ret!= null && ret.Result== EOneGrabSixteenResult.Ok) || GlobalVar.RunSpace)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StockTakeFlow.Instance.Take( ETrayType.Input, takeSlotIndex, NozzleManager.GetIdelNozzle().NozzleIndex);
|
|
|
|
StockTakeFlow.Instance.Take( ETrayType.Input, takeSlotIndex, NozzleManager.GetIdelNozzle().NozzleIndex);
|
|
|
|
takeSlotIndex++;
|
|
|
|
takeSlotIndex++;
|
|
|
|