Trapezoidal Trajectory Calculator

Calculations are not a guarantee of performance. Unsure?
Configure Product and Load

Define Trajectory

mm
s
mm/s²
Choose a product to calculate acceleration from its thrust.

Top speed

138.2 mm/s
  • Accelerating
  • Cruising
  • Decelerating
Position (mm)Velocity (mm/s)Acceleration (mm/s²)0204060050100−1,000−50005001,00000.10.20.30.4Time (s) 138.2 Top speed 138.2 mm/s 0.5 s Move time 0.5 s
Position, velocity and acceleration versus time. The move covers 50 mm in 0.5 s, peaking at 138.197 mm/s, accelerating and decelerating at 1,000 mm/s².

What is a Trapezoidal Trajectory?

When a stage moves between two points, it typically doesn't accelerate and decelerate instantly. There is a period of constant acceleration a, a period of cruising at top speed v, and then finally a period of constant deceleration at the same rate a. The resulting velocity profile has the shape of a trapezoid.

A trapezoidal trajectory is uniquely defined by 3/4 of these parameters: total time t, distance d, acceleration a, and top speed v. Only 3 of these 4 values are required to solve for the 4th.

Each acceleration/deceleration takes time ta and covers distance da. The cruise covers the rest of the distance dc in time tc:

ta = v / ada = v² / (2a)dc = d − v² / atc = (d − v² / a) / vt = d / v + v / a

No cruise: if d ≤ v² / a, the move never reaches v. It becomes a triangular profile:

vpeak = √(a·d)t = 2√(d / a)

To solve for a top speed instead of a time, the following equation can be used if t ≥ 2√(d / a).

v = (a·t − √(a²t² − 4ad)) / 2

Here are three examples of possible trajectories that cover the same distance in the same time, using different accelerations. Each shape has the same area, which represents the distance travelled.

11000Velocity (mm/s)Time (s)
High acceleration · a = 1,210 mm/s² Accelerates for 0.091 s over 5 mm, cruises 90 mm for 0.818 s, then decelerates the same way. Top speed: 110 mm/s
15000Velocity (mm/s)Time (s)
Medium acceleration · a = 450 mm/s² Accelerates for 0.333 s over 25 mm, cruises 50 mm for 0.333 s, then decelerates the same way. Top speed: 150 mm/s
20000Velocity (mm/s)Time (s)
Low acceleration (triangular) · a = 400 mm/s²a = 4d / t²: the lowest acceleration that still covers 100 mm in 1 s. It accelerates for 0.500 s and decelerates straight away. Top speed: 200 mm/s

Introducing Thrust-Speed Data

Typically, the parameters of the trapezoidal trajectory are highly dependent on the physical device being used to perform the movement. Device specifications such as the max speed, maximum acceleration, and most importantly thrust-speed, can all limit an otherwise feasible move from point A to point B.

Thrust-speed data is used to compute an appropriate acceleration setting for the device when the distance and time (or speed) are known. This requires computing the effective moving mass of the payload plus all other components being accelerated during a move.

5000739.6Thrust (N)Speed (mm/s)
Within the rated thrust A sample curve. The move needs 50 N at every speed up to 739.6 mm/s. At that speed the curve offers 54.94 N, so the move uses 91 % of the available force (red dot).
7000739.6Thrust (N)Speed (mm/s)
Exceeds the rated thrust This move needs 70 N at every speed up to 739.6 mm/s. Above about 572 mm/s the curve offers less than 70 N, so at its top speed the move needs 127 % of the available force (red dot). The stage would stall.

Effective moving mass

In addition to the payload being moved, the mass of the carriage, the inertia of the motor rotor, and the inertia of the lead screw must be included in the calculation.

meff = payload + carriage + rotor equivalent + screw equivalent

On belt-driven stages, pulleys and belt would take the place of the screw.

To convert the rotational inertia of the motor rotor and lead screw, we convert it to an equivalent mass at the carriage. This is the mass that would have the same kinetic energy as the rotating part when moving at the carriage's speed v. Here the lead L is the distance the carriage travels per motor revolution, J is the rotor's inertia, and ω is the rotor's angular speed:

ω = 2π·v / L½·J·ω² = ½·meq·v²meq = J·(2π / L)²

The speed v appears on both sides and cancels out, so the equivalent mass is the same at every speed. It depends only on the rotor's inertia and the lead, not on the trajectory.

The lead screw is treated as a solid steel cylinder, with diameter d and length ℓ taken from the product's data, a density of ρ = 7850 kg/m³, and a radius of r = d / 2. Because the screw spins with the rotor, it is converted to an equivalent mass in the same way. On actuators where the screw moves with the load instead of spinning, the screw is simply part of the moving mass.

ms = ρ·π·r²·ℓJs = ½·ms·r²meq = Js·(2π / L)²

For example, a stage with a 1.27 mm lead and a rotor inertia of 7.3 × 10⁻⁶ kg·m² (such as the LSQ075A) has an equivalent rotor mass of meq = 7.3 × 10⁻⁶ × (2π / 0.00127)² ≈ 179 kg. On stages with a fine lead, the stage's own rotor often outweighs the payload.

Rotary stages work the same way, using torque and inertia instead of force and mass. The torque T needed is the effective moving inertia Jeff multiplied by the angular acceleration α (in rad/s²). The rotor's inertia is scaled by the gear ratio N, which is 360° divided by the stage's rotation per motor revolution:

T = Jeff · αJeff = load inertia + rotor inertia × N²

You can see each term, and where its value came from, in the Effective moving mass table under the thrust–speed plot (Effective moving inertia for rotary stages). Where a product's data doesn't include a value, it is estimated.

Automatically Calculating Acceleration

Typically for a given move, you may want to either minimize the top speed or the required acceleration. Minimizing top speed (maximizing acceleration) lowers the kinetic energy and makes the movement safer in case of unexpected impacts. Minimizing acceleration (higher top speed) makes sense if your payload is sensitive to handling (e.g. liquid handling).

This calculator allows you to automatically select your desired constraint (maximize or minimize acceleration) and it will compute a feasible trajectory based on the stage's specifications. This is useful for determining if a stage is suitable for your application, or for planning particularly demanding moves with existing stages. This calculation is done numerically using the thrust-speed data and does not have a closed form expression.

Assumptions

  • The acceleration and deceleration use the same rate, with no jerk limit (no S-curve smoothing).
  • The stage is horizontal. Any additional friction you enter is treated as a constant force opposing the motion. The stage's internal friction is already included in the measured thrust-speed data.
  • The curves are derated, and only apply at their stated test conditions (voltage, current and controller).
  • Where a product has no data for a mass or inertia term, that term is estimated.
  • Continuous thrust isn't checked, so long or repeated moves aren't checked for motor heating.