Module 2&3
Module 2&3
Module 2 5
Objectives 5
Basic Theory 5
Properties of Root Locus 5
Sketching the Root Locus 7
Root Locus for Discrete Systems 9
Tools 10
Procedures 10
References 10
Module 3 11
Objectives 11
Basic Theory 11
Drawing Bode Plots 12
Drawing the Nyquist Diagram 14
Tools 16
Procedure 16
References 16
Module 2 5
Figure 2.1. Closed-Loop System 6
Figure 2.2. Example of root locus and asymptotes of a system 9
Figure 2.3. Diagram showing a discrete root locus with 2 poles and 1 zero 9
Module 3 11
Figure 3.1. Bode Plots, Magnitude Plots (left) and Phase Plots (right) 13
Figure 3.2. Example of a stable Third-Order Nyquist Plot (no encircle in -1) 15
Objectives
1. Understanding the concept and function of Root Locus.
2. Understanding the sketching of Root Locus.
3. Understanding how to analyze the system’s stability using the Root Locus
method.
Basic Theory
Root Locus Technique is a graphical analysis method for system stability. By
using Root Locus Technique, we can analyze how a closed-loop system behaves as
the gain is changed. This closed-loop behavior can be obtained by only observing its
open-loop system. This method could also be used to design a system that meets
the required specification(s) and/or characteristic(s). To analyze a system using
Root Locus Technique, we need to sketch the Root Locus of a system on an s-plane
(frequency domain). Root Locus itself is a path of a closed-loop system’s pole(s)
movements as the gain is changed.
𝐶(𝑠) 𝐾𝐺(𝑠)
𝑇 (𝑠 ) = 𝑅(𝑠)
= 1+𝐾𝐺(𝑠)𝐻(𝑠)
1 + 𝐾 𝐺( 𝑠) 𝐻 (𝑠) = 0
According to eq. 2.2,
|𝐾𝐺(𝑠)𝐻(𝑠)| = 1
1
𝐾= |𝐺(𝑠)||𝐻(𝑠)|
Eq. 2.5 is called the magnitude criterion, whilst eq. 2.6 is called the angle criterion. An
s point on the s-plane needs to satisfy both properties to be a part of a system’s root
locus.
∑𝑝𝑜𝑙𝑒𝑠−∑𝑧𝑒𝑟𝑜𝑠
σ𝑎 = #𝑝𝑜𝑙𝑒𝑠−#𝑧𝑒𝑟𝑜𝑠
Other than the five criterions described above, there are three additional
criterions that can be used to refine the Root Locus sketch:
1. Break-away and Break-in points: The coordinates at the real axis where the
close-loop poles begin to leave or re-enter the real axis. Those coordinates
can be found using the below equation:
𝑚 𝑛
1 1
∑ 𝑠 + 𝑧𝑖
= ∑ 𝑠 + 𝑝𝑖
1 1
or,
𝑑𝐾 1
𝑑𝑠
= − 𝐺(𝑠)𝐻(𝑠)
1. Determine the open-loop transfer function and place the poles and zeros in
the frequency domain
2. Determine the scope of Root Locus for the real axis domain.
3. Determine the amount and the angles of the asymptotes and its intersection
with the real axis as well.
4. Determine the breakaway point and break-in point, by differentiation or
equation below
5. Determine the intersection between Root Locus and imaginary axis (if exist).
6. Determine the Break-in angle (for zeros) and break-away (for poles).
7. Sketching Root Locus using all the data and information acquired.
1 + 𝐺𝐻(𝑧) = 0
Figure 2.3. Diagram showing a discrete root locus with 2 poles and 1 zero
1. The closed-loop poles in z map must lie within the unit circle for the system to
be stable.
2. If a simple pole lies at z = 1, or a single pair of conjugate complex poles lies
on the unit circle, the system becomes critically stable.
3. Closed-loop zeros do not affect stability and may be placed anywhere in the z
plane.
Procedures
1. Open the ‘Laboratory Sheet’ in your EMAS class. For this module, AnyDesk is
not necessary.
2. Answer the questions and upload photos or scans of your workings (if
necessary) according to the instructions.
Python Syntax
In this module, we can use Python as a tool to help our work, especially to plot the
Root Locus plot that we have learnt before. Here are few syntax that we usually use
in this module:
Plotting Root Locus:
Code: (Note that “ct” here is short for control that has been defined and imported
above with the code “import control as ct”)
Note that these functions are only the mostly used functions. There are many other
functions or methods that can be used in Python for this field. You can explore the
documentation yourself.
References
Nise, Norman S. Control System Engineering, Chapter 8: Root Locus Technique
Ogata, Katsuhiko. Discrete-Time Control Systems, 2nd edition.
Objectives
1. To understand the concept of Bode and Nyquist Diagrams.
2. To determine stability through the concept of frequency response.
Basic Theory
In this module, we will be looking into frequency response methods to analyze
and design a control system. The information obtained from the analysis with
frequency response methods differ from the information obtained from the root
locus method, in which both methods complement each other. One of the
advantages of using the frequency response methods is that we can obtain data for
a measurement without having to create a mathematical model of a system.
phasor complex number representation, is given to a system, that system will deliver
an output of 𝑀𝑜 cos 𝑐𝑜𝑠 (ω𝑡 + ϕ𝑜), or 𝑀𝑜(ω)∠ϕ𝑜(ω). Please note that the system
To find the output equation, we must multiply the input equation with the
system equation. The relationship of the input and output is represented with the
following:
𝑀𝑜∠ϕ𝑜 = 𝑀𝑖𝑀∠(ϕ𝑖 + ϕ)
𝑀𝑜(ω)
𝑀(ω) = 𝑀𝑖(ω)
𝑀(ω) is the magnitude response of the system and ϕ(ω) is the phase
response of the system. The combination of the two is called the frequency
response in the complete form of 𝑀(ω)∠ϕ(ω). There are two main ways to sketch a
frequency response diagram: the Bode Plot and Nyquist (Polar) Plot.
In the following examples in Fig. 3.1, there are two things that need to be
considered, which are the Gain Margin and the Phase Margin. Gain Margin is the
difference between 0 dB and the gain (magnitude) as the phase plot crosses the
angle of 180° or -180°, whilst the Phase Margin is the difference of the angle 180° or
-180° and the phase angle as the magnitude plot crosses 0 dB. The Gain Margin
determines how much gain (magnitude) can be increased before the system
becomes unstable, or how much gain should be decreased to make the system
stable. The Phase Margin works similarly, but instead uses phase angle instead of
gain. Both the Gain Margin and Phase Margin must have values greater than zero (0)
for the closed-loop system to become stable.
𝐺(𝑠)
𝑇 (𝑠 ) = 1+𝐺(𝑠)𝐻(𝑠)
1 + 𝐺(𝑠)𝐻(𝑠) = 0
The values of s that fulfills the characteristic equation, or the zeroes of that
characteristic equation, can be considered as the poles of the closed-loop system.
2 2
|𝑀(ω)| = 𝑅𝑒𝑎𝑙 𝐶𝑜𝑚𝑝𝑜𝑛𝑒𝑛𝑡 + 𝐼𝑚𝑎𝑔𝑖𝑛𝑎𝑟𝑦 𝐶𝑜𝑚𝑝𝑜𝑛𝑒𝑛𝑡
The values are plotted into a semicircle shape on the bottom part of the plot,
showing the movement of the magnitude of frequency response from 0 to ∞.
Afterwards, draw a mirrored semicircle shape on the top part of the plot, as to show
the movement of the magnitude of frequency response from -∞ to 0.
The finished Nyquist Plot of a third-order system would look like this:
𝑍=𝑃 −𝑁
With P as the number of open-loop poles of 𝐺(𝑠)𝐻(𝑠) that are located at the
right half of a complex plane. N is the number of anti-clockwise encirclements the
plot gives at value -1. If the plot gives clockwise encirclements, decrement the value
of N. The number of encirclements is determined by the order of your system, the
higher the order, the more encirclements it gives. Z is the number of zeroes from the
characteristic equation we have seen earlier, or the closed-loop poles that are
located at the right half of the plane. If Z is greater than 0, then the closed-loop
system is unstable.
Procedure
1. Open the ‘Laboratory Sheet’ in your EMAS class. For this module, AnyDesk is
not necessary.
2. Answer the questions and upload photos or scans of your workings (if
necessary) according to the instructions.
Python Syntax
In this module, we can use Python as a tool to help our work, especially to plot the
frequency response including the bode plot and Nyquist plot that we have learnt
before. Here are few syntax that we usually use in this module:
Plotting Bode Plot (Exact Bode Plot, not approximate, so there will be some
difference with the theory on how to sketch bode plot approximately)
Code:
Code:
Documentations
Nyquist:
https://python-control.readthedocs.io/en/0.9.4/generated/control.nyquist_plot.html
Note that these functions are only the mostly used functions. There are many other
functions or methods that can be used in Python for this field. You can explore the
documentation yourself.
References
Nise, Norman S. Control Systems Engineering, 6th edition. U.S.A, John Wiley & Son.
Visioli, Antonio. Fadali, M. Sami. Digital Control Engineering Analysis and Design