Processing math: 100%

ECE 486 Control Systems
Lecture 17

Control Design Using Frequency Response (Continued)

Last time, we used Bode’s Gain-Phase Relationship as a guideline for control design using frequency response. One of our attempts during the time was designing a lead controller for a double integrator.

In this lecture, we will continue our discussion of control design using frequency response; we shall explore other design options such as PI/lag, PID/lead+lag.

Lag Compensation in Bode Plot

Similar to lead controller we considered last time, here we consider a lag compensator as in Equation (1).

D(s)=s+zs+p=zpsz+1sp+1,

where zp, hence the lag control.

bode lag D(s)

Figure 1: Bode plot for lag component D(s)=s+zs+p

From Figure 1, we notice

  • zp means s+z<s+p, hence the term “phase lag”.
  • jω+zjω+p1 as ω, so magnitude M1 at high frequencies.
  • jω+zjω+pzp as ω0. By the calculation of steady state tracking error e()=sR(s)1+D(s)G(s)|s=0, we see large zp means better tracking. It is essentially confirming lag control as approximate PI control can be used to suppress steady state error.
  • By the magnitude plot, the lag component steps down slope by 1 so lag control decreases ωc; it further implies it slows down time response. (Why? Hint: Recall the relationship among bandwidth ωBW, crossover frequency ωc and natural frequency ωn.)
  • Contrary to lead control which increases PM, lag control can undo what lead control does. To mitigate this, choose both z and p to be very small, while maintaining desired ratio zp so that we can keep the benefit of lag control.

Consider the following example. Let G(s)=1(s+0.2)(s+0.5). Write it in Bode form,

G(s)=1(s+0.2)(s+0.5)=10s01(s0.2+1)(s0.5+1).

Our objectives include

  • phase margin PM60;
  • steady state error e()10% for tracking constant reference input. (This is closed loop tracking error.)

Our strategy here is to use a lag controller to achieve the above requirements

KD(s)=Ks+zs+p, where zp.

On top of the lag control in this form, we further require that

  • z and p be chosen to get good tracking;
  • phase margin be shaped by choosing K.

As for shaping phase margin, note that this is different from what we did for using lead control where we chose K to get desired bandwidth specification and used p and z to shape phase margin PM.

Step 1: Choose K to Shape Phase Margin PM

First check the Bode plot of G(s) to see the existing phase margin from it.

bode G(s)

Figure 2: Bode plot for G(s) only

From Matlab, we see

  • crossover frequency ωc1;
  • phase margin PM40 but the desired phase margin is at least PM=60;
  • from phase plot of Figure 2, G(jω)=120 at ω0.573. The corresponding magnitude is |G(jω)|=2.16. So we can choose K to be 12.16. (Move magnitude graph down to push crossover frequency down.)

A conservative choice (to allow some slack) could be K=12.5=0.4, which gives ωc0.52,PM65.

Step 2: Choose z and p to Shape Tracking Error

After we determined K=0.4 in Step 1, we have

KG(s)=0.410(s0.2+1)(s0.5+1).

If we do nothing to the above transfer function KG(s), the steady state error would be

e()=11+KG(s)|s=0=11+4=15=20%>10%.

To have e()10% as specified, we need KD(0)G(0)9 since

e()=11+KD(0)G(0)11+9=10%.

Therefore,

D(0)=s+zs+p|s=0=zp94=2.25.

We can choose zp=2.5. Recall in order not to distort phase margin and ωc, we can pick z and p an order of magnitude smaller than ωc0.5, e.g., z=0.05, p=0.02.

Overall Design

After we completed Step 1 and 2, the controller is determined as

KD(s)=0.4s+0.05s+0.02

for plant

G(s)=10(s0.2+1)(s0.5+1).

The Bode plot for KD(s)G(s) is shown in Figure 3.

bode KDG

Figure 3: Bode plot for KD(s)G(s)

Lead and Lag Compensation

We can also combine the advantages of PD/lead and PI/lag control.

Consider the previous example with new objectives.

G(s)=10(s0.2+1)(s0.5+1).

Now the new objectives are

  • phase margin PM60;
  • bandwidth ωBW2;
  • steady state error e()1% for tracking constant reference input.

Recall what we got before with lag alone.

  • Improved phase margin by adjusting K to decrease ωc.
  • Crossover frequency decreased to ωc0.5, whereas now we want a larger ωc because of ωcωBW2ωc; ωc=0.5 is too small.

We need to reshape the phase curve using lead control.

Step 1: Choose K to Adjust Crossover Frequency ωc

Using Figure 2, we can choose a K such that the crossover frequency ωc2.

We can check (done by Matlab),

M=|G(jω)|0.24 at ω=2

when K=1. Therefore we set K=10.244.1667. Roughly we can choose K=4 which gives an ωc slightly less than 2.

Step 2: Choose zlead and plead to Determine Phase Lead

With K=4 already selected, we generate a new Bode plot for KG(s)=4G(s) as shown in Figure 4.

bode KG=4G

Figure 4: Bode plot for KG(s)=4G(s)

We can check (done by Matlab),

4G(jω)160 at ω=2.

So the phase margin is PM=20. In fact, choosing K=4 increased ωc however it decreased the phase margin according to the phase plot.

By our design specification, we need at least 6020=40 from lead component D(s)=s+zs+p.

The choice of lead pole and zero must satisfy

zleadplead2, i.e., zleadplead=4.

If we choose zlead=1 then plead=4. The resulting lead component is D(s)=s+1s4+1. (Why not D(s)=s+1s+4? Hint: K=4 is already set; the DC gain of D(s) needs to be 1.)

We can double check the phase bump contributed by D(s)=s+1s4+1.

phase plot D(s)

Figure 5: Phase plot for D(s)=s+1s4+1

By Figure 5, there is not enough phase lead from D(s) by previous design attempt.

We can space zlead and plead farther apart. By widening the gap between z and p, we can make the maximum angle of D(s) increase. For example,

{zlead=0.8plead=5phase lead =46.

overlaid phase plot D(s)

Figure 6: Overlaid phase plot for both D(s)=s+1s4+1 and D(s)=s0.8+1s5+1

Step 3: Overall Design and Confirmation of Specifications

Now we need to evaluate the steady state tracking error with the chosen K, zlag and plag.

The equivalent open loop transfer function now is

KD(s)leadonlyG(s)=4s0.8+1s5+110(s0.2+1)(s0.5+1).KD(0)G(0)=40e()=11+KD(0)G(0)=11+40.

Hence the tracking error is not small enough. Specification requires error less than 1%=1100=11+99. Therefore

D(0)99KG(0)=9940.

Keeping the ratio zlagplag2.5 will suffice to achieve our goal. Note we need to choose lag pole/zero that are sufficiently small in order not to distort the phase by lead component too much. Another way to see it is that s+zlags+plag0 when both zlag and plag are small.

Now the overall controller becomes

KD(s)=4Dps0.8+1s5+1Dds+0.05s+0.02Di=DpDdDi,

where Dd is the lead component and Di is the lag component.

Notice KD(s) in Equation (2) is comparable to a PID controller in the sense that the lead component is an approximate PD control (associated with control of damping) and the lag component is an approximate PI control (associated with control of steady state error).

In summary, when we tried to design a lead-lag compensator, we started with Dp=K which shaped the crossover frequency. Then by the requirement of phase margin, we further stacked a lead component Dd=szlead+1splead+1 to Dp. At last by the requirement of steady state error, we appended a lag component Di=s+zlags+plag.

Frequency Domain Design Method: Advantages and Disadvantages

Based on the examples above, we see the design based on Bode plots is good for

  • easily visualizing the concepts;
  • evaluating the design and seeing which way to change it;
  • using experimental data. (Frequency response of an undocumented system can be measured experimentally, called system identification. cf. Lab 4 and Lab 6.)

loop shaping

Figure 7: Bode plot as a design guideline for loop shaping

While the design based off of Bode plots is very geometric, it is not so good for

  • exact closed loop pole placement (root locus might be more suitable for that);
  • deciding if a given K is stabilizing or not.
    • We can only measure how far we are from instability using gain margin or phase margin, if we know that the systems are stable.
    • However, we do not have a way of detecting whether a given K is stabilizing from frequency response data.

What we want is a frequency domain substitute for the Routh–Hurwitz criterion: the Nyquist stability criterion, which will be discussed in the next lecture.



PDF slides by Prof M. Raginsky and Prof D. Liberzon
Edited and HTML-ized by Yün Han

Last updated: 2018-03-18 Sun 22:18