Professional Documents
Culture Documents
Control Theory Slides
Control Theory Slides
Reference input
Feedback Signal
Feedback
Element
Laplace Transform
3.
Set s= -P1
( s p1 ) F ( s ) s p1 a1
2s k1s 7k2 s
3 3 3
Solution.Scince
from which
• Example
• The transfer function includes the units necessary to relate the input to
the output; however, it does not provide any information concerning the
physical structure of the system. (The transfer functions of many
physically different systems can be identical.)
the arrowhead leading away from the block represents the output.
Then we obtain
Or
Parameters: R,C
• Small jets apply reaction forces to rotate the satellite body into the
desired position. The two skew symmetrically placed jets denoted by A
or B operate in pairs.
• Assume that each jet thrust is F/2 and a torque T = Fl is applied to the
system. The jets are applied for a certain time duration and thus the
torque can be written as T(t).
• The moment of inertia about the axis of rotation at the center of mass is
J.
Let us obtain the transfer function of this system by assuming that
torque T(t) is the input, and the angular displacement θ(t) of the satellite
is the output.
Systematic approach:
1. Calculate forward path transfer function Pk for
each forward path k
2. Calculate all loop transfer functions
3. Consider nontouching loops 2 at a time
4. Consider nontouching loops 3 at a time
5. etc
6. Calculate Δ from steps 2,3,4 and 5
7. Calculate Δk as portion of Δ not touching forward
path k
Dr. Ibrahim Al-Abbas 156
1.Calculate forward path transfer function Pk for each forward path k.
PP1 G G
1 1 1G
GG
2 3
G31)G4and(path
G 2(path
4 2P G 1)
5 G G G and
6 7(path 2)
8
P2 G5G6G7G8 (path 2)
2.Calculate all loop TF’s.
L1 G2 H 2 , L2 H 3G3 , L3 G6 H 6 , L4 G7 H 7
3.Consider nontouching loops 2 at a time.
Loops L1 and L2 do not touch Loops L3 and L4
1.8
1.6
2
1.4
1
1.2
Amplitude
0.8
4 3
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18 20
Time (sec)
.Maximum overshoot
The maximum overshoot occurs at the peak time or at t =
tp . Thus, Mp is obtained as
u t y t
G
Y s G s U s
m
K s zi
G s i 1
q
r
s pi s 2
2
k nk s 2
nk
j 1 k 1
dk nk 1 k2
q
pk t
y t a k
a e
k 1
r
e k nk t bk cos dk t ck sin dk t
k 1
1
G s
sn2 2 sn 1 sn 1
n
pole at
n
10n Dominant pole pair
10
-0.45
1.2
1
Normaized Response
0.8
0.6
1/ = -Pole=0.44444
1/ = -Pole=0.66667
0.4 1/ = -Pole=1.1111
1/ = -Pole=2.5
1/ = -Pole=20
0.2
1/ = -Pole=Inf
0
0 1 2 3 4 5 6 7 8 9 10
Time (s)
Dr. Ibrahim Al-abbas 203
Dr. Ibrahim Al-abbas 204
Routh’s Stability Criterion
a ( s ) a0 s n a1s n 1 a2 s n 2 an 1s1 an s 0
s n : ao a2 a4
n 1
s : a1 a3 a5
Dr. Ibrahim Al-abbas 209
Routh array: method (cont’d)
?!
n 3
s : c1 c2 c3
2
s : * *
1
s : *
0
s :
Dr. Ibrahim Al-abbas * 210
Routh array: method (cont’d)
• Compute elements for the s n : ao a2 a4
3rd row:
n 1
s : a1 a3 a5
a1a2 a0 a3 n2
b1 , s : b1 b2 b3
a1
n 3
a1a4 a0 a5 s : c1 c2 c3
b2 ,
a1
a1a6 a0 a7 s : 2
* *
b3
a1 1
s : *
0
s :
Dr. Ibrahim Al-abbas
* 211
Routh array: method (cont’d)
• Compute elements for n
s : a0 a 2 a4
the 4th row:
n 1
s : a1 a3 a5
b1 a3 a1b2 n2
c1 s : b1 b2 b3
b1 n 3
s : c1 c2 c3
b1 a5 a1b3
c2
b1 2
s : * *
b1 a 7 a1b4 1
c3 s : *
b1 0
s :
Dr. Ibrahim Al-abbas
* 212
Example 1:
Given the characteristic equation,
a (s) s 6 4s 5 3s 4 2s 3 s 2 4s 4
is the system described by this characteristic equation stable?
Answer:
• One coefficient (-2) is negative.
Answer:
• All the coefficients are positive and nonzero.
• Therefore, the system satisfies the necessary condition for
stability.
• We should determine whether any of the coefficients of the
first column of the Routh array are negative.
s6 : 1 3 1 4
s5 : 4 2 4 0 2.5 * 2 4 * 0
c1 2
s4 : 5 2 0 4 2.5
2.5 * 4 4 * 4
s3 : 2 12 5 0 c2 12 / 5
2.5
s2 : ? ?
2.5 * 0 4 * 0
s1 : ? ? c3 0
2.5
s0 : ?
s 5s ( K 6) s K 0
3 2
s3 : 1 K 6 4K 30
0 and K 0
5
s2 : 5 K
K 7.5 and K 0
s1 : (4 K 30) 5
s0 : K K 7 .5
K1 1
1 K 0
s ( s 1 )( s 2 )
s 3s ( 2 K )s K1 0
3 2
s3 : 1 2 K
s2 : 3 K1 K1
K1 0 and K 2
s 1 : ( 6 3 K K1 ) 3 3
s0 : K1
s3 1 3
s2 0 2
1 3 2
s 0
s0 2
will have roots with positive real parts. Such an unstable system cannot be
used in practice.
Proportional-Plus-Derivative Control
Reduce stability!
P Controller with high gain
Integral Controller
• Integral of error with a constant gain
® increase the system type by 1
®eliminate steady-state error for
a unit step input
® amplify overshoot and oscillations
Change in gain for PI controller
• Increase in gain:
Increase oscillations
and overshoot!
Derivative Controller
• Differentiation of error with a constant gain
® detect rapid change in output
® reduce overshoot and oscillation
® do not affect the steady-state response
Effect of change for gain PD controller
• Increase in gain:
Upgrade transient
response
Decrease the peak and
rise time
Increase overshoot
and settling time!
Changes in gains for PID Controller
• These rules are used to determine Kp, Ti and
Td for PID controllers
• Firs Method: The response is obtained
experimentally to a unit step input. The plant
involves neither integrators nor differentiators
Second Method
• Set Ti= inf and Td=0, increase Kp from 0 t a
critical value Kcr where the output exhibits
sustained oscillations.
• Use Kcr , Pcr and Table 10-2 to determine the
parameters of the controller
DR. Ibrahim Al-Abbas 258
Root Locus Design Method
1 KG s H s 0
KG s H s 1
KG s H s 180 0
2l 1
l 0 , 1, 2 ,
G s H s 1 K
G s H s 180 o
2l 1 l 0 , 1, 2 ,
Independent of K
Dr.Ibrahim Al-Abbas 263
Chapter 5:
Root Locus Design Method
• 3 poles:
p1 = 0; p2 = -1; p3 = -2
• No zeros
Dr.Ibrahim Al-Abbas 267
Applying Step #1
Draw the n poles and m
zeros of G(s)H(s)
using x and o
respectively. 1
G s H s
s s 1s 2
• 3 poles:
p1 = 0; p2 = -1; p3 = -2
• No zeros
Dr.Ibrahim Al-Abbas 268
Rule #2
• The loci on the real axis are to the left of an
ODD number of REAL poles and REAL zeros
of G(s)H(s)
30
180 2 1 1 1800
0
1 30
Draw the asymptotes using
dash lines. Dr.Ibrahim Al-Abbas 273
Applying Step #3
Determine the n - m asymptotes:
Locate s = α on the real axis:
p1 p2 p3 0 1 2
s 1
30 3
Compute and draw angles:
180 2l 1 l 0 , 1, 2 ,
l
nm
1800 2 0 1
0 60 0
30
180 2 1 1 1800
0
1 30
Draw the asymptotes using
dash lines. Dr.Ibrahim Al-Abbas 274
Breakpoint Definition
284
Outline
• What is frequency response
• Frequency response plots
• Bode diagrams of basic factors
285
What is frequency response
286
When the input signal is a sinusoid, the resulting output signal for LTI systems is
sinusoidal in the steady state, it differs from the input only in amplitude and
phase.
A
Consider the system Y ( s ) T ( s ) R ( s ) with r (t ) A sin t. R( s ) L {r (t )}
s 2
2
m( s )
If T ( s ) , where p1, p2,…,pn are distinctive poles,
( s p1 )( s p 2 ) ( s pn )
then in partial fraction expansion form, we have
k1 k2 k s
Y ( s) n 2
s p1 s p2 s pn s 2
Taking the inverse Laplace transform yields
s
y (t ) k1e p1t k 2 e p2t k n e pnt L -1
2 2
s
Suppose the system is stable, then all the poles are located in the left half plane and
thus the exponential terms decay to zero as t→∞. Hence, the steady-state
response of the system is
s
lim y (t ) L -1
2 2
A T ( j ) sin(t ), where T ( j ).
t
s
287
For the system Y ( s ) T ( s ) R( s ) with r (t ) A sin t ,
the steady-state output is lim y (t ) A T ( j ) sin(t ), where T ( j ).
t
That is, the steady-state response depends only on the magnitude and phase of T(jω).
• Polar plot
The TF G(s) can be described in the frequency domain by
G ( j ) G ( s ) s j R ( ) jX ( ), where R ( ) ReG ( j ), X ( ) ImG ( j )
R ( )
289
Frequency response plots (cont’d)
Example – polar plot
Consider a simple RC circuit. The TF of the
system is
V2 ( s ) 1
G( s)
V1 ( s ) RCs 1
The sinusoidal steady-state TF is
1 1 1
G ( j ) , where 1
j ( RC ) 1 j / 1 1 RC
1 j / 1
The polar plot is obtained from G ( j ) R ( ) jX ( )
/ 1 2 1
1 j / 1
polar plot
1 / 1 1 / 1
2 2
290
Frequency response plots (cont’d)
Limitations of polar plots:
The addition of poles and zeros requires the recalculation of the
frequency response.
The effect of individual poles and zeros is not indicated.
A more widely used graphical tool to plot frequency response is the Bode
diagram.
Bode plot
The TF in the frequency domain can be written as
G ( j ) G ( ) ( )
For a Bode diagram, we normally use
Logarithmic gain in dB 20 log10 G ( )
Magnitude versus ω and phase versus ω are plotted separately.
291
Bode diagram
Advantages of Bode plots:
Multiplication of magnitudes can be converted into addition by virtue of the
definition of logarithmic gain.
Straight-line asymptotes are simple to be used for sketching an approximate
log-magnitude curve.
M R
( j ) N (1 j m ) 1 ( 2 k / nk ) j ( j / nk ) 2
m 1 k 1
Bode diagram of
(jω)±N
294
Bode diagram of poles (or zeros) on the real axis
1
The log magnitude of (1+jωτ) is 20 log
-1 20 log 1 ( ) 2
1 j
The asymptotic curve for ω<<1/τ is -10log1=0 dB, and the asymptotic
curve for ω>>1/τ is -20logωτ with a slope of -20dB/decade. The two
asymptotes intersect at the 0dB line when ω=1/τ, the break frequency
or corner frequency. The log magnitude at ω=1/τ is -10log2≈-3dB.
The phase angle of (1+jωτ)-1 is
( ) tan 1
Bode diagram of
(1+jωτ)-1
When u<<1, the log magnitude is -10log1=0 dB, and the phase angle approaches
00. When u>>1, the log magnitude approaches -10log(u 4)=-40logu, which results in
a curve with a slope of -40dB/decade. The phase angle, when u>>1, approaches -
1800. The magnitude asymptotes meet at the 0dB line when
u / n 1.
296
Bode diagram of complex conjugate poles
(or zeros) (cont’d)
The magnitude asymptotes intersect at the 0dB line when u=ω/ωn=1.
asymptotes for
1 j 2u u
2 1
,
where u / n
297
Bode diagram of complex conjugate poles
(or zeros) (cont’d)
Bode diagram of
[(1+(2ζ/ωn)jω+(jω/ωn)2]-1
299
Minimum phase transfer function
A TF is called a minimum phase TF if all its zeros lie in the
left hand s-plane. It is called a nonminimum phase TF if it
has zeros in the right hand s-plane.
The meaning of the term minimum phase becomes clear
from the following example. Suppose z,p>0, the TF
G1(s)=(s+z)/(s+p) has no zero in the right hand s-plane, but
TF G2(s)=(s-z)/(s+p) has a zero in the right hand s-plane.
The frequency response curves can be evaluated for real
frequency s=jω on the s-plane (with ω varying along jω-axis).
Thus,
sz j z sz j z
G1 ( j ) G2 ( j )
s p s j
j p s p s j
j p
300
sz j z sz j z
G1 ( j ) G2 ( j )
s p j p s p s j
j p
s j
Phase
characteristics
for minimum
phase &
nonminimum
phase TF
301
Asymptotic
curves for basic
factors
302
Example of drawing the Bode diagram
303
5(1 j 0.1 )
G ( j )
j (1 j 0.5 ) 1 j 0.6( / 50) j / 50
2
We plot the magnitude characteristic for each factor in the TF.
1. The constant gain is 20log5=14dB.
2. The magnitude of the pole at the origin is a straight line with a slope
of -20dB/dec and intersecting the 0dB line at ω=1.
3. The magnitude asymptote of the pole at ω=2 has a slope of
-20dB/dec beyond the break frequency ω=2.
4. The magnitude asymptote of the zero at ω=10 has a slope of
20dB/dec beyond the break frequency ω=10.
5. The magnitude asymptote for the complex poles is -40dB/dec
beyond the break frequency ω=ωn=50. But the actual magnitude
differs from this approximation as ζ=0.3.
304
5(1 j 0.1 )
G ( j )
j (1 j 0.5 ) 1 j 0.6( / 50) j / 50
2
The total asymptotic magnitude can be plotted by adding the
asymptotes due to each factor, as shown by the solid line in the
figure. We can also obtain the curve directly by plotting each
asymptote in order as frequency increases.
The magnitude characteristic of the given TF is shown in the figure.
305
5(1 j 0.1 )
G ( j )
j (1 j 0.5 ) 1 j 0.6( / 50) j / 50
2
The phase characteristic can be obtained by adding the phase due to
each factor in the TF.
1. The phase of the constant gain is 00.
2. The phase of the pole at the origin is a constant -900.
3. We use the linear approximation of the phase characteristic for the pole
at ω=2, where the phase shift is -450 at ω=2.
4. We use the linear approximation of the phase characteristic for the zero
at ω=10, where the phase shift is 450 at ω=10.
5. The phase characteristic for the complex poles is obtained from the
known graph for ζ=0.3.
Phase
characteristic
306
Summary of the example of drawing the
Bode diagram
We have drawn the approximate Bode diagram for the TF
5(1 j 0.1 )
G ( j )
j (1 j 0.5 ) 1 j 0.6( / 50) j / 50
2
by finding the asymptotic magnitude and phase of each factor.
Although the magnitude and phase curves are approximate, they
give us good indication of important frequency ranges. After plotting
these approximate curves, we can use the equations to find the
exact magnitude & phase within a relatively small frequency range,
e.g., we are interested in the frequency at which the phase angle is -
1800. From the Bode diagram, this occurs when ω=46. Using the
equation ( ) 900 tan 1 tan 1 tan 1 2u 1750
1 2
1 u
46 2
309
Stability
• Transfer functions
GH ( s ) L( s )
T (s)
1 GH ( s ) I L( s )
– Poles
1 L s 0
T (s )
x x
s-plane
310
• Open Loop transfer function is ratio of
polynomials
ns
L s
d s
d s ns 0
Characteristic
Polynomial
311
• How can you determine stability?
– Direct computation of poles
• Compute characteristic polynomial
• Solve for roots (polynomial equation)
– Routh-Hurwitz test
– Root locus
1 kL s 0
• Can also be useful for design
– Nyquist analysis
312
Nyquist Criterion
• Interested in roots of
1 L s 0
– Want them to be in OLHP
• Note: L(s) is analytic
– Differentiable almost everywhere
– Poles are isolated
Im s
x
Re s
x
313
• Property of analytic functions
– Consider a simple closed curve in s-plane
Im s
o
Re s
o x
o
L s 2 Z P
314
• Apply to characteristic equation
1 L s 0
Im s
H s D
1 L s 0 jR
H s
R
Return difference
Re s
Nyquist
D-contour
-jR
315
• For now, assume no poles/zeros of H(s) on jw-axis
• Define Closed loop poles of the
system
Z D #zeros of H s in D
PD #poles of H s in D
1
ND H s RHP poles of the
# times H
circles origin
2 loop transfer function
316
• Principle of the argument Closed loop poles of the
system
– Define
Z D #zeros of H s in D
PD #poles of H s in D
# times H
ND
1
2
H s D RHP poles of the
loop transfer function
circles origin
– Then Z D N D PD
Number of closed loop poles in ORHP =
317
Nyquist Criterion
• Are all poles/zeros included in D-contour?
Im s
jR3
Radius of circle is
R3 arbitrary
jR2 x
o
jR1
o x
R2 Re s
x o x o
R1
o x
-jR1
o x
-jR2
-jR3
318
• Graphical view of H along D-contour
– For each s (complex number) H is a complex
number
H s Re H s j Im H s
– Along D-contour
Im s
H s D Re H s D j Im H s D jR
R
Locus of points
Re s
– Plot Im H s D vs. Re H s D
jR
319
Im s
jR
2 2
– Plot
Single Point:
1
Im H j vs. Re H j R R
Im H R e j
vs. Re H R e
j
2
2
– If strictly proper deg n s deg d s
H Re j
1
R
320
Im H j vs. Re H j
N # clockwise (CW) encirclements of 0
Z NP
Im s Im H
Suppose P=0
N 2
Re s Re H
Z N P
1
2 0 2
Z N P
s-plane 20 2
321
• More common to use L (rather than H)
H s 1 L s L s H s 1
– Locus of H encircles 0 locus of L encircles -1
– Plot Im L j vs. Re L j
– Define N # clockwise (CW) encirclements of 1
Im s Im H Im L
Re s Re H Re L
1 -1 0
s-plane
322
Nyquist Criterion
P # open loop CRHP poles of L s
N # CW encirclements of 1 by locus L s D
• Then the closed loop system is stable if and
only if
– The locus L s does not pass through -1 ; and
D
– N P
Note: This is the same as:
# CCW encirclements = # RHP open loop poles
323
• Evaluate encirclements graphically
L s
Im L
Im s w<0
Re s Re L
0
s-plane w>0
Im L
Re L
-1 0
N = # CW crossings of green line
- # CCW crossings of green line
324
• Example
k
L s
s 1
k j 1 k j 1
L j L j
j 1 j 1 j 1 j 1
k 1 j k 1 j
2
1 1 2
1 1
k j k j
2 2 2
1 1 1 1 2
k j 1
L j
j 1 j 1
k 1 j
1 2
k
1
j
2
k j 1
2
1 1
L j
j 1 j 1
k 1 j
1 2
k
1
j
1 2 1 2
– Note:
2 2 Circle centered at ½
1 1 1 with radius ½
1 2 2 1 2 4
325
• Nyquist locus
Im L – Stable?
1 RHP open loop pole
P 1
Need
k/2 N 1
-k Re L
-1 -1 -k/2 0
1 CCW encirclement
Þ N = -1
Þ Stable
0 CCW encirclement
Þ N=0
Þ Unstable
k 1 k 1k 1 k 1
326
• Alternatives
k
L s
s 1
– Characteristic equation
k
0 1 L s 1
s 1
s 1 k 0
• Pole In OLHP iff
s 1 k k 1
– Root locus Im s
k=1 Re s
x
1
327
• What if
2k
L s
s s 1 s 2
– Poles: Im s
Re s
x x x
-2 -1 0
Singularity
328
• Nyquist D-contour for systems with poles
on jw-axis
0
Im s Im L
0
R
r Re s Re L
x x x
-2 -1 0
0
0
329
Gain and Phase Margins
Let ARc be the value of the open-loop amplitude ratio at the critical frequency . Gain
margin GM is defined as:
ωc
1
GM (14-11)
ARc
Phase margin PM is defined as
PM 180 φ g (14-12)
• The phase margin also provides a measure of relative stability.
• In particular, it indicates how much additional time delay can be included in the
feedback loop before instability will occur.
• Denote the additional time delay as .
• For a time delay of , the phase angle is θ max.
θ max θ max ω 330
Figure 14.9 Gain and
phase margins in Bode
plot.
331
180
PM = θ max ωc (14-13)
or
PM
θ max =
(14-14)
ω
c 180
where the
/180 converts PM from degrees to radians.
factor
Guideline. In general, a well-tuned controller should have a gain margin between 1.7
and 4.0 and a phase margin between 30° and 45°.
332
Figure 14.10 Gain and phase margins on a Nyquist plot.
333