ControlLoopLab
Home Bode marginsWorked example

Lab loop at the imaginary-axis boundary

Two unit poles plus an integrator create a reference where gain and phase cross at the same frequency.

Model inputs

Open-loop plant
rad/s
rad/s
s
Lead zero

Open-loop Bode plot

Marginal
Phase margin
0°
Gain margin
0dB
Gain crossover
1rad/s
Delay margin
0s
Bode magnitude and phaseLoop magnitudedB0.1250.3140.7911.995−41.1−17.85.4828.8Frequency (rad/s, log)Unwrapped phasedeg0.1250.3140.7911.995−259−203−148−92.8Frequency (rad/s, log)ωgc / PM arrowωpc / GM arrow
L(s) = K(1 + s/ωz) exp(−sθ) / [sⁿ(1 + s/ωp1)(1 + s/ωp2)]

Calculated results

Gain crossover ωgc
1rad/s
Phase margin
0°
Phase crossover ωpc
1rad/s
Gain margin
0dB
Gain margin ratio
1×
Added delay margin
0s
Finite unity crossings
1
Nyquist RHP pole count
0
  • The loop touches −1 at unity gain. A pole lies on the imaginary axis.

Model and interpretation

Full methodology

Check the open-loop model

Assumes unity negative feedback, two stable real poles, a positive gain and an optional left-half-plane zero. Phase is unwrapped analytically, including the linear delay term. The logarithmic chart is for inspection. Crossovers are root-refined at full precision.

Interpret crossovers together

The Nyquist count uses odd-180° crossings where loop gain exceeds unity. Without delay, the Routh criterion gives the stability boundary directly. An odd-180° unity crossing places a pole on the imaginary axis and other unstable poles can coexist. The reported gain margin is closest to 0 dB. A positive added-delay allowance is meaningful only when the current loop is stable.

Apply the screening thresholds

A stable model with phase margin below 30° or gain margin below 6 dB is marked marginal. A negative delay margin describes the signed reserve at the quoted crossover. Inspect the full measured loop for uncertainty, extra poles and nonlinear constraints.