SCARA elbow sweep with soft motion echoes and a smooth violet tool trace.

What you need

Use an offline joint-angle plot with chosen start angle, end angle and duration. Avoid sending sampled positions directly to hardware.

Cubic position during a 90-degree, 2-second move. 0 s: 0 degrees; 0.5 s: 14.063 degrees; 1 s: 45 degrees; 1.5 s: 75.938 degrees; 2 s: 90 degrees.
Cubic position during a 90-degree, 2-second move. Original Academy diagram using illustrative values; not a measured hardware result.
Read the diagram as a data table
Values used in the illustration
Condition or componentdegrees
0 s0
0.5 s14.063
1 s45
1.5 s75.938
2 s90

The calculation

s(u) = 3u² − 2u³; u=t/T
q(t) = q₀ + (q_f − q₀) × s(u)

T is total duration and 0≤u≤1. The joint displacement and q use a consistent angle or distance unit.

Worked example

Illustrative numbers. Replace them with your measured inputs.

A 90° move over 2 s reaches 14.0625° at 0.5 s, 45° at 1 s and 75.9375° at 1.5 s. Peak speed is 1.5×90/2 = 67.5°/s, so duration must respect the axis speed limit.

Try it step by step

  1. Choose endpoint conditions and calculate the required peak velocity and acceleration before selecting duration.
  2. Sample the function offline and plot position, velocity and acceleration for inspection.
  3. Synchronize multiple joints using a common duration chosen for the most restrictive axis.
  4. Use a trajectory interface that enforces machine limits and validate the resulting motion in simulation before physical commissioning.

How to check the result

The first and last position must match the requested endpoints, and the derived velocity must be zero at both ends.

Common mistake to avoid

Zero endpoint velocity does not mean zero endpoint acceleration. A quintic time law is needed when both must vanish in this polynomial family.

Reference reading

Primary references for the underlying models, APIs or application context. The worked numbers and plots above are educational calculations, not results reported by these sources.

Read our methods, limitations and safety notes.