Control Systems by Dr. Kollu Ravindra Associate Professor EEE Department University College of Engineering Kakinada (A) JNTU Kakinada 6/21/2020 1 Topics covered till now: • Root locus method • Effect of addition of poles and zeros on Root locus • Non-minimum phase systems • P, PI, PD, PID controllers • Sinusoidal transfer function, Bode diagrams, Transfer function from Bode diagrams • Polar or Nyquist plot • Nyquist stability criterion • Relative stability analysis • Correlation between frequency response and transient response • Design of compensators Topics to be covered in this lecture: • Design of compensators (continued..) 6/21/2020 2 References: 1.Modern control engineering- K Ogata 2. Control systems Engineering-Norman S. Nise 3. Control systems Principles and Design- M. Gopal 4. https://nptel.ac.in/courses/108/106/108106098/ 5. https://in.mathworks.com/help/control/ Disclaimer: The material presented in this presentation is taken from standard textbooks and internet sources and the presenter is acknowledging all the authors 6/21/2020 3 Characteristics of Lead Compensators 1 ๐ +๐ ๐๐ + 1 ๐บ๐ (๐ ) = ๐พ๐ ๐ผ = ๐พ๐ 1 ๐ผ๐๐ + 1 ๐ + ๐ผ๐ In the complex plane, a lead compensator has a zero at pole at (0 < ๐ผ < 1) 1 ๐ =– ๐ ๐ =− 1 ๐ผ๐ α is the attenuation factor of the lead compensator 6/21/2020 4 Polar plot of a lead compensator ๐๐๐ + 1 ๐บ๐ (๐๐) = ๐พ๐ ๐ผ ๐๐๐ผ๐ + 1 (0 < ๐ผ < 1) with ๐พ๐ = 1 6/21/2020 5 Bode plot of a lead compensator ๐๐๐ + 1 ๐บ๐ (๐๐) = ๐พ๐ ๐ผ ๐๐๐ผ๐ + 1 (0 < ๐ผ < 1) let ๐พ๐ ๐ผ = ๐พ ๐บ๐ (๐๐) ๐๐๐ + 1 = ๐พ ๐๐๐ผ๐ + 1 • The lead compensator is a high-pass filter and provides a phase lead to all sinusoidal frequencies. ๐ผ=0.1 6/21/2020 • Unlike the proportional controller the lead compensator raises the bode-magnitude plot at high frequencies without disturbing the low frequencies. 6 There is a frequency ๐๐ at which the lead compensator provides maximum phase lead. This frequency is important in the design process. The phase response of lead compensator ๐๐ is given by ๐๐ = ∠๐บ๐ (๐๐) ๐พ = tan−1 ( ๐๐) − tan−1 ( ๐ผ๐๐) ๐๐๐ ๐ ๐ผ๐ = − =0 2 2 2 2 2 ๐๐ 1+๐ ๐ 1+๐ผ ๐ ๐ ๐ ⇒ 1 + ๐ผ 2 ๐2 ๐ 2 = ๐ผ + ๐ผ๐2 ๐ 2 ⇒ (1 − ๐ผ) = ๐ผ๐2 ๐ 2 − ๐ผ 2 ๐2 ๐ 2 = (1 − ๐ผ)๐ผ๐2 ๐ 2 ⇒ ๐ผ๐2 ๐ 2 = 1 1 ⇒๐= ๐ผ๐ The maximum phase lead occurs at the frequency 6/21/2020 1 ๐๐ = ๐ผ๐ 7 This frequency is the geometric mean of the two cut –off frequencies of the compensator 1 1 , ๐ ๐ผ๐ 1 1 1 log ๐๐ = log + log 2 ๐ ๐ผ๐ The maximum phase lead contributed by the lead compensator is ๐๐ แ ๐๐ = ๐๐ = ∠๐บ๐ (๐๐๐ ) = tan−1 ( ๐๐ ๐) − tan−1 ( ๐ผ๐๐ ๐) = tan−1 −1 = tan = sin−1 6/21/2020 1 − tan−1 ( ๐ผ) ๐ผ 1 − ๐ผ ๐ผ 1 1+ ๐ผ ๐ผ 1−๐ผ 1+๐ผ −1 = tan 1−๐ผ 2 ๐ผ 8 The lead compensator provides a maximum phase lead of ๐๐ = sin−1 1−๐ผ 1 ๐๐ก ๐๐ = 1+๐ผ ๐ผ๐ Since The log magnitude at this frequency is ๐บ๐ (๐๐) 20๐๐๐ = ๐พ ๐บ๐ (๐๐) 20๐๐๐ ๐พ 6/21/2020 1 + ๐๐ 1 + ๐ผ๐๐ ๐=๐๐ ๐บ๐ (๐๐) ๐พ = ๐๐๐+1 ๐๐๐ผ๐+1 2 2 1 = 20 log ๐ผ 9 Lead Compensation Techniques Based on the Frequency-Response Approach: The primary function of the lead compensator is to reshape the frequency-response curve to provide sufficient phase-lead angle to offset the excessive phase lag associated with the components of the fixed system. Performance specifications are given in terms of phase margin, gain margin, static velocity error constants, and so on. The procedure for designing a lead compensator by the frequency-response approach for the system shown in figure may be stated as follows: 6/21/2020 10 Visualizing the effect of lead compensator 6/21/2020 11 Visualizing the effect of lead compensator 6/21/2020 12 Design steps 1. Assume the following lead compensator: 1 ๐๐ + 1 ๐ ๐บ๐ (๐ ) = ๐พ๐ ๐ผ = ๐พ๐ 1 ๐ผ๐๐ + 1 ๐ + ๐ผ๐ ๐ + (0 < ๐ผ < 1) where ๐พ๐ ๐ผ = ๐พ Then ๐๐ + 1 ๐บ๐ (๐ ) = ๐พ ๐ผ๐๐ + 1 6/21/2020 13 The open-loop transfer function of the compensated system is ๐บ๐ ๐ ๐บ ๐ = ๐พ = where ๐๐ + 1 ๐บ๐ (๐ ) = ๐พ ๐ผ๐๐ + 1 ๐๐ + 1 ๐๐ + 1 ๐บ ๐ = ๐พ๐บ ๐ ๐ผ๐๐ + 1 ๐ผ๐๐ + 1 ๐๐ + 1 ๐บ1 (๐ ) ๐ผ๐๐ + 1 ๐บ1 ๐ = ๐พ๐บ(๐ ) Determine gain K to satisfy the requirement on the given static error constant. 2. Using the gain K thus determined, draw a Bode diagram of ๐บ1 (๐๐) , the gain adjusted but uncompensated system. Evaluate the phase margin. 6/21/2020 14 3. Determine the necessary phase-lead angle to be added to the system. Add an additional 50 to 120 to the phase-lead angle required, because the addition of the lead compensator shifts the gain crossover frequency to the right and decreases the phase margin. 4. Determine the attenuation factor α. Determine the frequency where the magnitude of the 1 ๐ผ 1 ๐ผ๐ uncompensated system ๐บ1 (๐๐) is equal to −20 log( ) Select this frequency as the new gain crossover frequency. This frequency corresponds to ๐๐ = and the maximum phase shift ∅๐ occurs at this frequency. 6/21/2020 15 5. Determine the corner frequencies of the lead compensator as follows: Zero of lead compensator: Pole of lead compensator: 1 ๐= ๐ ๐= 1 ๐ผ๐ 6. Using the value of K determined in step 1 and that of α determined in step 4, calculate constant ๐พ๐ from ๐พ ๐พ๐ = ๐ผ 7. Check the gain margin to be sure it is satisfactory. If not, repeat the design process by modifying the pole–zero location of the compensator until a satisfactory result is obtained. 6/21/2020 16 ๐ . ๐(๐+๐) Consider a unity feedback system whose G(s)= It is desired to design a compensator for the system so that static velocity error constant (๐ฒ๐ ) is 20 ๐๐๐−๐ , the phase margin is at least ๐๐๐ and the gain margin is at least 10 dB. ANSWER: We shall use a lead compensator of the form 1 ๐๐ + 1 ๐ ๐บ๐ (๐ ) = ๐พ = ๐พ๐ 1 ๐ผ๐๐ + 1 ๐ + ๐ผ๐ ๐ + Where ๐พ = ๐พ๐ ๐ผ The compensated system will have the open-loop transfer function ๐บ๐ ๐ ๐บ(๐ ) 4 G(s)= ๐ (๐ +2) 4๐พ ๐บ1 ๐ = ๐พ๐บ ๐ = ๐ ๐ +2 6/21/2020 17 The first step in the design is to adjust the gain K to meet the steady-state performance specification. For that ๐พ๐ฃ =20 ๐ ๐๐ −1 ๐๐ + 1 ๐ 4๐พ ๐พ๐ฃ = lim ๐ ๐บ๐ ๐ ๐บ ๐ = lim ๐ ๐บ1 ๐ = lim = 2๐พ = 20 ๐ →0 ๐ →0 ๐ผ๐๐ + 1 ๐ →0 ๐ ๐ + 2 ๐พ = 10 With K=10, the compensated system will satisfy the steady-state requirement. 6/21/2020 18 4 The Bode diagram of ๐บ ๐๐ = ๐๐ ๐๐ + 2 40 ๐บ1 ๐๐ = ๐๐ ๐๐ + 2 Uncompensated system G(s): Phase margin (ϒ) is 51.80 , gain cross over frequency (๐๐๐ ) is 1.57 rad/sec. G.M is +∞ dB Gain adjusted uncompensated system ๐ฎ๐ (s) :Phase margin (ϒ) is 170 degrees, gain cross over frequency (๐๐๐ ) is 6.2 rad/sec and gain6/21/2020 margin is +∞ dB 19 6/21/2020 20 • A phase margin of ๐๐๐ implies that the system is quite oscillatory. Thus, satisfying the specification on the steady state yields a poor transient-response performance. • But the requirement is to have a phase margin of at least 50°. • Hence there is a need to find the additional phase lead necessary to satisfy the relative stability requirement is 330 . • To achieve a phase margin of 500 without decreasing the value of K, the lead compensator must contribute the required phase angle. • Since the addition of a lead compensator modifies the Bode magnitude plot, it is seen that the gain crossover frequency will be shifted to the right. We must offset the increased phase lag of ๐บ1 ๐๐ due to this increase in the gain crossover frequency. • 50 has been added to compensate for the shift in the gain crossover frequency. • Hence ∅๐ , the maximum phase lead required, is approximately taken as 380 6/21/2020 21 sin ∅๐ 1−๐ผ = 1+๐ผ ∅๐ = 380 corresponds to ๐ผ = 0.24. Then determine the corner frequencies ๐ = 1/๐ and ๐ = 1/(๐ผ๐) of the lead compensator. To do so, we first note that the maximum phase-lead angle ∅๐ occurs at the geometric mean of the two corner frequencies, or ๐ = 1/(๐ผ๐) . The amount of the modification in the magnitude curve at ๐ = 1/(๐ผ๐) due to the inclusion of the term (๐๐ + 1)/(๐ผ๐๐ + 1) is ๐๐๐ + 1 ๐๐๐ผ๐ + 1 20 ๐๐๐ 6/21/2020 1 1 ๐ผ = = 1 ๐ผ 1 + ๐๐ผ ๐ผ 1+๐ ๐=1Τ ๐ผ๐ 1 1 = 20 ๐๐๐ = 6.2 ๐๐ต ๐ผ 0.24 22 ๐บ1 (๐ ) =– 6.2 ๐๐ต corresponds to ๐ = 9 ๐๐๐/๐ ๐๐. We shall select this frequency to be the new gain crossover frequency ๐๐๐ . ๐๐๐ = 1/( ๐ผ๐) 1 = ๐ผ๐๐๐ = 4.41 ๐ ๐๐๐ 1 = = 18.4 ๐ผ๐ ๐ผ The lead compensator thus determined is ๐บ๐ ๐ = ๐พ๐ 6/21/2020 ๐ + 4.41 0.227๐ + 1 = ๐พ๐ ๐ผ ๐ + 18.4 0.054๐ + 1 23 where the value of ๐พ๐ is determined as ๐พ๐ = ๐พ 10 = = 41.7 ๐ผ 0.24 Thus, the transfer function of the compensator becomes ๐ + 4.41 0.227๐ + 1 ๐บ๐ ๐ = 41.7 = 10 ๐ + 18.4 0.054๐ + 1 ๐บ๐ ๐ ๐บ๐ ๐ ๐บ1 ๐ = 10๐บ ๐ = ๐บ๐ ๐ ๐บ(๐ ) ๐พ 10 6/21/2020 24 The magnitude curve and phase-angle curve for 6/21/2020 ๐บ๐ ๐๐ 10 are shown in Figure . 25 The compensated system has the following open-loop transfer function: ๐บ๐ ๐ ๐บ ๐ = 41.7 ๐ + 4.41 4 ๐ + 18.4 ๐ ๐ + 2 • Bandwidth is approximately equal to the gain crossover frequency. The lead compensator causes the gain crossover frequency to increase from 6.2 ๐ก๐ 9 ๐๐๐/๐ ๐๐. It means there is an increase in bandwidth which indicates an increase in the speed of response. • The phase and gain margins are seen to be approximately 500 and +∞ dB, respectively. • The compensated system shown in Figure therefore meets both the steady-state and the relativestability requirements. 6/21/2020 26 For Type1 system considered, the value of the static velocity error constant ๐พ๐ฃ corresponds to the frequency where the initial – 20 − ๐๐ต/๐๐๐๐๐๐ slope line intersects the 0 dB line. Slope of the magnitude curve near the gain crossover frequency changes from – 40 ๐๐ต/๐๐๐๐๐๐ to –20 ๐๐ต/๐๐๐๐๐๐. 6/21/2020 27 The closed-loop transfer functions of the uncompensated system ๐ถ(๐ ) ๐บ(๐ ) 4 = = ๐ (๐ ) 1 + ๐บ(๐ ) ๐ 2 + 2๐ + 4 4 ๐บ ๐ = ๐ ๐ +2 ๐ + 4.41 ๐บ๐ ๐ = 41.7 ๐ + 18.4 The closed-loop transfer function of the compensated system ๐ถ(๐ ) ๐บ๐ ๐ ๐บ ๐ 166.8๐ + 735.588 = = 3 ๐ (๐ ) 1 + ๐บ๐ ๐ ๐บ ๐ ๐ + 20.4๐ 2 + 203.6๐ + 735.588 6/21/2020 28 Polar plots of the gain-adjusted but Uncompensated open-loop transfer function ๐บ1 , Uncompensated system G and compensated open loop transfer function ๐บ๐ ๐บ. 6/21/2020 29 6/21/2020 30 Problems on compensators 1. A lead compensator used for a closed loop controller has the following transfer function ๐ ๐ ๐ (1+ ) ๐ ๐พ(1+ ) . For such a lead compensator a) a < b 6/21/2020 b) b < a c) a > Kb c) a < Kb 31 2. The transfer function of a compensator is given as ๐บ๐ ๐ = (i) ๐บ๐ ๐ is a lead compensator if a) a < b b) b < a c) a > Kb (๐ +๐) . (๐ +๐) c) a < Kb (ii) The phase of the above lead compensator is maximum at a) 2 rad/s b) 3 rad/s c) 6 rad/s 6/21/2020 d) 1/ 3 rad/s 32 3. For the given network, the maximum phase lead ๐๐ ๐๐ a) sin−1 c) sin−1 ๐ธ0 ๐ ๐ 2 = ๐ธ๐ ๐ ๐ 2 ๐คโ๐๐๐ ๐ = ๐ 1 ๐ถ ๐ 1 2๐ 2 ๐ 1 ๐ 1 +3๐ 2 ๐๐ = 6/21/2020 ๐ 1 ๐ 1 +2๐ 2 d) sin−1 ๐ 1 2๐ 2 ๐ถ1 1 (๐ 1 ๐ถ๐ + 1) ๐ 1 ๐ถ = ๐ + ๐ 1 ๐ 1 ๐ถ๐ + 1 + ๐ 1 ๐ + 2 ๐ 1 ๐ 2 ๐ถ ๐ + 1 ๐ธ0 ๐ ๐ = 1 ๐ธ๐ ๐ ๐ + ๐ผ๐ ๐ + sin−1 b) sin−1 ๐ 2 ๐ผ= <1 ๐ 1 + ๐ 2 1−๐ผ 1+๐ผ 33 4. ๐บ๐ ๐ = (๐ +๐) (๐ +๐) is a lead controller to obtain maximum phase lead angle of 300 . The values of ‘a’ and ‘b’ respectively are a) a=2, b=6 6/21/2020 b) a =1, b=3 c) a=0.1, b=0.3 d) All the above 34 Improvement of steady state response: Proportional+Integral Controller: ๐ก ๐พ๐ u ๐ก = ๐พ๐ ๐ ๐ก + เถฑ ๐ ๐ก ๐๐ก ๐๐ 0 ๐(๐ ) 1 = ๐พ๐ (1 + ) ๐ธ(๐ ) ๐๐ ๐ ๐(๐ ) ๐พ๐ = ๐พ๐ + ๐ธ(๐ ) ๐ Where ๐พ๐ = ๐พ๐ ๐๐ Features: Improves steady-state performance Rejects constant disturbance inputs 6/21/2020 35 Active circuit realization of Proportional+Integral controller ๐๐ (๐ ) ๐ 2 =− ๐๐ (๐ ) ๐ 1 6/21/2020 1 ๐ +๐ ๐ถ 2 ๐ 36 Lag Network realization using Passive circuits ๐ 2 + 1 ๐ถ๐ ๐ธ0 ๐ = 1 ๐ธ๐ ๐ ๐ 1 + ๐ 2 + ๐ถ๐ 1 = ๐ 1 + ๐ 2 ๐ 2 1 ๐ +๐ ๐ถ 2 1 ๐ + ๐ +๐ 1 2 ๐ 2 ๐ถ ๐ 2 1 ๐ธ0 ๐ 1 ๐ = ๐ธ๐ ๐ ๐ฝ ๐ + 1 ๐ฝ๐ ๐ + ๐คโ๐๐๐ 6/21/2020 ๐ = ๐ 2 ๐ถ ๐ฝ= ๐ 1 + ๐ 2 >1 ๐ 2 37 Characteristics of Lag Compensators 1 ๐๐ + 1 ๐ ๐บ๐ ๐ = ๐พ๐ ๐ฝ = ๐พ๐ 1 ๐ฝ๐๐ + 1 ๐ + ๐ฝ๐ ๐ + In the complex plane, a lag compensator has a zero at pole at 6/21/2020 (๐ฝ > 1) 1 ๐ =− ๐ 1 ๐ =− ๐ฝ๐ 38 Polar plot of a lag compensator: Kc = 1 (๐๐๐ + 1) ๐พ๐ ๐ฝ (๐๐๐ฝ๐ + 1) ๏ข = 10 The corner frequencies of the lag compensator are at 6/21/2020 ๏ท = T1 ๏ท= 1 ๏ขT 39 Bode diagram of a lag compensator: (๐๐๐ + 1) ๐พ๐ ๐ฝ (๐๐๐ฝ๐ + 1) Where the values of Kc and β are set equal to 1 and 10, respectively, the magnitude of the lag compensator becomes 10 (or 20 dB) at low frequencies and unity (or 0 dB) at high frequencies. i.e., The gain at lower frequencies is higher as compared to higher frequencies. Thus, the lag compensator is essentially a low-pass filter. 6/21/2020 40 ๐๐ = ∠๐บ๐ (๐๐) ๐พ = −tan−1 (๐ฝ ๐๐) + tan−1 ( ๐๐) ๐๐๐ ๐ฝ๐ ๐ =− + −= 0 2 2 2 2 2 ๐๐ 1+๐ฝ ๐ ๐ 1+๐ ๐ ๐ ⇒ 1 + ๐ฝ2 ๐2 ๐ 2 = ๐ฝ + ๐ฝ๐2 ๐ 2 ⇒ (1 − ๐ฝ) = ๐ฝ๐2 ๐ 2 − ๐ฝ2 ๐2 ๐ 2 = (1 − ๐ฝ)๐ฝ๐2 ๐ 2 ⇒ ๐ฝ๐2 ๐ 2 = 1 ⇒๐= 1 ๐ฝ๐ This frequency is the geometric mean of the two cut –off /corner frequencies of the compensator 1 1 1 log ๐๐ = log + log 2 ๐ ๐ฝ๐ 6/21/2020 1 1 , ๐ ๐ฝ๐ 41 The maximum phase lag contributed by the lag compensator is ๐๐ แ ๐๐ = ∠๐บ๐ (๐๐๐ ) = tan−1 ( ๐๐ ๐) − tan−1 ( ๐ฝ๐๐ ๐) ๐๐ = sin−1 1−๐ฝ 1 ๐๐ก ๐๐ = 1+๐ฝ ๐ฝ๐ The primary function of a lag compensator is to provide attenuation in the high frequency range to give a system sufficient phase margin. The phase-lag characteristic is of no consequence in lag compensation. 6/21/2020 42 Visualizing a Lag compensator 6/21/2020 43 Lag Compensation Techniques Based on the Frequency-Response Approach: The primary function of a lag compensator is to provide attenuation in the high frequency range to give a system sufficient phase margin. The phase-lag characteristic is of no consequence in lag compensation. Design steps: 1. Determine gain K to meet steady state requirement 1 ๐๐ + 1 ๐ ๐บ๐ ๐ = ๐พ๐ ๐ฝ = ๐พ๐ 1 ๐ฝ๐๐ + 1 ๐ + ๐ฝ๐ ๐ + Define (๐ฝ > 1) ๐พ๐ ๐ฝ = ๐พ ๐๐ + 1 ๐บ๐ ๐ = ๐พ ๐ฝ๐๐ + 1 6/21/2020 44 The open-loop transfer function of the compensated system is ๐๐ + 1 ๐๐ + 1 ๐๐ + 1 ๐บ๐ ๐ ๐บ ๐ = ๐พ ๐บ ๐ = ๐พ๐บ ๐ = ๐บ (๐ ) ๐ฝ๐๐ + 1 ๐ฝ๐๐ + 1 ๐ฝ๐๐ + 1 1 where ๐บ1 ๐ = ๐พ๐บ ๐ Determine gain K to satisfy the requirement on the given static velocity error constant. 2. If the gain-adjusted but uncompensated system ๐บ1 ๐๐ = ๐พ๐บ ๐๐ does not satisfy the specifications on the phase and gain margins, then find the frequency point where the phase angle of the open-loop transfer function is equal to –180° plus the required phase margin. The required phase margin is the specified phase margin plus 5° to 12°. (The addition of 5° to 12° compensates for the phase lag of the lag compensator.) Choose this frequency as the new gain crossover frequency. 6/21/2020 45 3. To prevent detrimental effects of phase lag due to the lag compensator, the pole and zero of the lag compensator must be located substantially lower than the new gain crossover frequency. Therefore, choose the corner frequency ๐ = 1 ๐ (corresponding to the zero of the lag compensator) 1 octave to 1 decade below the new gain crossover frequency. • Notice that we choose the compensator pole and zero sufficiently small. Thus the phase lag occurs at the low-frequency region so that it will not affect the phase margin. 4. Determine the attenuation necessary to bring the magnitude curve down to 0 dB at the new gain crossover frequency. Noting that this attenuation is −20 log ๐ฝ ,determine the value of β. Then the other corner frequency (corresponding to the pole of the lag compensator) is determined from ๐ = 1 . ๐ฝ๐ 5. Using the value of K determined in step 1 and that of β determined in step 4, calculate constant Kc from ๐พ ๐พ๐ = ๐ฝ 6/21/2020 46 EXAMPLE: Consider the system shown in Figure. The open-loop transfer function is given by ๐ ๐ฎ ๐ = ๐ ๐ + ๐ ๐. ๐๐ + ๐ It is desired to compensate the system so that the static velocity error constant ๐พ๐ฃ is 5 ๐ ๐๐ −1 , the phase margin is at least 40°, and the gain margin is at least 10 dB. using lag compensator. 6/21/2020 47 ANSWER: 1 ๐๐ + 1 ๐ ๐บ๐ ๐ = ๐พ๐ ๐ฝ = ๐พ๐ 1 ๐ฝ๐๐ + 1 ๐ + ๐ฝ๐ ๐ + (๐ฝ > 1) ๐พ๐ ๐ฝ = ๐พ The first step in the design is to adjust the gain K to meet the required static velocity error constant ๐พ ๐บ1 ๐ = ๐พ๐บ ๐ = ๐ ๐ + 1 0.5๐ + 1 ๐๐ + 1 ๐๐ฃ = lim ๐ ๐บ๐ ๐ ๐บ ๐ = lim ๐ ๐บ ๐ = lim ๐ ๐บ1 ๐ ๐ →0 ๐ →0 ๐ →0 ๐ฝ๐๐ + 1 1 ๐ ๐พ = lim =๐พ=5 ๐ →0 ๐ ๐ + 1 0.5๐ + 1 ๐พ=5 6/21/2020 48 With K=5, the compensated system satisfies the steady-state performance requirement. The Bode diagram of 6/21/2020 ๐บ1 ๐๐ = 5 ๐๐ ๐๐ + 1 0.5๐๐ + 1 49 Objective of the design is to improve the SSE without appreciably affecting the transient response 6/21/2020 50 • From this plot, the phase margin is found to be – 20°, which means that the gain-adjusted but uncompensated system is unstable • As the lag compensator modifies the phase curve of the Bode diagram, we must allow 5° to 12° to the specified phase margin to compensate for the modification of the phase curve. Since the frequency corresponding to a phase margin of 40° is 0.7 rad/sec, the new gain crossover frequency (of the compensated system) must be chosen near this value. choose the corner frequency ω=1/T(zero of the lag compensator) to be 0.1 rad/sec. • Since this corner frequency is not too far below the new gain crossover frequency, the modification in the phase curve may not be small. Hence, we add about 12° to the given phase margin as an allowance to account for the lag angle introduced by the lag compensator. The required phase margin is now 52°. • The phase angle of ๐บ1 ๐๐ is –128° at about ω=0.5 rad/sec and hence this frequency is chosen as new gain cross over frequency. • To bring the magnitude curve down to 0 dB at this new gain crossover frequency, the lag compensator must give the necessary attenuation, which in this case is –20 dB. 1 ๐ฝ = 10 20 log = −20 Hence ๐ฝ 6/21/2020 51 Bode diagrams for G1 (gain-adjusted but uncompensated open-loop transfer function), Gc /K( compensator), and GcG (compensated open-loop transfer function). 6/21/2020 52 The other corner frequency ๐ = 1/(๐ฝ๐), which corresponds to the pole of the lag compensator, is then determined as 1 ๐๐๐ = 0.01 ๐ฝ๐ ๐ ๐๐ Thus, the transfer function of the lag compensator is 1 10๐ + 1 10 ๐บ๐ ๐ = ๐พ๐ 10 = ๐พ๐ 1 100๐ + 1 ๐ + 100 Since the gain K was determined to be 5 and β was determined to be 10, we have ๐พ 5 ๐พ๐ = = = 0.5 ๐ฝ 10 ๐ + 6/21/2020 53 The open-loop transfer function of the compensated system is 5(10๐ + 1) ๐บ๐ ๐ ๐บ ๐ = ๐ (100๐ + 1) ๐ + 1 0.5๐ + 1 • The phase margin of the compensated system is about 40°, which is the required value. The gain margin is about 11 ๐๐ต, which is quite acceptable. The static velocity error constant is 5 ๐ ๐๐ −1 , as required. The compensated system, therefore, satisfies the requirements on both the steady state and the relative stability. • Note that the new gain crossover frequency is decreased from approximately 1 to 0.5 ๐๐๐/ ๐ ๐๐. This means that the bandwidth of the system is reduced. ๐ถ(๐ ) 50๐ + 5 = ) ๐ (๐ 50๐ 4 + 150.5๐ 3 + 101.5๐ 2 + 51๐ + 5 6/21/2020 ๐ถ(๐ ) 1 = ) ๐ (๐ 0.5๐ 3 + 1.5๐ 2 + ๐ + 1 54 ๐ถ(๐ ) 50๐ + 5 = ๐ (๐ ) 50๐ 4 + 150.5๐ 3 + 101.5๐ 2 + 51๐ + 5 Zero at s = -0.1. Poles at s = -0.2859 ± j0.5196, s = -0.1228, s = -2.3155 • The dominant closed-loop poles are very close to the jω axis with the result that the response is slow. • Also, a pair of the closed-loop pole at s=–0.1228 and the zero at s=–0.1 produces a slowly decreasing tail of small amplitude. 6/21/2020 55 6/21/2020 56 A Few Comments on Lag Compensation: 1. Lag compensators are essentially low-pass filters. Therefore, lag compensation permits a high gain at low frequencies (which improves the steady-state performance) and reduces gain in the higher critical range of frequencies so as to improve the phase margin. Note that in lag compensation we utilize the attenuation characteristic of the lag compensator at high frequencies rather than the phase lag characteristic. (The phaselag characteristic is of no use for compensation purposes.) 2. Suppose that the zero and pole of a lag compensator are located at s= -z and s= -p, respectively. Then the exact locations of the zero and pole are not critical provided that they are close to the origin and the ratio z/p is equal to the required multiplication factor of the static velocity error constant. • It should be noted, however, that the zero and pole of the lag compensator should not be located unnecessarily close to the origin, because the lag compensator will create an additional closed-loop pole in the same region as the zero and pole of the lag compensator. • The closed-loop pole located near the origin gives a very slowly decaying transient response, although its magnitude will become very small because the zero of the lag compensator will almost cancel the effect of this pole. However, the transient response (decay) due to this pole is so slow that the settling time will be adversely affected. 6/21/2020 57 It is also noted that in the system compensated by a lag compensator the transfer function between the plant disturbance and the system error may not involve a zero that is near this pole. Therefore, the transient response to the disturbance input may last very long. 3. The attenuation due to the lag compensator will shift the gain crossover frequency to a lower frequency point where the phase margin is acceptable. Thus, the lag compensator will reduce the bandwidth of the system and will result in slower transient response. [The phase angle curve of ๐บ๐ ๐๐ ๐บ(๐๐) is relatively unchanged near and above the new gain crossover frequency.] 4. Since the lag compensator tends to integrate the input signal, it acts approximately as a proportional-plus-integral controller. Because of this, a lag-compensated system tends to become less stable. To avoid this undesirable feature, the time constant T should be made sufficiently larger than the largest time constant of the system. 6/21/2020 58 Proportional+Integral+Derivative control action ๐ก ๐พ๐ ๐๐(๐ก) ๐ข ๐ก = ๐พ๐ ๐ ๐ก + เถฑ ๐ ๐ก ๐๐ก + ๐พ๐ ๐๐ ๐๐ ๐๐ก 0 ๐(๐ ) 1 = ๐พ๐ 1 + + ๐๐ ๐ ๐ธ(๐ ) ๐๐ ๐ ๐(๐ ) ๐พ๐ = ๐พ๐ + ๐พ๐ ๐ + ๐ธ(๐ ) ๐ where ๐พ๐ = ๐พ๐ ๐๐ and ๐พ๐ = 6/21/2020 ๐พ๐ ๐๐ 59 • Active circuit realization of P-I-D controller ๐ธ๐ =− ๐ธ๐ 6/21/2020 ๐ 2 ๐ถ1 + ๐ 1 ๐ถ2 1 ๐ ๐ถ + ๐ 2 ๐ถ1 ๐ + 1 2 ๐ 60 Lag-Lead Network realization using Passive circuit 1 1 ๐ + ๐ + ๐ธ๐ ๐ 1 ๐ถ1 ๐ 2 ๐ถ2 = 1 ๐ธ๐ ๐ 2 + 1 + 1 + 1 ๐ + ๐ 1 ๐ถ1 ๐ 2 ๐ถ2 ๐ 2 ๐ถ1 ๐ 1 ๐ 2 ๐ถ1 ๐ถ2 ๐ธ๐ = ๐ธ๐ 1 ๐ +๐ 1 ๐พ ๐ +๐ 1 1 ๐ +๐ 2 ๐ + 1 ๐ฝ๐2 Where ๐พ = ๐ฝ 6/21/2020 61 Lag-Lead Network realization using Passive circuit ๐ธ๐ = ๐ธ๐ 6/21/2020 1 ๐ +๐ 1 ๐พ ๐ +๐ 1 1 ๐ +๐ 2 ๐ + 1 ๐ฝ๐2 62 Lag-Lead Network realization using OP-Amps The complex impedance Z1 is given by 1 1 1 = + ๐1 ๐ + 1 ๐ 3 1 ๐ถ1 ๐ ๐ 1 ๐ถ1 ๐ + 1 ๐ 3 ๐1 = ๐ 1 + ๐ 3 ๐ถ1 ๐ + 1 Complex impedance Z2 is given by ๐2 = ๐ธ (๐ ) ๐2 ๐ 4 =− =− ๐ธ๐ (๐ ) ๐1 ๐ 3 6/21/2020 ๐ธ0 (๐ ) ๐ 6 =− ๐ธ๐ (๐ ) ๐ 5 ๐ 2 ๐ถ2 ๐ + 1 ๐ 4 ๐ 2 + ๐ 4 ๐ถ2 ๐ + 1 ๐ 1 + ๐ 3 ๐ถ1 ๐ + 1 ๐ 2 ๐ถ2 ๐ + 1 . ๐ 1 ๐ถ1 ๐ + 1 ๐ 2 + ๐ 4 ๐ถ2 ๐ + 1 63 ๐ธ0 (๐ ) ๐ธ0 (๐ ) ๐ธ(๐ ) ๐ 4 ๐ 6 = = ๐ธ๐ (๐ ) ๐ธ(๐ ) ๐ธ๐ (๐ ) ๐ 3 ๐ 5 ๐ 1 + ๐ 3 ๐ถ1 ๐ + 1 ๐ 1 ๐ถ1 ๐ + 1 ๐1 = ๐ 1 ๐ถ1 ๐พ ๐1 = ๐ 1 + ๐ 3 ๐ถ1 ๐2 = ๐ 2 ๐ถ2 ๐ธ0 (๐ ) ๐ฝ = ๐พ๐ ๐ธ๐ (๐ ) ๐พ ๐ 2 ๐ถ2 ๐ + 1 ๐ 2 + ๐ 4 ๐ถ2 ๐ + 1 ๐ฝ๐2 = ๐ 2 + ๐ 4 ๐ถ2 ๐1 ๐ + 1 ๐1 ๐ +1 ๐พ ๐ 1 + ๐ 3 ๐พ= >1 ๐ 1 ๐2 ๐ + 1 = ๐พ๐ ๐ฝ๐2 ๐ + 1 ๐ 2 + ๐ 4 ๐ฝ= >1 ๐ 2 1 1 ๐ + ๐1 ๐2 ๐พ 1 ๐ + ๐ + ๐1 ๐ฝ๐2 ๐ + ๐ 2 ๐ 4 ๐ 6 ๐ 1 + ๐ 3 ๐พ๐ = ๐ 1 ๐ 3 ๐ 5 ๐ 2 + ๐ 4 Note that ๐พ is often chosen to be equal to ๐ฝ 6/21/2020 64 Characteristics of Lag-Lead Compensators 1 ๐1 ๐พ ๐ + ๐1 ๐ + ๐บ๐ ๐ = ๐พ๐ ๐คโ๐๐๐ 1 ๐2 1 ๐ + ๐ฝ๐2 ๐ + ๐พ>1 ๐๐๐ ๐ฝ > 1 1 ๐1 1 ๐1 ๐ + 1 ๐พ = ๐พ ๐1 ๐ + ๐ +1 ๐1 ๐พ ๐พ>1 produces the effect of the lead network, 1 ๐2 ๐ + 1 ๐2 =๐ฝ 1 ๐ฝ๐2 ๐ + 1 ๐ + ๐ฝ๐2 ๐ฝ>1 produces the effect of the lag network. ๐ + where the term ๐ + and the term In designing a lag–lead compensator, we frequently chose γ=β. (This is not necessary. We can, of course, choose γ≠β.) 6/21/2020 65 Polar plot of a lag-lead compensator: The polar plot of the lag–lead compensator with ๐พ๐ =1and γ=β becomes as shown in Figure It can be seen that, for 0<ω<ω1, the compensator acts as a lag compensator, while for ω1 < ω <∞ it acts as a lead compensator. The frequency ω1 is the frequency at which the phase angle is zero. It is given by ๐1 = 6/21/2020 1 ๐1 ๐2 66 Bode diagram of a lag–lead compensator when ๐พ๐ =1, γ=β=10, and T2=10T1 The magnitude curve has the value 0 dB at the low- and high-frequency regions. 6/21/2020 67 Lag–Lead Compensation Based on the Frequency-Response Approach: The design of a lag–lead compensator by the frequency-response approach is based on the combination of the design techniques discussed under lead compensation and lag compensation Let us assume that the lag–lead compensator is of the following form: ๐บ๐ ๐ = ๐พ๐ 6/21/2020 ๐1 ๐ + 1 ๐2 ๐ + 1 = ๐พ๐ ๐1 ๐ + 1 ๐ฝ๐2 ๐ + 1 ๐ฝ 1 1 ๐ + ๐1 ๐2 ๐ฝ 1 ๐ + ๐ + ๐1 ๐ฝ๐2 ๐ + 68 where β>1.The phase-lead portion of the lag–lead compensator (the portion involving ๐1 ) alters the frequency-response curve by adding phase-lead angle and increasing the phase margin at the gain crossover frequency. The phase-lag portion (the portion involving ๐2 ) provides attenuation near and above the gain crossover frequency and thereby allows an increase of gain at the low-frequency range to improve the steady-state performance. EXAMPLE Consider the unity-feedback system whose open-loop transfer function is ๐ฒ ๐ฎ ๐ = ๐ ๐+1 ๐+2 It is desired that the static velocity error constant be ๐๐ ๐๐๐−๐ , the phase margin be 50°, and the gain margin be 10 dB or more. 6/21/2020 69 ans: Use the lag–lead compensator. The open-loop transfer function of the compensated system is ๐บ๐ ๐ ๐บ ๐ . Since the gain K of the plant is adjustable, let us assume that Kc=1. Then lim ๐บ๐ ๐ = 1 ๐ →0 From the requirement on the static velocity error constant, we obtain ๐พ ๐พ ๐๐ฃ = lim ๐ ๐บ๐ ๐ ๐บ ๐ = lim ๐ ๐บ๐ ๐ = = 10 ๐ →0 ๐ →0 ๐ ๐ +1 ๐ +2 2 There fore ๐พ = 20 6/21/2020 70 Draw the Bode diagram of the uncompensated system with K=20, as shown in Figure . The phase margin of the gainadjusted but uncompensated system is found to be –32°, which indicates that the gain-adjusted but uncompensated system is unstable. 6/21/2020 71 The next step in the design of a lag–lead compensator is to choose a new gain crossover frequency. From the phase-angle curve for G(jω), we notice that ∠G(jω)=-180° at ω=1.5 rad/sec. It is convenient to choose the new gain crossover frequency to be 1.5 rad/sec so that the phase lead angle required at ω=1.5 rad/sec is about 50°, which is quite possible by use of a single lag–lead network. Once we choose the gain crossover frequency to be 1.5 rad/sec, we can determine the corner frequency of the phaselag portion of the lag–lead compensator. Let us choose the corner frequency ๐ = 1เต๐2 (which corresponds to the zero of the phase-lag portion of the compensator) to be 1 decade below the new gain crossover frequency, or at ω=0.15 rad/sec. Recall that for the lead compensator the maximum phase-lead angle ∅m is given by Equation sin ∅๐ = 6/21/2020 1−๐ผ 1+๐ผ 72 1 1 where α is ๐ฝ in the present case. By substituting α = ๐ฝ in the above Equation , we have 1 ๐ฝ ๐ฝ−1 = = 1 ๐ฝ−1 1+ ๐ฝ 1− sin ∅๐ ∅๐ = 54.9° ๐ฝ = 10 Then the corner frequency ๐ = 1เต๐ฝ๐2 (which corresponds to the pole of the phase-lag portion of the compensator) becomes ๐ = 0.015 ๐๐๐/๐ ๐๐.The transfer function of the phase-lag portion of the lag–lead compensator then becomes ๐ + 0.15 6.67๐ + 1 = 10 ๐ + 0.015 66.7๐ + 1 6/21/2020 73 6/21/2020 74 The phase-lead portion can be determined as follows: Since the new gain crossover frequency is ๐ = 1.5 ๐๐๐/๐ ๐๐, from Figure 7–111, ๐บ(๐1.5) is found to be 13 ๐๐ต. Hence, if the lag–lead compensator contributes – 13 ๐๐ต at ๐ = 1.5 ๐๐๐/๐ ๐๐ then the new gain crossover frequency is as desired. From this requirement, it is possible to draw a straight line of slope 20 ๐๐ต/๐๐๐๐๐๐, passing through the point (1.5 ๐๐๐/๐ ๐๐, – 13 ๐๐ต). The intersections of this line and the 0๐๐ต line and – 20๐๐ต line determine the corner frequencies. Thus, the corner frequencies for the lead portion are ๐ = 0.7 ๐๐๐/๐ ๐๐ and ๐ = 7 ๐๐๐/๐ ๐๐. Thus, the transfer function of the lead portion of the lag–lead compensator becomes ๐ + 0.7 1 1.43๐ + 1 = ๐ +7 10 0.143๐ + 1 Combining the transfer functions of the lag and lead portions of the compensator, we obtain the transfer function of the lag–lead compensator. Since we chose Kc=1, we have ๐บ๐ ๐ = 6/21/2020 ๐ + 0.7 ๐ +7 ๐ + 0.15 1.43๐ + 1 = ๐ + 0.015 0.143๐ + 1 6.67๐ + 1 66.7๐ + 1 75 The open-loop transfer function of the compensated system is ๐บ๐ ๐ ๐บ ๐ = = ๐ + 0.7 ๐ + 0.15 20 ๐ + 7 ๐ + 0.015 ๐ ๐ + 1 ๐ + 2 10 1.43๐ + 1 (6.67๐ + 1) ๐ 0.143๐ + 1 66.7๐ + 1 ๐ + 1 0.5๐ + 1 The phase margin of the compensated system is 50°, the gain margin is 16 ๐๐ต, and the static velocity error constant is 10 ๐ ๐๐ −1 . All the requirements are therefore met, and the design has been completed. 6/21/2020 76