增加XY1Y2是否到位检测

Eight
lhiven 7 months ago
parent 31a58675ab
commit 26d09e12e6

@ -3,6 +3,7 @@ using Rs.Framework;
using Rs.Motion; using Rs.Motion;
using Rs.MotionPlat.Commom; using Rs.MotionPlat.Commom;
using Rs.MotionPlat.Entitys; using Rs.MotionPlat.Entitys;
using Rs.MotionPlat.Flow.Common;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -168,10 +169,17 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
break; break;
case EDischargeModuleGoSafePosFlowStep.: case EDischargeModuleGoSafePosFlowStep.:
if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis) if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis)
{
if (AxisArrived.LoadXY1Y2IsArrived(targetPos.X, targetPos.Y1, targetPos.Y2))
{ {
AxisPosPrint.PrintXY1Y2CurrentPos("X已运动到治具安全位,", GetClassName()); AxisPosPrint.PrintXY1Y2CurrentPos("X已运动到治具安全位,", GetClassName());
arrivedSafePos = true; arrivedSafePos = true;
} }
else
{
moveXStep = EDischargeModuleGoSafePosFlowStep.;
}
}
break; break;
default: default:
break; break;
@ -214,10 +222,17 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
break; break;
case EDischargeModuleGoSafePosFlowStep.: case EDischargeModuleGoSafePosFlowStep.:
if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis) if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis)
{
if(AxisArrived.LoadXY1Y2IsArrived(targetPos.X,targetPos.Y1,targetPos.Y2))
{ {
AxisPosPrint.PrintXY1Y2CurrentPos("Y1已运动治具侧,", GetClassName()); AxisPosPrint.PrintXY1Y2CurrentPos("Y1已运动治具侧,", GetClassName());
arrivedSafePos = true; arrivedSafePos = true;
} }
else
{
moveY1Step = EDischargeModuleGoSafePosFlowStep.;
}
}
break; break;
default: default:
break; break;

Loading…
Cancel
Save