示例#1
0
文件: ServoAxis.cs 项目: licanwen/op
        /// <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));
        }
示例#2
0
文件: StepAxis.cs 项目: licanwen/op
        /// <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));
        }