|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|