|
@@ -85,10 +85,11 @@ namespace CyberX8_RT.Devices.AXIS.GalilLipsel
|
|
|
.WaitWithStopCondition(HomeStep.CheckForwardMotion, CheckRightMotionEnd, CheckErrorOrWarning, _timeout)
|
|
|
.Delay(HomeStep.DPDelay, 1000)
|
|
|
.Run(HomeStep.DP, () => { return _axis.WriteDP(_homingOffset); }, _delay_1ms)
|
|
|
- .Delay(HomeStep.WaitDP, 1000)
|
|
|
+ .Wait(HomeStep.WaitDP, () => { return Math.Round(Math.Abs(_axis.MotionData.MotorPosition - _homingOffset / _axis.ScaleFactor), 2) <= _axis.ToleranceDefault; }, _delay_1s)
|
|
|
.End(HomeStep.End,NullFun,100);
|
|
|
return Runner.Status;
|
|
|
}
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 检验运动(一直运动至motionposition不再变小为止)
|
|
|
/// </summary>
|