Skip to content
Tactiverge

Control systems

Integral action

Also called: I term · Ki · reset · accumulated error

Definition

Integral action adds a term proportional to the error accumulated over time, so any persistent error keeps growing the command until the error is gone.

Picture it

P reacts to how wrong you are now; I reacts to how long you have been wrong. That is what finally removes steady-state error. Too much I makes the loop sluggish and oscillatory, and it winds up when the actuator saturates.

The maths

I = Ki × ∫ e dt
discrete: integral += e × Δt; I = Ki × integral
SI units used in this entry
QuantityUnitSymbol
timeseconds

Worked example

An error of 0.5 persists for 0.4 s, sampled every 0.1 s. With Ki = 2, what does the integral term contribute after those 4 samples?

  1. integral = 4 × 0.5 × 0.1 = 0.2
  2. I = 2 × 0.2 = 0.4

Answer0.4 (in command units).

✓ The number in this answer is recomputed from scratch by an automated test.

tune it

PID step response

Dashed line: setpoint 1. Solid line: output y over 8 s.
Overshoot 0 % · 2 % settling time 5.17 s · final value 0.994

Simplified model: plant τ·dy/dt = −y + u with τ = 0.5 s and gain 1, forward-Euler steps of 0.01 s, derivative on measurement. Real plants add delay, noise and saturation.

Common misconceptions

  • Misconception: The integral must be multiplied by Δt, or changing the loop rate changes the controller.
  • Misconception: The integral does not reset itself when the error crosses zero; it has to unwind.