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
 public StepAxis(ApsController apsController) : base(apsController)
 {
 }
Beispiel #3
0
 /// <summary>
 ///     是否到位。
 /// </summary>
 public override bool IsInPosition(double pos)
 {
     return(ApsController.IsDown(NoId) & (CurrentPos - 0.010 < pos && CurrentPos + 0.01 > pos));
 }
Beispiel #4
0
 public override void APS_set_command(double pos)
 {
     //base.APS_set_command(pos);
     ApsController.SetCommandPosition(NoId, pos);
     //ApsController.SetFeedbackPosition(NoId, pos);
 }
Beispiel #5
0
 public ApsAxis(ApsController apsController)
 {
     ApsController = apsController;
 }
Beispiel #6
0
 public override void SetCurrentPos(double pos)
 {
     ApsController.SetCommandPosition(NoId, Convert.ToInt32(pos / Transmission.PulseEquivalent));
     //ApsController.SetFeedbackPosition(NoId, pos);
 }
Beispiel #7
0
 public ServoAxis(ApsController apsController) : base(apsController)
 {
 }
Beispiel #8
0
        /// <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));
        }
Beispiel #9
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));
        }
Beispiel #10
0
 public override void SetCurrentPos(double pos)
 {
     ApsController.SetCommandPosition(NoId, Convert.ToInt32(pos));
 }
Beispiel #11
0
 public AxisInterpolation(ApsController apsController, Axis axis1, Axis axis2)
 {
     ApsController = apsController;
     _axis1        = axis1;
     _axis2        = axis2;
 }