在写入devlog的时候,区分是从治具到料仓还是从料仓到治具

Eight
lhiven 3 months ago
parent ef603dbb84
commit 354453fa2a

@ -119,6 +119,10 @@ namespace Rs.MotionPlat.Flow
/// </summary> /// </summary>
//private int lastFixtureIndex = 0; //private int lastFixtureIndex = 0;
List<int> checkFixtureList = new List<int>(); List<int> checkFixtureList = new List<int>();
/// <summary>
/// 从料仓到治具
/// </summary>
string acrossAnthorSide = "";
public void Init() public void Init()
{ {
mainTask = new Task(Run); mainTask = new Task(Run);
@ -486,6 +490,11 @@ namespace Rs.MotionPlat.Flow
// DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToFixture); // DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToFixture);
//} //}
ActionStart(); ActionStart();
acrossAnthorSide = "";
if(Math.Abs(targetPosition.Y1-GlobalVar.FixtureSideY1)>50)
{
acrossAnthorSide = " (1)";
}
if(GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.FixtureSide)) if(GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.FixtureSide))
{ {
AxisPosPrint.PrintXY1Y2TargetPos("到治具放料缓冲位,", targetPosition, GetClassName()); AxisPosPrint.PrintXY1Y2TargetPos("到治具放料缓冲位,", targetPosition, GetClassName());
@ -495,7 +504,7 @@ namespace Rs.MotionPlat.Flow
case EDischargeFlowStep.: case EDischargeFlowStep.:
if(Ops.IsStop("LoadX","LoadY1","LoadY2")) if(Ops.IsStop("LoadX","LoadY1","LoadY2"))
{ {
ActionEnd("拾取器移动到另一个治具", "Picker move to another test cell (2nd)"); ActionEnd("拾取器移动到另一个治具", $"Picker move to another test cell{acrossAnthorSide}");
AxisPosPrint.PrintXY1Y2CurrentPos("轴loadx,loady1,loady2已停止运动,",GetClassName()); AxisPosPrint.PrintXY1Y2CurrentPos("轴loadx,loady1,loady2已停止运动,",GetClassName());
if(AxisArrived.LoadXY1Y2IsArrived(targetPosition.X, targetPosition.Y1, targetPosition.Y2)) if(AxisArrived.LoadXY1Y2IsArrived(targetPosition.X, targetPosition.Y1, targetPosition.Y2))
{ {

@ -99,6 +99,7 @@ namespace Rs.MotionPlat.Flow.SubFlow
TargetPosition targetPosition = new TargetPosition(); TargetPosition targetPosition = new TargetPosition();
Nozzle curNozzle = NozzleManager.GetNozzle(nozzleIndex); Nozzle curNozzle = NozzleManager.GetNozzle(nozzleIndex);
TraySlot curPlaceSlot = null; TraySlot curPlaceSlot = null;
string acrossAnthorSide = "";
DischargeFlow.Instance.ActionStart(); DischargeFlow.Instance.ActionStart();
while (!finished) while (!finished)
{ {
@ -136,6 +137,10 @@ namespace Rs.MotionPlat.Flow.SubFlow
//{ //{
// DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToStock); // DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToStock);
//} //}
if(Math.Abs(targetPosition.Y1-GlobalVar.StockSideY1)>50)
{
acrossAnthorSide = " (1)";
}
if (GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.StockSide)) if (GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.StockSide))
{ {
AxisPosPrint.PrintXY1Y2TargetPos($"到{trayType}料仓拍照位上方,", targetPosition, GetClassName()); AxisPosPrint.PrintXY1Y2TargetPos($"到{trayType}料仓拍照位上方,", targetPosition, GetClassName());
@ -320,7 +325,7 @@ namespace Rs.MotionPlat.Flow.SubFlow
case EStockPlaceFlowStep.: case EStockPlaceFlowStep.:
try try
{ {
DischargeFlow.Instance.ActionEnd("拾取器将 1 个 DUT 卸载到output托盘OK/NG", "Picker unload 1 DUT to output trav (OK/NG)"); DischargeFlow.Instance.ActionEnd("拾取器将 1 个 DUT 卸载到output托盘OK/NG", $"Picker unload 1 DUT to output trav (OK/NG){acrossAnthorSide}");
if (curNozzle.Product != null) if (curNozzle.Product != null)
{ {
curNozzle.Product.ToSlotIndex = curPlaceSlot.Index; curNozzle.Product.ToSlotIndex = curPlaceSlot.Index;

Loading…
Cancel
Save