排料吸嘴增加禁用1号吸嘴功能

master
lhiven 2 years ago
parent 46252f3642
commit 8baca31323

@ -172,11 +172,19 @@ namespace Rs.MotionPlat.Commom
/// </summary>
/// <param name="turnoverToTray"></param>
/// <returns></returns>
public static Nozzle GetIdelNozzle()
public static Nozzle GetIdelNozzle(bool disableNozzle1=false)
{
if (nozzles != null && nozzles.Count > 0)
{
return nozzles.Where(n => n.Status == ENozzleStatus.IDLE).First();
if(disableNozzle1)
{
return nozzles.Where(n => n.Status == ENozzleStatus.IDLE && n.NozzleIndex!=1).First();
}
else
{
return nozzles.Where(n => n.Status == ENozzleStatus.IDLE).First();
}
}
return null;
}

Loading…
Cancel
Save