NUS Notes
NUS Notes
1 / 20
Preliminaries
Lecturer: Asst. Prof. Velusamy
Lecturer: A/Prof. C.J. Ong
Subramanian
Rm: EA-05-27
Rm: EA-05-24
Tel: 6516-2217
Tel: 6516-2272
Email: [email protected]
Email: [email protected]
References:
1 Kuo, BC, “Automatic Control Systems” 7th Edition, Prentice Hall
2 Dorf, RC, and Bishop, RH, “Modern Control Systems,” Prentice Hall Inc.,
2008
3 Shinners, MS, “Modern Control System Theory and Application”,
Addison-Wesley
4 Ogata, K, “Modern Control Engineering”, Prentice Hall
5 Raven, E, “Automatic Control Engineering”, McGraw Hill.
6 Norman S Nise, “Control Systems Engineering” 5th Edition, John Wiley &
Sons
2 / 20
Preliminaries
Outline of course:
1 General Introduction to Automatic Control:
2 Review of Laplace Transformation:
- Laplace Transformation and its inverse. Solution of Di!erential Equations.
3 Mathematical Model of Physical Systems:
- Transfer functions. Block diagrams. Modeling of mechanical systems,
electrical systems, motors.
4 Transient Response Analysis:
- Standard time response test functions. Time responses of first-order,
second-order and higher-order systems.
5 System Stability and Steady State Characteristics:
- Routh’s stability criterion. System Types. Steady state error analysis
6 Controller Design:
-Using time responses for the design of P, PI and PID controller
7 Frequency Response Analysis:
- Forced sinusoidal response. Graphical frequency response methods Bode and
Nyquist plots. Nyquist stability criterion. Gain and phase margins.
Closed-loop frequency response.
3 / 20
Preliminaries
Assessment:
1 Final Examination (70%)
2 Lab Report (30%)
↭ Lab 1: DC Speed and Position Control
↭ Lab 2: Frequency Response
4 / 20
Module Learning Outcome
5 / 20
Introduction
6 / 20
Introduction
A Simple Control System
One specific feature of Control system is the concept of feedback.
The output quantity to be controlled is measured and compared with the
desired for corrective action.
Each block represents a functional element of the control system but it may
not have a corresponding physical element.
7 / 20
Introduction
Antenna System
A more practical example is the position control of an Antenna system.
To increase the number of channels, the dish is designed to aim at di!erent
satellites - requires ability to control the motors to any desired position.
8 / 20
Introduction
Position Control System
There are other types of position control systems. Consider the simplified
nuclear power plant.
Intensity of the reaction inside the reactor is controlled by the vertical position
of the control rods.
The deeper the control rods are submerged, the more heat the reactor
generates.
Other control systems exist in the nuclear power plant. Maintenance of the
boiler’s water level and/or regulation of the generated voltage at a fixed
voltage are all control systems.
9 / 20
Introduction
Besides position control system, there are also velocity control systems.
Earliest example is the flyball-governor speed control of steam engine.
Driving tapes in video or audio recorders at a constant speed is important in
ensuring the quality of the output. The problem is complicated because of the
load of the driver varies from a full to an empty reel.
The speed of conveyor in a production line must be precisely controlled;
The speed of a CD-ROM drive or a harddisk drive has to be precisely
controlled for the proper retrieval and writing of data;
An error in the roller speed of just 0.1% in a paper production drive system
may cause the paper to tear of pile up on the roller;
The velocity of the rotor of power plant generator is to be kept at 50 or 60 Hz
10 / 20
Introduction
Clothes Dryer Control System
There are two types of clothes dryers – manual and automatic.
In the manual dryer, the dryer is set on for some pre-specified duration, say 40
minutes.
At the end of the 40 minutes, this dryer will automatically turn o! even if the
clothes are still damp or wet.
In the automatic dryer, a desired degree of dryness is set and the dryer will
automatically turn o! when the clothes reach the desired level of dryness.
The amount of time needed is automatically determined by this type of dryer.
11 / 20
Some examples of Control System
Figure: Robotics
Figure: Harddisk drive
Figure: Automobile
12 / 20
Simple Classification of Control Systems
Open-loop and Closed-loop control system
Actuating signal and hence output, depends on the input and the current
output. Examples: Servo Controlled motor, missile, robots etc.
13 / 20
Control Systems
14 / 20
Control System
For simplicity, consider a static system (ultimate objective is for dynamical systems)
15 / 20
Control Systems
E!ect on Stability
c(t)
If GH = →1 then r(t)
= ↓.
Closed loop system can become unstable if choices are G,H are not chosen
carefully.
For the simple case above, unstable condition of GH = →1 can be avoided
using an appropriate value of H.
However, in the systems that we are going to analyze, elements of G and H are
functions of s (frequency) and a proper handling is needed for such systems.
Bottom line is that feedback can destabilize a system if it is not carefully
designed.
Open loop system seldom has such a problem! Why?
16 / 20
Control Systems
E!ect on Parameter Sensitivity
How does system response when parameters of the system change?
M
Define a measure of sensitivity: SG is the percentage change in M with
respect to a percentage of change in G.
!M
M M #M G ↔ ωM G
SG = !G
= =
G
#G M ωG M
Implications:
↭ Openloop system “feels” the changes in G directly.
↭ Closedloop system can be made to be less sensitive to changes in G
using an appropriately large value of H.
17 / 20
Control Systems
Another significant advantage of feedback system is its superior performance in the
presence of disturbance or noise.
c(t) =
G2
n(t), or,
c(t)
=
G2 (1 + G GrH) c .
1 + G1 G2 H n(t) 1 + G1 G2 H -Gra
If H or G1 is large, then 1 + G1 G2 H is large and c(t) due to n(t) is small.
18 / 20
Control Systems
However, feedback is not e!ective against sensor noise.
20 / 20
ME2142
Chapter 2 Laplace Transform
1 / 27
Signals and Systems
Systems
In the examples of physical systems, we realize that the behavior of the
variables of interest are represented by a set of di!erential equations.
While their respective physical domain can be di!erent (thermal, hydraulic,
electrical etc), they can be seen generically as a system.
When seen in this light, the system then takes some input function and
produces some output function.
Signals
In the most general definition, these input and output functions can be seen as
signals.
Hence, system takes a signal and produces another signal or signals.
More formally, a signal is a function that represents some variables that
describe behavior of the system (natural or artificial).
Signals are part of the whole and are meaningless without the systems to
interpret them. Similarly, systems are useless without signals to process.
2 / 27
Signals and Systems
There are two types of signals: continuous time and discrete-time signal.
3 / 27
Complex numbers, variables and functions
Complex Numbers and Complex Variables
A complex number consists of two parts: the real and
the imaginary and is typically represented as
s = 3 + 4i, s = 3 + 4j
z1 ± z2 = a1 ± a2 + (b1 ± b2 )i
Multiplication :
Division :
z1 z1 z̄2 z1 ↑ z̄2
= ↑ =
z2 z2 z̄2 |z2 |2
(a1 a2 + b1 b2 ) + i(a2 b1 → a1 b2 )
=
a22 + b22
5 / 27
Complex numbers, variables and functions
Complex Function
A complex function is a function of the complex variable s, given by
6 / 27
Laplace Transform
Laplace Transformation
Given a real time function f (t) where t ↓ 0.
Let s = ε + jϑ be a complex variable where ε, ϑ are both variables.
The Laplace transform of f (t) denoted by F (s) is
" ↑
F (s) = L[f (t)] = f (t)e→st dt
0
7 / 27
Laplace Transform
A →(ϑ+s)t ↑ A
=→ e |0 =
s+ϖ s+ϖ
8 / 27
Laplace Transform
Properties and examples of Laplace Transform
4 Step function: f (t) = A, t ↓ 0, then
" ↑
A
F (s) = L[f (t)] = Ae→st dt =
0 s
A unity step function is when A = 1 for t ↓ 0 or f (t) = (t) with
corresponding F (s) = 1s .
Since Laplace transform of any f (t) is only defined from t ↓ 0, the use of (t)
will be common.
5 Ramp function: f (t) = At, t ↓ 0 (or f (t) = At (t)), then
" ↑
A
F (s) = Lf (t) = Ate→st dt = 2
0 s
1
A unity ramp function is when A = 1 or f (t) = t (t) with F (s) = s2
.
9 / 27
Laplace Transform
10 / 27
Laplace Transform
8 Translated function:
Suppose a function f (t) is given with
L[f (t)] = F (s),
f (t → ϖ) (for some ϖ > 0) is a time-shifted
function of f (t) by ϖ.
In addition, f (t) = 0 for t < 0. This means that f (t → ϖ) = 0 for t < ϖ.
For this purpose, let (t → ϖ) = 1 for t ↓ ϖ and (t → ϖ) = 0 for t < ϖ. Then,
" ↑ " ↑
L[f (t → ϖ) (t → ϖ)] = f (t → ϖ) (t → ϖ)e→st dt = f (t → ϖ)e→st dt
0 ϑ
11 / 27
Laplace Transform
A A
Hence, f (t) = t0
(t) → t0
(t → t0 ), or
#
A A A A →st0 A
L[f (t)] = L[ (t)] → L[ (t → t0 )] = → e = (1 → e→st0 )
t0 t0 st0 st0 st0
12 / 27
Laplace Transform
10 Impulse function: the special case of pulse function where t0 ↔ 0.
A
Recall that height of the pulse is t0
while the duration is t0 , hence area is A.
When t0 approaches 0, this area remains unchanged. In addition,
A A(1 → e→st0 )
L[ lim f (t)] = lim (1 → e→st0 ) = lim
t0 ↓0 t0 ↓0 st0 t0 ↓0 st0
d
dt0
A(1 → e→st0 ) As
= lim d
= =A
t0 ↓0
dt0
st0 s
13 / 27
Laplace Transform
More Properties of Laplace Transform
Given L[f (t)] = F (s). It can be shown that
11 L[f (t)e→at ] = F (s + a) where a is a constant. For example:
ϑ
L[e→at sinϑt] =
(s + a)2 + ϑ 2
shittyoperty
L[e→at cosϑt] =
s+a
(s + a)2 + ϑ 2
12 Change of time scale: L[f ( ϑt )] = ϖF (ϖs) where ϖ is a constant. E.g.,
1 2
L[e→t ] = ; L[e→t/2 ] =
s+1 2s + 1
13 Di!erentiation:
df (t)
L[ ] = sF (s) → f (0)
dt
d2 f (t)
L[ ] = s2 F (s) → sf (0) → f ↔ (0)
dt2
dn f (t)
L[ ] = sn F (s) → sn→1 f (0) → sn→2 f ↔ (0) → · · ·
dt
14 / 27
Laplace Transform
The above di!erentiation rule can be seen from, using the integration by parts:
" ↑ " ↑
e→st ↑ df (t) e→st
F (s) = f (t)e→st dt = f (t) |0 → [ ] dt
0 →s 0 dt →s
f (0) 1 df (t)
= + L[ ]
s s dt
Hence, L[ dfdt(t) ] = sF (s) → f (0)
$t
14 Integration: L[ 0 f (t)dt] = F (s) s
. This results follows from
" t " ↑" t
L[ f (t)dt] = [ f (t)]e→st dt
0 0 0
" t " ↑
e→st ↑ e→st
=[ f (t)] |0 → f (t) dt
0 →s 0 →s
" t " ↑
1 1 f →1 (0) F (s)
= f (t)dt|t=0 + f (t)e→st dt = +
s 0 s 0 s s
$t
where f →1 (0) = 0 f (t)dt|t=0 and f →1 (0) = 0 for most f except when
f (0) = ↗ (impulse function).
15 / 27
Laplace Transform
15 Final value theorem: What is f (↗) (if exists) given F (s)?
To see the result, take the limit of the above
df (t)
lim L[ ] = lim (sF (s) → f (0))
s↓0 dt s↓0
$↑ df (t) →st $↑
In addition, since lims↓0 0 dt
e dt = 0 dfdt(t) dt = f (↗) → f (0)
Using this property in the above shows that
f (↗) → f (0) = lims↓0 (sF (s) → f (0)) or f (↗) = lims↓0 sF (s)
16 Initial value theorem: What is f (0) given F (s)?
The above is answered using similar analysis:
" ↑
df (t) df (t) →st
L[ ]= e dt = sF (s) → f (0)
dt 0 dt
Taking the limit as s ↔ ↗ on both sides, we have
" ↑
df (t) →st
lim e dt = 0
s↓↑ 0 dt
Hence, 0 = lims↓↑ sF (s) → f (0) or
lim sF (s) = f (0)
s↓↑
16 / 27
Laplace Transform
Convolution Integral
One important property of Laplace transform is the convolution integral.
A convolution integral of two time functions f1 (t) and f2 (t) is
" t
f1 (t) ⇐ f2 (t) := f1 (t → ϱ )f2 (ϱ )dϱ
0
17 / 27
Laplace Transform
Convolution Integral
For simplicity, let the step function be written as u(t).
The figures below show u(ϱ ) and u(→ϱ ) and u(t → ϱ ).
Note that u(t → ϱ ) is the translated function of u(ϱ ) by t and the figure
changes for values of t.
Depending on the value of t, the convolution integral can be obtained.
When t ↘ 0,
" t
f1 (t) ⇐ f2 (t) = u(ϱ ) · u(t → ϱ )dϱ = 0( ↫ u(t → ϱ ) = 0 for t ↘ 0)
0
When t > 0,
" t " t
f1 (t) ⇐ f2 (t) = u(ϱ ) · u(t → ϱ )dϱ = 1dϱ = t
0 0
18 / 27
Laplace Transform
In Laplace transform, the above complicated computation is greatly simplified.
" t
L[f1 (t) ⇐ f2 (t)] = L[ f1 (t → ϱ )f2 (ϱ )dϱ ] = F1 (s) · F2 (s)
0
Check (earlier example): f1 (t) ⇐ f2 (t) = L→1 (F1 (s) · F2 (s)) = L→1 ( s12 ) = t (t)
To show the above (for those interested), note that
" t " ↑" t
L[f1 (t) ⇐ f2 (t)] = L[ f1 (t → ϱ )f2 (ϱ )dϱ ] = [ f1 (t → ϱ )f2 (ϱ )dϱ ]e→st dt
0 0 0
" ↑" ↑
= f1 (t → ϱ ) (t → ϱ )f2 (ϱ )dϱ e→st dt
0 0
" ↑ " ↑
= f1 (t → ϱ ) (t → ϱ )e→st dt f2 (ϱ )dϱ
0 0
ς:=t→ϱ " ↑ " ↑
%&'(
= f1 (φ) (φ)e→s(ς+ϱ ) dφ f2 (ϱ )dϱ
" ↑0 " ↑ 0
19 / 27
Inverse Laplace Transform
" c+j↑
L→1 [F (s)] = F (s)est ds; t ↓ 0
c→j↑
where c is a chosen constant, larger than the real parts of all singular points of F (s).
However, the above is seldom used to compute L→1 F (s). Instead, partial
fraction and inverse Laplace table are preferred.
20 / 27
Example of finding the inverse Laplace Transform
Example 1
1 5 8
Find the inverse Laplace of F (s) = s2
+ (s+3)2
+ s2 +16
.
From inverse Laplace Table:
1
L→1 [ ]=t
s2
5 1
L→1 [ ] = 5L→1 [ ] = 5te→3t (L[e→at f (t)] = F (s + a))
(s + 3)2 (s + 3)2
8 4
L→1 [ 2 ] = 2L→1 [ 2 ] = 2sin4t
s + 16 s + 42
Hence, f (t) = t + 5te→3t + 2sin4t for t ↓ 0
Example 2
4
Find the inverse Laplace of F (s) = s2 +2s+5
.
4 2
L→1 [ ] = L→1 [2 ] = 2e→t sin2t for t ↓ 0
s2 + 2s + 5 (s + 1)2 + 22
21 / 27
Example of finding the inverse Laplace Transform
Example 3
4e→8s
Find the inverse Laplace of F (s) = s2 +2s+5
.
4e→8s 2
L→1 [ ] = 2L→1 [e→8s 2 ]
s2 + 2s + 5 s + 2s + 5
2
= 2L→1 [e→8s ]
(s + 1)2 + 22
= 2e→(t→8) sin(2(t → 8)) (t → 8)
where the following two properties are used in the last step:
22 / 27
The inverse Laplace Transform
Case 1: All distinct poles
B(s) (5s + 3)
F (s) = =
A(s) (s + 1)(s + 2)(s + 3)
23 / 27
The inverse Laplace Transform
B(s) s2 + 2s + 3
F (s) = =
A(s) (s + 1)3
1
Hence, f (t) = L1 [ s+1 + 2
(s+1)3
] = (1 + t2 )e→t for t ↓ 0
24 / 27
The inverse Laplace Transform
Case 1:
B(s) K(s+z1 )(s+z2 )···(s+zm )
Given F (s) = A(s)
= (s+p1 )(s+p2 )···(s+pn )
with m ↘ n and pk are all distinct.
Obtain a partial fraction expansion of F (s) in the form of
a1 a2 an
F (s) = + + ··· + an+1
s + p1 s + p2 s + pn
Then,
Note that
an+1 = 0 if m < n
an+1 = constant if m = n
25 / 27
The inverse Laplace Transform
Case 2:
B(s) K(s + z1 )(s + z2 ) · · · (s + zm )
F (s) = =
A(s) (s + p1 )r (s + pr+1 ) · · · (s + pn )
with m ↘ n and pk , k = 1, r + 1, · · · , n are all distinct, p1 is repeated r times.
Obtain a partial fraction expansion of F (s) in the form of
ar ar→1 a1
F (s) = + + ··· +
(s + p1 )r (s + p1 )r→1 s + p1
ar+1 an
+ + ··· + an+1
s + pr+1 s + pn
Then,
ar ar→1 r→2
f (t) = ( tr→1 + t + · · · + a2 t + a1 )e→pi t
(r → 1)! (r → 2)!
+ar+1 e→pr+1 t + ar+2 e→pr+2 t + · · · + ar+n e→pr+n t + an+1 ς(t); t↓0
Note that
an+1 = 0 if m < n
an+1 = constant if m = n
26 / 27
The inverse Laplace Transform
27 / 27
ME2142
Chapter 3 Mathematical Modeling of Physical
Systems
1 / 23
Transfer Function Representation
Systems
In this chapter, we show how physical systems can be characterized by their
input-output relationship.
Such input-output relationships are known as transfer functions.
This characterization is applicable to many physical systems in di!erent
domains so long as they are described by linear di!erential equations.
They are also represented graphically as
with C(s) or c(t) being the output and R(s) or r(t) being the input.
2 / 23
Transfer Function
Suppose you are asked to find out the behaviour of a certain physical quantity
when the input (energy source) is suddenly increased by 10%.
How would you answer such a question?
If you know the relationship between the input (y(t)) and the output (x(t)),
then you might be able to do that.
Lets say they are related by a di!erential equation -
3 / 23
Transfer Function
Taking L on both sides and assume that all initial conditions are zeroes,
2+s
or X(s) = ·Y (s)
s2 + 2s + 5
! "# $
G(s)
4 / 23
Transfer Function
dn dn→1 dm dm→1
a0 n
c(t) + a1 n→1 c(t) + · · · + an c(t) = b0 m r(t) + b1 m→1 r(t) + · · · + bm r(t)
dt dt dt dt
with n ↑ m.
Doing the same procedure as before, the transfer function is
TraestarG(s) = L[output]
=
C(s)
=
b0 sm + b1 sm→1 + · · · bm→1 s + bm
L[input] R(s) a0 sn + a1 sn→1 + · · · an
function
Note that in deriving the above, all initial conditions are assumed zero.
5 / 23
TF satisfies superposition
ω1 c1 (t) + ω2 c2 (t) is the output of the same system with input ω1 r1 (t) + ω2 r2 (t)
Note that this superposition property is for Linear system only, nonlinear
systems do not have such property.
6 / 23
TF satisfies superposition
7 / 23
TF satisfies superposition
For example, consider the following two systems (I and II)
8 / 23
Transfer Function
9 / 23
Transfer Function
E!ect of Poles and Zeroes of a system:
Consider a system with transfer function given by
C(s) 3s → 1
G(s) = =
R(s) (s + 1)(s + 2)
The output function of this system with input being a unit step function is
3s → 1 1 4 3.5 0.5
C(s) = G(s)R(s) = · = → →
(s + 1)(s + 2) s s+1 s+2 s
10 / 23
E!ect of Poles and Zeroes
11 / 23
E!ect of Poles and Zeroes
The exact responses are given here:
2.5
G1(s)
G2(s)
G3(s)
2
G4(s)
1.5
y(t) of four systems
0.5
-0.5
0 1 2 3 4 5 6 7 8
time (s)
Even though the poles of G(s) determine the basic form of the system
responses, exact responses are determined by the poles, zeros and the input
applied to the system.
Therefore, the zeros of a transfer function cannot be completely ignored in the
analysis and design of control systems.
12 / 23
Modeling of Physical Systems
13 / 23
Example 1: Mechanical Translational System
Consider a mechanical translation system given here:
x(t)
k
Mass m f(t)
viscous friction b
d2 y(t) d
m = →b (y(t) → x(t)) → k(y(t) → x(t))
dt2 dt
Taking Laplace Transform (with zero initial states):
Y (s) bs + k
↔ =
X(s) ms2 + bs + k
15 / 23
Example 3: Mechanical Rotational System
Interested in the TF between ε (t)
(input) and ϑ(t) (output).
τ (t) ω(t)
Inertia J ϑ(t) : angular vel. of shaft
ε (t) : torque applied to shaft
Damping b
J : moment of inertia
b : viscous friction coe!. of bearings
Using Euler’s equation:
dϑ(t)
J = →bϑ(t) + ε (t)
dt
Taking Laplace Transform (with zero initial states):
#(s) 1
↔ =
T (s) Js + b
16 / 23
Example 4: Mechanical Rotational System
Interested in the TF between ε (t)
(input) and ϖ(t) (output).
d2 ϖ(t) dϖ(t)
J = →b → kϖ(t) + ε (t)
dt2 dt
Taking Laplace Transform (with zero initial states):
$(s) 1
↔ =
T (s) Jss + bs + k
17 / 23
Example 5: Thermal System
Interested in the TF between u(t)
(input) and ϖ(t) (output).
I(s) Cs Eo (s) 1
↔ = , =
Ei (s) LCs2 + RCs + 1 Ei (s) LCs2 + RCs + 1
19 / 23
Example 6: Operational Amplifier system
20 / 23
DC motor
Example 7: Armature-controlled D.C. motor
22 / 23
DC motor
$(s) kt
G(s) = =
U (s) s[(Js + f )(Ra + La s) + kt kb ]
23 / 23
ME2142
Chapter 4 Block Diagrams Algebra
1 / 13
Block Diagram Representation of System
A block diagram is a graphical tool to help visualize the various parts of a
system and their mathematical relationships.
The easiest block is
This chapter deals with the simplification of block diagram in order to arrive
at the transfer function between an input and its output.
A complicated block diagram involving many feedback loops can be simplified
by a step-by-step rearrangement using the rules of block diagram algebra.
2 / 13
Basic rules
The best way to explain the algebra of block diagram is through examples.
However, useful to remember a few basic principles to the manipulation of
block diagrams:
(i) the product of the transfer functions in the feedforward direction must be
the same before and after the manipulation.
(ii) the product of the transfer functions around the loop must remain the
same before and after the manipulation.
These rules will be highlighted in the next few examples.
We begin with a few simple known results.
3 / 13
Blocks in parallel
Blocks in series
4 / 13
Shifting across a block
Shifting a block to the left over a summing junction
5 / 13
Closed-loop Feedback System
C(s)
Interested in TF of R(s)
. Note that
6 / 13
Closed-loop Feedback System
7 / 13
Closed-loop Feedback System
Assume D = 0, we have
C(s) G Gc Gp
= =
R(s) 1 + GH 1 + Gc Gp H
Assume R = 0, we have
C(s) G Gp
= =
D(s) 1 + GH 1 + Gc Gp H
8 / 13
Example 1:
G1 G2
Y (s) 1→G2 G3 G1 G2
= G1 G2
=
R(s) 1 + 1→G 1 → G 2 G3 + G1 G2
2 G3
9 / 13
Example 1: Alternative approach
R(s) Y(s)
+ +
- GI - G2 -
¼i - G3
R(s) + + Y(s)
G 1 G2
'
+ ·•
G G
ia1
R(s) +
Y (s) G1 G2 G1 G2
= G3
=
R(s) 1 + G1 G2 (1 → G1
) 1 → G2 G3 + G1 G2
10 / 13
Example 2:
11 / 13
Example 2:
C(s) G1 G2 G3
=
R(s) 1 → G 1 G 2 H 1 + G 2 G 3 H2 + G 1 G 2 G 3
12 / 13
Example 3:
Y (s) G1 G1
= =
R(s) 1 + G1 ( G
G1
2
+ G 3 ) 1 + G 2 + G1 G3
13 / 13
ME2142
Chapter 5 Time Domain Analysis
1 / 31
System Responses
2 / 31
System Responses
where css (t) denotes the steady state response and ct (t) denotes the transient
response.
The transient response is defined as the part of the time response that goes to
zero as time becomes very large, or,
lim ct (t) = 0
t→↑
while the steady state response is the part of the total response that remains
after the transient had died out.
All real control systems exhibit transient phenomena (response) to some extent
before the steady state is reached. Since inertia, mass, inductance, capacitance
etc. are unavoidable in physical systems, the responses of a typical control
system cannot follow sudden changes in the input instantaneously and
transients are usually observed.
3 / 31
System Responses
4 / 31
System Responses
C(s)
Given a transfer function G(s) = R(s)
. How do we
specify the characteristics of the response required?
compare it with another system?
know whether it’s response will adequately meet our needs?
Our approach is to
use a family of standard test signals.
responses of systems over this family of signals are used for characterization
and comparison purposes.
characterize system responses to these test signals by the parameters of the
system.
5 / 31
Test Signals
Step Input,
!
A, t → 0;
r(t) = Step Input
0, t < 0.
↭ R(s) = As .
↭ When A = 1, known as unit step input.
↭ useful in studying changes in input signals.
Ramp Input
! Ramp input
At, t → 0;
r(t) =
0, t < 0.
↭ R(s) = sA2 .
↭ When A = 1, known as unit ramp input.
↭ useful in studying system ability to following
increasing input value.
6 / 31
Test Signals
Impulse Input,
r(t) = Aω
Impulse Input
↭ R(s) = A.
↭ When A = 1, known as unit impulse input.
↭ useful in studying sudden shock or impact
and system identification
Sinusoidal Input
Sinusoidal input
!
Asinεt, t → 0;
r(t) =
0, t < 0.
↭ ω
R(s) = s2 +ω 2.
↭ When A = 1, known as unit sinusoid.
↭ useful in frequency response of system.
7 / 31
Responses of First-order system
We now look into the responses of systems under the test signals discussed. Focus is
on First-Order system :
1
G(s) =
Ts + 1
”s (s) R1 + R2
=
”e (s) R1 + R2 + CR1 R2 s
8 / 31
Responses of First-order system
In terms of Block Diagram, First-order system can be represented in the following
two forms:
where T, k > 0.
In time domain, it is
1 ↓ Tt
c(t) = e ,t → 0
T
9 / 31
Responses of First-order system
1 1 T
C(s) = = ↑
s(T s + 1) s Ts + 1
In time domain, it is
t
c(t) = 1 ↑ e↓ T , t → 0
Note that
c(0) = 1 ↑ 1 = 0
The smaller the T , the faster the
c(T ) = 1 ↑ e↓1 = 0.632 response.
c(↓) = 1
For t > 4T , response within 2% of
dc(t) 1 t 1 final value
|t=0 = e↓ T |t=0 =
dt T T
10 / 31
Responses of First-order system
1 1 T T2
C(s) = = ↑ +
s2 (T s + 1) s 2 s Ts + 1
1
-
2 In time domain, it is
t
# c(t) = t ↑ T + T e↓ T , t → 0
Note that
c(0) = 0 ↑ T + T = 0
c(↓) = ↓ error at steady state is
11 / 31
A property of Laplace Transform
Note : An important property of linear time-invariant systems is the following:
Suppose c1 (t) is the output response corresponding to an input r1 (t). Then if
the input is changed to
dr1 (t)
r2 (t) =
dt
then the corresponding output c2 (t) is given by
dc1 (t)
c2 (t) =
dt
This property can be verified easily when expressed in the Laplace domain. In
this case, we have
This above implies that the output of the system with R2 (s) as input is
sC1 (s). In time domain, this means output is dcdt
1 (t)
when input is drdt
1 (t)
.
This fact manifests in the responses of first order system with ramp, step and
impulse inputs - step function is the derivative of the ramp function, and the
impulse function is the derivative of the step input.
12 / 31
Responses of second-order system
We now look into the responses of a more general class of systems under the same
test signals. This class of system is Second-Order system represented as
εn2
G(s) =
s2 + 2ϖεn s + εn2
They are represented by
mechanical translation system with force as input and position as output:
X(s) 1
=
F (s) ms2 + bs + k
13 / 31
Responses of second-order system
In terms of Block Diagram, second-order system can be represented in the following
two forms:
εn = natural frequency
ϖ = damping ratio
εn2
G(s) =
s2 + 2ϖεn s + εn2
14 / 31
Responses of second-order system
Consider the case where ϖ, ε → 0 (other cases?) and input is a unit step. In this
case, R(s) = 1s and the output is
εn2
C(s) = G(s)R(s) =
s(s2 + 2ϖεn s + εn2 )
To obtain the steady state value, the final value theorem is used (assuming
steady state exists),
sεn2
lim c(t) = lim sC(s) = lim =1
t→↑ s=0 s=0 s(s2 + 2ϖεn s + εn2 )
s2 + 2ϖεn s + εn2 = 0
15 / 31
Responses of second-order system
s1,2 = ±jεn
s1,2 = ↑εn
16 / 31
Responses of second-order system
We begin with the underdamped case (0 < ϖ < 1).
Expression of the output is
εn2 εn2 1
C(s) = = ·
s(s2 + 2ϖεn s + εn2 ) (s + ϖεn )2 + εd2 s
"
where εd = εn 1 ↑ ϖ 2 , known as the damped natural frequency. Simplifying,
1 s + 2ϖεn 1 s + ϖεn ϖεn
C(s) = ↑ 2 = ↑ ↑
s s + 2ϖεn s + εn2 s (s + ϖεn )2 + εd2 (s + ϖεn )2 + εd2
17 / 31
Responses of second-order system
Consider now the other cases.
Expression of the output for ϖ = 0 is
εn2 1 ε2 1 1 s
C(s) = · = 2 n 2 · = ↑ 2
(s + jεn )(s ↑ jεn ) s (s + εn ) s s s + εn2
↔ c(t) = 1 ↑ cosεn t, t → 0
εn2 1 1 1 εn
C(s) = · = ↑ ↑
(s + εn )2 s s s + εn (s + εn )2
↔ c(t) = 1 ↑ (1 + εn t)e↓εn t , t → 0
εn2 1 1 1 b a
C(s) = · = + ( ↑ )
(s + a)(s + b) s s a↑b s+a s+b
1
↔ c(t) = 1 + (be↓at ↑ ae↓bt ), t → 0
a↑b
" "
where a = ϖεn + εn ϖ 2 ↑ 1, b = ϖεn ↑ εn ϖ 2 ↑ 1
18 / 31
Responses of second-order system
How does c(t) look like for these cases?
19 / 31
Responses of second-order system
20 / 31
Definition of Transient Response
Systems with energy storage cannot respond instantaneously and will exhibit
transient responses whenever they are subjected to inputs or disturbances.
In many applications, the desired performance characteristics of control
systems are specified in terms of time-domain quantities (both transient and
steady state).
As systems with energy storage cannot respond instantaneously to input
demand, transient responses results.
Frequently, the performance characteristics of a control system are specified in
terms of transient response to a unit-step input since it is easy to generate and
is su$ciently drastic.
The transient response of a system to a unit-step input depends on the initial
conditions. For purposes of comparison, a standard set of initial conditions are
used.
21 / 31
Definition of Transient Response
Several quantities are often used for specifying transient-response characteristics of a
control system to a unit-step input.
1 Delay time, td : The delay time is the time required for the response to reach
half the final value the very first time.
2 Rise time, tr : The rise time is the time required for the response to rise from
10 % to 90 %, 5% to 95%, or 0% to 100% of its final value. For underdamped
second-order systems, the 0% to 100% rise time is normally used. For
overdamped systems, the 10% to 90% rise time is commonly used.
22 / 31
Definition of Transient Response
3 Peak time, tp : The peak time is the time required for the response to reach the
first peak of the overshoot.
4 Maximum overshoot, Mp : The maximum overshoot is the maximum peak
value of the response curve measured from unity. If the final steady-state value
of the response di#ers from unity, then it is common to use the maximum
percent overshoot. It is defined by
c(tp ) ↑ c(↓)
Mp = ↗ 100%
c(↓)
5 Settling time, ts : The settling time is the time required for the response curve
to reach and stay within a range about the final value of size specified by
absolute percentage of the final value (usually 2% or 5%). The settling time is
related to the largest time constant of the control system. Which percentage
error criterion to use is usually determined from the objectives of the system
design in question.
23 / 31
Comments on Transient Response
The time-domain specifications given are quite important since the responses
in time are what are observed.
Hence, the transient response should be satisfactory. Note that if values of
td , tr , tp , Mp and ts are specified, the shape of the response curve is virtually
determined.
Clearly, not all quantities are applicable for any given case. For example,
tp , Mp are not defined for an overdamped system; ts may not be reached if
systems have steady-state errors to step input, etc. Discussions on steady-state
errors are given in Chapter 6.
Except for special applications where oscillations cannot be tolerated, the
transient response should be su$ciently fast and lightly damped (minimal
overshoot). In the case of a second-order system, this means ϖ is between 0.5
and 0.8. Small values of damping ratio (less that 0.4) yield excessive overshoot
and large values of damping ratio (greater than 1) yields sluggish response.
24 / 31
Transient Quantities for Second-order systems
In the special case of standard second-order system with 0 ↘ ϖ ↘ 1, the
afore-mentioned quantities can be connected to the system parameters. Recall that
"
↓ωεn t ϖ e↓ωεn t ↓1 1 ↑ ϖ2
c(t) = 1 ↑ e (cosεd t + " sinεd t) = 1 ↑ " sin(εd t + tan )
1↑ϖ 2 1↑ϖ 2 ϖ
25 / 31
Transient Quantities for Second-order systems
dc(t)
Peak time tp is defined by dt tp
| = 0 (why?). Hence,
26 / 31
Transient Quantities for Second-order systems
↓ωεn ( εϑ ) ϖ
= ↑e d (cosς + " sinς)
1 ↑ ϖ2
which implies that
↓ ≃ ωϑ
1→ω2
Mp = e
or in terms of percentage is
↓ ≃ ωϑ
1→ω2
e ↗ 100%
27 / 31
Transient Quantities for Second-order systems
28 / 31
Transient Quantities for Second-order systems
Note that the settling time is inversely proportional to the product of the
damping ratio and the undamped natural frequency of the system.
Since the value of ϖ is usually determined from the requirement of permissible
maximum overshoot, ts can be determined by εn .
This means that the duration of the transient period may be varied, without
changing the maximum overshoot.
From the preceding analysis, it is evident that εn must be large for rapid
response.
To limit the maximum overshoot and to make the settling time small, the
damping ratio ϖ should not be too small.
Note that if ϖ is between 0.4 and 0.8, then the maximum percent overshoot for
the step response is between 25% and 2.5%, see figure shown two slides before.
29 / 31
Summary of transient response
εn2
G(s) =
s2 + 2ϖεn s + εn2
" εd
define εd = εn 1 ↑ ϖ 2 and ϱ = tan↓1 ωε n
ϑ↓ϖ
Rise time, tr = εd
Peak time, tp = εϑd
↓ ≃ ωϑ
1→ω2
Maximum Overshoot, Mp = e ↗ 100%
3 4
Settling time, ts = 3T = ωεn
, for 5% criterion and ts = ωεn
for 2% criterion
30 / 31
Responses of Higher-order systems
We have discussed responses of First and Second order systems. What about higher
order systems?
The location of the poles of the transfer function in the s-plane has great
e#ects on the transient response of the system. So it is important to sort out
the poles that have dominant e#ect on the transient response, known as the
dominant poles.
The poles that are close to the imaginary axis in the left half of the s-plane
give rise to transient responses that will decay relatively slowly, whereas the
poles that are far away from the imaginary axis (relative to the dominant
poles) correspond to fast decaying time responses.
10
To see this e#ect, take G(s) = (s+1)(s+10)
, the pole locations and system
responses are given below:
31 / 31
ME2142
Chapter 6 Steady State Analysis
September 5, 2022
1/7
Steady State Analysis of Systems
Consider the feedback control system shown above where the loop transfer
function G(s)H(s) is written as
2/7
Error Analysis
Note that
C(s) G(s) E(s) 1
= and =
R(s) 1 + G(s)H(s) C(s) G(s)
Hence, the error signal is given by
R(s)
E(s) =
1 + G(s)H(s)
The steady state error can be found using the final-value theorem :
sR(s)
ess = lim e(t) = lim sE(s) = lim
t→↑ s=0 s=0 1 + G(s)H(s)
The final value theorem can be applied only if all the roots of the denominator
sR(s)
polynomial of 1+G(s)H(s) have negative real parts.
3/7
Error Analysis
Consider the case where R(s) = 1s , or r(t) = 1 for t → 0. Then
s 1s 1 1
ess = lim sE(s) = lim = =
s=0 s=0 1 + G(s)H(s) 1 + G(0)H(0) 1 + Kp
where Kp := lims=0 G(s)H(s) = G(0)H(0) is the step-error constant.
For Type 0 system,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Kp = lim =K
s=0 s0 (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
4/7
Error Analysis
1
Consider the case where R(s) = s2
, or r(t) = t for t → 0. Then
s s12 1 1
ess = lim sE(s) = lim = lim =
s=0 s=0 1 + G(s)H(s) s=0 s + sG(0)H(0) Kv
where Kv := lims=0 sG(s)H(s) is the ramp-error constant
For Type 0 system,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Kv = lim s =0
s=0 s0 (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
For Type 1 system,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Kv = lim s =K
s=0 s1 (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
For Type 2 system or higher,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Kv = lim s =↑
s=0 sN (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
In summary, for ramp input
ess = ↑, for Type 0 system
1
ess = for Type 1 system
K
ess = 0 for Type 2 system or higher
5/7
Error Analysis
1 t2
Consider the case where R(s) = s3
, or r(t) = 2
for t → 0. Then
s s13 1 1
ess = lim sE(s) = lim = lim =
s=0 s=0 1 + G(s)H(s) s=0 s2 + s2 G(0)H(0) Ka
where Ka := lims=0 s2 G(s)H(s) is the parabolic-error constant
For Type 0 and Type 1 system,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Ka = lim s2 N =0
s=0 s (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
For Type 2 system,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Ka = lim s2 =K
s=0 s2 (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
For Type 3 system or higher,
K(ωa s + 1)(ωb s + 1) · · · (ωm s + 1)
Ka = lim s2 N =↑
s=0 s (ω1 s + 1)(ω2 s + 1) · · · (ωp s + 1)
In summary, for parabolic input
ess = ↑, for Type 0 and Type 1 system
1
ess = for Type 2 system
K
ess = 0 for Type 3 system or higher
6/7
Summary
Given a closed-loop Feedback System
7/7
ME2142
Chapter 7 Stability Analysis
February 8, 2023
1 / 19
System Stability
Note that the above block diagram representation can be that of an open-loop or
closed-loop system.
A few basic definitions are needed before the concept of stability can be
introduced.
Definition: A signal, y(t), is said to be bounded if there exists a finite constant
µ (µ < →) such that
|y(t)| < µ for all t ↑ 0
Examples of bounded signals include (t), sinωt, e→t .
Examples of unbounded signals are t, tsinωt, et .
2 / 19
Stability Analysis
Intuitively, a stable system is one whose response does not “blow up” during
its operation.
Another intuitive understanding is the output of a system have “finite energy”
if the input to the system has only “finite energy”.
Since “energy” is related to the size (magnitude) of a signal, this leads to the
following stability concept.
Definition
A system is Bounded-Input Bounded-Output (BIBO) stable if whenever the input
signal is bounded, so is the output signal.
In other words, if a stable system is driven by an input that doesn’t blow up,
then the output doesn’t blow up either.
On the other hand, if a system is unstable, then some bounded input produces
an unbounded output.
3 / 19
Stability Analysis
Theorem
The system G(s) is BIBO stable if and only if all its poles are in the open left-half
s-plane, or equivalently, the poles have negative real parts.
4 / 19
Stability Analysis
To better appreciate the definition, let’s consider a simple case where the poles of
the system are all distinct and that the system is driven by a unit step function (i.e.,
r(t) = (t)).
In that case, the output C(s) is
N (s) 1
C(s) =
D(s) s
or, by partial fraction, we get
n
1 ! ai
C(s) = +
s i=1 s + pi
↓ c(t) = 1 + ai e→pi t
What about other input functions?
5 / 19
Stability Analysis
s2 + 2s + 1
G(s) =
s3 + 3s2 + 5s + 7
6 / 19
Routh Table
7 / 19
Routh Table
Forming the Routh Table
(1) Suppose D(s), the denominator polynomial of G(s) is
a0 sn + a1 sn→1 + · · · + an = 0
(2) If any of the coe!cients of this polynomial is zero, or if all the coe!cients are
not of the same sign, then there is a root or roots of polynomial D(s) that is
either imaginary or have positive real part (i.e. in the closed right half of the
s-plane). Therefore, in such a case, the system G(s) is not stable. (Thus for
BIBO stability of G(s) we must have no ai equal to zero and all ai must be of
the same sign).
Construct the Routh Table as follow:
sn a0 a2 a4 a6 ··· a1 a2 ↔ a0 a3
n→1 b1 = ,
s a1 a3 a5 a7 ··· a1
sn→2 b1 b2 b3 b4 ··· a1 a4 ↔ a0 a5
b2 = ,
sn→3 c1 c2 c3 c4 ··· a1
.. .. a1 a6 ↔ a0 a7
. . b3 = ,
a1
s2 e1 e2
s1 f1 ..
.
s0 g1
8 / 19
Routh Table
sn a0 a2 a4 a6 ··· b1 a3 ↔ a1 b2
c1 = ,
sn→1 a1 a3 a5 a7 ··· b1
sn→2 b1 b2 b3 b4 ··· b1 a5 ↔ a1 b3
c2 = ,
sn→3 c1 c2 c3 c4 ··· b1
.. .. b1 a7 ↔ a1 b4
. . c3 = ,
b1
s2 e1 e2
s1 f1 ..
.
s0 g1
The process is continued until the n-th row has been completed.
Routh’s stability criterion states that the number of roots of D(s) (or
equivalently, number of poles of G(s)) with positive real part (i.e. in the open
right half s-plane) equals the number of sign changes in the first column of the
Routh table.
Hence, the system G(s) is BIBO stable if all the entries in the first column of
the Routh table have no sign change (i.e. all the entries in the first column are
all positive or all negative).
9 / 19
Routh Table
s2 +2s+1
As an example, consider the case where G(s) = s3 →4s2 +s+6
The denominator polynomial,D(s), is
s3 ↔ 4s2 + s + 6
Since all the coe!cients of D(s) are not of the same sign, G(s) is not BIBO
stable.
We can verify this using the Routh Table.
s3 1 1
s2 -4 6
(→4)(1)→(6)(1)
s1 →4
= 2.5 0
s0 6 0
2 sign changes in the first column ↓ two roots in the open right half s-plane.
Equivalently, G(s) has 2 poles with positive real parts. (The poles are
s = 2, 3, ↔1)
10 / 19
Routh Table
s+1
G(s) =
s4 + 2s3 + 5s2 + 4s + 9
11 / 19
Routh Table
Special Cases: Case 1: The first element in any one row in the Routh table is zero,
but not all elements of that row are zero. This is handled by the ε - method.
s2 +1
Consider G(s) = s4 +s3 +2s2 +2s+3
. Char eqn: s4 + s3 + 2s2 + 2s + 3 = 0
s4 1 2 3
s3 1 2 0
s2 0 3
Since the first element in the s2 row is zero, the elements in the next row
would all be infinite.
Remedy: Replace the zero by a small number ε, and proceed as usual;
s4 1 2 3
s3 1 2 0
s2 ε 3
→3
s1 2ω→3
ω
= ω
0
s0 3
There are 2 sign changes for ε > 0 or ε < 0.
Conclusion: D(s) has two roots in the open right half s-plane.
12 / 19
Routh Table
Special Cases: Case 2: All elements in one row of the Routh table are zero. This
indicates that one or more of the following conditions are true:
(i) G(s) has at least one pair of poles which are purely real with equal magnitude
but opposite signs.
(ii) G(s) has one or more pairs of purely imaginary poles.
(iii) G(s) has pairs of complex conjugate poles forming symmetry about the origin
of the s-plane; e.g. s = ↔1 ± j1, s = 1 ± j1.
Thus G(s) is an unstable system in these cases.
Form the auxiliary equation A(s) = 0 from the coe!cients of the row just
above the row of zeros in the Routh table. This auxiliary equation is always an
even polynomial, i.e., only even powers of s appear.
The roots of the auxiliary equation are poles of G(s) which correspond to the
conditions (i), (ii) or (iii) listed earlier.
13 / 19
Routh Table
The nature of poles of G(s) in this case is handled by the auxiliary equation
method.
dA(s)
(1) Take the derivative of the auxiliary equation with respect to s, i.e. ds
= 0.
(2) Replace the row of zeros with the coe!cients of this equation and proceed with
the Routh table as usual.
(3) Interpret the resulting table as before.
s+1
For example, consider G(s) = s5 +4s4 +8s3 +8s2 +7s+4
.
s5 1 8 7
s4 4 8 4
s3 6 6 0
s2 4 4 0
s1 0 0 0
Since all the elements of the s1 row are zero, G(s) is an unstable system.
Forming the auxillary equation, A(s) = 4s2 + 4 = 0.
Solving the auxiliary equation we get two roots s = ±j which are the two poles
of G(s) on the imaginary axis.
14 / 19
Routh Table
dA(s)
To proceed further, take the derivative of A(s) with respect to s; ds
= 8s
1
Replace the row of zeros (i.e. the s row) with the coe!cients of this equation
and proceed with the Routh table as usual.
s5 1 8 7
s4 4 8 4
s3 6 6 0
s2 4 4 0
s1 8 0
s0 4
There are no sign changes in the entries of the first column of the Routh table.
Thus among the remaining poles of G(s) (i.e. excluding the poles obtained as
solutions to the auxiliary equation) there is none in the open right half of the
s-plane.
Therefore G(s) is an unstable system with
(i) 2 poles on the imaginary axis (obtained as solutions of A(s) = 0),
(ii) no poles with positive real part,
(iii) 3 poles with negative real part.
Indeed, the poles of G(s) are ±1j, ↔1, ↔1.5 ± 1.3229j.
15 / 19
Routh Table
16 / 19
Routh Table
17 / 19
Routh Table
s3 + 3s2 + 3s + ϑ
18 / 19
Routh Table
19 / 19
ME2142
Chapter 8 Time Domain Design of Control System
1 / 26
Time Domain Design
Consider a feedback system shown below
Controller System
Sensor
Design a controller such that the following performance specifications are satisfied:
(i) closed loop system must be BIBO stable.
(ii) the steady-state error ess < some fixed value.
(iii) the maximum percentage overshoot Mp < some fixed value.
(iv) the rise time tr < some fixed value.
(v) the settling time ts < some fixed value.
To satisfy the steady-state error requirement, the controller structure must be
chosen such that the resulting loop transfer function has the required “type”.
The other performance criteria may be satisfied by choosing the correct values
for the parameters of the controller so that the damping ratio and natural
frequency of the closed loop transfer function have the required values.
2 / 26
Time Domain Design
The process of designing a controller generally involves many steps and tradeo↵s. A
typical scenario is as follows:
1 Study the system to be controlled and decide what type of sensors and
actuators will be used and where they will be placed.
2 Model the system to be controlled.
3 Simplify the model if necessary so that it is tractable.
4 Analyze the resulting model and determine its properties.
5 Decide on performance specifications.
6 Decide on the type of the controller to be used.
7 Design a controller to meet the performance specifications, if possible; if not,
modify the specifications or go back to step 6 to choose a di↵erent type of
controller.
8 Simulate the resulting closed loop controlled system, either on a computer or
in a pilot plant.
9 Repeat from step 1 if necessary.
10 Choose hardware and software and implement the controller.
11 Tune the controller on-line if necessary to get good performance.
3 / 26
Time Domain Design
We will illustrate the design process using the following examples.
Example 1: Position Control of a DC Motor Using Proportional Controller
dc motor
Reference position controller
E(s) U(s)
in volts r(t) + km
KP C(s)
R(s) - s(τ m s + 1)
k1
Motor position
in volts potentiometer
Suppose we are given the plant and wish to design a controller that satisfies the
following criteria:
(i) closed loop system must be BIBO stable.
(ii) the steady-state error ess (step) = 0.
We begin with the simplest controller, the P -controller with the T.F. of
U (s)
= Kp
E(s)
4 / 26
P controller
The openloop T.F. is type 1, hence, steady-state error for the closed-loop
system is ess (step) = 0.
The closed-loop transfer function is
Kp km
C(s) K p km ⌧m
= = K km k1
R(s) ⌧ m s 2 + s + K p km k1 s2 + s
+ p⌧m
⌧m
If we choose the controller gain Kp > 0 (and since ⌧m , k1 , km > 0), the poles of
the closed loop system are in the open left half of the s-plane and the closed
loop system is BIBO stable.
Both design conditions are satisfied.
5 / 26
P controller
The above specifications, however, do not include the performances on
transient characteristics.
Suppose we wish to include an additional specification of having
(iii) the maximum overshoot Mp (step) = 10%.
Then, from the closed-loop characteristic equation of
s K p km k1
s2 + + =0
⌧m ⌧m
we have r
K p km k1 K p km k1
!n2= ) !n =
⌧m ⌧m
1 1
2⇠!n = )⇠= p
⌧m 2 K p km k1 ⌧ m
We can, therefore, choose a value for Kp to achieve the required damping ratio
for the closed-loop system (from Mp and ⇠ graph, Mp 10% for ⇠ > 0.6.).
Note that ⇠ is inversely related to Kp : ⇠ # as Kp ", and system is sluggish if
Kp is small!
6 / 26
P controller
7 / 26
An example
8 / 26
An example
The responses to step and ramp inputs are given below (Y - c(t), X - time):
9 / 26
P D controller
We now use a di↵erent controller, known as the P D controller.
If Kp , KD > 0 (and since ⌧m , k1 , km > 0), the poles of the closed loop system
are in the open left half of the s-plane and the closed loop system is BIBO
stable.
From the closed-loop characteristic equation
1 + K D km k1 K p km k1
s2 + s+ =0
⌧m ⌧m
we have r
K p km k1 K p km k1
!n2 = ) !n =
⌧m ⌧m
1 + K D km k1 1 + K D km k1
2⇠!n = )⇠= p
⌧m 2 K p km k1 ⌧ m
11 / 26
P D controller
12 / 26
PD example
Using the previous example. We have
DC
motor
potentiometer
If Kp = 100, then ess (ramp)=0.0012125 which is very good for tracking ramp.
Choose KD = 0.8788, then ⇠ = 1 which is critically damped with no overshoot.
13 / 26
PD example
Based on the example, the step and ramp responses are
14 / 26
Speed Feedback
The previous approach was done using a P D controller. The same e↵ect can
be achieved using a P controller with speed feedback.
The speed feedback design has the added advantage of not introducing a zero
to the CLTF.
DC
motor
tachometer
potentiometer
15 / 26
Speed Feedback
q
Kp k m k1 1+K k k
Hence, !n = ⌧m
and ⇠ = p p m t
2 K p k m k 1 ⌧m
K k (k1 +Kt s) 1 1
Also, Kv = lims)0 s p m
s⌧m +1
= Kp km k1 , and ess (ramp)= Kv
= Kp km k 1
.
Hence, Kp " leads to ess (ramp) #.
Choose Kt to adjust ⇠.
16 / 26
Speed Feedback
17 / 26
P I controller
The P and P D can make ess (ramp) small but not zero. If we want ess (ramp)=0, a
P I controller can be used.
DC
motor
potentiometer
19 / 26
PI example
Using the previous example. We have
DC
motor
potentiometer
KI
choose KP
= 0.1, then the CLTF approximation is
C(s) 400
' 1 2 48.5
R(s) Kp
s + Kp
s + 400
20 / 26
PI example
we have
p 48.5
!n = 400Kp , and 2⇠!n = 48.5 ! ⇠ = p
2 400Kp
ess (step)=ess (ramp)=0.
If Kp = 100, KI = 10 and ⇠ = 0.12125 (low damping).
If Kp = 2, KI = 0.2 and ⇠ = 0.857 (good damping).
21 / 26
PI example
Note that there is a large initial error to ramp for the case of Kp = 2, KI = 0.2.
Note that the error get close to 0 only when t > 50 seconds.
22 / 26
P ID controller
We now introduce the PID controller for the DC motor system.
DC
motor
potentiometer
The CLTF is
C(s) (KD s2 + Kp s + KI )km
=
R(s) ⌧m s + (1 + KD km k1 )s2 + Kp km k1 s + KI km k1
3
(K
Kp
D 2
s +s+ KI
Kp
)km
= ⌧m 3 (1+KD km k1 ) 2 KI
Kp
s + Kp
s + km k1 s + km k1 K p
KI
If we choose the controller gain KI , Kp such that the ratio K p
' 0 , then the
closed-loop transfer function may be approximated by a second order T.F.
(K
Kp
D
s + 1)km
= ⌧m 2 (1+KD km k1 )
Kp
s + Kp
s + km k1
24 / 26
P ID controller
The characteristic equation of the CLTF is
⌧m 2 (1 + KD km k1 )
s + s + km k1 = 0
Kp Kp
Hence, r
K p km k1
!n = ,
⌧m
1 + K D km k1 1 + K D km k1
2⇠!n = )⇠= p
⌧m 2 K p km k1 ⌧ m
The presence of the derivative term helps in faster rise time and reduced
overshoot compared to a PI-controller.
While PID controller can combine the advantages of PD and PI controllers,
however, the design is difficult and relies heavily on approximation,
assumptions and experience .
The approximation adopted here: First design a PD-controller by choosing
appropriate Kp , KD > 0 to achieve the required damping ratio for the
closed-loop system. Thus the overshoot and oscillations in the system response
can be controlled. Next choose a positive number ✏ close to zero such that
KI = ✏Kp . This completes the design.
25 / 26
PID example
DC
motor
potentiometer
26 / 26
ME2142
Chapter 9 Root Locus Analysis
1 / 20
8.1 Introduction
2 / 20
Example 1
From the diagram above, the closed-loop transfer function of the system is
Y (s) K
= 2 (8.1.1)
R(s) s + 4s + K
Therefore, the closed-loop characteristic equation is
s2 + 4s + K = 0 (8.1.2)
3 / 20
Example 1
The roots of the characteristic equation are
↑
s = →2 ± 4 → K for 0<K<4
s = →2 for K = 4
↑
and s = →2 ± j K → 4 for K>4
4 / 20
8.2 Basis of Root Loci
Consider a general feedback system as shown below.
1 + KG(s)H(s) = 0 (8.2.2)
KG(s)H(s) = →1 (8.2.3)
5 / 20
8.2 Basis of Root Loci
Hence, values of s for which (8.2.3) is satisfied are the roots of the characteristic
equation, or the closed-loop poles. The above equation can also be seen as two
conditions since s is a complex quantity. These two conditions are
the Magnitude condition
|KG(s)H(s)| = 1 (8.2.4)
and the Angle condition
Based on these two conditions, some properties of root locus can be derived.
6 / 20
Magnitude and Angle Criteria
K(s + z1 )(s + z2 ) · · · (s + zm )
KG(s)H(s) = (8.2.6)
(s + p1 )(s + p2 ) · · · (s + pn )
where →zi and →pi are the zeros and poles of the open-loop transfer function.
In this form, the magnitude and angle conditions (8.2.4) and (8.2.5) can be
rewritten as
Magnitude Condition
|s + z1 ||s + z2 | · · · |s + zm | 1
= (8.2.7)
|s + p1 ||s + p2 | · · · |s + pn | |K|
Angle Condition
m
! n
!
↭(G(s)H(s)) = ↭(s + zi ) → ↭(s + pi ) = (2n + 1)180→ (8.2.8)
i=1 i=1
7 / 20
Magnitude and Angle Criteria
To see this, for example, we have
↑ ↑
(1 + j)(2 + j) 2↭(45→ ) 5↭(26.56→ )
= ↑
(3 + j)(4 + 3j) 10↭(18.43→ )5↭(36.86→ )
1
= ↭(45→ + 26.56→ → 18.43→ → 36.86→ )
5
1
= ↭(16.27→ )
5
There is also a clear geometrical interpretation to the two conditions. Consider the
example of
K(s + z1 )
KG(s)H(s) =
(s + p1 )(s + p2 )(s + p3 )
8 / 20
Magnitude and Angle Criteria
9 / 20
Useful facts for designing using Root Loci
10 / 20
Useful facts for designing using Root Loci
11 / 20
8.4 The root-locus design method
In the above sections, the underlying principles of the various properties of plotting
root-locus diagram have been discussed. We now show how the root-locus diagram
can be used in the design process.
Root-locus method is particularly useful when the specifications are given in time
domain quantities like damping ratio, natural frequency, maximum overshoot, rise
time and settling time.
Recall that for a standard second-order system, the maximum overshoot condition
depends on ϖ, and the region for a max. value of ϖ corresponds to sector on the
s-plane as shown.
12 / 20
8.4 The root-locus design method
Settling time conditions depends on the quantity ϖϱn . For a complex pole, this
quantity corresponds to the real part of the pole. Hence, the region looks like
The above provides good guidelines as to where the closed-loop poles should be
located. They are exact for the special 2nd order systems but can be used as
approximations for higher order system. In general, a proper design will require
several iterations of computer simulations and based on the computer response,
make changes based on the response. The following is a typical design procedure.
13 / 20
8.4 The root-locus design method
Step 1: Choose a configuration and a compensator with one open parameter k.
Step 2: Compute the overall transfer function and then find the range of k for the
system to be stable and to meet steady-state specifications. If no such k exists, go
back to step 1.
Step 3: Plot the root loci that yield the poles of the overall system as a function of
the parameter.
Step 4: Find the desired pole region from the specification on overshoot and
settling time requirements.
Step 5: Find the range of k in which the root loci lie inside the desired pole region.
If no such k exists, go to Step 1 and choose a more complicated compensator or a
di!erent configuration.
Step 6: Find the range of k that meets 2 and 5. If no such k exists, go to Step 1.
15 / 20
Examples of root locus design
The conditions for G0 (s) to be stable are (can be verified using Routh table)
4k → 2 > 0
k+1>0
which implies that k > 0.5. For range of k to have position error less than 10%, we
note that
1
ess (t) = lim sess (s) =
s↑0 1 + G(0)H(0)
4k(0.25s+1)
Since lims=0 G(s)H(s) = lims=0 2(0.5s+1)(s↓1)
= →2k Hence,
1 1
ess (t) = | 1↓2k | = | 2k↓1 | ≃ 0.1 which implies that k ↔ 5.5
16 / 20
Examples of root locus design
Plot the root locus using the properties of root locus or through some kind of
computer program like MATLAB.
Find the ranges of k that meet the specifications on overshoot and settling time.
To summarize
k > 0.5: stable
k > 5.5: meet specification (1).
k > 5 or 1 > k > 0.5 meet specification (2)
k > 1: meet specification (3).
Clearly, in order to meet (1), (2) and (3), k must be larger than 5.5.
17 / 20
Examples of root locus design
The last step of the design is to find a k in k > 5.5 such that the system has
the smallest rise time. To achieve this, we choose k such that the closed loop
poles are farthest away from the origin.
For this reason, we choose k = 13.3, the breakin location.
It is important to stress that the desired pole region is developed for the
standard second order system. The G0 (s) system above is not such a transfer
function. Therefore, it is advisable to simulate the resulting system to verify
that the constraints are satisfied.
18 / 20
Examples of root locus design
Question: Determine the value of ς such that the damping ration ϖ = 0.5. closed
loop characteristic equation of the system is
or
2ς
1+ =0
s3 + 4s2 + 5s
in standard root locus form.
19 / 20
Examples of root locus design
For stability requirement, we can obtain from the Routh Table with char. eqn
s3 + 4s2 + 5s + 2ς = 0
s3 1 5
s2 4 K
s1 20↓K
4
s0 k
⇐ K > 0 and K < 20.
Generate the root locus graph using a package like MATLAB, it shows that ϖ = 0.5
corresponds to s ⇒ →0.63 ± 1.09j. The value of k = 4.32 = 2ς or ς = 2.16
20 / 20