Phase Margin Puzzler

Hello All,

I have a small query relating to stability and phase margin which has just struck me.

When a compensator is designed for something like a switched mode power supply, often some phase boost is added to alleviate a poor phase margin, and hence stability, at the 'crossover' frequency ( 0 dB gain ), with a pole-zero pair.

I understand this if the original phase curve just rolls off more or less monotonically down past -180 degrees, but suppose as frequency increases the original phase curve rolls off to -150 degrees of phase at F1 when there is still plenty of gain left, but then recovers to -120 degrees at F2 then rolls off to -150 degrees again at the unity gain point F3.

My point is that by concentrating on the unity gain point F3, adding a compensator can indeed reduce the phase lag/increase the phase margin there, but the -150 degrees of lag that existed at F2 will be virtually unaffected, and the gain there will be >>1.

So, why wouldn't such a compensated system be perfectly OK at the unity gain frequency but show a tendency to ring at frequency F2?. Sorry for not having a picture.

Or, put another way, am I wrong in thinking a well compensated system should have a phase margin of 50-60 degrees or more all the way from zero frequency out to the unity gain frequency to avoid noticeable ringing?

Thanks for any replies,

Andy.

Reply to
Andy
Loading thread data ...

You are correct in believing that your thinking could be wrong.

Phase (and gain) margin make the most difference where the open loop gain is close to -1 (or +1 when you take the action of the summing junction with it's implied subtraction). Ringing etc. happens because the denominator of the system transfer function is equal to 1 + Hol, where Hol is the open loop transfer function. The closer that Hol gets to -1, the closer the system transfer function gets to 0, and the more the system rings.

It is not uncommon to have systems with three integrators. In such cases the phase shift approaches 270 degrees at DC, yet the system will be stable with the right compensation. In these cases one actually has _two_ gain margins -- one from the low-frequency point where the phase crosses 180 degrees with gain > 1, and the other at a higher frequency point where the phase crosses 180 degrees with gain < 1.

I give an example of such a system in Chapter 5 of my book, "Applied Control Theory for Embedded Systems", in example 5.3 on pages 110-111. For more information see

formatting link
This quality of systems, that they can be stable with phase shifts over

180 degrees, points out a shortcoming of the Bode plot: you can't just look at the Bode plot of a system's open-loop gain and tell if the thing will be stable when the loop is closed! At best you can tell if the system is close to going from stable to unstable, if you know it to be stable from the start.

Here the Nyquist plot comes to your rescue. The same fellow who brought us the early glimmers of the Nyquist-Shannon sampling theory also gave us a plot that enables us (by counting how many times a plot of Hol circles -1) to determine if a system will be stable when the loop is closed -- but only if we know from the start how many unstable zeros there are in Hol. If we know that, then we can determine system stability.

Reply to
Tim Wescott

Thanks Tim, a very swift and comprehensive reply. I shall study it in some depth, but essentially you have jogged my memory that feedback not only flattens gain variations but also irons out phase shift up to near where it hits -180 degrees. I actually wrote a formula in an Excel spreadsheet which plotted the effect of various amounts of feedback on phase shift and the effect was dramatic.

Like you say, where the gain has dropped right off, the feedback won't be helping reduce phase-shift any ( which isn't actually what you said, but is my finger-jabbing interpretation of it ). In fact I suspect I was looking at an open loop phase plot and thinking it was closed loop, duh!

I need to look into Nyquist a bit further, I got stuck on Chapter 9 of Dorff 'Modern Control Systems' when he introduced Nyquist with some stuff on conformal mapping!

cheers,

Andy.

Reply to
Andy

Dnia 08-01-2007 o 22:02:32 Tim Wescott napisa³(a):

(...)

(...)

Do you mean the transfer function tends to inf?

(...)

(...)

Do you mean if we know from the start how many unstable poles there are in Hol?

Reply to
Mikolaj

"the closer the system transfer function _denominator_ gets to zero". I was thinking it really hard, but somehow my keyboard missed it.

No, I mean unstable zeros. Do check any good reference on the Nyquist plot. The cool thing about the Nyquist plot is that you _don't_ have to know ahead of time if the system is stable. The less-than-cool part is that you _do_ have to know how many unstable zeros there are. This isn't that big of a deal, because for most systems that you'd want to use the Nyquist plot the number of unstable zeros is known (the answer is almost always "none").

Reply to
Tim Wescott

Dnia Mon, 15 Jan 2007 23:51:33 +0100, Tim Wescott napisa³:

(...)

(...)

I must disagree. Nyquist criterion says that:

number of clockwise encirclements of open loop tf Hol over (-1,0j) (let's say N) (or 1+Hol Nyquist plot over origin )

equals number of unstable zeros of 1+Hol (call it Z) minus number of unstable poles of 1+Hol (and P)

Legend: Mind that zeros of 1+Hol are the poles of closed loop Hol/(1+Hol) (Z) poles of 1+Hol are also poles of open loop Hol. (P)

N is the value that we see on the plot P we should know from the start (and that is why I disagree with you) number of unstable pols of Hol Z we are looking for

N=Z-P Z=N-P

If number of clockwise encirclements of -1 N equals number of unstable poles of open loop TF then closed loop is stable (Z=0).

If open loop is stable (P=0) and there is no encirclements N=0 then Z=0 and close loop is stable.

[Remark. 1 counterclockwise encirclement : N=-1]
Reply to
Mikolaj

Did I mention that I don't actually use the Nyquist plot to determine initial stability? I think I'm rusty.

I'll have to go back and check my references, but I think you may indeed be right.

Dangit.

Reply to
Tim Wescott

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.