ENع
←Reading the Bode plot
Lesson 31 · Frequency response

Reading the open-loop Bode plot: type, gain and crossover

16 min11 steps5 questionsAdvanced
About this lesson

Cut a feedback loop open, shake it with sine waves and plot what comes out: that is the open-loop Bode plot. One motor-and-dish loop is read end by end. The low-frequency slope gives the system type, the height of the low end gives the error constant, and the gain crossover, with the phase there, tells you how fast and how calm the closed loop will be. The ten-times-gain test shows the trade before the loop is ever closed. How to sketch a Bode plot is in the Circuits lesson on transfer functions and Bode plots.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 31 · Interactive
01 / 11

Cut the loop open

A gain K = 2.5 drives a motor that turns a dish. To judge the closed loop, we first open the feedback switch and test the open loop L(s) = K·G(s) alone: shake its input, watch its output.

plant    G(s) = 1 / ( s (1 + s/4) (1 + s/40) )
control  K = 2.5
open loop    L(s) = K G(s)
closed loop  T(s) = L / (1 + L)

Everything about T can be read from L.
So we measure L, with the switch open.
Loading figure…
or ← →
Read the lesson step by step
  1. Cut the loop open

    A gain K = 2.5 drives a motor that turns a dish. To judge the closed loop, we first open the feedback switch and test the open loop L(s) = K·G(s) alone: shake its input, watch its output.

    plant    G(s) = 1 / ( s (1 + s/4) (1 + s/40) )
    control  K = 2.5
    open loop    L(s) = K G(s)
    closed loop  T(s) = L / (1 + L)
    
    Everything about T can be read from L.
    So we measure L, with the switch open.
  2. One sine in, one sine out

    Send a sine at ω = 1 rad/s. The output is a sine at the same ω, 2.42 times bigger (+7.7 dB) and 105.5° late. Those two numbers are |L(jω)| and ∠L(jω): one dot on each Bode plot.

    import cmath, math
    K = 2.5
    def L(w):
        s = 1j * w
        return K / (s * (1 + s / 4) * (1 + s / 40))
    g = L(1)
    db = 20 * math.log10(abs(g))
    ph = math.degrees(cmath.phase(g))
    print(round(db, 1), round(ph, 1))   # 7.7 -105.5
  3. Sweep: the Bode plot

    Now sweep ω from 0.1 to 100 rad/s and plot every dot: gain in decibels and phase in degrees, both against log ω. That pair of curves is the open-loop Bode plot. Next, we read it, end by end.

    ω (rad/s)   |L| (dB)   ∠L (°)
    0.1         +28.0      −91.6
    1           +7.7       −105.5
    10          −20.9      −172.2
    100         −68.6      −245.9
    
    decibels: 20·log10|L|
    +20 dB = ×10, 0 dB = ×1, −20 dB = ×0.1
  4. Low end slope: the type

    At the low end the gain falls 20 dB per decade and the phase sits near −90°. That is the signature of one 1/s, one integrator: a type 1 loop. So a step is followed with zero error at rest.

    low-frequency slope   loop type   step error
       0 dB/dec           type 0      1/(1+Kp)
     −20 dB/dec           type 1      0
     −40 dB/dec           type 2      0
    
    here at ω = 0.1: +28.0 dB, ∠L = −91.6°
    (the 1/s is the motor: angle = speed integrated)
  5. Low end height: the gain

    Extend the low-frequency line. It is K/ω, so it meets 0 dB at ω = K = 2.5 rad/s. That frequency is the velocity constant Kv = 2.5. A ramp input is followed with a lag of 1/Kv = 0.40 per unit slope.

    low end   L(jω) ≈ K / (jω)
    |K/ω| = 1  at  ω = K
    
    Kv = lim s·L(s) = 2.5  (s → 0)
    ramp error = 1 / Kv = 0.40
    
    Raise the low end, and Kv and the
    accuracy rise with it.
  6. Corners bend the curves

    Each plant pole bends the curves. At 4 rad/s the slope steepens to −40 dB/decade, at 40 to −60. The phase falls past −135° and on towards −270°. How to sketch these lines is in the Circuits lesson on Bode plots.

    break     slope after    phase there
    —         −20 dB/dec     −90° (the 1/s)
    ω = 4     −40 dB/dec     −140.7°
    ω = 40    −60 dB/dec     −219.3°
    
    every pole: −20 dB/dec more, −90° more
    (a zero would do the opposite)
  7. Crossover: where |L| = 1

    The gain crossover ωc is where the curve crosses 0 dB: here 2.19 rad/s. Below ωc the loop gain is big, so the closed loop follows the reference. Above it, it barely follows. So ωc roughly sets the speed.

    import cmath, math
    K = 2.5
    L = lambda w: K / (1j*w * (1 + 1j*w/4) * (1 + 1j*w/40))
    lo, hi = 0.01, 100.0          # |L| falls as w rises
    for _ in range(60):
        mid = math.sqrt(lo * hi)
        lo, hi = (mid, hi) if abs(L(mid)) > 1 else (lo, mid)
    wc = math.sqrt(lo * hi)
    print(round(wc, 2))   # 2.19
  8. The phase at crossover

    Read the phase at ωc: −121.8°, which is 58.2° short of −180°. At −180° a sine of size 1 comes back inverted and the loop feeds itself. How far we stay from that edge is the phase margin.

    at ωc = 2.19 rad/s
    |L| = 1 (0 dB)
    ∠L  = −121.8°
    distance to −180°  = 58.2°
    
    The phase reaches −180° at ω = √(4·40)
    = 12.65 rad/s, well above ωc here.
    (Margins have their own lesson.)
  9. Close the loop: a step

    Close the switch and send a unit step. With crossover at 2.19 rad/s and 58.2° to spare, the dish peaks at 1.26 s, overshoots 10% and settles within 2% by 1.9 s. No error at rest: type 1.

    closed loop  T(s) = 400 / (s³ + 44s² + 160s + 400)
    
    peak        1.10 at 1.26 s
    overshoot   10 %
    settles     1.9 s (2 % band)
    final       1.00 (type 1: no step error)
  10. Ten times the gain

    Set K = 25. The whole gain curve lifts 20.0 dB, the phase curve does not move. Kv becomes 25, crossover slides right to 9.47 rad/s, and the phase there is −170.4°: only 9.6° from −180°.

                  K = 2.5      K = 25
    Kv            2.5        25
    ramp error    0.40       0.04
    ωc (rad/s)    2.19       9.47
    ∠L at ωc      −121.8°   −170.4°
    to −180°      58.2°     9.6°
    
    ×10 in gain = +20 dB, same phase
  11. Faster, but shakier

    Close the loop again. The higher crossover makes it quicker: peak at 0.35 s, not 1.26 s. But with little phase to spare it overshoots 76% and rings until 4.9 s. The Bode plot showed this trade before we closed the loop.

                  K = 2.5      K = 25
    peak time     1.26 s     0.35 s
    overshoot     10 %       76 %
    settles (2%)  1.9 s      4.9 s
    
    Routh: stable only for K < 44.
    High low end = accurate, high ωc = fast,
    phase near −180° at ωc = shaky.

Quiz Unlocks after the last step.