Skip to content
ELECTRONICS ENGINEERINGelectronics-engineering.com
Automation Systems Design

Drives: trapezoidal motion profile and optimal gear ratio

Electric drives: trapezoidal motion profile with a worked example, optimal gear ratio, RMS torque for the motor and cascaded controllers.

https://www.electronics-engineering.com/en/drives-trapezoidal-motion-profile-optimal-gear-ratio/

No ratings yet: be the first to rate this page.

Conveyor belts, robots, packaging machines, machine-tool axes: almost every movement in a factory is produced by an electric motor driven by a drive (an electronic converter with its control, lessons in Power Electronics). Designing an axis means choosing the motion profile, the motor, the gearbox and the tuning. In this lesson we see the trapezoidal profile with the timing formulas derived and an example, the optimal gear ratio with its derivation, the RMS torque for thermal sizing, and the structure of cascaded controllers.

The motion profile

To move a load over a distance s in the minimum time, with maximum speed v_{max} and maximum acceleration a_{max}, one accelerates at the maximum, continues at constant speed and brakes at the maximum: the trapezoidal profile.

Trapezoidal velocity profile
The speed rises with the maximum slope up to v max at time t a, stays constant, then falls to zero with the same slope, ending at t tot. The area under the profile is the displacement s.

Theorem. If s \ge v_{max}^2/a_{max}, the total time is

    \[ t_{tot} = \frac{s}{v_{max}} + \frac{v_{max}}{a_{max}} \]

otherwise the maximum speed is not reached, the profile is triangular and t_{tot} = 2\sqrt{s/a_{max}}.

Proof. The acceleration lasts t_a = v_{max}/a_{max}, and so does the braking. The displacement is the area of the trapezoid: s = v_{max}(t_{tot} - t_a) (the average of the bases times the height), hence t_{tot} = s/v_{max} + t_a. The constant-speed stretch exists if t_{tot} \ge 2t_a, that is s/v_{max} \ge t_a, that is s \ge v_{max}^2/a_{max}. Otherwise one accelerates up to half the path and brakes: each half s/2 = \frac{1}{2}a_{max}t^2 lasts t = \sqrt{s/a_{max}}. ∎

Example. s = 0{,}5 m, v_{max} = 1 m/s, a_{max} = 5 m/s²: v_{max}^2/a_{max} = 0{,}2 \le 0{,}5, so t_{tot} = 0{,}5 + 0{,}2 = 0{,}7 s. For short moves the acceleration matters, for long ones the speed.

S-profiles and jerk

The trapezoidal profile has a stepwise acceleration: the jerk (the derivative of the acceleration) is infinite and makes the mechanics vibrate. S-profiles, with acceleration ramps, limit the jerk at the price of a slightly longer time, and they are the norm where precision and freedom from vibration matter.

The gear ratio

Between motor and load there is often a gearbox: the motor turns n times faster than the load and the torque reaches the load multiplied by n (neglecting losses). Which ratio makes the motion the most rapid?

Theorem. With a motor of torque C_m and inertia J_m and a load of inertia J_L, the acceleration of the load is maximum at the gear ratio

    \[ n^* = \sqrt{\frac{J_L}{J_m}} \]

that is, when the load inertia reflected to the motor, J_L/n^2, equals that of the motor.

Proof. If the load accelerates at \alpha_L, the motor accelerates at n\alpha_L. The motor supplies the torque C_m to accelerate itself and the load reflected to the motor shaft: C_m = (J_m + J_L/n^2)\,n\alpha_L. Hence

    \[ \alpha_L = \frac{C_m}{nJ_m + J_L/n} \]

The denominator, as a function of n, has derivative J_m - J_L/n^2, zero for n^2 = J_L/J_m, where it is minimum (it is the sum of an increasing and a decreasing term in n, with constant product). ∎

Example. J_L = 0{,}04 kg m², J_m = 4\cdot 10^{-4} kg m²: n^* = 10. In practice one chooses a ratio close to the optimum compatibly with the maximum speed of the motor, and a ratio of inertias (J_L/n^2 over J_m) not too far from 1 also makes the system easier to tune, because the elastic mechanics between motor and load disturbs the speed loop less.

Thermal sizing

A motor heats up through the copper losses, proportional to the square of the current and therefore of the torque. In a duty cycle with torques C_i for the times t_i, the RMS torque matters

    \[ C_{rms} = \sqrt{\frac{\sum_iC_i^2t_i}{\sum_it_i}} \]

which must be below the continuous rated torque of the motor (the thermal time constant, of minutes, is much longer than the cycle). The peak torque, instead, must stay below the maximum torque. Example. A cycle of 1 s with 0.2 s at 10 N m (acceleration), 0.5 s at 2 N m, 0.2 s at 6 N m (braking, with the load helping), 0.1 s at standstill: C_{rms} = \sqrt{(20 + 2 + 7{,}2)/1} \approx 5{,}4 N m. A motor of at least 5.4 N m continuous and 10 N m peak is needed; the average value, 4.2 N m, would lead to undersizing.

Cascaded controllers

A servo drive has three nested loops (see the lesson on cascade control in Process Control):

  • the current (torque) loop, the innermost and fastest, with a bandwidth of a few kilohertz, which uses the vector control of the motor (see the lesson on inverters in Power Electronics);
  • the speed loop, with a bandwidth of a few hundred hertz, usually a PI;
  • the position loop, the outermost, often proportional with a feedforward of speed and acceleration calculated from the profile.

Separation of bands and feedforward

Each loop must be 3 to 10 times slower than the one inside it, which can thus be seen as almost ideal. The feedforward is decisive: with the profile known in advance, the controller already applies the torque needed to accelerate the inertia, and the position loop only has to correct the errors, not chase the reference.

Several synchronised axes

When several axes must move together (electronic cams, interpolation of a trajectory, a robot), the motion controller computes the references of all the axes in step, over a deterministic network such as EtherCAT (see the lesson on industrial networks).

In summary

  • Trapezoidal profile: if s \ge v_{max}^2/a_{max} the minimum time is t_{tot} = s/v_{max} + v_{max}/a_{max}, otherwise the profile is triangular and t_{tot} = 2\sqrt{s/a_{max}}.
  • S-profiles limit the jerk and the vibrations, with a slightly longer positioning time.
  • The gear ratio that maximises the acceleration of the load is n^* = \sqrt{J_L/J_m}: the load inertia reflected to the motor equals that of the motor.
  • For thermal sizing the RMS torque C_{rms} matters, and it must stay below the continuous torque of the motor; the peak torque must stay below the maximum torque. The average torque leads to undersizing.
  • A servo drive has three cascaded loops (current, speed, position), each 3 to 10 times slower than the one inside, with feedforward of speed and acceleration calculated from the profile.
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
1
0
Would love your thoughts, please comment.x
()
x