1e = r - c2u = 8 * e1e = r - c2u = 38 * e1e = r - c2u = 8 * e1e = r - c2i = i + e*dt3u = 8*e + 20*i1E_D = G2*D/(1+G1*G2)2e = D0/(1/G2(0)+G1(0))3 = 1/(2+8) = 0.1001E_D = G2*D/(1+G1*G2)2e = D0/(1/G2(0)+G1(0))3 = 1/(2+38) = 0.0251E_D = G2*D/(1+G1*G2)2e = D0/(1/G2(0)+G1(0))3 = 1/(0+8) = 0.1251E_D = G2*D/(1+G1*G2)2e = D0/(1/G2(0)+G1(0))3 = 1/(2+inf) = 0RR = 1G21/(s+2)c0.000DD = 0e +0.000u 0.000c 0.000D = 1
R = 1load on0246810120.00.51.0time (s)cOUTPUT c(t) · LOAD D = 1 AT 5 sK = 8K = 381/s in plantPI
Lit wire with moving dashes: a signal is flowing along itBlocks: reference, motor, output and load; round pucks are summing junctions; the controller and the formula are cardsPlot: the output over 12 s for four loops, computed from the modelPills: the measured speed travelling back, and the load entering the loopA speed loop with a load torque entering between the controller and the motor. The second card gives the steady error the load leaves: D0 / (1/G2(0) + G1(0)). The plot is simulated from the model as the steps play: gain only shrinks the load's error, an integrator in the plant leaves it, an integrator in the controller removes it. Nise (§7.5) draws the disturbance added at the summing junction, which gives e = −1/(1/G2(0) + G1(0)). Here the load subtracts, so the sign is plus. The size is the same.

The load

  1. A motor must hold the speed we ask for, R = 1. The controller G1 turns the error into a torque command u. The motor, the plant, is G2(s) = 1/(s + 2). G1 is a gain of 8. The speed settles at 0.800.

Finding the error

Removing it

What is happening

# step 1/10 · loop
# about: Reference R, Error e = R − c, Controller G1, Motor G2, Speed c, K = 8

R       1        (step at t = 0)
G1(s)   8        (proportional)
G2(s)   1/(s + 2)

speed before any load  0.800
error from R alone     0.200 = 1/(1 + 8/2)
(the lessons on steady-state error and
 system type cover this part)

The motor is a simple model with illustrative numbers: speed obeys dc/dt = −2c + u − d, so G2(s) = 1/(s + 2). Every curve and number in the figure is simulated from that model (RK4, 1 ms steps) and matches the final-value formula. The Python on the steps is plain Python 3, no imports. It uses Euler steps of 1 ms; their steady state is the true one, so the printed speeds match the formula to three decimals.