优化当保压轴已经抬起时,就不用再到二段位

master
lhiven 2 years ago
parent e174c80675
commit a0b14cef04

@ -528,7 +528,13 @@ namespace Rs.MotionPlat.Flow
//-----------------------------------------------测试位下料
case ETurnoverFlowStep.:
targetPos = SysConfigParam.GetValue<double>("PressZ")+GlobalVar.PressLowSpeedOffset;
double curPos = Ops.GetCurPosition(AxisAlias.PressZ);
if(curPos>targetPos)
{
Step = ETurnoverFlowStep.;
}
else
{
errCode = AxisControl.PressZ.MovePos(targetPos, GlobalVar.PressLowSpeed);
if (errCode == Motion.ErrorCode.Ok)
{
@ -537,6 +543,7 @@ namespace Rs.MotionPlat.Flow
LogHelper.Debug(logInfo);
Step = ETurnoverFlowStep.;
}
}
break;
case ETurnoverFlowStep.:
if (Ops.IsStop(AxisControl.PressZ))

Loading…
Cancel
Save