SetAccel
#

 procedure TNAxis.SetAccel(anAccel:single);

Description

SetAccel is used to set the acceleration of a profiled move in user units per second squared. If the Axis Object indicated is a single axis (T1Axis object type) the acceleration is for the movement of that motor when operating alone. If the Axis Object represents a group, for example a 2 dimensional group (T2Axis object) or a 4 dimensional group (T4Axis object), the acceleration applies to the coordinated motion profile of the group. SetDecel may be used to independently set the deceleration of the TNAxis.


procedure PerformSingleAxisMove;

  begin
  Axis_1.SetAccel(10);
  Axis_1.SetDecel(10);
  Axis_1.SetSpeed(2);
  Axis_1.MoveBy(1);
  end;

{-------------------------------------------------------}
procedure PerformMultiAxisMove;
{-------------------------------------------------------}
{ Note that parameters for accel, decel, and speed only }
{ have one parameter since those are with regard to the }
{ direction of motion for the entire group. The position}
{ requires two parameters but the profile description   }
{ does not.                                             }
{_______________________________________________________}

  begin

  XYTable.SetAccel(10);
  XYTable.SetDecel(10);
  XYTable.SetSpeed(2);
  XYTable.MoveBy(1,2);
  end;

Related Topics

SetSpeed
Set Decel