TYPICAL CONTROL STRUCTURES IN OUR STUDY 1. 2. 3. 4. 5. 6. 7. Proportional Control P Proportional-Integral Control PI Proportional-Derivative Control PD Proportional-Integral-Derivative Control PID Phase Lag Control (Lag control) Phase Lead Control (Lead Control) Lead-Lag Control Proportional Control 15 Consider the system shown in Figure 1, where πΊ(π ) = (π +2)(π 2 +2π +5) R πΊ(π ) Y πΊπ (π ) = πΎ R Figure 1.a Uncontrolled G(s) Y Figure 1.b P-controlled system The Bode plot of the uncontrolled system is shown in Figure 2. Figure 3 shows the Bode plot when 8 proportional controller πΊπΆ (π ) = 10 is used. In Figure 4, πΊπΆ (π ) = 15. Bode Diagram Gm = 4.78 dB (at 3 rad/sec) , Pm = 31.8 deg (at 2.38 rad/sec) 20 Magnitude (dB) 0 -20 -40 -60 -80 Phase (deg) -100 0 -90 -180 -270 -2 10 -1 10 0 10 1 10 Frequency (rad/sec) Figure 2: Bode plot of uncontrolled system 2 10 Bode Diagram Gm = 10.2 dB (at 3 rad/sec) , Pm = Inf Bode Diagram Gm = -15.2 dB (at 3 rad/sec) , Pm = -45.3 deg (at 5.37 rad/sec) 0 40 -20 Magnitude (dB) Magnitude (dB) 20 0 -20 -40 -40 -60 -80 -100 -60 -120 0 Phase (deg) Phase (deg) -80 0 -90 -180 -90 -180 -270 -270 -2 -1 10 0 10 1 10 -2 2 10 10 10 -1 10 0 10 1 10 2 10 Frequency (rad/sec) Frequency (rad/sec) Figure 3: Proportional control πΊπΆ (π ) = 10 Figure 4: Proportional control πΊπΆ (π ) = 8 15 SUMMARY: Figures 3 and 4 show that the use of proportional control affects both the gain margin and the phase margin, and thus affecting both the steady-state behaviour of the system through the error constant, and the dynamic performance through the phase margin. It is thus not easy to achieve separate control objectives using proportional control. Therefore, the main use of proportional control in the frequency domain is in the adjustment of the overall system gain for the purpose of achieving a desired steady state error performance. Targeted use of proportional control in single objective design such as in the improvement of the gain margin, or the improvement of the phase margin or in the use of proportional control to meet a specific resonant peak requirement may also be carried out. Example : Select the proportional gain K for the system πΊ(π ) = πΎ(π +2) π (π +10)(π +12) to yield a steady state error of 0.04. Solution: πΎ(π +2) 2πΎ πΎ Recall, πΎπ£ = lim(π )π π (π +10)(π +12) = 120 = 60 π →0 1 Now, ππ£ = πΎ = 0.04 = π£ 60 πΎ 60 . Hence, πΎ = 0.04 = 1500.0 With proportional control added, the system transfer function becomes 1500(π +2) π (π +10)(π +12) πΎ(π +2) Practice: Evaluate the proportional gain required for the system πΊ(π ) = π 2 (π +10)(π +15) to have a steady-state error of 0.08. PD Control in the Frequency Domain πΎ For the PD controller πΊπΆ (π ) = πΎπ + πΎπ π = πΎπ (1 + πΎπ· π ) π πΎ In the frequency domain πΊπΆ (ππ) = πΎπ + πΎπ π = πΎπ (1 + πΎπ· ππ) π 2 πΎ πΎ Hence, |πΊπΆ (ππ)| = πΎπ √1 + (πΎπ· π) ; π(ππ) = π‘ππ−1 {πΎπ· π} π π As explained in the proportional controller design, the value of KP would probably be determined from the steady-state error performance requirements. So, it is normal to set KP=1 when making the Bode plot. Figure 5 shows the Bode plot of the transfer function of the PD Controller. 2 πΎπ· π) πΎπ With KP set at unity, |πΊπΆ (ππ)| = πΎπ √1 + ( πΎ = 0 ππ΅ πππ π(ππ) = 0; π€βππ π = 0 . When 2 πΎ πΎ π = πΎπ , |πΊπΆ (ππ)| = πΎπ √1 + (πΎπ· π) = √2 ππ΅ πππ π(ππ) = 450 . π = πΎπ is called the critical π· π π· frequency of the PD controller. 2 πΎ As π → ∞ , πΎπ √1 + (πΎπ· π) → ∞ . Also, πππ π(ππ) → 900. π Hence, the PD controller always contribute a positive phase angle to the phase margin of the controlled system. Figure 5. The Bode plot of a PD controller with KP=1 From the Bode plot, the PD controller is a high pass filer, with a resultant positive phase. The positive phase can be used to improve the phase margin of the given system. The positive magnitude can also be used to improve system bandwidth. The frequency based design approach with the PD controller is to set the corner frequency of the πΎ controller at π = πΎπ such that an effective improvement in the phase margin is realised at the new π· gain cross-over frequency. Some trial and error is required. The use of the PD controller: 1. 2. 3. 4. 5. 6. Improves damping, reducing the maximum overshoot. Reduces the rise time and the settling time Increases the bandwidth Improve The Gain margin, Phase margin and the Resonant peak. Worsens the problems of high frequency noise. May require a large capacitor for the implementation of the controller. PI Control in the Frequency Domain For the PI controller πΊπΆ (π ) = πΎ πΎπ + π πΌ = πΎπΌ +πΎπ π π πΎ 1+ πΎπ π = πΎπΌ ( πΌ π ) πΎ 1+ πΎπ ππ In the frequency domain πΊπΆ (ππ) = πΎπΌ ( 2 ππΎπ ) πΎπΌ πΎπΌ √1+( Hence, |πΊπΆ (ππ)| = π πΌ ππ ) πΎπ π }− πΎπΌ ; π(ππ) = π‘ππ−1 { 900 Note: as π → 0, |πΊπΆ (ππ)| → ∞. This infinite DC gain ensures that the PI controller will eliminate all steady state error. Moreover, because of this infinite magnitude at the DC or zero frequency value, the proportional gain does not need to be adjusted to a very high value in meeting the steady-state πΎ error requirement of the given system. As π → ∞, 20πππ |πΊπΆ (ππ)| → 20 log10 πΎ πΌ and π(ππ) → 0 . π A Bode plot of the PI controller is shown in Figure 6. Figure 6: Bode plot of PI control. Phase Lead Control π +π The lead compensator has the transfer function πΊπΆ (π ) = π +π ; π > π In the frequency domain, πΊπΆ (ππ) = π+ππ . π+ππ The frequency response yields: a magnitude response |πΊπΆ (ππ)| = (i) 10log(π 2 + π2 ). |πΊπΆ (ππ)| = √π 2 √π2 √π 2 +π2 √π 2 +π2 or 20 log10|πΊπΆ (ππ)| = 10 log(π2 + π2 ) − When π = 0, the DC gain of the compensator is obtained to be = π π < 1 a DC attenuation; equivalently, the lead control network introduces a negative dB gain in the frequency ranges π ≈ 0 . Hence, the lead controller reduces the DC gain of the system, and worsens the steady-state error of the system. (ii) The phase-frequency response of the lead controller is obtained to be π π π(ππ) = π‘ππ−1 { π } − π‘ππ−1 { π }. When π = 0, π(ππ) = 0. The value of the phase angle of the lead controller increases until it reaches a maximum value of ππππ₯ at a frequency When ππππ₯ . After the frequency ππππ₯ , the phase angle of the lead controller begins to reduce, and as lim π(ππ) = 0. However, because the operating frequency of the π→∞ controller never reaches infinity, a non-zero phase angle value subsists at the high frequency values. Bode Diagram 0 Bode Diagram Magnitude (dB) Magnitude (dB) 0 -2 -4 -0.5 -1 -1.5 -6 -2 8 -8 20 Phase (deg) 6 Phase (deg) 15 10 4 2 5 0 0 -1 0 10 1 10 2 10 10 0 1 10 2 10 10 Frequency (rad/sec) Frequency (rad/sec) Figure 7: The Bode plot of two generic lead controllers (iii) To compensate for the DC attenuation of the lead controller on the steady-state error, a factor 1 π½ = π π > 1 is added to the controller gain. For the lead compensators shown in Figure 7, the gain-adjusted equivalent frequency responses are shown in Figure 8. For the gain adjusted lead controller, the magnitude of the frequency response at ππππ₯ is known to be |πΊπΆ (πππππ₯ )| = 1 √π½ , which may be expressed in dB. The idealisation of the design parameters of the lead controller is shown in Figure 9. The transfer function of lead 1 controller with the DC gain adjustment is given by πΊπΆ (ππ) = 1 π +π π½ π + 1 π½π . Bode Diagram 8 2 4 1.5 Magnitude (dB) Magnitude (dB) Bode Diagram 6 2 1 0.5 0 20 0 8 6 Phase (deg) Phase (deg) 15 10 5 4 2 0 -1 10 0 1 10 10 0 2 0 10 1 10 10 Frequency (rad/sec) 2 10 Frequency (rad/sec) Figure 8: The Bode plot of two lead controllers with DC gain adjustments. 1 √π½ 1 π 1 π½π 1 π 1 π½π Figure 9: Idealisation of the design parameters of the lead controller Supposed that a given system has a phase margin value of ππ , and the design objective is to improve the phase margin to a higher value ππ using a lead controller. Then, for the implementation of the lead controller for the given phase margin requirement, let the additional phase angle required to be provided by the controller be π ( determined by subtracting the existing phase margin of the given system from ππ from the desired (or given) phase margin ππ ). Then, π = ππ − ππ . Usually, a random number 50 < π < 120 is the added to the π to determine the maximum phase angle ππππ₯ = ππ − ππ + π that the lead controller may provide. The rest of the design steps for the lead controller are as follows: 1−π πππ 1. Determine the value of π½ using : π½ = 1+π ππππππ₯ πππ₯ 2. Evaluate the dB gain of the controller at the ππ using |πΊπΆ (πππππ₯ )| = 20 log10 1 √π½ 3. Find on the magnitude plot of the given system where the gain of the given system is −20 log10 1 √π½ . Then record the frequency where such negative gain is obtained. That particular value of frequency is ππππ₯ 4. Evaluate π = 1 ππππ₯ √π½ 5. With the values of π½ and T determined, the transfer function of the lead controller is then 1 1 π +π 1 π + written to be πΊπΆ (ππ) = π½ . π½π 1 NOTE: moving − π½π further from the origin and from the zero of the lead controller should reduce 1 the maximum overshoot. However, if the value of T is so small, making − π½π very large, then, the rise time and settling time will increase instead. Setting − 1 π towards the origin improves the rise time and the settling time. On the other hand, the maximum overshoot begins to increase once − 1 π is too close the origin. In summary, the lead controller may increase damping, improve the rise time and the settling time. Phase lead control does not affect the steady state performance. Also, where the phase margin improvement required is very large, it might be better to use two lead control networks instead of one. Phase Lag Control in the Frequency Domain π +π The leg compensator has the transfer function πΊπΆ (π ) = π +π ; π > π π+ππ In the frequency domain, πΊπΆ (ππ) = π+ππ. The frequency response yields: (i) A magnitude response |πΊπΆ (ππ)| = √π 2 +π2 √π2 +π2 (π 2 +π2 ) or 20 log10|πΊπΆ (ππ)| = 10 log (π2 +π2 ) . When π = 0, the DC gain of the compensator is obtained to be |πΊπΆ (ππ)| = √π 2 √π2 π =π>1 a DC amplification; equivalently, the lag control network introduces a positive dB gain in the frequency ranges π ≈ 0 . (ii) The phase-frequency response of the lag controller is obtained to be π π π(ππ) = π‘ππ−1 { π } − π‘ππ−1 { π }. When π = 0, π(ππ) = 0. For 0< π, π(ππ) becomes more negative. When π → ∞, π(ππ) → 0 . Hence, the value of the phase angle of the lag controller decreases from zero, reaches a minimum in the midfrequencies, and then increasing towards zero at high frequencies, as shown in Figure 10. (iii) To eliminate the for DC gain introduced by the lag controller, on the steady-state error, π a factor πΌ = π > 1 is usually added to the controller gain. Typical frequency characteristics of two DC-gain adjusted lag controllers are shown in Figure 11. The 1 1 π +π 1 π + transfer function of a gain-adjusted lag controller is given by πΊπ (π ) = πΌ . πΌπ In the gain-adjusted lag controller, controller magnitude reaches a final negative dB magnitude. The phase angle turns to zero, and is usually restricted in the range −120 < π < −50 . In the lag controller design, a random angular value in the range of 50 < π < 120 is added the desired phase margin value. Bode Diagram Bode Diagram 1 8 Magnitude (dB) Magnitude (dB) 0.8 6 4 2 0.4 0.2 0 -1 0 0 -1.5 Phase (deg) -5 Phase (deg) 0.6 -10 -15 -2 -2.5 -3 -3.5 -20 -1 10 0 1 10 0 2 10 1 10 10 10 Frequency (rad/sec) Frequency (rad/sec) Figure 10: Characteristics of two basic lag controllers. Bode Diagram 0 Bode Diagram -0.2 Magnitude (dB) Magnitude (dB) 0 -2 -4 -6 -8 0 -0.6 -0.8 -1 -5 -1.5 Phase (deg) Phase (deg) -0.4 -10 -15 -2 -2.5 -3 -20 -1 10 0 1 10 10 Frequency (rad/sec) 2 10 -3.5 0 1 10 10 Frequency (rad/sec) Figure 11. Characteristics of lag controllers with DC gain adjustment. Consequently, the phase contribution of the lag controller in compensation is not significant. The negative dB magnitude of the controller is the main factor used in compensating system dynamics. To better understand the lag controller design process, the frequency characteristics of the 1 1 controller are idealised as shown in Figure 12, showing the frequencies π and πΌπ , and the negative gain. This controller can be used to improve the phase margin (transient characteristics) of a given system, without modifying the existing steady state behaviour. Figure 12: Idealisation of lag frequency characteristics in system compensation. To design a lag controller to meet a given transient performance: 1. Evaluate the value of the system gain required to achieve the desired steady-state. 2. Convert the given performance specification into an equivalent phase margin ππ value based on the second-order system approximation. Then add a random angle value in the range 50 < π < 120 to cancel the small lagging phase of controller. The resultant phase margin to compensate with the lag controller is ππππ₯ = ππ + π. 3. Make the Bode plot or Nichols plot of the uncompensated given system with the steady-state error constant as determined in step (1). 4. Check on the phase characteristics of the uncompensated system, and determine the frequency where the uncompensated system has an actual phase angle of π(ππ) = −1800 + ππππ₯ . Record the frequency ππππ₯ corresponding this the calculated phase angle value π(ππ) . 5. At the corresponding frequency value of ππππ₯ , record the value of the gain of the uncompensated system |πΊ(πππππ₯ | . It is usually easier to work with the dB gain π(ππ΅) = 20 log10|πΊ(πππππ₯ | . 6. The lag controller must introduce −20 log10|πΊ(πππππ₯ | = −π ππ΅ at the frequency πππ₯ to make the resultant magnitude on the frequency plot of the uncontrolled system to become zero. 7. The pole of the lag controller is then located at 1 πΌπ = ππππ₯ 10 . 1 of the lag controller, a line of −20ππ΅/π·πππππ is drawn from −π ππ΅ , π 1 starting from the pole πΌπ until the line reaches the zero dB level. The frequency point where this line 1 touches the 0dB line is the value of π . 8. To locate the zero 9. Mathematically, π Alternatively, log 10 πΌ 1 π is evaluated using the slope value of -20dB. Hence, π = −20 → log10 πΌ = − 20 ; → πΌ = 10−π⁄20 0−(π) 1 π log10 −log10 1 ππ = −20 . Hence, all the parameters of the lag controller are determined. The lag control: Improves relative stability, decreases the bandwidth, increases both the settling time and the rise time, and worsens the sensitivity performance of the given system. The Lead-Lag Control The lag controller always reduces the bandwidth of the controlled system. So, to meet very stringent transient performance requirements, sometimes it is necessary to combine lead and lag controllers for the control of the given system. In general, the phase lead controller improves the bandwidth and yields a shorter rise time; the phase lag controller is then used to improve the damping: that is, a part of the design objective is achieved by the lead controller, and the remaining of the objective is then achieved using lag control. 1 1 π +π1 The basic transfer function of the lead-lag controller would be given by πΊπΆ (ππ) = π½ π + 1 π½π1 π₯ 1 π2 1 π + πΌπ2 π + Such a lead-lad controller has four separate parameters (πΌ, π½, π1 , π2 ) to design for, creating a significant difficulty in the controller design procedure. Simplified structures of the lead-lag controller are often preferred. Note that lead-lag controller effectively consists of two second-order transfer π 2 +π π +π function, one in the numerator, and the second in the denominator πΊπ (π ) = πΎ π 2 +π1 π +π2 . 1 2 One form of the simplified lead-lag controller is given by: πΊπΆ (π ) = πΊπΏπππ (π )πΊπππ (π ) = 1 π1 πΎ π + π1 π + . 1 π2 1 π + πΎπ2 π + ; πΎ > 1 and has only three parameters to determine. Lead-Lag Controller design by Pole-Cancellation: The transfer functions of most systems contain one or more complex poles. The dynamic performance problems of transfer functions could always be traced to the poor location of some of these complex poles in the s-plane. For a given control system πΊ(π ) with a pair of poorly-located poles , when π 2 +π π +π subjected to lead-lag control, the resultant transfer function becomes πΎπΊ(π )π₯ π 2 +π1 π +π2 . An appropriate choice of the numerator polynomial π 2 + π1 π + π2 , it is possible to 1 2 cancel the problematic poles of G(s), and then replace the cancelled poles them with the poles of the lead-lag controller, where these new poles are chosen to guarantee the desired performance improvement. Much more, if we set πΎ1 = 1, π2 = π2 = ππ2 , the transfer function of the lead-lag controller becomes πΊπ (π ) = π 2 + π1 π + ππ2 π 2 + 2ππ ππ π + ππ2 = π 2 + π1 π + ππ2 π 2 + 2ππ ππ π + ππ2 Then, πΊπ (ππ) = ππ2 − π2 + π2ππ ππ π ππ2 − π 2 + π2ππ ππ π Yielding |πΊπ (ππ)| = 2π π π √(ππ2 − π 2 )2 + 4ππ2 ππ2 π 2 √(ππ2 − π 2 )2 + 4ππ2 ππ2 π 2 2π π π π And π(ππ) = π‘ππ−1 { π2π−ππ 2 } − π‘ππ−1 { π2π−π 2} π π And it can be shown that: |πΊπ (π = 0)| = 1; |πΊπ (π = ππ )| = ππ ; ππ |πΊπ (π → ∞)| = 1 π(π = 0) = 00 ; π(π = ππ ) = 0; π(π → ∞) = 0 This specific structure of the lead-lag controller is called the Notch Filter, and it has the frequency characteristics shown in Figure 13. Figure 13: The frequency characteristics of the Notch Filter. RECALL: The lead controller design for a phase margin of 600. 1 Lead controller transfer function πΊπΆ (π ) = 1 π +π π½ π + 1 π½π For the gain margin ππππ₯ = 600 , π½= 1 − π ππππππ₯ 1 − sin 60 = = 0.0718 1 + π ππππππ₯ 1 + sin 60 The lead controller introduces a gain: [πΊπ (ππ)] = 20 log10 1 √π½ = 20 log10 1 0.0718 = 11.439ππ΅ Location for the maximum angle of the lead controller Bode Diagram Gm = 6.02 dB (at 1.73 rad/sec) , Pm = 18.3 deg (at 1.19 rad/sec) 0 Magnitude (dB) -10 System: untitled1 Frequency (rad/sec): 2.34 Magnitude (dB): -11.4 -20 -30 -40 -50 Phase (deg) -90 -135 -180 -225 0 10 Frequency (rad/sec) Now, from the Bode plot, ππππ₯ = 2.34 πππ/π 1 1 π π½π Hence, = ππππ₯ √π΅ = 0.627 πππ/π ; πΊπΆ (π ) = 13.9282 = 8.7326 πππ/π π + 0.627 13.9281π + 8.733 = π + 8.7326 π + 8.7326 The Bode plot of the lead controller is shown below. Bode Diagram Magnitude (dB) 20 System: untitled1 Frequency (rad/sec): 2.32 Magnitude (dB): 11.4 15 10 5 0 Phase (deg) 60 System: untitled1 Frequency (rad/sec): 2.37 Phase (deg): 60 30 0 -2 10 -1 0 10 10 Frequency (rad/sec) BODE plot of Controlled System The controlled system becomes: πΊ ∗ (π ) = 6(13.9281π +8.733) π (π +1)(π +3)(π +8.7326) = 83.5692π +52.398 π (π +1)(π +3)(π +8.7326) 1 10 2 10 Bode Diagram Gm = 12.7 dB (at 5.52 rad/sec) , Pm = 45.6 deg (at 2.32 rad/sec) Magnitude (dB) 50 0 -50 -100 -150 -45 Phase (deg) -90 -135 -180 -225 -270 -1 0 10 1 10 2 10 3 10 10 Frequency (rad/sec) Step response of controlled system Step Response 1.4 1.2 Amplitude 1 0.8 0.6 0.4 0.2 0 0 1 2 3 4 5 6 7 Time (sec) EXAMPLE LAG CONTROLLER DESIGN FOR THE GIVEN SYSTEM πΊ(π ) = 6 π (π +1)(π +3) Design a lag controller to achieve a steady-state error 0f o,02 and a phase margin of 600 . For the steady-state error: πΎπ = lim π π →0 0.01 6 π (π +1)(π +3) = 6 1π₯3 1 = 2; ππ£ = = 0.5 β« 2 For the steady-sate error of 0.01, πΎπ£πππ€ = 1 0.01 = 100 → πΎπ = With the steady state requirement achieved, πΊ ∗ (π ) = 100 6 100 π (π +1)(π +3) Bode Diagram Gm = -18.4 dB (at 1.73 rad/sec) , Pm = -42.1 deg (at 4.31 rad/sec) Magnitude (dB) 100 50 0 -50 -100 -90 Phase (deg) -135 -180 -225 -270 -2 10 -1 10 0 10 1 10 2 10 Frequency (rad/sec) Step response with gain adjustment for a steady state error of 0.01 6 Step Response x 10 2.5 2 Amplitude 1.5 1 0.5 0 -0.5 -1 0 2 4 6 8 10 12 14 Time (sec) Bode Diagram Gm = -18.4 dB (at 1.73 rad/sec) , Pm = -42.1 deg (at 4.31 rad/sec) System: untitled1 Frequency (rad/sec): 0.263 Magnitude (dB): 41.8 Magnitude (dB) 100 50 0 -50 -100 -90 System: untitled1 Frequency (rad/sec): 0.263 Phase (deg): -110 Phase (deg) -135 -180 -225 -270 -2 10 -1 10 0 10 Frequency (rad/sec) Lag controller 1 10 2 10 1 1 π +π πΊπΆ (π ) = ;πΌ > 1 πΌπ + 1 πΌπ 41.8 Now, πΌ = 10 20 = 123.0269 → 1 Also, π = 0.0263; 1 πΌπ 1 πΌ = 0.0081 = 0.0002137; πΊπΆ (π ) = 0.0081 π + 0.0263 ;πΌ > 1 π + 0.0002137 Bode Diagram 50 Magnitude (dB) 40 30 20 10 Phase (deg) 0 0 -45 -90 -5 10 -4 10 -3 10 -2 10 Frequency (rad/sec) Lag controller with a gain adjustment -1 10 0 10 Bode Diagram 10 Magnitude (dB) 0 -10 -20 -30 -40 Phase (deg) -50 0 -45 -90 -5 -4 10 -3 10 -2 10 -1 10 10 0 10 Frequency (rad/sec) Lag Controlled system Bode Diagram Gm = 23.1 dB (at 1.7 rad/sec) , Pm = 64.7 deg (at 0.262 rad/sec) 150 Magnitude (dB) 100 50 0 -50 -100 -150 -90 Phase (deg) -135 -180 -225 -270 -5 10 -4 10 -3 10 -2 10 -1 10 Frequency (rad/sec) 0 10 1 10 2 10 Step Response 1.4 1.2 Amplitude 1 0.8 0.6 0.4 0.2 0 0 20 40 60 Time (sec) 80 100 120