Lecture 24 Examples of Bode Plots
Process Control
- Prof. Kannan M. Moudgalya
IIT Bombay Thursday, 26 September 2013
1/47 Process Control Examples of Bode Plots
Lecture 24 Examples of Bode Plots Process Control Prof. Kannan M. - - PowerPoint PPT Presentation
Lecture 24 Examples of Bode Plots Process Control Prof. Kannan M. Moudgalya IIT Bombay Thursday, 26 September 2013 1/47 Process Control Examples of Bode Plots Outline 1. First order transfer function - recall 2. Gain, integral and
1/47 Process Control Examples of Bode Plots
2/47 Process Control Examples of Bode Plots
◮ G(s) =
◮ |G(jω)| =
◮ ω ≪ 1, |G(jω)| = 1,
3/47 Process Control Examples of Bode Plots
◮ G(s) =
◮ |G(jω)| =
◮ ω ≪ 1, |G(jω)| = 1, M = 20 log |G(jw)| = 0 ◮ Asymptote is M = 0 ◮ ω ≫ 1, |G(jω)| =
◮ Asymptote is M = −20 log ωτ ◮ ω = ω1 ⇒ M = −20 log ω1τ ◮ ω = 10ω1 ⇒ M = −20 log ω1τ − 20 ◮ Slope of −20 dB per decade
3/47 Process Control Examples of Bode Plots
◮ G(jω) =
◮ |G(jω)| =
◮ For ω ≪ 1, the asymptote is |G(jω)| = 1 ◮ ω ≫ 1, the asymptote is |G(jω)| =
◮ Two asymptotes intersect at ω = 1/τ ◮ w = 1/τ is known as the corner frequency
4/47 Process Control Examples of Bode Plots
2
Magnitude (dB)
10 10 10 10 10 10
1
Semilog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
5/47 Process Control Examples of Bode Plots
◮ |G(jω)| =
◮ ω = 1/τ is known as the corner frequency ◮ At ω = 1/τ, what is M? ◮ M = −20 log
6/47 Process Control Examples of Bode Plots
2
Magnitude (dB)
10 10 10 10 10 10
1
Semilog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
7/47 Process Control Examples of Bode Plots
◮ G(s) =
◮ ω ≪ 1, G(jω) = 1, φ = ∠G(jw) = 0 ◮ ω ≫ 1, G(jω) =
◮ For ω = 1/τ, G(jω) =
◮ φ = −45◦
8/47 Process Control Examples of Bode Plots
2
Magnitude (dB)
10 10 10 10 10 10
1
Semilog
Phase(deg)
10 10 10 10 10 10
1 2
w(rad/sec)
9/47 Process Control Examples of Bode Plots
10/47 Process Control Examples of Bode Plots
11/47 Process Control Examples of Bode Plots
◮ G(s)
△
◮ M = 20 log |G(jω)| and M1 = 20 log |G1(jω)| ◮ Both M and M1 are plotted in the same graph,
12/47 Process Control Examples of Bode Plots
◮ G(s)
△
◮ φ = ∠G(jω) and φ1 = ∠G1(jω) ◮ Both φ and φ1 are plotted in the same graph
13/47 Process Control Examples of Bode Plots
◮ G(s)
△
◮ M = 20 log |G(jω)| = 20 log |KG1(jω)| ◮ M = 20 log K+ 20 log |G1(jω)|, K > 0 ◮ Example: K = 100 ◮ M = 40 + 20 log |G1(jω)| ◮ At every frequency, add 40 dB! ◮ Phase plots of G1 and G are identical
14/47 Process Control Examples of Bode Plots
◮ G(s) = 1
◮ G(jω) = 1
◮ M = 20 log |G(jω)| = −20 log ω ◮ Has a slope of −20 dB per decade ◮ φ = ∠G(jω) = −90◦
15/47 Process Control Examples of Bode Plots
1
2 3
4 num = 1 ; 5 den = s ; 6 7 w = 0 . 0 1 : 0 . 0 0 2 : %pi ˆ0; 8 LF = ” s e m i l o g ” 9 10 bodegen (num , den ,w, LF ) ; 16/47 Process Control Examples of Bode Plots
10 5 10 15 20 25 30 35 40 10 10
Magnitude (dB) Semilog
Phase(deg)
10 10 10
w(rad/sec)
17/47 Process Control Examples of Bode Plots
◮ G(s) = s ◮ G(jω) = jω ◮ M = 20 log |G(jω)| = 20 log ω ◮ Has a slope of +20 dB per decade ◮ φ = ∠G(jω) = +90◦
18/47 Process Control Examples of Bode Plots
19/47 Process Control Examples of Bode Plots
20/47 Process Control Examples of Bode Plots
21/47 Process Control Examples of Bode Plots
◮ Plot M for each transfer function separately ◮ What are the corner frequencies? For the first, ◮ it is 1 ◮ For the second, it is 1/0.01 = 100 ◮ Add the two ◮ Draw φ for each transfer function separately ◮ Add the two ◮ Scilab code and the plots are given next
22/47 Process Control Examples of Bode Plots
23/47 Process Control Examples of Bode Plots
24/47 Process Control Examples of Bode Plots
1
2
3 G1 = 1/( s +1) ; 4
5
6 w = 0 . 0 1 : 0 . 0 0 8 ∗ %pi :1000∗ %pi ; 7 bodesum 1 (G1 , delay , gain ,w) ; 25/47 Process Control Examples of Bode Plots
1
/ / B o d e p l o t a s a s u m
c o m p o n e n t s
2 3
4 5
6 G1 mag = 20∗ log10 ( abs ( G1 freq ) ) ; 7
8
9 10
11
26/47 Process Control Examples of Bode Plots
12
13
14
15
16
17
18
19
27/47 Process Control Examples of Bode Plots
20
21
22
23 24 G1 ph = phasemag ( G1 freq ) ; 25
26 27
28
28/47 Process Control Examples of Bode Plots
29
30
31
32
33
34
35
36
29/47 Process Control Examples of Bode Plots
37
38
39
40
30/47 Process Control Examples of Bode Plots
31/47 Process Control Examples of Bode Plots
32/47 Process Control Examples of Bode Plots
33/47 Process Control Examples of Bode Plots
◮ Consider the lead transfer function:
◮ Corner frequencies are 1 and 100 ◮ Magnitude plot of s + 1 has a slope of +20 dB ◮ Phase plot of s + 1 increases, goes to 90◦ ◮ Magnitude plot of 1/(0.01s + 1) has a slope of
◮ Phase plot of 1/(0.01s + 1) decreases, goes to
◮ Add the two ◮ Scilab code is given next
34/47 Process Control Examples of Bode Plots
35/47 Process Control Examples of Bode Plots
36/47 Process Control Examples of Bode Plots
1
2
3 G1 = 1/(0.01∗ s +1) ; 4
5
6 w = 0 . 0 1 : 0 . 0 0 8 ∗ %pi :1000∗ %pi ; 7 bodesum 1 (G1 , delay , gain ,w) ; 37/47 Process Control Examples of Bode Plots
38/47 Process Control Examples of Bode Plots
◮ G(s)
△
◮ M = 20 log |G(jω)| and M1 = 20 log |G1(jω)| ◮ Both M and M1 are plotted in the same graph,
39/47 Process Control Examples of Bode Plots
◮ G(s)
△
◮ φ = ∠G(jω) and φ1 = ∠G1(jω) ◮ Both φ and φ1 are plotted in the same graph
40/47 Process Control Examples of Bode Plots
◮ G(s) = e−Ds ◮ G(jω) = e−jDω ◮ G(jω) = cos Dω − j sin Dω ◮ φ = ∠G(jω) = tan−1
◮ What about magnitude plot? ◮ M = 1 for all ω
41/47 Process Control Examples of Bode Plots
1
2
3 G1 = 1/( s +1) ; 4
5
6 w = 0 . 0 1 : 0 . 0 0 8 ∗ %pi :10∗ %pi ; 7 bodesum 1 (G1 , delay , gain ,w) ; 42/47 Process Control Examples of Bode Plots
43/47 Process Control Examples of Bode Plots
44/47 Process Control Examples of Bode Plots
◮ Axes: log axis for abscissa and normal axis for
◮ For each component transfer function,
◮ Draw the asymptotes ◮ Locate the value at corner frequency ◮ Connect approximately and complete the plots
◮ Add the component values
45/47 Process Control Examples of Bode Plots
1/36 Process Control Stability Analysis through Bode Plots
2/36 Process Control Stability Analysis through Bode Plots
3/36 Process Control Stability Analysis through Bode Plots
4/36 Process Control Stability Analysis through Bode Plots
◮ ωn = 8, ζ = 0.5
5/36 Process Control Stability Analysis through Bode Plots
1
2 3
4 num = 1 ; 5 den = s ˆ2+8∗ s +64; 6 7 w = 0 . 1 : 0 . 0 2 : 1 0 0 ∗ %pi ; 8 LF = ” s e m i l o g ” 9 10 bodegen (num , den ,w, LF ) ; 6/36 Process Control Stability Analysis through Bode Plots
10
2
Magnitude (dB)
3
10 10 10 10 1 Semilog Phase(deg) 10 10 10 10 10
1 2 3
w(rad/sec)
7/36 Process Control Stability Analysis through Bode Plots
8/36 Process Control Stability Analysis through Bode Plots
◮ G(s) is open loop transfer function ◮ Does not have poles and zeros on RHP ◮ Put in a closed loop with a proportional
◮ As Kc increases, closed loop system
◮ We will first see the root locus plot
9/36 Process Control Stability Analysis through Bode Plots
◮ Root locus is the locus of roots of
◮ 1 + KcG(s) = 0 or KcG(s) = −1 ◮ Magnitude and phase relations: ◮ |KcG(s)| = 1
◮ We will now see the conditions using
10/36 Process Control Stability Analysis through Bode Plots
◮ To obtain Bode plots, substitute s = jω ◮ This corresponds to the imaginary axis of
◮ Root locus conditions become,
◮ Because it is the boundary of instability,
◮ Kc > Ku ⇒ closed loop system unstable ◮ Can analyse stability using Bode plot ◮ Can check by how much we can move
◮ magnitude plot by adding gain ◮ phase plot by adding delay 11/36 Process Control Stability Analysis through Bode Plots
◮ Restrict Bode plot analysis to a class of
◮ For Kc < Ku, system is stable ◮ For Kc ≥ Ku, system is unstable
12/36 Process Control Stability Analysis through Bode Plots
13/36 Process Control Stability Analysis through Bode Plots
◮ 1 + KcG(s) = 0 ◮ 1 +
◮ (s + 1)(s + 2)(s + 3) + 15Kc = 0 ◮ s3 + 6s2 + 11s + (15Kc + 6) = 0 ◮ Cuts imaginary axis at Kc = 4 ◮ Ku = 4 ◮ Stable for Kc < 4
14/36 Process Control Stability Analysis through Bode Plots
1
2 3
4 K = 1 ; 5 D = 0 . 1 ; 6 num = 15; 7 den = ( s +1) ∗( s +2) ∗( s +3) ; 8 G = num/den ; 9 10 w = 0 . 0 1 : 0 . 0 2 : 5 ; 11 12
15/36 Process Control Stability Analysis through Bode Plots
1
/ / B o d e p l o t w i t h d e l a y a n d g a i n
2 3
4 5
6 G1 mag = 20∗ log10 ( abs ( G1 freq ) ) ; 7
8
9 10
/ / x s e t ( ’ w i n d o w ’ , 0 ) ; c l f ( ) ;
16/36 Process Control Stability Analysis through Bode Plots
11 12
13
14
15
16 17 G1 ph = phasemag ( G1 freq ) ; 18
19 17/36 Process Control Stability Analysis through Bode Plots
20
21
22
23
24
18/36 Process Control Stability Analysis through Bode Plots
19/36 Process Control Stability Analysis through Bode Plots
G1 (dB)
1
10 15 10 5 10
10 10 Bode plot
10 10 10 10
1
Phase
When K is increased, Magnitude plot goes up
20/36 Process Control Stability Analysis through Bode Plots
G1 (dB)
1 10 10 20 15 10 5
10 10
Bode plot
10 10 10 10
1 Phase
When Kc is increased to 4 ωpc Gain Margin = 4 = 12dB
21/36 Process Control Stability Analysis through Bode Plots
◮ The frequency ω at which
◮ is called Phase Crossover Frequency ◮ It is denoted by ωpc ◮ That is, ∠G(jωpc) = −180◦ ◮ Some people call it as simply crossover
22/36 Process Control Stability Analysis through Bode Plots
◮ Locate ωc, where ∠G(jωc) = −180◦ ◮ Find |G(jωc)| at that point ◮ Can increase gain of the system by Kc
◮ Can verify that we can increase Kc until 4 ◮ Gain margin = 4 or 12 dB ◮ Draw the Bode plot and verify
23/36 Process Control Stability Analysis through Bode Plots
24/36 Process Control Stability Analysis through Bode Plots
10
5 10 10 10 10
1 G1 (dB) Bode plot
10 10 10 10
1 Phase
25/36 Process Control Stability Analysis through Bode Plots
10
5 10 10 10 10
1 G1 (dB) Bode plot
10 10 10 10
1 Phase
When D increases Phase lag increases
26/36 Process Control Stability Analysis through Bode Plots
10 G1 (dB)
5 10 10 10 10
1 Bode plot 10
10
10
Phase 10
1
Phase becomes −180 deg When D is increased to 0.63
27/36 Process Control Stability Analysis through Bode Plots
◮ Suppose G(s) changes to
◮ What is D such that when |G1(jω)| = 1,
◮ Call this ω as ωg, or
28/36 Process Control Stability Analysis through Bode Plots
◮ |G(jωg)| = 1 ◮ G(s) =
◮ (ω2
g + 1)(ω2 g + 4)(ω2 g + 9) = 225
◮ ωg ≃ 1.57 ◮ φ(jωg) =
◮ = −123.2◦ ◮ If delay contributes −56.8◦
◮ Dωg = 56.8
29/36 Process Control Stability Analysis through Bode Plots
◮ Can find ωg = 1.57, approximately ◮ Can increase D to D = 0.63
30/36 Process Control Stability Analysis through Bode Plots
◮ stable systems, with at most one pole on
◮ only one ωc ◮ only one ωg
31/36 Process Control Stability Analysis through Bode Plots
G1 (dB)
1 10 10 20 15 10 5
10 10
Bode plot Phase
1 10
10
10 10
Gain Margin = 12 dB
32/36 Process Control Stability Analysis through Bode Plots
G1 (dB)
1
10 10 20 15 10 5
10 10
Bode plot Phase
1
10
10
10 10
Phase Margin = 56.8 deg ωgc
33/36 Process Control Stability Analysis through Bode Plots
34/36 Process Control Stability Analysis through Bode Plots
◮ Stability conditions using Bode plot ◮ Stability margins
35/36 Process Control Stability Analysis through Bode Plots
36/36 Process Control Stability Analysis through Bode Plots