R(s)∫1/(s+1)∫110/(s+5)TYPE 0Y(s)E(s) = R − Yy 0.00
0246800.51time (s)ERROR e(t) = r(t) − y(t)1/(1+Kp) = 1/3type 0 · unit step↑ grows without limittype 0 · unit rampsettles at 0type 1 · unit step1/Kv = 0.5type 1 · unit ramp↑ grows without limittype 1 · unit parabola1/Ka = 0.5type 2 · unit parabola0.51/3type 0 · steptype 1 · ramptype 2 · parabola
Lit arrow with moving dashes: a signal is flowing along itBlocks: the input, the three blocks of G(s), the output; the badge counts the integratorsPlot: the error e(t) = r(t) − y(t), computed from the loopThe pill riding back along the front is the output y, fed back to the junctionA unity-feedback loop whose open-loop transfer function G(s) is built from three blocks; the badge counts its poles at s = 0, the system type. The plot is the error e(t), computed from the loop as each run plays: one integrator per extra input degree turns an unbounded error into a constant one, and a constant one into zero. Kp, Kv and Ka, and the final value theorem behind them, only apply to a stable closed loop. All three loops here are stable; the Routh-Hurwitz lessons later in this module show how to check that without finding the poles.

System type

  1. A unity-feedback loop: the error e = r − y drives G(s), and the output y is fed straight back. The lesson on steady-state error and the final value theorem gave e(∞) = lim s·R(s)/(1 + G(s)). Here we read it off G(s) instead.

Type 0

Type 1

Type 2 and the pattern

What is happening

# step 1/10 · loop
# about: Input, Summing junction, Type badge, Output

E(s) = R(s) − Y(s)
Y(s) = G(s)·E(s)

         R(s)
E(s) = --------
       1 + G(s)

e(∞) = lim  s·E(s)     (final value theorem;
       s→0              only for a stable loop)

All three loops share the plant 10/(s+5); only the poles at s = 0 change. The curves are the closed loop stepped in time (RK4, 0.002 s steps), not sketched; the settled values match the formulas. The Python is plain Python 3 with no libraries. The ramp loop uses a simple Euler step of 1 ms, so it lands on 0.5 to two decimal places; the figure uses a more accurate RK4 step.