|
|
|
@ -60,7 +60,7 @@ namespace Rs.MotionPlat.Flow.SubFlow
|
|
|
|
|
/// 料仓取料
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="className"></param>
|
|
|
|
|
public void Take(ETrayType trayType, int slotIndex,int nozzleIndex, ProductLocationResult locaResult=null)
|
|
|
|
|
public void Take(ETrayType trayType, int slotIndex,int nozzleIndex, ProductLocationResult locaResult=null,bool needStop=true)
|
|
|
|
|
{
|
|
|
|
|
if (finished)
|
|
|
|
|
finished = false;
|
|
|
|
@ -71,7 +71,7 @@ namespace Rs.MotionPlat.Flow.SubFlow
|
|
|
|
|
TargetPosition targetPosition = new TargetPosition();
|
|
|
|
|
while (!finished)
|
|
|
|
|
{
|
|
|
|
|
if (MachineManage.Instance.MachineStatus== EMachineStatus.Stop)
|
|
|
|
|
if (MachineManage.Instance.MachineStatus == EMachineStatus.Stop && needStop)
|
|
|
|
|
{
|
|
|
|
|
Thread.Sleep(10);
|
|
|
|
|
continue;
|
|
|
|
@ -188,9 +188,19 @@ namespace Rs.MotionPlat.Flow.SubFlow
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if(OneGrabSixteenManager.Instance.GetResultBySlotIndex(slotIndex)!=null)
|
|
|
|
|
ProductLocationResult vResult = OneGrabSixteenManager.Instance.GetResultBySlotIndex(slotIndex);
|
|
|
|
|
if (vResult!=null)
|
|
|
|
|
{
|
|
|
|
|
curNozzle.Product = new TestProduct() { SN = OneGrabSixteenManager.Instance.GetResultBySlotIndex(slotIndex).SN, TestNum = 0, From = $"R{waitTakeProductSlot.Row + 1}C{waitTakeProductSlot.Column + 1}" };
|
|
|
|
|
string sn = string.Empty;
|
|
|
|
|
if(GlobalVar.EnableVirtualBarCode)
|
|
|
|
|
{
|
|
|
|
|
sn = VirtualBarCode.Code;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
sn = vResult.SN;
|
|
|
|
|
}
|
|
|
|
|
curNozzle.Product = new TestProduct() { SN = sn, TestNum = 0, From = $"R{waitTakeProductSlot.Row + 1}C{waitTakeProductSlot.Column + 1}" };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
curNozzle.Status = ENozzleStatus.ToTest;
|
|
|
|
|