/// <summary> /// 是否到位。 /// </summary> public override bool IsInPosition(double pos) { return(ApsController.IsDown(NoId) & (CurrentPos - 0.010 < pos && CurrentPos + 0.01 > pos)); }
/// <summary> /// 是否到位。 /// </summary> public override bool IsInPosition(double pos) { var val = ApsController.IsDown(NoId); return(ApsController.IsDown(NoId) & (CurrentPos + 0.10 >= pos & CurrentPos - 0.10 <= pos)); }