Beispiel #1
0
        /// <summary>
        ///     是否到位。
        /// </summary>
        public override bool IsInPosition(double pos)
        {
            bool i  = ApsController.IsInp(NoId);
            bool i1 = (BackPos <= (pos + 0.15) && BackPos >= (pos - 0.15));

            return(i & i1 && (CurrentSpeed == 0));
        }
Beispiel #2
0
        /// <summary>
        ///     是否到位。
        /// </summary>
        public override bool IsInPosition(double pos)
        {
            bool I1 = (CurrentPos - 0.01 < pos && CurrentPos + 0.1 > pos);

            return(ApsController.IsInp(NoId) & (CurrentPos - 0.02 < pos && CurrentPos + 0.02 > pos) && (CurrentSpeed == 0));
        }