User Tools

Site Tools


commands:accel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
commands:accel [2021/11/04 14:49] – clarify that TSTEP is Servo Lp Time brandoncommands:accel [2025/08/28 18:21] (current) – brandon
Line 1: Line 1:
 ====== Command:ACCEL (AC) ====== ====== Command:ACCEL (AC) ======
  
---> MS2000 or RM2000 syntax#+--> MS2000 or RM2000 syntax ^
  
 ^Shortcut  |AC   |  ^Shortcut  |AC   | 
-^Format  |ACCEL [axis] = [time in msec]… | +^Format  |ACCEL [axis] = [time in ms]… | 
-^Units    |millisecond|+^Units    |Milliseconds|
 ^Remembered |Using SS Z | ^Remembered |Using SS Z |
  
 <-- <--
  
---> Tiger syntax# +--> Tiger syntax ^
  
 ^Shortcut  |AC   |  ^Shortcut  |AC   | 
-^Format  |ACCEL [axis] = [time in msec]… | +^Format  |ACCEL [axis] = [time in ms]… | 
-^Units    |millisecond|+^Units    |Milliseconds|
 ^Type    |Axis-Specific  | ^Type    |Axis-Specific  |
 ^Remembered |Using [addr#]SS Z | ^Remembered |Using [addr#]SS Z |
Line 20: Line 20:
 <-- <--
  
-This command sets the amount of time in milliseconds that it takes an axis motor speed to go from stopped to the maximum speed ([[commands:speed|S command]]) during a commanded move.  It is also the duration of the deceleration / ramp-down time at the end of the move.  +This command sets the amount of time in milliseconds that it takes an axis motor speed to go from stopped to the maximum speed ([[commands:speed|S command]]) during commanded moves long enough that the maximum speed is reached.  It is also the duration of the deceleration / ramp-down time at the end of the move.  
  
-At a minimum, this acceleration / deceleration time must be greater than <wrap cmd>TSTEP</wrap> (the amount of time it takes for the controller to go through one loop of its main execution code; the [[commands:info|INFO command]] shows <wrap cmd>TSTEP</wrap> as <wrap cmd>Servo Lp Time</wrap>).  However, setting the acceleration time to less than the motor's intrinsic time constant (~7 ms for the most common motors) is generally foolish.  Overly-aggressive acceleration times lead to performance degradation over millions of moves.  25 ms acceleration time is generally safe for short moves with small stages or when the speed setting is a small fraction of the maximum, but larger values are recommended for larger stages and/or long moves (where the speed is reached) with speed settings near the maximum.+Setting the acceleration time to less than the motor's intrinsic time constant (~7 ms for the most common motors) is generally foolish.  Overly-aggressive acceleration times lead to performance degradation over millions of moves.  25 ms acceleration time is generally only safe for short moves with small stages (i.e. when maximum speed is never reached, see [[:stage_accuracy_settling_time_for_asi_stage#small_moves|section on small moves]]) and/or when the speed setting is a small fraction of the maximum.  Larger values, e.g. 75ms or 100ms, are recommended for larger stages and/or long moves (where the speed is reached) with speed settings near the maximum, especially in heavy use applications.  For stages with very coarse leadscrews and/or very heavy loads it is possible that the stage will not be able to keep up with very short acceleration times; when this happens the error buffer will have errors in the 90s.
  
 == Example == == Example ==
Line 32: Line 32:
  
 The command in this example will make the controller take 50 milliseconds to accelerate the motors on each axis during a move command.  When the controller gets within 50 milliseconds of finishing the move, it will begin to decelerate the motors back down to the start velocity where the pulses take over to bring the axes within the pulse crossover position error. The command in this example will make the controller take 50 milliseconds to accelerate the motors on each axis during a move command.  When the controller gets within 50 milliseconds of finishing the move, it will begin to decelerate the motors back down to the start velocity where the pulses take over to bring the axes within the pulse crossover position error.
- 
- 
  
  
  
 {{tag>commands tiger ms2000}} {{tag>commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/accel.1636051789.txt.gz · Last modified: by brandon