增加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;
@ -169,8 +170,15 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
case EDischargeModuleGoSafePosFlowStep.: case EDischargeModuleGoSafePosFlowStep.:
if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis) if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis)
{ {
AxisPosPrint.PrintXY1Y2CurrentPos("X已运动到治具安全位,", GetClassName()); if (AxisArrived.LoadXY1Y2IsArrived(targetPos.X, targetPos.Y1, targetPos.Y2))
arrivedSafePos = true; {
AxisPosPrint.PrintXY1Y2CurrentPos("X已运动到治具安全位,", GetClassName());
arrivedSafePos = true;
}
else
{
moveXStep = EDischargeModuleGoSafePosFlowStep.;
}
} }
break; break;
default: default:
@ -215,8 +223,15 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
case EDischargeModuleGoSafePosFlowStep.: case EDischargeModuleGoSafePosFlowStep.:
if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis) if (Ops.IsStop("LoadX", "LoadY1", "LoadY2") || GlobalVar.VirtualAxis)
{ {
AxisPosPrint.PrintXY1Y2CurrentPos("Y1已运动治具侧,", GetClassName()); if(AxisArrived.LoadXY1Y2IsArrived(targetPos.X,targetPos.Y1,targetPos.Y2))
arrivedSafePos = true; {
AxisPosPrint.PrintXY1Y2CurrentPos("Y1已运动治具侧,", GetClassName());
arrivedSafePos = true;
}
else
{
moveY1Step = EDischargeModuleGoSafePosFlowStep.;
}
} }
break; break;
default: default:

Loading…
Cancel
Save