Пример #1
0
 /// <summary>
 /// Home an Axis
 /// </summary>
 /// <param name="axis"></param>
 public override void HomeAxis(RealRotary axis)
 {
     if (HomeAxisDS402(axis, axis.HomeMethod))
     {
         axis.Homed = true;
     }
 }
Пример #2
0
 /// <summary>
 /// EnableAxis an Axis
 /// </summary>
 /// <param name="axis"></param>
 /// <param name="bEnable"></param>
 public override void EnableAxis(RealRotary axis, bool bEnable)
 {
     EnableAxis(axis, bEnable);
     axis.Enabled = bEnable;
 }
Пример #3
0
 /// <summary>
 /// Home an Axis
 /// </summary>
 /// <param name="axis"></param>
 public override void StopAxis(RealRotary axis)
 {
     StopAxis(axis);
 }
Пример #4
0
        /// <summary>
        /// Home an Axis
        /// </summary>
        /// <param name="axis"></param>
        public override void MoveAbsAxis(RealRotary axis, MRotarySpeed speed, bool waitForCompletion)
        {
            Degrees degSpeed = new Degrees(speed);

            MoveAbsAxis(axis, axis.TargetPosition, (float)degSpeed, waitForCompletion);
        }
 /// <summary>
 /// EnableAxis an Axis
 /// </summary>
 /// <param name="axis"></param>
 /// <param name="bEnable"></param>
 public virtual void EnableAxis(RealRotary axis, bool bEnable)
 {
     // Simulation
     axis.Enabled = bEnable;
 }
 /// <summary>
 /// Move the axis to an absolute position (stored in CommandedPosition)
 /// </summary>
 /// <param name="axis"></param>
 /// <param name="speed"></param>
 /// <param name="waitForCompletion"></param>
 public virtual void MoveAbsAxis(RealRotary axis, MRotarySpeed speed, bool waitForCompletion)
 {
     // Simulation
     axis.SimulateMoveAbs(speed);
 }
 /// <summary>
 /// Stop Axis if moving
 /// </summary>
 /// <param name="axis"></param>
 public virtual void StopAxis(RealRotary axis)
 {
     // Simulation
     axis.TargetMotorCounts = axis.CurrentMotorCounts;
 }
 /// <summary>
 /// Home an Axis
 /// </summary>
 /// <param name="axis"></param>
 public virtual void HomeAxis(RealRotary axis)
 {
     // Simulation
     axis.SimulateHome();
 }