|
|
|
@ -350,10 +350,12 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case EDischargeFlowStep.进料盘产品定位:
|
|
|
|
|
ActionStart();
|
|
|
|
|
ProductLocationFlow.Instance.Grab(ETrayType.Input, takeSlotIndex);
|
|
|
|
|
productLocationResult = OneGrabSixteenManager.Instance.GetResults();
|
|
|
|
|
if (productLocationResult != null || GlobalVar.RunSpace)
|
|
|
|
|
{
|
|
|
|
|
ActionEnd("PnP 扫描 16 个 DUT 2DBC", "PrP scan 16 DUT 2DBC");
|
|
|
|
|
//对结果进行处理
|
|
|
|
|
flowStep = EDischargeFlowStep.料仓取料;
|
|
|
|
|
}
|
|
|
|
@ -468,6 +470,7 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
//{
|
|
|
|
|
// DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToFixture);
|
|
|
|
|
//}
|
|
|
|
|
ActionStart();
|
|
|
|
|
if(GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.FixtureSide))
|
|
|
|
|
{
|
|
|
|
|
AxisPosPrint.PrintXY1Y2TargetPos("到治具放料缓冲位,", targetPosition, GetClassName());
|
|
|
|
@ -477,6 +480,7 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
case EDischargeFlowStep.等待到治具取料等待位:
|
|
|
|
|
if(Ops.IsStop("LoadX","LoadY1","LoadY2"))
|
|
|
|
|
{
|
|
|
|
|
ActionEnd("拾取器移动到另一个治具", "Picker move to another test cell (2nd)");
|
|
|
|
|
AxisPosPrint.PrintXY1Y2CurrentPos("轴loadx,loady1,loady2已停止运动,",GetClassName());
|
|
|
|
|
if(AxisArrived.LoadXY1Y2IsArrived(targetPosition.X, targetPosition.Y1, targetPosition.Y2))
|
|
|
|
|
{
|
|
|
|
@ -996,6 +1000,29 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Stopwatch timeStatistics = new Stopwatch();
|
|
|
|
|
|
|
|
|
|
public void ActionStart()
|
|
|
|
|
{
|
|
|
|
|
if (GlobalVar.EnableIndexTimeStatistics)
|
|
|
|
|
timeStatistics.Restart();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ActionEnd(string actionCnName, string actionEnName)
|
|
|
|
|
{
|
|
|
|
|
if (GlobalVar.EnableIndexTimeStatistics)
|
|
|
|
|
{
|
|
|
|
|
timeStatistics.Stop();
|
|
|
|
|
string dirpath = $"d:\\data\\{DateTime.Now.ToString("yyyyMMdd")}";
|
|
|
|
|
if(!Directory.Exists(dirpath))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(dirpath);
|
|
|
|
|
}
|
|
|
|
|
string filename = Path.Combine(dirpath, "breakdowntesttime.csv");
|
|
|
|
|
File.AppendAllText(filename, $"{actionCnName},{actionEnName},{timeStatistics.ElapsedMilliseconds}\r\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|