Feedback, and the margin

The disc that does not see the step

The disc margin is the nearest a loop's Nyquist locus comes to the critical point, and it is the one number that sees what a delay does to robustness. At 45° of phase margin a lag loop keeps 0.622 from −1 and a delay loop 0.448; with more of the phase as delay the disc shrinks at every margin, and it guarantees a finite gain margin — 8.4 dB — even on the two-pole loop whose true gain margin has no limit. But it reads the sensitivity, which is what a disturbance at the output sees, and not the response to a command. Read back as an overshoot through the second-order relation it misses by 18.8 points across twenty-one loops, worse than the phase margin's 13.1 and far worse than the closed-loop peak's 1.2: the 60° delay loop has a smaller disc than the 45° lag loop and overshoots 5.6% against 23.3%. Robustness and step quality come apart under a delay, and the disc measures the first.

Assumes: Two measurements of one margin · What is left at crossover

The margin a delay spends built loops with the same phase margin out of a lag and a delay in varying share, and found that the margin, one number read at one frequency, could not tell them apart while their steps and their gain margins could. Forty-five degrees of margin from a lag overshoots 23.3 per cent and has no gain margin to speak of; from a delay it overshoots 28.7 per cent and survives only a doubling of its gain. The closed-loop peak, which reads the whole band at once, predicted the overshoot of all twenty-one of those loops to a point and a fifth.

It ended on a third candidate, the one control theory prefers to both. The disc margin is the distance of the Nyquist locus from the critical point at its nearest, minimised over every frequency — a single number that bounds the gain margin and the phase margin at once, and that a delay, approaching the critical point from an angle a lag never does, ought to register. The question was whether it distinguishes this family of loops better than the peak does. The answer is that it distinguishes them along a different axis, and that the axis is not the step.

Two loops with 45° of phase margin, a lag's and a delay's: the nearest the lag loop comes to −1 is 0.622, the delay loop 0.448computed by solving, not by drawing: the Nyquist loci of the loop with its crossover at one and 45° of margin made of a lag (lighter line) and of a delay (solid), and the largest disc about −1 that each does not enter. The lag loop's disc has radius 0.622, touched at ω = 1.344; the delay loop's 0.448, at ω = 1.647. Both cross the unit circle (dotted) at the same point, 0.765 from −1, which is all a phase margin reads. The disc is the reciprocal of the sensitivity's peak: an output disturbance at the worst frequency is amplified 1.61 times by the lag loop and 2.23 times by the delay loop.-1.50-1-0.50000.500-2-1.50-1-0.50000.500real part of the loop gainimaginary partlag, 45°disc 0.622delay, 45°disc 0.448both cross the circle0.765 from −1worst amplification1.61 and 2.23solved, then checked — the nearest approachthe margin reads one point of the disc
Fig. 1 The Nyquist loci of two loops with their crossover at one and 45° of phase margin, one made of a lag (lighter) and one of a delay (solid), with the largest disc about −1 that each avoids. Both cross the unit circle at the same point, 0.765 from −1; the lag loop’s nearest approach is 0.622, the delay loop’s 0.448, further round where the delay’s phase has kept falling. The slider sets the phase margin.

The nearest approach

The loops are the same family: L(s)=Ke−sD/(s(1+s/p))L(s) = K e^{-sD}/\big(s(1 + s/p)\big), with K chosen to put the crossover at ω=1\omega = 1 and the phase beyond the integrator — 45° for a 45° margin — split between the delay and the lag. A loop with no delay is the two-pole loop of two measurements of one margin; a loop with all delay is an integrator and a delay, the shape a sampled controller has below its sample rate.

The phase margin reads the locus at one point: where it crosses the unit circle, the angle that remains before −180°. Both loops of a given margin cross the circle at exactly the same point, and the chord from there to −1 is 2sin⁡(PM/2)2\sin(\mathrm{PM}/2) — 0.765 at 45°. A loop’s disc can be no wider than that chord, since the locus passes through its end, and it is usually narrower: the nearest approach comes after crossover, where the magnitude has fallen below one and the phase has gone on falling.

For the lag loop at 45° the nearest approach is 0.622, at a frequency 1.34 times the crossover. For the delay loop it is 0.448, at 1.65 times. The delay loop’s phase falls in proportion to frequency, so beyond crossover it swings towards the negative real axis faster than the lag loop’s, whose phase can never pass −180°. At 30° of margin the two discs are 0.463 and 0.292; at 60°, 0.745 and 0.613. In every case the delay brings the locus nearer.

What the disc is, in the circuit

The distance ∣1+L(jω)∣|1 + L(j\omega)| is the reciprocal of the sensitivity, S=1/(1+L)S = 1/(1 + L), so the disc margin is one over the sensitivity’s peak. That has a direct physical reading. A disturbance added at the loop’s output — a load step on a regulator, a vibration on a positioning stage — is passed to the output multiplied by S. At most frequencies the loop attenuates it; near crossover it amplifies it, and the disc margin says by how much at the worst frequency.

At 45° the lag loop amplifies a disturbance by 1.61 at its worst frequency and the delay loop by 2.23. At 30° it is 2.16 and 3.42. The area that feedback only moves showed why this peak cannot be avoided: the logarithm of the sensitivity integrates to zero over frequency, so the attenuation feedback provides at low frequency must be paid back as amplification somewhere, and the phase a delay never stops adding found that a delay does not change the size of that payment, only where it is made. The disc margin is the height of the tallest part of it.

A regulator that sees its load through a delay

The reading is easiest to hold on to with a circuit in mind. A switching regulator’s control loop has a crossover of a few tens of kilohertz and, in a digital controller, a delay of a sample and a half from measurement to new duty cycle. A load that switches on and off at a rate near the loop’s crossover — a processor stepping between idle and busy, say — is a disturbance at the output, and the loop’s sensitivity is what it passes through.

With 45° of margin made of a lag, the worst load frequency is 1.34 times the crossover, and the output ripple at that frequency is 1.61 times what the bare output capacitor would show with no loop at all. With the same 45° made of delay, the worst frequency moves up to 1.65 times the crossover and the ripple to 2.23 times. Nothing in the margin changed, and the regulator’s worst-case ripple grew by 39 per cent, at a frequency the designer may not have tested, because a phase-margin measurement stops looking once it has found the crossover. A load-step test does not catch it either, since a step’s energy at any one frequency is small; a swept load does, and the disc is what the sweep would report.

Every share of delay brings the locus nearer

Holding the phase margin and moving the share of the extra phase from the lag to the delay, the disc does what the argument above says it should at every margin.

The disc falls with the delay's share at every margin — 0.463 to 0.292 at 30°, 0.622 to 0.448 at 45°, 0.745 to 0.613 at 60° — where the overshoot rose at 30° and 45° and fell at 60°. computed by solving, not by drawing: the disc margin of loops with their crossover at one and their phase margin held at 30°, 45° and 60°, against the share of the phase beyond the integrator that the delay supplies. 30°: 0.463 with none, 0.354 at half, 0.292 with all; 45°: 0.622 with none, 0.509 at half, 0.448 with all; 60°: 0.745 with none, 0.658 at half, 0.613 with all. It falls monotonically in every case: a delay always brings the locus nearer the critical point than a lag giving the same phase at crossover, because past crossover its phase keeps falling. The overshoot does not follow it — at 60° the delay loop overshoots less — so the disc and the step are reading different things.
Fig. 2 The disc margin of loops with 30°, 45° and 60° of phase margin against the share of the phase beyond the integrator that the delay supplies. 30°: 0.463 with no delay, 0.354 at half, 0.292 with all of it. 45°: 0.622, 0.509, 0.448. 60°: 0.745, 0.658, 0.613. It falls monotonically at every margin.

The curves fall steadily, with no exception and no crossing. That is the first thing the disc does that the overshoot did not. In the earlier essay the overshoot rose with the delay’s share at 30° and 45°, and fell with it at 60°, so that a 60° loop made of delay overshot 5.6 per cent against the lag loop’s 8.8 — the delay’s phase, smaller than the lag’s below crossover, left the step cleaner. The disc sees none of that. A delay is worse for robustness at every margin, by an amount that grows as the margin shrinks: 37% of the lag loop’s disc is lost to delay at 30°, 28% at 45°, 18% at 60°.

So on the 60° loops the two measures disagree in direction. The delay loop is the less robust and the better behaved. Which one matters depends on whether the loop’s job is to follow commands or to hold still against disturbances, and on how far its gain may wander — which is the question the disc was built to answer.

A predictor of the wrong function

The disc can be turned into an overshoot the way the margin and the peak were: find the two-pole loop with the same disc, and read off that loop’s overshoot. On the two-pole loops themselves this is exact, by construction. On the loops with delay it is a test.

Read back as an overshoot, the disc misses by as much as 18.8 points across the twenty-one loops — worse than the phase margin's 13.1, and far worse than the closed-loop peak's 1.2. computed by solving, not by drawing: the same twenty-one loops at three margins and seven shares of delay, each overshoot predicted by the second-order relation from the disc margin (dots), against the overshoot measured; the diagonal is perfect prediction. Worst misses in points of overshoot: 13.1 from the phase margin, 18.8 from the disc, 1.2 from the closed-loop peak. The disc's worst is the 60° loop at a share of 1: 24.3% predicted against 5.6% measured. The disc reads the sensitivity, which is what a disturbance sees; a command's overshoot is the complementary function's, and the closed-loop peak reads that one directly.
Fig. 3 Twenty-one loops at three margins and seven shares of delay: the overshoot predicted from the disc margin through the two-pole relation (dots), against the overshoot measured. The worst miss is 18.8 points, at the 60° loop made wholly of delay — 24.3% predicted against 5.6% measured. The phase margin’s worst miss on the same loops is 13.1 points and the closed-loop peak’s 1.2.

It fails the test, and badly. The worst miss is 18.8 points of overshoot, against 13.1 for the phase margin read the same way and 1.2 for the closed-loop peak. The disc is the worst of the three at predicting a step, on precisely the loops it was hoped to read best.

The reason is in what each number is a property of. A command’s response is T=L/(1+L)T = L/(1 + L), the complementary sensitivity, and its overshoot is governed by how T peaks. The closed-loop peak is T’s peak, which is why it predicts so well. The disc is S’s peak. For a two-pole loop, S and T are tied together by the loop’s single parameter, so either peak fixes the other and either predicts the step. Once a delay is in the loop that tie is cut: S and T peak at different frequencies, by amounts that depend on the delay separately, and the disc, reading S, has lost its grip on T.

The 60° delay loop shows it in one comparison. Its disc, 0.613, is smaller than the 45° lag loop’s 0.622, so the disc ranks it as the less robust of the two, and the two-pole loop with a disc of 0.613 overshoots about 24 per cent. Its actual overshoot is 5.6 per cent, a quarter of the 45° lag loop’s 23.3. A delay moves the locus towards −1 after crossover, where the magnitude has fallen, and that hurts S without much affecting the closed-loop peak below crossover, where the step’s overshoot is decided for a generous margin.

What the disc does guarantee

The disc is not built to predict a step. It is built to guarantee margins, and that is where it is strongest. A locus that stays outside a disc of radius d about −1 survives any change of gain by a factor between 1/(1+d)1/(1 + d) and 1/(1−d)1/(1 - d), and any added phase lag up to 2sin⁡−1(d/2)2\sin^{-1}(d/2), because those are the gain and phase changes that move the disc’s edge onto the critical point.

What the disc guarantees against what the loop has: at 45° the bound is 8.4 dB for the lag loop, which has no limit, and 5.2 dB for the delay loop, which has 6.0. computed by solving, not by drawing: the gain margin of loops with 45° and 60° of phase margin (solid), against the share of delay, beside the gain margin the disc margin guarantees, 1/(1 − d) (dashed). 45°: guaranteed 8.4 dB with no delay, where the true margin has no limit; 5.2 dB with all delay, against a true 6.0; 60°: guaranteed 11.9 dB with no delay, where the true margin has no limit; 8.3 dB with all delay, against a true 9.5. The bound is finite on every loop, so it is the one margin that does not read a two-pole loop as infinitely robust; and it is tightest exactly where the delay makes the true margin smallest. The guaranteed phase margin, 2·asin(d/2), is 25.9° at 45° and 35.7° at 60° for the delay loops.
Fig. 4 The gain margin of loops with 45° and 60° of phase margin against the delay’s share (solid), beside the gain margin the disc margin guarantees, 1/(1−d)1/(1 - d) (dashed). With no delay the true margin has no limit and the disc guarantees 8.4 dB at 45° and 11.9 dB at 60°; with all delay the true margins are 6.0 and 9.5 dB and the guarantees 5.2 and 8.3.

The guarantee is never violated, as it cannot be, and it has a property neither classical margin has: it is finite on every loop. A two-pole loop’s gain margin is infinite, because its phase never reaches −180°, and the loop that never crosses found that this is the ordinary situation rather than a curiosity, which is why a gain margin is so often reported as “not a number”. The disc guarantees 8.4 dB on that loop at 45° — less than it has, but a number, and the right kind of number, since a real two-pole loop always has a little delay somewhere and a finite margin in consequence.

As the delay’s share rises the true gain margin falls from infinity towards 6 dB, and the guarantee falls with it, more slowly, until at all delay it is 5.2 dB against a true 6.0. So the bound is tightest exactly where the margin matters most. The guaranteed phase margin on the delay loops is 25.9° at 45° and 35.7° at 60°: the loop survives that much additional lag at any frequency, which is a statement about the whole locus rather than about its crossing, and the reason robust-control texts prefer it.

One loop, walked to its limit

The integrator-and-delay loop has a single parameter, the crossover in radians of the delay, KD, and the disc can be read along the whole of it.

An integrator and a delay walked to its limit: the disc is 0.613 at 60° of margin, 0.448 at 45°, and a half — a sensitivity peak of two — at KD = 0.701, 49.8° of margin. computed by solving, not by drawing: the disc margin of the loop e^(−sD)/s with its crossover at K, against KD, the crossover in radians of the delay. It falls from near one at small KD to zero at π/2, where the loop oscillates: 0.806 at 0.25, 0.623 at 0.5, 0.469 at 0.75, 0.324 at 1, 0.171 at 1.25. At 60° of margin, KD = π/6, it is 0.613; at 45°, 0.448. The common requirement that a sensitivity peak not exceed two — a disc of at least a half — is met up to KD = 0.7012, a phase margin of 49.8° and a crossover of 7.4% of the sample rate for a loop delayed one and a half samples.
Fig. 5 The disc margin of e−sD/se^{-sD}/s with its crossover at K, against KD. It falls from near one to zero at π/2\pi/2, where the loop oscillates: 0.806 at 0.25, 0.623 at 0.5, 0.469 at 0.75, 0.324 at 1, 0.171 at 1.25. At 60° of margin it is 0.613, at 45° 0.448; a disc of one half — a sensitivity peak of two — is reached at KD = 0.701, a phase margin of 49.8°.

The disc falls steadily from near one at small KD to zero at π/2\pi/2, the gain at which the loop oscillates. A widely quoted design rule asks for a sensitivity peak no greater than two, a disc of at least one half, as the point beyond which disturbances near crossover are amplified too much. On this loop that rule is met up to KD = 0.701, which is a phase margin of 49.8°: the sensitivity rule asks for slightly more margin than the 45° a phase-margin rule would accept, and slightly less than the 60° a cautious designer would choose.

Put in the units of a sampled loop, with the delay one and a half sample periods, the rule allows a crossover of 7.4 per cent of the sample rate. The earlier essay found that the same loop stops overshooting altogether below a crossover of 3.9 per cent, and that the common rule of a tenth of the sample rate leaves only 36° of margin and a 44 per cent overshoot. The three limits are three different questions about one loop: no overshoot at all, at 3.9 per cent; disturbances amplified no more than twice, at 7.4; a tenth of the sample rate, which answers neither. The band a sampled loop repays in found where a sampled loop’s sensitivity integral is paid back; the disc is the height of the payment.

Three numbers, three functions

It helps to set the three candidates side by side, because the comparison has a clean structure. The phase margin reads the loop gain at one frequency. The closed-loop peak reads T over the whole band. The disc margin reads S over the whole band. On a two-pole loop the three are one parameter in three disguises, and each predicts everything the others do. A delay breaks the loop out of that one-parameter family, and the three then answer different questions.

For the response to a command, T’s peak is the one to read: 1.2 points of overshoot error across the family. For the response to a disturbance, and for robustness against a gain or phase that wanders, S’s peak is the one to read, and it is the only one of the three that sees a delay’s damage monotonically and is finite on every loop. The phase margin answers neither question well — it predicts the step to 13 points and the gain margin not at all — and it survives as the bench number because it is the easiest of the three to measure. What is left at crossover measured it the way a bench does, by breaking the loop; the disc needs the same measurement swept over a band, and the peak needs the loop closed.

Where this leaves a designer

A loop specified by a phase margin alone is underspecified twice over when it contains a delay. It may overshoot by a third more than the margin suggests, and it may tolerate a gain change of only 6 dB while looking like a loop that tolerates any. A loop specified by its disc is protected against the second and not the first: the disc guarantees the margins, and says nothing reliable about the step. A loop specified by both its disc and its closed-loop peak is specified completely for this family — one number for robustness and one for the step — and that pair is what the family’s behaviour actually needs.

Stable and unstable with less gain found a loop whose margins hid a boundary on the low-gain side, where reducing the gain made it oscillate. The disc catches that too, because it bounds the factor by which the gain may fall as well as rise, 1/(1+d)1/(1 + d) on the low side. It is the one number that would have flagged both that loop and the delay loop here as less robust than their phase margins said.

The numbers worth carrying

At 45° of phase margin the lag loop’s disc is 0.622 and the delay loop’s 0.448, against a chord of 0.765 that both cross the unit circle at; at 30° 0.463 and 0.292, at 60° 0.745 and 0.613. The disc falls monotonically with the delay’s share at every margin, while the overshoot rises at 30° and 45° and falls at 60°. Read back as an overshoot the disc misses by up to 18.8 points, against 13.1 for the phase margin and 1.2 for the closed-loop peak, because it reads S and a step is T. It guarantees 8.4 dB of gain margin on a two-pole loop at 45° whose true margin has no limit, and 5.2 dB on the delay loop whose true margin is 6.0. On an integrator and a delay a sensitivity peak of two is reached at KD = 0.701, 49.8° of margin, 7.4 per cent of the sample rate for a loop delayed one and a half samples. One margin, and the gain under it began by holding the margin and changing what was under it; the disc is what holding the margin was never able to hold.

Still open: a zero at crossover, the disc that is not centred, and the measured disc

A zero at crossover. Compensation adds a zero to win back margin, and a zero’s phase has the opposite curvature to a delay’s — it gives most of its phase below its corner, where a delay gives least. Whether a zero restores the disc as well as the phase margin, or restores the margin at crossover while leaving the locus close to −1 further round, is the comparison that would separate what compensation does for a step from what it does for robustness.

A disc that is not centred on −1. The symmetric disc treats a gain increase and decrease alike. A loop whose gain can only rise — a thermal loop whose plant warms, a regulator whose load only grows — is better described by a disc offset towards the side of the danger, and the margins it guarantees are asymmetric. Which offset fits the delay loop’s real risk is a question of which way its gain moves.

The disc measured on a bench. The disc needs ∣1+L∣|1 + L| over a band, which is the broken-loop measurement swept and its minimum taken. Noise in that measurement is largest where the loop gain is near one, which is where the minimum lies, so how many points and how much averaging a measured disc needs before it is as trustworthy as a measured phase margin is a propagation-of-error calculation on this family.

Part 5 on margin overshoot

One argument about Margin overshoot, and one of 4 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Complementary sensitivityDesensitivityGain marginNyquist criterionOvershootPhase marginPropagation delay