Professional Documents
Culture Documents
Control Theory II
By
Prof. Dr.
Yousif Ismail Al Mashhadnay
2020 – 2021
i
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Week
No Subject
(3 H/W)
Root Locus
Root locus plot.
1. General rules for constructing root loci. 1
Special cases, conditionally stable system.
Non-minimum phase systems.
Control system design by the root locus
2. Effects of the addition of poles and zeroes.
3
Lead compensator, lag compensator.
Polar plots.
3. 2
Nyquist stability criterion.
Bode diagram
4. Bode plot (Logarithmic plot) 2
Gain and phase margin.
Three term controller
PD controller.
5. 2
PI controller.
PID controller.
Introduction to sampled data systems and digital control
7. 2
systems
Analysis of control systems in state space
Control system representation in s.s.
8. Controllability, observability. 3
Pole placement, design by pole placement.
Ackermann's formula.
ii
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
References:
1) “ Linear Control System Analysis and Design with MATLAB ” by John
J. D’Azzo and Constantine H. Houpis , 2003.
iii
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Root Locus.
8.1. Introduction.
8.2. General Rules of Root Locus.
8.3. Examples.
4
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
8.1. Introduction.
To facilitate the application of the root-locus method, the following
rules are established for K > 0. These rules are based upon the
interpretation of the angle condition and an analysis of the characteristic
equation. These rules can be extended for the case where K < 0. The rules
for both K > 0 and K < 0 are listed in Sec. 7.16 for easy reference. The
rules presented aid in obtaining the root locus by expediting the plotting
of the locus. The root locus can also be obtained by using the MATLAB
program. These rules provide checkpoints to ensure that the computer
solution is correct. They also permit rapid sketching of the root locus,
which provides a qualitative idea of achievable closed-loop system
performance.
angular contribution of all the poles and zeros on the real axis to the left
of this point is zero. The angular contribution of the complex-conjugate
poles to this point is 360o. (This is also true for complex-conjugate zeros.)
Finally, the poles and zeros on the real axis to the right of this point each
contribute 180o (with the appropriate sign included). From Eq.(1) the
angle of G(s)H(s) to the point s1 is given by
- - - - - - (1)
6
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
However, there is no guarantee that this section of the real axis is part of
just one branch. Fig.2 a illustrate the situation where part of the real axis
between a pole and a zero is divided into three sections that are parts of
three different branches.
Fig.2.
7
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
- - - - - (3)
- - - - - (4)
Since the numerator and denominator factors of Eq.(4) locate the poles
and zeros, respectively, of the open-loop transfer function, the following
conclusions can be drawn:
1) When s=pc (the open-loop poles), the loop sensitivity K is zero.
2) When s=zh (the open-loop zeros), the loop sensitivity K is infinite.
When the numerator of Eq.(4) is of higher order than the denominator,
then s=1 also makes K infinite, thus being equivalent in effect to a zero.
Thus, the locus starting points (K=0) are at the open-loop poles and the
locus ending points (K=1) are at the open-loop zeros (the point at infinity
being considered as an equivalent zero of multiplicity equal to the
quantity n - w).
8
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
------- (5)
----------(6)
-------(7)
----(8)
---------(9)
---(10)
9
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
s1=│s1│∟1
s2=│s2│∟2
.
.
sx=│sx│∟x
.
sx=∞∟ɤ
Fig. 3
Rule 5: Real-Axis Intercept of the Asymptotes
The real-axis crossing so of the asymptotes can be obtained by applying
the theory of equations. The result is
The asymptotes are not dividing lines, and a locus may cross its
asymptote. It may be valuable to know from which side the root locus
approaches its asymptote. The locus lies exactly along the asymptote if the
10
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Fig.4.
on the real axis between two poles, there must be a point at which the two
branches breakaway from the real axis and enter the complex region of
11
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
- - - - - - - - - - - - (11)
Since the breakaway point’s s a for K > 0 must lie between s=0 and s=-1,
in order to satisfy the angle condition, the value is sa =-0:4257;
The other point, sb=-1.5743, is the break-in point on the root locus forK
<0.
Substituting sa= 0.4257 into Eq. (11) gives the value of K at the breakaway
Point for K > 0 as
13
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Fig. 5
14
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Fig. 6
16
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
17
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
An undamped oscillation may exist if the s_1 row in the array equals zero.
For this condition the auxiliary equation obtained from the s 2 row is
- - - - - - - - - - - (12)
18
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Also, the angle between a branch leaving and an adjacent branch that is
approaching the same point is given by
19
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ex.(1).
20
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
21
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
22
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
23
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Solution:
s=-2.366 s=-0.634
24
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ex.(3). Plot the root loci for the system has the following T.F:
Solution:
θ=-54.5o
θ=60o
s=-2.26
s=0.45
s=- 2/3
θ=54.5o
25
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Solution:
26
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Solution:
27
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ex.(6). Plot the root loci for the system has the following T.F:
Solution:
28
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ex.(7). Plot the root loci for the system has the following T.F:
Solution:
29
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Chapter Ten
48
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
In the above diagram, the output, for a unit amplitude sinusoidal input at frequency ω, has
magnitude |G(jω)| (i.e., the length of the vector ) and a phase angle φ.
To sketch the polar plot of G(jω) for the entire range of frequency ω, i.e., from 0 to infinity,
there are four key points that usually need to be known:
49
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
3) where the plot crosses the real axis, i.e., Im(G(jω)) = 0, and
4) where the plot crosses the imaginary axis, i.e., Re(G(jω)) = 0.
Now that we have expressions for the magnitude and phase of the frequency response, we
can sketch the polar plot using the 4 key points.
Point 1: The start of plot where (ω=0)
1
| G ( j ) | 1,
1 0
tan 1 (0 / 1) 0
Point 2: The end of plot where (ω=∞)
1
| G ( j ) | 0,
1
50
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
tan 1 ( / 1) 90
Point 3: Where the plot crosses the real axis, i.e., Im(G(jω)) = 0.
j
0 0 &
1 2 2
51
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Example1: Sketch the polar plot for a third order system with a transfer function of
1
G( s)
2 s 3s 2 3s 1
3
Solution:
Replacing s in the above transfer function with jω, one has the frequency response
1
G ( j )
2( j ) 3( j ) 2 3 j 1
3
1 (1 3 2 ) j (3 2 3 )
G( j )
(1 3 2 ) j (3 2 3 ) ((1 3 2 ))2 ((3 2 3 ))2
1
| G( j ) |
((1 3 2 ))2 (3 2 3 ) 2
Im g (G ( j )
tan 1
Re l (G ( j )
(3 2 3 )
tan 1 ( )
1 3 2
52
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
>> nyquist(sys)
Nyquist Diagram
6
0 dB
2 dB -2 dB
2
Imaginary Axis
4 dB -4 dB
6 dB -6 dB
10 dB -10 dB
0
-2
-4
-6
-4 -3 -2 -1 0 1 2 3
Real Axis
The polar plot of sinusoidal transfer function G(jω) is a plot of the magnitude of G(jω)
versus the phase angle of G(jω) on polar coordinates as ω is varied from zero to infinity.
Therefore it is the locus of as ω is varied from zero to infinity.
Note that in polar plot a positive (negative) phase angle is measured counterclockwise
(clockwise) from the positive real axis. The polar plot is often called Nyquist plot. An
example of such a plot is shown in Figure.10.1 each point on the polar plot of G(jw)
represents the terminal point of a vector at a particular value of w. in polar plot, it is
important to show the frequency graduation of the locus. The projections of G(jw) on the
real and imaginary axes are its real and imaginary components. Both the magnitude |G(jw)|
and phase angle ˂G(jw) must be calculated directly for each frequency w in order to
construct polar plots. Since the logarithmic plot is easy to construct ,however ,the data
necessary for plotting the polar plot may be obtained directly from the logarithmic plot if the
latter is drawn first and decibels are converted into ordinary magnitude. Or, of course
53
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Matlab may be used to obtain a polar plot G(jw) and ˂G(jw) accurately for various values
of w in the frequency range of interest. An advantage in using a polar plot is that its depicts
the frequency response characteristics of a system over the entire frequency range in a single
plot. One disadvantage is that the polar does not clearly indicate the contributions of each
individual factor of the open loop transfer function.
54
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
1 1
G ( j ) tan 1 (T )
1 jT 1 T
2 2
The value of G ( j ) at 0 is
1 1
G ( j ) tan 1 (0) 10
1 0 1 0
The value of G ( j ) at 1/ T is
1 1 1
G ( j ) tan 1 (1) 45
11 11 2
55
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
T 1
G ( j ) j
(1 2T 2 ) (1 2T 2 )
The general shape of the polar plot can be shown in Figure 10.8
56
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Im
1
0 Re
w =0
w
increase
57
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The following table represents the polar plot for some simple transfer functions:
Im Im
w =∞ w =∞
1
Re 0 Re
w w
1 ↓ 1 + 𝑗𝑤𝑇 ↓
𝑗𝑤 0 𝑗𝑤𝑇 0
Im Im
∞ ∞
↑ 1+jw ↑
jw w T w
w =0 w =0
0 Re 0 1 Re
Im
1 Im
𝑗𝑤𝑇
(𝑗𝑤𝑇)2
w =∞ 1 + 𝑗𝑤𝑇
w=∞
0← 0 Re
w 0 1 Re
w =0
Im Im
w= w=
1/ 1 ∞ 1
0a ∞ 0
Re w =0 Re
w =0
1 + 𝑗𝑤𝑇 1
1 + 𝑗𝑤 2 𝑇 (1 + 𝑗𝑤𝑇1 )(1 + 𝑗𝑤𝑇2 )(1 + 𝑗𝑤𝑇3 )
𝑤𝑛2 Im 1 + 𝑗𝑤𝑇1 Im
𝑗𝑤[(𝑗𝑤)2 + 2𝜁𝑤𝑛 (𝑗𝑤) + 𝑤𝑛2 ] w= 𝑗𝑤(1 + 𝑗𝑤𝑇2 )(1 + 𝑗𝑤𝑇3 ) w=
0 ∞ ∞
Re Re
0
w
w
58
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Where n>m or the degree of the denominator polynomial is greater than the degree
numerator polynomial, will have the following properties:
1. For λ=0 or type zero systems: the starting point of the polar plot which is at ω=0, is finite
and is on positive real axis. The tangent to the polar plot at ω=0 is perpendicular to the
real axis. The terminal point which is on ω=∞ is at the origin and the curve is tangent to
the one of the axis.
2. For λ=1 or type one systems: the jω term is in the denominator contributes -90 to the
total phase angle of G(jω) for 0 . At ω=0, the magnitude of G(jω) is infinity ,and
the phase angle becomes (-90).At low frequencies ,the polar plot is asymptotic to a line
parallel to the negative imaginary axis. At ω=∞, the magnitude of G(jω) is zero and the
curve converges to the origin and is tangent to the one of the axis.
3. For λ=2 or type two systems: the (jω)2 term is in the denominator contributes -180 to the
total phase angle of G(jω) for 0 . At ω=0, the magnitude of G(jω) is infinity ,and
the phase angle becomes (-180).At low frequencies ,the polar plot is asymptotic to a line
parallel to the negative imaginary axis. At ω=∞, the magnitude of G(jω) is zero and the
curve converges to the origin and is tangent to the one of the axis.
The general shape of polar plot for different types of the system can be shown in
Figure.10.11. There are two types of stability criterions by Nyquist concept Simplified
stability and General stability:
Simplified Stability criterion: It is depend on the path of Nyquist graph where if the Nyquist
graph passes to the right of point ( -1,0 ); [ i.e. The point lie to left of the plot as shown
Figure.10.12.a. below] then the system is stable. Otherwise the system unstable
(Figure.10.12.b. )
59
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
60
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
point by the G(s)H(s) locus. In this case it is not necessary to consider the locus for the
entire jω axis ,only for the positive frequency portion. Therefore; the stability in this
criterion can be summarized as: If Z = 0
the system is stable and If Z > 0 the system is unstable. Note: If the encirclement in
clockwise N it has positive value and in counterclockwise encirclements N is negative. We
present only the essence of the Nyquist stability criterion and define the phase and gain
stability margins. The Nyquist method is used for studying the stability of linear systems
with pure time delay.
For a SISO feedback system the closed-loop transfer function is given by:
G( s)
M ( s)
1 G( s) H ( s)
Where G(s): represents the system and H(s): is the feedback element.
Since the system poles are determined as those values at which its transfer function becomes
infinity, it follows that the closed-loop system poles are obtained by solving the following
equation:
1 G ( s ) H ( s ) 0 ( s )
A stability test for time invariant linear systems can also be derived in the frequency
domain. It is known as Nyquist stability criterion. It is based on the complex analysis result
known as Cauchy’s principle of argument. Note that the system transfer function is a
complex function. By applying Cauchy’s principle of argument to the open-loop system
transfer function, we will get information about stability of the closed-loop system transfer
function and arrive at the Nyquist stability criterion (Nyquist, 1932).
The importance of Nyquist stability lies in the fact that it can also be used to determine the
relative degree of system stability by producing the so-called phase and gain stability
61
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
margins. These stability margins are needed for frequency domain controller design
techniques.
D( s ) 1 G ( s ) H ( s )
whose zeros are the closed loop poles of the transfer function. In addition, it is easy to see
that the poles of D(s) are the zeros of M(s). At the same time the poles of D(s) are the open-
loop control system poles since they are contributed by the poles of H(s)G(s), which can be
considered as the open-loop control system transfer function obtained when the feedback
loop is open at some point. The Nyquist stability test is obtained by applying the Cauchy
principle of argument to the complex function D(s). First, we state Cauchy’s principle of
argument. Cauchy’s Principle of Argument, Let F(s) be an analytic function in a closed
region of the complex plane given in Fig. below except at a finite number of points (namely,
the poles of F(s ). It is also assumed that F(s ) is analytic at every point on the contour. Then,
as travels around the contour in the - plane in the clockwise direction, the function F(s )
encircles the origin in the(Re{F(s)},Im{F(s)})-plane in the same direction times (see Figure
below), with N given by:
N=Z-P
where Z and P stand for the number of zeros and poles (including their multiplicities) of the
function F(s) inside the contour. The above result can be also written as:
Arg{F(s)}=(Z-P)2π
which justifies the terminology used, “the principle of argument”.
62
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Contour, the poles of on the imaginary axis must be encircled by infinitesimally small
semicircles. Nyquist Stability Criterion: It states that the number of unstable closed-loop
poles is equal to the number of unstable open-loop poles plus the number of encirclements
of the origin of the Nyquist plot of the complex function D(s). This can be easily justified by
applying Cauchy’s principle of argument to the function D(s) with the s-plane contour given
in Figure above. Note that Z and P represent the numbers of zeros and poles, respectively, of
D(s) in the unstable part of the complex plane. D(s)At the same time, the zeros of D(s) are
the closed-loop system poles, and the poles of D(s) are the open-loop system poles (closed
loop zeros).
The above criterion can be slightly simplified if instead of plotting the function
D(s)=1+G(s)H(s), we plot only the function G(s)H(s), and count encirclement of the Nyquist
plot of G(s)H(s) around the point (1,j0), so that the modified Nyquist criterion has the
following form.
The number of unstable closed-loop poles (Z) is equal to the number of unstable open-loop
poles (P) plus the number of encirclements (N) of the point (-1,j0) of the Nyquist plot of
G(s)H(s), that is:
Z=P+N
Phase and Gain Stability Margins: Two important notions can be derived from the Nyquist
diagram: phase and gain stability margins. The phase and gain stability margins are
presented in Figure 10.15:
63
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
They give the degree of relative stability; in other words, they tell how far the given system
is from the instability region. Their formal definitions are given by:
Pm 180 arg{G( j ) H ( j )}
1
Gm [dB] 20 log
G ( j ) H ( j )
Since this system has a pole at the origin, the contour in the -plane should encircle it with a
semicircle of an infinitesimally small radius. This contour has three parts (a), (b), and (c).
Mappings for each of them are considered below.
a) On this semicircle the complex variable (s) is represented in the polar form by
s Re j with R &( / 2 / 2 ). Substituting s Re j into G ( s ) H ( s ) ,we easily see
that G( s) H ( s) 0 .
Thus, the huge semicircle from the (s) plane maps into the origin in the G( s) H ( s) plane as in
the Figure.10.16.
64
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
b) On this semicircle the complex variable (s) is represented in the polar form by
j
s re j with r 0 &( / 2 / 2 ) so that we have G( s) H ( s) 1 / re x arg( ) . Since
ϕ changes from –π/2 at point A to π/2 at point B, arg{G(s)H(s)} will change from (–π/2 to
π/2). We conclude that the infinitesimally small semicircle at the origin in the s-plane is
mapped into a semicircle of infinite radius in the G(s)H(s)-plane.
c) On this part the contour s takes pure imaginary values, i.e, s j with changing from
to .due to symmetry, it is sufficient to study only mapping along o we
can find the real imaginary parts of the function G( j ) H( j ),which are given by
1
Re{G ( j ) H ( j )}
2 1
1
Im{G ( j ) H ( j )}
( 2 1)
From these expressions we see that neither the real nor the imaginary parts can be made
zero , and hence the Nyquist plot has no points of intersection with the coordinate axis . for
o we are at point B and since the plot at + will end up at the origin ,the Nyquist
diagram corresponding to part (c) has the form as shown in Figure 10.17.
65
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Note that the vertical asymptote of the Nyquist plot in Figure.10.17 is given by
Re{G( jo ) H ( jo )} 1 ,since at those point Im{G( jo ) H ( jo )} ,from the Nyquist diagram
,we see that N=0,and since there is no open loop poles in the left hand side of the complex
plane, i.e (P=0),we have Z=0,so that the corresponding closed-loop system has no unstable
poles .
The Nyquist plot is drawn by using the MATLAB function Nyquist
num=1; den=[1 1 0];
nyquist(num,den);
axis([-1.5 0.5 -10 10]);
axis([-1.2 0.2 1 1]);
The MATLAB Nyquist plot is presented in Figure.10.17.
Nyquist Diagram
20
sys
15
10
Imaginary Axis
-5
-10
-15
-20
-1 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0
Real Axis
66
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Prob.1. Consider now the following system, obtained from the one in the previous example
by adding a pole, that is:
1
G( s) H ( s)
s( s 1)( s 2)
The contour in the -plane is the same as in the previous example. For cases (a) and (b) we
have the same analyses and conclusions. It remains to examine case (c). If we find the real
and imaginary
parts of G ( j ) H ( j ) ,we get
3 ; (2 )
Re{G ( j ) H ( j )} Im{G ( j ) H ( j )}
9 ( 2 ) [9 ( 2 )]
It can be seen that an intersection with the real axis happens at 2 at the point
Re{ G ( j 2 ) H ( j 2 )} . The Nyquist plot is given in Figure.10.18. The corresponding Nyquist
67
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ω Phase Magnitude
0 -90 ∞
∞ -270 0
Setting Im{G(jw)=0}
real axis by the G ( jw) plot is at -0.8333, and the corresponding w is 4.47 rad/sec. Thus, Z =
0. The closed-loop system is stable. Nyquist Plot of G ( jw ):
68
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ω Phase Magnitude
0 -90 ∞
∞ -270 0
100(1 j )
G ( j )
(0.01 0.8 2 ) j (1 0.17 2 )
4
Setting Im G( jw) = 0 ,
0.01w4 -0 .8w2 -1+ 0.17w2 = 0
w4-63 w2 -100 = 0,
Thus, w 2 = 64. 55 & w = ±8.03 rad/sec.
G(j8.03)=-10
The closed-loop system is unstable
Nyquist Plot of G ( j w ):
69
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Nyquist Diagram
500
Imaginary Axis
-500
-30 -25 -20 -15 -10 -5 0 5 10 15 20
Real Axis
70
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ω Phase Magnitude
0 -180 ∞
∞ -360 0
10
G ( j )
(0.1 4 2 ) 0.7 j 3
10[( 0.1 4 2 0.7 j 3 ]
(0.1 4 2 ) 2 0.49 6
Setting Im {G ( jw ) = 0}, w = ∞. The Nyquist plot of G ( jw) does not intersect the real axis
except at the origin where w = ∞.
The closed loop system is unstable. The characteristic equation has two roots in the right-
half s-plane.
Nyquist Plot of G ( jw ):
Nyquist Diagram
3
1
Imaginary Axis
-1
-2
-3
-2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 0
Real Axis
71
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Nyquist Diagram
0.8
0.6
0.4
Imaginary Axis
0.2
-0.2
-0.4
-0.6
-0.8
-0.2 0 0.2 0.4 0.6 0.8 1 1.2
Real Axis
Ω Phase Magnitude
0 -90 ∞
∞ -360 0
0.1 0.1[( 4 2 2 ) j (1 2 2 )]
G ( j ) ;
( 4 2 2 ) j (1 2 2 ) ( 4 2 2 ) 2 2 (1 2 2 ) 2
72
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Nyquist Diagram
5
Imaginary Axis
-5
-0.25 -0.2 -0.15 -0.1 -0.05 0
Real Axis
Ω Phase Magnitude
0 -90 ∞
∞ -180 0
10( j 10)
G ( j )
101 2 j (100 2 )
10( j 10)[101 2 j (100 2 )]
10201 4 2 (100 2 ) 2
Setting Im {G ( jw)} = 0, w = 0 is the only solution. Thus the Nyquist plot does not
intersect the real axis except at the origin. The closed loop system is stable.
73
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Nyquist Diagram
10
5
Imaginary Axis
-5
-10
-1 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0
Real Axis
Nyquist Diagram
1
0.5
Imaginary Axis
peak response
-0.5
-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Real Axis
74
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Prob. 8.
A. check the open loop and closed loop stability of the following system using Matlab?
B. Find gain margin, phase margin, phase crossover frequency and gain crossover
1
frequency? G ( s)
s( s 1)
Solution :
The Nyquist plot is drawn by using the MATLAB function Nyquist
num=1; den=[1 1 0];
nyquist(num,den);
axis([-1 0.1 -20 20]);
Nyquist Diagram
20
15
10
Imaginary Axis
-5
-10
-15
-20
-1 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 0.1
Real Axis
75
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Lecture Nine:
9.1. Introduction.
9.2. Effects of the addition of poles and zeroes.
9.3. Lag Compensators.
9.4. Lead Compensators.
9.5. Lag – Lead Compensators.
9.6. Examples
30
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
9. 1. Introduction.
The performance specifications for a system are usually based on a desired damping ratio
(ζ) , damped natural freq. (Wn) and study state error. The root locus ( R.L.) diagrams for the
system show that the desired performance can’t be achieved by gain adjustment alone. The
R. L. introducing dynamic compensators to meet the desired performance specifications.
31
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
1) A given system is stable and its transient response is satisfactory, but its steady-state
error is too large . Thus , the gain must be increased to reduce the steady-state error.
This increase must be accomplished without appreciably reducing the system stability.
2) A given system is stable , but its transient response is unsatisfactory. Thus, the root
locus must reshaped so that it is moved farther to the left, away from the imaginary axis.
3) A given system is stable, but both its transient response and its steady-state response are
unsatisfactory. The locus must be moved to the left and the gain must be increased.
4) A given system is unstable for all values of gain . Thus, the root locus must be reshaped
so that part of each branch falls in the left –half s –plane, thereby making the system
stable.
Compensation of a system by the introduction of poles and zeros is used to improve the
operating performance. However, each additional compensator pole increases the number of
roots of the closed-loop characteristic.
When the compensator has been added to the system, the loop gain for the new system is
(compensated system):
K= =
32
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Where K is the loop gain of uncompensated system. If the compensator is added to a type
(0) system to improve the steady state accuracy, then the value of the step error coefficient ks
before k after the addition of the compensator is :
♣ The following two points can be used as a guided to the design of phase retard
compensator:
1) If the angle contributed by the compensator at the original closed-loop dominant roots
is less them 5 then the new root-locus is only slightly displaced from the original. The ,
the pole (s = -1/αT), and the zero (s= -1/T) of the compensator are placed very close
together.
2)The ratio of the zero & the pole of the compensator, i.e. ,
2. Plot the line with angle which depends on the value of damping ratio where this point can
be limit.
33
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Solution:
G(s)= ; H(s)=1; G(s)H(s) =
Angle of departure=Øp=180-∑Øp -( ) - .
C.E.=s3+2s2+2s+k=0
Jw3 – 2w2 2jw k →jw3+2jw =0
W=0; or w2 2 → w2 = -2 ; w j √2
jw
1.5
160
34
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Therefore the dominant roots are: S1,2 = - 0.5 + j 0.9 (from the drawing point A) static loop
sensitivity at that point :
K │s││s - j ││s j│ s= -0.5 + j 0.9
K │- . j . ││ . - j . │ │ . j . │ . ≈
Kv = = = velocity – error coff. Of the dominant roots
Now to increase Kv without changing the sy. transient response, a lag compensator is added
in cascade to the sgs.
K v′ Kv → where Kv′ (velocity –error coff. Of compensated sy).
α = =8
Gc (s) = A α
To know that the addition of this compensator will not effect on the actual root – locus of
the dominant roots s = -0.5 j 0.9, check the angle
Contribution of the compensator at s = -0.5 + j 0.9
Gc(s) = S + 0.1 – S+0.0125 S= -0.5+j0.9
= - 0.4 + j0.9 - - 0.375 + j0.9
= 113.96 – 118.4 = - 4.48 (i.e less than 5 ).
؞The compensator is acceptable .
35
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Gc (s) = A Where
By making a sufficiently small, the location of the pole at s = - is far to the left of the zero
at s = - and has therefor only a small effect on the important part of the root – locus .
At the desired location N of one of the dominant closed – loop. Poles calculate the angle
contributions of the open – loop. Poles & zero. The lead network must then contribute an
angle Ø such that the total some of the angles of the original & compensator is +180 (1+2) .
♣To find the value of T & α of the compensator, then:
1-Draw a horizontal line AP, P (location of one of dominant pole) .
2. Draw a line from P to the origin 0 .
3. bisect the included angle APO . Call the bisector Bp .
4. Construct two lines PC and PD which make angles + with the bisector .
36
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
5. The intersection of PC and PD with the -ve real axis give the required locations of the
pole and the zero of the lead compensator.
jw
∟oPA
ф/2
A
P
C B D o
Pole= Zero=
Solution:
G (s) = = =
Wd = wn ζ 2 = 1.9
37
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
؞Gc(s) = =
α= = = 0.11
Gc(s) G(s) =
K1 = = 33.5
K1 = 5K → K = = 6.7
38
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Root Locus
0.93 0.86 0.76 0.62 0.44 0.22
2.5
2
0.97
1.5
1
0.992
Imaginary Axis
0.5
6 5 4 3 2 1
0
-0.5
0.992
-1
-1.5
0.97
-2
0.93 0.86 0.76 0.62 0.44 0.22
-6 -5 -4 -3 -2 -1 0
Real Axis
Root Locus
2.5
1.5
1
Imaginary Axis
0.5
-0.5
-1
-1.5
-2
-5 -4 -3 -2 -1 0
Real Axis
39
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Root Locus
0.2
0.15
0.1
0.05
Imaginary Axis
-0.05
-0.1
-0.15
-0.2
-0.25
-0.3
-0.45 -0.4 -0.35 -0.3 -0.25 -0.2 -0.15 -0.1 -0.05 0
Real Axis
Root Locus
0.06
0.04
-0.04
-0.06
-0.1 -0.08 -0.06 -0.04 -0.02 0
Real Axis
40
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Root Locus
1
Imaginary Axis
-1
-2
-3
-4
Root Locus
1
Imaginary Axis
0
Axis
-1
-2
-3
-5 -4 -3 -2 -1 0 1
Real Axis
41
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
42
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
If is required in Equation of compensator , then the preceding design procedure for the
lag–lead compensator may be modified as follows:
1) From the given performance specifications, determine the desired location for the
dominant closed-loop poles
43
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
44
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
Example: Consider the control system shown in Figure below. This system has closed-loop
poles at (s=-0.25±g1.9843; The damping ratio is 0.125, the undamped natural frequency is 2
rad/sec, and the static velocity error constant is 8 sec–1. It is desired to make the damping
ratio of the dominant closed-loop poles equal to 0.5 and to increase the undamped natural
frequency to 5 rad sec and the static velocity error constant to 80 sec–1. Design an
appropriate compensator to meet all the performance specifications?
Solution:
To design the phase-lead portion of the compensator, we first determine the location of the
zero and pole that will give 55° contribution. There are many possible choices, but we shall
here choose the zero at s=–0.5 so that this zero will cancel the pole at s=–0.5 of the plant.
Once the zero is chosen, the pole can be located such that the angle contribution is 55°. By
45
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
simple calculation or graphical analysis, the pole must be located at s=–5.02. Thus, the
phase-lead portion of the lag–lead compensator becomes:
46
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 20201
H.W.
1) Plot the Root Locus for compensated system and uncompensated system and
compare between them?
2) By Using Malab plot the unit step response for compensated system and
uncompensated system and compare between them?
47
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Chapter Eleven
Bode Diagram
11.1. Introduction
11.5. Examples
76
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
11.1. Introduction
put:
Output: magnitude and phase shift | |
0.5
0
-0.5
-1
-1.5
-2
0 2 4 6 8 10 12 14 16 18 20
Time (sec)
𝐼𝑚 𝐺 𝑖𝜔
𝑅𝑒 𝐺 𝑖𝜔
77
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
|𝐺 𝑖𝜔 |
𝐺 𝑖𝜔
Nyquist diagram
0.6
0.4
Imaginary axis
0.2
0
-0.2
-0.4
-0.6
-2 90 -50
Phase lead ‒‒ ᵒ
Lag
-1.3dB Phase
Phase 90
-4 Lag
-6 -100
50HZ50HZ
-8
-10 -150
1 10 100
Solution frequency ‒‒ Hz
𝐼𝑚 𝑠
We can write:
| | | | 𝜔
| | 𝜔
| | | |
𝑅𝑒 𝑠
| |
| | √
How to plot | | ⁄√
| |
√
Three cases:
Case 1:
● Approximate
79
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
| |
Bode diagram
10
5
0
-5
Magnitude (dB)
-10
-15
-20
-25
-30
-35
Frequency (rad/sec)
Case 2:
| |
Case 3:
● Approximate
| |
Bode diagram
10
5
0
-5
Magnitude (dB)
-10
-15
-20
-25
-30
-35
Frequency (rad/sec)
80
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
-10
-15
-20
-25
-30
-35
Frequency (rad/sec)
Bode diagram
0
-10
Magnitude (dB)
-20
-30
-40
0
Phase (deg)
-45
-90
Frequency (rad/sec)
∑ ∑
81
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
8 9 9 8
𝐼𝑚 𝑠
𝜔
𝑖𝜔
𝑅𝑒 𝑠
82
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
225
180
135
90
45
Phase (deg)
0
-45
-90
-135
-180
-225
Frequency (rad/sec)
Case 3: 𝜔
Case 2: 𝜔
● 𝐺 𝑖𝜔
● 𝐺 𝑖𝜔 ● 𝐺 𝑖𝜔 9
● 𝐺 𝑖𝜔 45 Fixed at 9 for large 𝜔
0
𝜔
𝜔
Phase (deg)
-45
𝜔
-90
Frequency (rad/sec)
83
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
0
𝜔
Phase (deg)
𝜔
-45
𝜔
-45
Frequency (rad/sec)
Then
| | | || |
And
| | | | | |
| | | | | |
84
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
40 Zero
20 Bode zero
Magnitude (dB)
0 Sum
Bode sum
-20
Pole
-40
Bode pole
-60
1 10 100 1000 10000 100000
Frequency
Rule # 2:
Phase plots add. For
90 Zero
70
Bode zero
50
30 Sum
Phase (degrease)
10
Bode sum
-10
-30 Pole
-50
-70 Bode pole
-90
1 10 100 1000 10000 100000
Frequency
85
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Magnitude: | | | |
● | | | |
Bode diagram
10
5
0
-5 |𝑐|
Magnitude (dB)
-10
-15
-20
-25
-30
-35
Frequency 𝜔
Phase: {
8
225
180
𝑐 0
135
90
45
Phase (deg)
0
-45 𝑐 0
-90
-135
-180
-225
Frequency (rad/sec)
86
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Magnitude:
● |𝐺 𝑖𝜔 | |𝑖𝜔| |𝜔|
● |𝐺 𝑖𝜔 | |𝜔|
Our x-axis is 𝜔
Phase: 𝐺 𝑠 𝑠
● Plot is linear for all 𝜔
● 𝐺 𝑖𝜔 𝑖𝜔 9
● Slope is +20 dB/decade
● Always 9
● Need a point: 𝜔
|𝐺 𝑖𝜔 |
𝜔
Bode diagram
20
15
Magnitude (dB)
10
5
0
-5
91
90.5
Phase (deg)
90
89.5
89
Frequency (rad/sec)
87
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Bode diagram
10
5
0
-5
Magnitude (dB)
-10
𝑘
-15
𝑘 4
-20
-25
𝑘
-30
-35
𝑘 𝜔
Magnitude:
●| | | | | |
| | | | | |
● Slope is +20k dB/Decade
Need a point
● At
| | ; k pure zeroes added together.
88
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
405
𝑘 4
360
315
𝑘
270
225
Phase (deg)
𝑘
180
135
90 𝑘
45
0
-45
Frequency (rad/sec)
4 𝑎
6 𝑎
𝑎
4 𝑎
𝑀
8 𝑎
20
𝑎
6 𝑎 Slope = 6dB/octave
= 20dB/Decade
𝑎
𝑎 𝑎 𝑎 𝑎 𝑎
𝜔 𝑇 𝜔 𝑇
Frequency (rad/sec)
89
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The phase and gain margins of a control system are a measure of the
closeness the polar plot to the (-1+j0) point. Therefore, these margins may
be used as design criteria. It should be noted that either the gain margin
alone or the phase margin alone doesn’t give a sufficient indication of the
relative stability. Both should be given in the determination of relative
stability. For a minimum-phase system, both the phase and gain margins
must be positive for the system to be stable. Negative margins indicate
instability. Proper phase and gain margins ensure us against variations in
the system components and are specified for definite positive values.
The two values bound behavior of the closed-loop system near the
resonant frequency. For satisfactory performance, the phase margin should
be between 30” and 6 , and the gain margin should be greater than 6dB.
Whit this value, a minimum-phase system has guaranteed stability, even if
the open-loop gain and time constant of the components vary to a certain
extent. Although the phase and gain margins give only rough estimates of
the effective damping ratio of the closed-loop system, the do offer a
convenient means for designing control system or adjusting the gain
constant of systems. For minimum-phase systems, the magnitude and phase
characteristics of the open-loop transfer function are definitely related.
The stability measured by phase and gin margins of stable and unstable
systems, by the Fig.11.1. (a) Bode diagrams; (b) polar plots; (c) log-
magnitude versus-phase plots.
90
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Negative gain
Positive gain margin
margin
0 0
𝜔
|𝐺|in dB
𝜔
|𝐺|in dB
9 9
𝐺
8 8
𝐺
𝜔 𝜔
7 Positive phase 7
Negative phase
margin
margin
Positive gain Im Im
𝑘
margin𝑔 G plane
Negative
G plane
|𝐺 𝑗𝜔 | phase margin
𝑦 8 ∅
𝑘𝑔 𝑦
𝑦 Re Re
Ø
∅
Positive
phase margin 𝑘𝑔 Negative
gain margin
𝐺 𝑗𝜔 𝐺 𝑗𝜔
Positive
Phase
Margin
Negative Gain
Margin
|𝐺|In dB
|𝐺|In dB
0 0
Positive
Gain Negative
Margin Phase
Margin
7 8 9 7 8 9
𝐺 𝐺
(c)
System stable Unstable system
Fig. (a) Bode diagrams; (b) polar plots; (c) log-magnitude versus-phase plots.
91
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The requirement that the phase margin be between and 6 means that
in a Bode diagram the slope of the log-magnitude curve at the gain
crossover frequency should be more gradual than -40dB/decade. In the
most practical cases, a slope of -20 dB/decade is desirable at the gain
crossover frequency for stability. If it is -40 dB/decade, the systems could
be either stable or unstable. (Even if the system is stable, however, the
phase margin is small). If the lope at the gain crossover frequency is -60
dB/decade or steeper, the system is most likely unstable. For non-minimum
phase system, the correct interpretation of stability margins requires careful
study.
The best way to determine the stability of non-minimum phase systems is
to use the NYquist diagram approach rather than Bode diagram approach.
The rules for phase and gain margin are:
92
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
11.5. Examples
Ex. 1. obtain the phase and gain margins of the system shown in figure for
the two cases where k=10 and k=100.
R(s) + 𝑘 C(s)
_ 𝑠 𝑠 𝑠 5
Solution:
The phase and gain margins can easily be obtained from the Bode diagram.
A Bode diagram of the given open-loop transfer function with k=10 is
shown in figure (a). The phase and gain margins for k=10 are:
Phase margin = 21” , Gain margin = 8 dB
Therefore, the system gain may be increased by 8dB before the instability
occurs. Increasing the gain from k=10 to k=100 shifts the 0-dB axis down
by 20dB, as shown in figure (b). The phase and gain margins are:
Phase margin = , Gain margin = -12 dB
Thus the system is stable for k =10, but unstable for k=100.
30
K=10
20
10
|𝐺𝑚| 0 +8 dB (Gain margin)
(DB)-10
-20
-30
Phase9
(deg)
8 (Phase margin)
7
0.2 0.4 0.6 0.8 1 2 4 6 8 10
𝜔
Figure (a)
93
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
K=10
50
40
30 (Gain margin) -12 dB
20
10
|𝐺𝑚| 0
(DB)-10
(Phase margin)
Phase 9
(deg)
8 0.4 0.8 1 2 4 6 8
𝜔
7
0.2 0.6 10
Figure (b)
Notice that one of the very convenient aspects of the Bode diagram
approach is the easy with which the effects of gain changes can be
evaluated. Note that to obtain satisfactory performance, we must increase
the phase margin to 6 . This can be done by decrease the gain k.
Decreasing k is not desirable, however, since a small value of & will yield
a large error for the ramp-input. This suggests that reshaping of the open-
loop frequency-response curve by adding compensation may be necessary.
94
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Bode diagram
80
60
Magnitude (dB)
40
20 GM
0
-20
-40
-60
-80
-100
-90
-135
Phase (deg)
-180 PM
-225
-270
Bode diagram
K=100:
Bode Diagram
100
Magnitude (dB)
50
GM
0
-50
-100
-90
Phase (deg)
-135
PM
-180
-225
-270
Frequency (rad/sec)
Ex. 2. Draw the Bode plots for the system with G(s) as follows:
[ ]
Solution:
We will make a Bode plot for the open-loop function
[ ]. The Bode plot is the sum of the Bode plots for each
95
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
40
-20dB/Dec (-6dB/oct)
20 -40 dB/Dec (-12dB/oct)
0 -60dB/Dec (-18dB/oct)
𝑀
-40
-60
-80
0.1 1 10 100
96
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
-90
45 /Dec
-120
45 /Dec
-180
Phase (degrees)
9 /Dec
-225
45 /Dec
-270
-315
-360
0.1 1 10 100
Frequency (rad/sec)
H.W. Calculate the gain and phase margin and discuss the stability?
97
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
-10
Magnitude (dB) -20
-30
-40
0
Phase (deg)
-45
-90
Frequency (rad/sec)
Bode Diagram
G(s) = 10/s+1
20
Magnitude (dB)
10
-10
-20
0
Phase (deg)
-45
-90
Frequency (rad/sec)
98
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Magnitude (dB)
10
-10
-20
0
Phase (deg)
-45
-90
Frequency (rad/sec)
50
Magnitude (dB)
40
30
20
0
Phase (deg)
-45
-90
Frequency (rad/sec)
99
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
G(s) = s/(s+1)
Bode Diagram
0
-10
Magnitude (dB)
-20
-30
-40
-50
90
Phase (deg)
45
Frequency (rad/sec)
-50
-100
-150
-90
Phase (deg)
-135
-180
-225
-270
Frequency (rad/sec)
100
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Magnitude (dB)
0
-50
-100
-150
-90
Phase (deg)
-135
-180
-225
-270
Frequency (rad/sec)
Bode Diagram
20
Magnitude (dB)
10
0
G(s) = 10(s+1)/(s2+2s+1)
-10
-20
0
Phase (deg)
-45
-90
Frequency (rad/sec)
101
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Bode Diagram
G(s) = 512(s+3)/ s(s2+16s+256)
40
20
Magnitude (dB)
0
-20
-40
-60
-80
-45
Phase (deg)
-90
-135
-180
Frequency (rad/sec)
Bode Diagram
G(s) = s/(s3+3s2+2s+1)
0
-20
Magnitude (dB)
-40
-60
-80
90
Phase (deg)
-90
-180
Frequency (rad/sec)
102
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ex.3. Plot the Bode diagram for the G(s) = k(s+2)/s2(s+8)(s+10), then
check the stability and find the limit of gain?
Solution: at k = 1;
Bode Diagram
50
0
Magnitude (dB)
-50
-100
-150
-200
-135
Phase (deg)
-180
-225
-270
Frequency (rad/sec)
Bode Diagram
50 G(s) = k(s+2)/s2(s+8) (s+10), k=20
Magnitude (dB)
-50
-100
-150
-135
Phase (deg)
-180
-225
-270
Frequency (rad/sec)
103
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Bode Diagram
G(s) = k(s+2)/s2(s+8) (s+10), k=40
50
System sys
0 Frequency (rad/s): 1.01 System sys
Phase (deg) Magnitude (dB) Magnitude (dB): 0.663 Frequency (rad/s): 2.58
-50 Magnitude (dB): -12.9
-100
-150
-135
System sys
-180 Frequency (rad/s): 6.87
Magnitude (dB): -182
-225
-270
Frequency (rad/sec)
5000
3000
1000
700
300
100
50
20
10
w
8
0
-268.2
-266.9
-260.9
-257.0
-240.4
-197.7
-170.4
-160.3
-166.3
-168.5
-137.8
-178.4
-180.0
Phase
Bode Diagram
G(s) =640(s+2)/s2(s+8)(s+10)
-100
-0
Magnitude (dB)
𝜔1=1/0.5=2
50
Gm=-2;
Pm=-8 𝜔2=1/0.125=8
-135 𝜔3=1/0.1=10
Phase (deg)
-180
-225
104
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Ex.4. Plot the Bode diagram for the following system, then check the
stability and find the limit of gain?
Solution:
R(s) + 𝑠 C(s)
8 𝑒
_ 𝑠 𝑠 4 𝑠
G(s)
57
40
20
-20
0
-40
-20 9
|𝐺|
-40 8
-60
𝐺
-60 7
-80 6
-100 45
0.1 0.2 0.4 0.6 1 2 4 6 10 20 40 60 100
𝜔 In rad/sec
105
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Chapter Twelve
12.1. Introduction.
12.2.1. P Controller
12.2.2. PI Controller
12.2.3. PD Controller
106
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
12.1. Introduction.
Today, a number of different controllers are used in industry and in many
other fields. In quite general way those controllers can be divided into two
main groups:
● Conventional controllers
● Unconventional controllers
As conventional controllers we can count controllers known for years
now, such
As P, PI, PD, PID, Otto-Smith, all their different types and realizations,
and other controller types 2. It is a characteristic of all conventional
controllers that one has to know a mathematical model of the process in
order to design a controller. Unconventional controllers utilize a new
approaches to the controller design in which knowledge of a
mathematical model of a process generally is not required. Examples of
unconventional controller are a fuzzy controller and neuro or neuro-
fuzzy controllers.
Manny industrial processes are nonlinear and thus complicate to describe
mathematically. However, it is known that a good many nonlinear
processes can satisfactory controlled using PID controllers providing that
controller parameters are tuned well. Practical experience shows that
this type of control has a lot of
sense since it is simple and based on 3 basic behavior types: proportional
(P), integrative (I) and derivative (D). Instead of using a small number of
complex controllers, a larger number of simple PID controllers is used to
control simpler processes in an industrial assembly in order to automates
the certain more complex process. PID controller and its different types
such as P, PI and PD controllers are today a basic building blocks in
control of various processes.
107
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
In spite their simplicity; they can be used to solve even a very complex
control problems, especially when combined with different functional
blocks, filters (compensators or correction blocks), selectors etc. A
continuous development of new control algorithms insure that the time of
PID controller has not past and that this
Basic algorithm will h a v e its part to play in process control in
foreseeable future. It can be expected that it will be a backbone of
many complex control systems. PID controllers use a 3 basic behavior
types or modes: P - proportional, I - integrative and D - derivative. While
proportional and integrative modes are also used as single control
modes, a derivative mode is rarely used on its own in control systems.
Combinations such as PI and PD control are very often in practical systems.
It can be also s h o w n that PID controller is a natural generalization of
a simplest possible controller - On-off controller.
12.2.1. P Controller
When P controller is used, large gain is needed to improve steady state
error. Stable system does not have a problem when large gain is used. Such
systems are systems with one energy storage (1st order capacitive systems).
If constant steady state error can be accepted with such processes, than P
controller can be used. Small steady state errors can be accepted if sensor
108
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
12.2.2. PD Controller
It is well known that thermal processes with good thermal insulation act
almost as Integrators. Since insulation is good and thermal losses are
small, the most significant part of the energy that is led to the system is
used temperature rise. Those processes allow for large gains so that
integral mode in the controller is not needed. These processes can be
described as different connections of thermal energy storages. Thermal
energy is shifted from one storage into another. In general, with such
processes there is present a process dynamics with large inertia. Since
dynamics is slow, derivative mode is required for control of such
processes. Integral mode would only already slow dynamics make more
slowly. The other reason for using PD controllers in such systems is that is
possible to measure temperature with low level of noise in the measured
signal. PD controller is often used in control of moving objects such are
flying and underwater vehicles, ships, rockets etc. One of the reason is in
stabilizing effect of PD controller on sudden changes in heading variable
109
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
12.2.3. PI Controller
PI controllers are the most often type used today in industry. A control
without D mode is used when:
a) fast response of the system is not required
b) large disturbances and noise are present during operation of the process
c) there is only one energy storage in process (capacitive or inductive)
d) there are large transport delays in the system
If there are large transport delays present in the controlled process, error
prediction is required. However, D mode cannot be used for prediction
because every information is delayed till the moment when a change in
controlled variable is recorded. In such cases it is better to predict the
output signal using mathematical model of the process in broader sense
(process + actuator).
12.2.4. PID Controller
Derivative mode improves stability of the system and enables increase in
gain K and decrease in integral time constant Ti, which increases speed of
the controller response. PID controller is used when dealing with
higher order capacitive processes (processes with more than one energy
storage) when their dynamic is not similar to the dynamics of an integrator
(like in many thermal processes). PID controller is often used in industry,
but also in the control of mobile objects (course and trajectory following
included) when stability and precise reference following are required.
Conventional autopilot is for the most part PID type controllers.
110
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
111
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Signal
generator
P
+ +
e Actuator
r I + UPID + y
+
+ + Process
Plant
u(t) c (t)
response does not exhibit an S-shaped curve , this method does not apply).
Such step response curve may be generated experimentally or form a
dynamic simulation of the plant.
The S-shaped curve may be characteristic by two constant, delay time L
and time constant T. The delay time and time constant are determined by
drawing and tangent line at the inflection point of the S-shaped and
determined the intersections of the tangent line with the axis and line
, as shown in Figure -3-.The transfer function ⁄ may
then be approximated by a first-order system with a transport lag as
follows:
Ziegler and Nichols suggested to set the values of and according to
the formula shown in table 12.2.
Notice the PID controller tuned by the first method of Ziegler- Nichols
rules gives
c(t)
k
0 t
L T
( )
( )
113
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Type of
controller
P 0
PI 0
PID 2L 0.5L
Thus, the PID controller has a pole at the origin and double zeroes at
114
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
c(t)
r(t) + u(t) c(t)
𝑲𝑷 Plant
𝑷𝒄𝒓
(a) 0
(b)
Fig. 12.5. (a) Block diagram of control system . (b) parameter of second
method of Ziegler- Nichols
Table.12.2 Ziegler- Nichols tuning rule based on critical gain and
critical period (second method)
Type of
controller
P 0
PI 0
PID
Notice the PID controller tuned by the second methods of Ziegler- Nichols
rules gives: ( )
( )
( )
Thus the PID controller has a pole at the origin and double zeroes at
115
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
C(s)
R(s) + 𝟏
𝑮𝒄 𝒔 𝒔 𝒔 𝟏 𝒔 𝟓
PID controller
Solution:
Since the plant has an integrator, we use the second method of Ziegler-
Nichols tuning rules. By setting and , we obtain the closed-
loop transfer function as follows:
The value of that makes the system marginally stable so that sustained
oscillations occurs can be obtained by use of Routh’s stability criterion.
Since the characteristic equation for the closed-loop system
Examining the coefficient of the first column of the Routh table, we find
the sustained oscillation will occur if the Thus, the critical gain
is
116
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
√
Referring to table 10-2, we determine and as follows:
( )
( )
R(s) + C(s)
𝟔 𝟑𝟑𝟐𝟑 𝒔 𝟏 𝟒𝟐𝟑𝟓 𝟐 𝟏
𝒔 𝒔 𝒔 𝟏 𝒔 𝟓
PID controller
The PID controller has a pole at the origin and double zeroes at
A block diagram of the control system with designed PID
controller is shown in Figure above.
117
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Next, let examine the unit-step response of the system. The closed-loop
transfer function is given by
( )
And the unit-step response can be shown below with final tuning
Can be getting the max. Overshoot about with the following response:
118
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Noting that the current following into the amplifier is negligible, we have
Since we have
Taking the Laplace transformer of this last equation, assuming the zero
initial condition, we have
𝑅 𝑅
𝑖
𝑒 +
𝑒𝑖
𝑒
I(s)
𝑍 𝑠
I(s)
𝑍 𝑠
𝐸 𝑠
+
𝐸𝑖 𝑠 𝐸 𝑠
Since we have :
120
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
𝑅 +
𝐸𝑖 𝑠 𝐸 𝑠
(a)
𝐶
𝐶 𝑅
𝑅 𝑅
𝑅 + +
𝐸𝑖 𝑠 𝐸 𝑠 𝐸 𝑠
121
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The sign inverter has the gain of .Hence the network shown in Fig.
12.8-(b) has the following transfer function:
122
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
𝑅 𝐶
𝑍
𝑍 𝐶
𝑅
𝑅 + +
𝐸𝑖 𝑠 𝐸 𝑠 𝐸 𝑠
Notice that
123
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Where
( )( )
Noting that
We have
( )
[ ]
( )
124
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
125
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
𝑅
_ 𝑅
_
+
𝑒𝑖 +
𝑒
1 P
𝐶 𝑅
𝑅
_ 𝑅
_
+
𝑒𝑖 +
𝑒
2 I
𝐶 𝑅 𝑅
_
𝑅 _
+ 𝑅
𝑒𝑖 +
𝑒
3 PD
126
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
𝑅 𝐶 𝑅
𝑅
_
_
4 PI + 𝑅
𝑒𝑖 +
𝑒
𝐶 𝑅 𝐶 𝑅
_
5 PID 𝑅 _
+ 𝑅
𝑒𝑖 +
𝑒
𝐶 𝐶
𝑅
_ 𝑅
Lead or 𝑅 _
6 + 𝑅
lag 𝑒𝑖 +
𝑒
𝑅 𝐶 𝑅 𝐶
𝑅
Leg- _ 𝑅
𝑅 _
7 𝑅
lead [ ] 𝑒𝑖
+
+
𝑒
[ ]
127
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Set-Point Kick.
If the reference input is a step function, the manipulated variable will
involve an impulse function and such a phenomenon is called set-point
kick. To avoid set-point kick phenomenon derivative action is placed in
feedback path so that differentiation occurs only on the feedback signal and
not on the reference signal.
PI-D Control.
To avoid the set-point kick phenomenon, we may wish to operate the
derivative action only in the feedback path so that differentiation occurs
only on the feedback signal and not on the reference signal. The control
scheme arranged in this way is called the PI-D control. Figure 12-11 shows
a PI-D-controlled system. From Figure 12-11, it can be seen that the
manipulated signal U(s) is given by
( ) ( )
Notice that in the absence of the disturbances and noises, the closed-loop
129
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
transfer function of the basic PID control system [shown in Figure 12-
10(b)] and the PI-D control system (shown in Figure 12-11) are given,
respectively, by
( )
( )
And
( )
( )
It is important to point out that in the absence of the reference input and
noises, the closed-loop transfer function between the disturbance D(s) and
the output Y(s) in either case is the same and is given by
( )
I-PD Control.
Consider the case where the reference input is a step function. Both PID
control and PI-D control involve a step function in the manipulated signal.
Such a step change in the manipulated signal may not be desirable in many
occasions. Therefore, it may be advantageous to move the proportional
130
University of Anbar Control Theory
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
action and derivative action to the feedback path so that these actions affect
the feedback signal only. Figure 12-12 shows such a control scheme. It is
called the I-PD control. The manipulated signal is given by
( ) ( )
Notice that the reference input R(s) appears only in the integral control
part. Thus, in I-PD control, it is imperative to have the integral control
action for proper operation of the control system.
The closed-loop transfer function Y(s)/R(s) in the absence of the
disturbance input and noise input is given by
( )
( )
It is noted that in the absence of the reference input and noise signals, the
closed-loop transfer function between the disturbance input and the output
is given by
( )
This expression is the same as that for PID control or PI-D control.
131
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Chapter Thirteen
Analysis of Sampled-Data
Control Systems
This chapter discusses the following topics :
13.1. Introduction.
133
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
13. 1. Introduction
( ) ( ) ( ) (13.1)
134
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
135
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Note that the original frequencies are there, and also note that there are no
frequencies between and other than the original
frequencies (and their negative values). Therefore, the original continuous-
time signal ( ) could be recovered from the samples using an ideal low-
pass filter with a bandwidth of . Even with practical filters, ( )
could be recovered fairly well since the next higher frequency is .
In the Figure. 2, note that the sample values are close enough together in
time to give an accurate picture of the continuous-time ( ).
Sample of ( ) with
138
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
time samples, the sampling frequency must be at least twice as high as the
highest frequency in the continuous-time signal. The higher the sampling
frequency, the more reliable and easier will be the recovery -- compare the
sampled signals using . When the sampling frequency is less
than twice the highest frequency in the continuous-time signal, recovery
cannot be accomplished using only the sample values, even with ideal
filtering.
-a-
-b-
Figure 13.4(a,b). Sample of ( ) ( ) with
139
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
∑| ( |
140
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
For a pulse transfer function ( ) and input ( ), the output signal can be
calculated:
( ) ( ) ( ) ( ) (12.4)
( )( ) ( )
( )
[ ] (13.5)
Where, ri : partial fraction coefficient (residue). In a closed-loop system,
the terms shown in Equation (13.5) include the influence of the poles of the
closed-loop transfer function, plus the contribution of the set-point and/or
disturbance input (in brackets). The input terms appear separately from the
transfer function terms in the partial fraction expansion and are assumed to
be bounded. Hence, the stability of the loop can be determined by the
transfer function denominator terms. The sampled output response
corresponding to Equation (13.6) is
( ) ( ) ( ) ( ) [ ] (13.6)
If the absolute value of any the poles pi is greater than unity, ( )
as , thus violating the condition for stability. This is also true if the
root is a complex number (in polar form, if | | then
| | ).
0 𝑡 𝑡 𝑡 𝑡 𝑡 𝑡
Time
Figure 13.5. Continuous signal.
141
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Imag
Imag
1 unstable
unstable Stable
Stable Real 1
Real -1
Unit circle
-1
143
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
( ) ( ) ( ) ( )
144
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Since no sign changes occur in column one, the system is stable. Equation
has actual roots of and , all of which lie inside the
unit circle.
Example (2): For the following system check the stability by modified
Routh stability?
( ) This is a third-order system ,
Solution
( ) ( ) ( )
or
( ) ( ) ( ) ( ) ( ) ( )
or
Since there are two sign changes in the first column of Rout
tabulation, ( ) has two roots outside the unit circle. The three roots at:
and .
145
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Example: For the following system check the stability by modified Routh
stability?
( )
Solution
( ) ( ) ( ) ( )
Or
( ) ( ) ( ) ( )
Routh tabulation:
( )( )
Stability condition:
146
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Chapter Fourteen
41.1. Introduction:
147
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
14.1. Introduction:
ao y ( n ) a1 y (n1) ...... a n1 y . a n y bo x (m) b1x (m1) ..... bm1x. bm x , n m Taking the
148
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
same thing is applied to obtain the L.T. of x(t).by substitute all initial condition to zero. The
transfer function of the system become.
● Transfer function is not provide any information concerning the physical structure of the
system (the T.F. of many physically different system can be identical).
● The highest power of s in the denominator of T. F. is equal to the order of the highest
derivative term of the output. If the highest power of s is equal to n the system is called an
nth order system.
In general, variables that are functions of time are represented by lowercase letters. These are
sometimes indicated by the form x(t ), but more often this is written just as x. There are some
exceptions, because of established convention, in the use of certain symbols. To simplify the
writing of differential equations. The symbols D and1/D are defined by:
dy(t ) d 2 y(t )
Dy , D2 y (14.2)
dt dt 2
D1y
1
y 0t y( )d 0 y( )d 0t y( )d Y0 (14.3)
D
where Yo represents the value of the integral at time t = 0, that is, the initial value of the
integral.
149
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Basic matrix properties are used to introduce the concept of state and the method of writing
and solving the state equations.
State: The state of a system is a mathematical structure containing a set of n variables x1(t ),
x2(t ), . . . , xi(t ), . . . , xn(t ), called the state variables, such that the initial values xi(to) of
this set and the system inputs uj(t ) are sufficient to describe uniquely the system’s future
response of t ≥ to. A minimum set of state variables is required to represent the system
accurately. The m inputs, u1(t ), u2(t ), . . . ,uj(t ), . . . ,um(t ), are deterministic; i.e., they
have specific values for all values of time t ≥ to.
Generally the initial starting time to is taken to be zero. The state variables need not be
physically observable and measurable quantities; they may be purely mathematical
quantities. The following additional definitions apply:
State Vector: The set of state variables xi(t) represents the elements or components of the n-
dimensional state vector x(t); that is,
x1 (t ) x1
x (t ) x
2 2
X (t ) x3 (t ) x3 X (14.4)
. .
xn (t ) xn
The order of the system characteristic equation is n, and the state equation representation of
the system consists of n first-order differential equations. When all the inputs uj (t) to a
given system are specified for t> to, the resulting state vector uniquely determines the
system behavior for any t > to.
State Space: State space is defined as the n-dimensional space in which the components of
the state vector represent its coordinate axes.
150
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
State Trajectory: State trajectory is defined as the path produced in the state space by the
state vector x(t) as it changes with the passage of time. State space and state trajectory in the
two-dimensional case are referred to as the phase plane and phase trajectory, respectively.
The first step in applying these definitions to a physical system is the selection of the system
variables that are to represent the state of the system.
Note that there is no unique way of making this selection. The three common representations
for expressing the system state are the physical, phase, and canonical state variables.
The selection of the state variables for the physical-variable method is based upon the
energy-storage elements of the system. Table 1 lists some common energy-storage elements
that exist in physical systems and the corresponding energy equations. The physical variable
in the energy equation for each energy-storage element can be selected as a state variable of
the system. Only independent physical variables are chosen to be state variables.
Independent state variables are those state variables that cannot be expressed in terms of the
remaining assigned state variables. In some systems it may be necessary to identify more
state variables than just the energy-storage variables. This situation is illustrated in some of
the following examples, where velocity is a state variable. When position, the integral of this
state variable, is of interest, it must also be assigned as a state variable.
For the circuit of Series RLC Circuit (Fig.14.1). This circuit contains two energy-storage
elements, the inductor and capacitor. From Table 1, the two assigned state variables are
identified as x1=Vc (the voltage across the capacitor) and x2=i (the current in the inductor).
Thus two state equations are required.
Fig 14.1 is redrawn in Fig. 14.2 with node b as the reference node. The node equations for
node a and the loop equations are, respectively,
Cx . x2
151
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Lx2 Rx2 x1 u
.
1
x1
.
x2
C
(14.5)
1 R 1
x 2 x1 x 2 u
.
L L L
Equation (14.5) represents the state equations of the system containing two independent state
variables. Note that they are first-order linear differential equations and are n=2 in number.
They are the minimum number of state equations required to represent the system’s future
performance.
State equation. The state equations of a system are a set of n first-order differential
equations, where n is the number of independent states.
.
X 1. 0 0
1 / C x1
. 1 u (14.6)
X 2 1 / L R / L x2 L
X . Ax Bu
0 1/ C
A= , nxn plant coefficient matrix
1 / L R / L
152
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
0
B= 1 , nx1 control matrix
L
In ( X . Ax Bu ), matrix A and x are conformable. If the output quantity y(t) for the circuit
of Fig.8 is the voltage across the capacitor vC, then
y(t ) vc x1
Thus the matrix system output equation for this example is:
x1
y (t ) Cx Du [1 0] [0]u (14.7)
x 2
Where
C is the output matrix with 1xn dimension for single input single output system (SISO),
For a multiple-input multiple-output (MIMO) system, with m inputs and l outputs, these
equations become:
X . Ax Bu
y Cx Du ; Where:
153
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The block diagram of the state space representation can be shown in the Fig. 2.5.
Fig.14.3. Block diagram of the linear, continuous time control system represented in state
space.
If the system differential equation is linear, the ratio of the output variable to the input
variable, where the variables are expressed as functions of the D operator, is called the
transfer function.
Consider the system output vC=y in the RLC circuit of Fig.2.1 substituting i=CDvC into
Eq( LDi+Ri+1/CD i=e), yields: (LCD2+RCD+1)vc;(t)
y (t ) vc (t ) 1
G ( D) (14.8)
u (t ) e(t ) LCD RCD 1
2
The notation G(D) is used to denote a transfer function when it is expressed in terms of the D
operator. It may also be written simply as G.
154
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The block diagram representation of this system (Fig. 14.4) represents the mathematical
operation G(D)u(t)=y(t); that is, the transfer function times the input is equal to the output of
the block. The resulting equation is the differential equation of the system.
u(t) y(t)
G(D)
Note: sometime used the symbol (s) instead of (D) and transfer function becomes writing as
(G(s)) and D≡s and D2≡s2 ……, and the equation (2.16) will write as:
1
G (14.9)
LCS 2 RCS 1
The program by using Matlab to change between the two forms for representation of control
system ( State Space and Transfer Function ) can be shown below;
Cy=1;Ly=10;Ry=100;
B=[0 1/Ly];
C=[1 0];
D=[0];
[num,den]=ss2tf(A,B,C,D)
numc=[0 0 1];
155
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
[AA,BB,CC,DD]=tf2ss(numc,denc)
The following full derivation of transfer function of SISO system from the state-space
equations. Let us consider the system whose transfer function is given by:
Y ( s)
G( s) (14.10)
U ( s)
X . Ax Bu (14.11)
y Cx Du
Where
x is the state vector ,u is the input and y is the output. The Laplace transform of the equation
2 is given by:
156
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
sx( s ) x(0) Ax ( s ) Bu ( s )
(14.12)
Y ( s ) Cx ( s) Du ( s )
Since the transfer function is previously defined as Laplace transformation of the output to
the input with zero initial conditions, we assume that x(0)=0,then we have
sx( s ) Ax ( s ) Bu ( s ) or ( SI A) X ( s ) BU ( s )
1
Multiplying ( SI A) to both sides of the last equation we will obtain
So that the transfer function of the system represented by state space will be:
1
The right hand side of equation (14.15) involves ( SI A) .Hence G(s) can be written as
G ( s ) Q( s ) / | ( SI A) |
157
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
x1 y 0u
x3 y .. 0u .. 1u . x. 2 2u
0 b0
1 b1 a1 0
2 b2 a11 a2 0
3 b3 a1 2 a2 1 a3 0
158
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
With this choice of state variables, the existence and uniqueness of the solution of the state
equation is guaranteed. (Note that this is not the only choice of a set of state variables). With
the present choice of state variable, we obtain
x.1 x2 1u
x . 2 x3 2 u
x. n1 xn n1u
x .1 0 1 0 0 0 x1 1
.
x 2 0 0 1 0 0 x2 2
x . 3 0 0 0 1 0 x3 3 u
x . n1 0 0 0 0 1 x . n1 n1
.
x n a n an1 a n 2 a n 3 a1 x . n n
x1
x2
y 1 0 0 0 0 x3 0 u
x . n 1
.
x n
Or
159
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
X . AX BU
Y CX DU
Where
x1 0 1 0 0 0 1
x2 0 0 1 0 0 2
X x3 A 0 0 0 1 0 , B 3
x . n 1 0 0 0 0 1 n 1
. a n a n 1 a n 2 a n 3 a1
x n n
C [1 0 0 0 0]
D 0 b0
Note that the state space representation for the transfer function is
Y ( s ) b0 s n b1 s n 1 b2 s n 2 bn
n
U (s) s a1 s n 1 a 2 s n 2 a n
Example (1): Obtain the state equations for the circuit of Fig.14.7. The output is the voltage
v1.The input or control variable is a current source i(t). The assigned state variables
are i1 , i2 , i3 , v1 , and v2 , ?
160
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Solution:
v1 L1 Di1 or v1 L1
di1
dt
v2 L2 Di2 v1
v2 L3 Di3
i2 C1 Dv1 i1
i i3 C2 Dv2 i2
0 0 1 / C1 1 / C1 0
0 0 L1 / C 2 L3 ( L2 L3 ) / C 2 L3 1 / C
X
. X 2
u
1 / L1 0 0 0 0
1 / L2 1 / L2 0 0 0
y 1 0 0 0 X
14.5. Transfer Function from State-Variable Representation:
Having established the conditions for the equivalence of the state-variable representation
with that of the transfer-function, we are interested to find one representation from the other
by finding their relationship. Let us consider first the problem of determining the transfer
function of a system given the state variable representation
X . (t ) Ax(t ) Bu (t )
161
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
y (t ) Cx (t )
SX AX ( s ) BU ( s ) (14.16)
Y ( s ) CX ( s ) (14.17)
where the identity matrix has been introduced to allow the indicated multiplication
compatible. Now, pre-multiplying both sides of the above equation by (sI – A)-1, we get
Comparing this relation between Y(s) and U(s) with the Equation
(Y(s) = G(s)U(s))
162
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
The matrix (sI – A)-1 is commonly referred to as the resolving matrix and is designated by
φ(s),
0 1 0
x . (t ) x(t ) u (t )
10 7 1
y(t ) 1 0x(t )
1 0 0 1 s 1
s
0 1 10 7 10 s 7
s 7 1
10 s
adj( sI A)
( s ) ( sI A)
1
2
det(sI A) s 7 s 10
s 7 1 0
[1 0]
10 s 1 1
G ( s ) c' ( s )b ( sI A)
1
2
s 7 s 10
2
s 7 s 10
In the above example, we observe that the determinant of the matrix (sI – A) is equal to the
denominator polynomial of G(s). This is always true for single input - single output systems.
163
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
Although Equation (14.18) provide a direct method for determining the transfer function of a
system from a state-variable representation of the system, it is generally not the most
efficient method.
In Section 14.5 we have shown how to get the transfer function model of a linear continuous
system when its state-variable form is available. We shall now take up the issue of getting
the state-variable model when the transfer function model is available. Since the state-
variable representation is not unique, there are, theoretically, an infinite number of ways of
writing the state equations. We shall present here one method for deriving a set of continuous
state variable representation from the transfer function. Analogous procedure may be
followed for writing the continuous state equation from pulse transfer function in S domain.
The transfer function of single-input-single-output system of the form:
a n 1 s n 1 a n 2 s n 2 ...... a1 s a0
G(s)
s n bn 1 s n 1 bn 2 s n 2 ....... b1 s b0
Y ( s) a s n 1 a s n 2 ...... a1 s a0 E (s)
G( s) n n 1 n 1 n2 n 2 *
U ( s ) s bn 1 s bn 2 s ....... b1 s b0 E ( s )
We let now
From Theorem of Laplace transform, we note the following relations between the variables
in the s domain and time domain with zero initial conditions
164
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
E ( s ) e(t )
sE(s) e. (t )
s 2 E (s) e.. (t )
x1 (t ) e(t )
x2 (t ) x1 (t ) e . (t )
.
x3 (t ) x2 (t ) e.. (t )
.
xn (t ) xn1 (t ) e n1 (t )
.
x .1 (t ) x2 (t )
x. 2 (t ) x3 (t )
x .3 (t ) x4 (t )
x. n (t ) xn (t ) b0 x1 (t ) b1 x2 (t ) b2 x3 (t ) bn1 xn (t ) u
x .1 0 1 0 0 0 x1 0
.
x 2 0 0 1 0 0 x 2 0
x . 3 0 0 0 1 0 x 3 0 u
x . n 1 0 0 0 0 1 x . n 1 0
.
x n b0 b1 b2 b3 bn 1 x . n 1
Hence the last two Equations are a set of state equations for the continuous system described
by transfer function. Another convenient and useful representation of the continuous system
is the signal flow graph or the equivalent simulation diagram. These two forms can be
derived, after dividing both the numerator and denominator of first Equation by sn :
E(s) U (s) bn1s 1 E(s) bn2 s 2 E(s) ....... b1s1n E(s) b0 s n E(s)
Example (3): Let us consider a single input single output system of the last Example which
is reproduced below for quick reference:
166
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
0
A
1
0
,b ,c 1 0, d 0 0
10 7 1
We are interested to find its solution with initial condition x′(t0) = x′(0) = [0 0] and unity
step input u(t) = us(t). The resolvent matrix φ(s) given by relation (φ(s) = (sI – A)-1 ) is
written as :
s 7 1
10 s
adj( sI A)
( s ) ( sI A) 1 2
det(sI A) s 7 s 10
s7 1
2 7 s 10 s 7 s 10
2
(s) s
10 s
s 2 7 s 10 s 2 7 s 10
1 5 2 1 1 1
3 ( s 2 s 5) (
3 s2 s5
)
(s)
10 ( 1 1 ) 1 5
(
2
)
3 s 2 s 5 3 s 5 s 25
1 2 5 1 2
3 (5e 2e ) (1e 1e 5 )
3
(t )
10 (1e 2 1e 5 ) 1
(5e 2e )
5 2
3 3
Substituting the value of x'(0)=[0 0] and unit step input in the equation we get
1 t 1
t
(5e
2 ( t )
2e 5(t ) )d (1e 2(t ) 1e 5(t ) )d
0
t
30 30
x(t ) (t )bu( )d t
10 1
t 1
0
(1e 2(t ) 1e 5(t ) )d (5e 5(t ) 2e 2 ( t )
)d
3 0 30
167
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
1 t 1 1
(1e e 2t e 5t
2 ( t )
1e 5(t ) )d 1
3
x(t ) t 10 6 15
0
10 1
t 1 2 t 1 5 t
(5e 5 ( t )
2e 2 ( t )
)d e e
3 0 3 0 3 3
1 1 2 t 1 5t
y (t ) e e ,t 0
10 6 15
Some useful properties of the state transition matrix φ(t) are recorded below :
A ( t t )
3. (t1 t 2 ) e 1 2 e 1 .e 2 (t1 ) (t 2 ) (t 2 ) (t1 )
At At
4. ( (t )) (nt)
n
6. (t ) A (t )
dt
play an important role in the design of control systems in state space. In fact, the conditions
of controllability and observability may govern the existence of a complete solution to the
control system design problem. The solution to this problem may not exist if the system
considered is not controllable. Although most physical systems are controllable and
observable, corresponding mathematical models may not possess the property of
controllability and observability. Then it is necessary to know the conditions under which a
system is controllable and observable.
169
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
170
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
171
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
172
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
H.W. Check the solution by fined G(s) by using the matrices of S.S. form?
173
University of Anbar Control Theory II
College of Engineering Prof. Dr. Yousif Al Mashhadany
Dept. of Electrical Engineering 2020 - 2021
174
Design By : Prof. Dr. Yousif Al Mashhadany
2020- 2021
Bode Diagram
100
80
60
40
20
Magnitude
0
(dB)
-20
-40
-60
-80
-100
180
150
120
90
Phase 60
30
(deg) 0
-30
-60
-90
-120
-150
-180
-210
-240
-270 -2 -1 0 1 2
10 10 10 10 10
Frequency (rad/s)