Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
1 Introduction
System model
inputs
system
boundary
outputs
{law rule}
environment
inputs
system
outputs
= components
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1 Introduction
A Control System
contains a component called controller whose role is to control the
system output so that an objective is achieved.
Example:
controlling
component
controller
controlled
component
plant
A control system
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1 Introduction
controlling u
component
air-conditioner
controlled
component
a.c. room
where r
u
y
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1 Introduction
comparing
component
thermostat
u
a.c.
room
1 Introduction
Feedback Control
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1 Introduction
Fig. 1-5:
1 Introduction
or nonfeedback control
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1 Introduction
Effect of feedback
complete the cause-and-effect relationships
increase the gain of a system in one frequency range but decrease it
in another
can improve stability or be harmful to stability
can increase or decrease the sensitivity of a system
can reduce the effect of noise
can affect bandwidth, impedance, transient response, steady-state
response, and frequency response
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Mathematical Foundation
Laplace transform
inverse Laplace transform by partial-fraction expansion
application of Laplace transform to the solution of linear ODE
impulse response and transfer functions of linear systems
M ATLAB tools and case studies
2 Mathematical Foundation
Laplace transform
Denition Given a real function f (t) satisfying 0 |f (t)et| dt < for
some nite, real , the Laplace transform of f (t) is dened as
F (s) = L[f (t)] =
f (t)est dt
0
u(t)
1
2 Mathematical Foundation
Impulse function
An impulse (or Dirac delta) function is dened as the limit of a
rectangular pulse function:
(t) =
(t)
1
,
0t<
0, t < 0, t
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
(t)
1
1
s
1
s2
n!
1
t
tn
eat
sin bt
cos bt
sn+1
1
sa
b
s2 + b 2
s
2
s + b2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
s0
if sF (s) is analytic in Re s 0.
Complex shifting
L[etf (t)] = F (s )
Real convolution
F1(s)F2(s) = L[f1(t) f2(t)]
t
=L
f1( )f2(t ) d
0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
0+ and 0
If we dene
F+(s) = L+[f (t)] =
0+
f (t)e
st
dt and F(s) = L[f (t)] =
f (t)est dt
u(t)
Then 0+ or 0?
consider
1
u(0) = 0
0
u(0+) = 1
1
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
If an
= 0 we call the function
2 Mathematical Foundation
+
+ {terms of R(s)}
P (s) s (s )2
(s )m
Multiplying both sides by (s )m
Q(s)
= Am + + A2(s )m2 + A1(s )m1 + {terms of R(s)}(s )m
R(s)
Q(s) Q(s)
=
, we can nd Ak from
Letting (s) = (s )m
P (s) R(s)
1
(mk)(), k = 1, 2, . . . , m
Ak =
(m k)!
and its corresponding L1[] term is
k1
A
k
t t
L1
=
e
(s )k
(k 1)!
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
Q(s)
, we have
P (s)
1
(mk)( + j),
(m k)!
k = 1, 2, . . . , m
Ak + jBk
Ak jBk
+
(s j)k (s + j)k
tk1
(Ak + jBk )ejt + (Ak jBk )ejt
(k 1)!
tk1
= et
(2Ak cos t 2Bk sin t)
(k 1)!
= et
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
10
1
7
6
5s + 3
=
+
+
(s + 1)(s + 2)(s + 3) s + 1 s + 2 s + 3
Example 2
1
1
2
2
2
=
+
Example 3
1
j/2
2(s + 1)
j/2
=
+
+
s2(s2 + 2s + 2) s2 s + 1 + j s + 1 j
j/2
j/2
n
n2
=
Example 4 G(s) = 2
2 s + + j
s + 2ns + n2
s + j
1
where = n and = n 1 2 or
n
ent sin nt 1 2
g(t) = L1[G(s)] =
1 2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
11
Example
5
s
s2 s + 5
s(s + 1)(s + 2)
+
s
s+1 s+2
Taking the inverse Laplace transform, we get the complete solution
Y (s) =
y(t) =
3
5
5et + e2t,
2
2
t0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
12
Impulse response
Consider a linear time-invariant with input u(t) and output y(t). The
system can be characterized by its impulse response g(t) which is dened
as the output when the input is a unit-impulse function (t).
(t)
1
(t) =
u(t)
system
y(t)
1
,
0t<
0, t < 0, t
(t)
system
g(t)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
13
Transfer function
The transfer function of a linear time-invariant system is dened as the
Laplace transform of the impulse response, with all the initial conditions
set to zero.
G(s) = L[g(t)]
Let n and m be the order of the denominator and the numerator
polynomials of G(s), respectively. The transfer function G(s) is said to be
[strictly] proper when [n > m] n m. If n < m, we call it improper.
We can show that the transfer function is also the ratio between the
Laplace transform of the output and the Laplace transform of the input
G(s) =
Y (s)
U (s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
14
u(n)2
u(n)(tn)
n=0
u(n) (tn)
u(t)
1
...
0
...
1n
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
2 Mathematical Foundation
15
Interpretation of convolution
Dene g(t) to be the systems response to (t).
input
(t)
(tn)
u(n)(tn)
output
g(t)
by denition
g(tn)
time invariance
u(n)g(tn)
scaling
u(n)(tn)
u(n)g(tn)
superposition
n=0
n=0
d
u( )(t ) d
u( )g(t ) d
n
0
0
By sifting property of the impulse function
LHS =
u( )(t ) d = u(t)
0
2 Mathematical Foundation
16
7.0000 -1.0000
1.0000
0
>> syms s
>> G=2/s/(s+1)^3/(s+2)
G =
2/(s*(s + 1)^3*(s + 2))
>> ilaplace(G)
ans =
1/exp(2*t) - 2/exp(t) - t^2/exp(t) + 1
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
block diagrams
block diagrams of control systems
block diagrams of multivariable systems
signal-ow graphs (SFGs)
basic properties of SFG
SFG algebra
gain formula for SFG
M ATLAB tools and case studies
Block diagrams
is a simple pictorial representation of a system
basic language of control engineers
describes composition and interconnection of a system
describes the cause-and-effect relationships throughout the system
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
U (s)
Y (s)
G(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Vo = R2I
+
Vo
R2
I=
Vi
Vi V o
R1
Vo
R2
+
1
R1
Vo
1
R1
R2
Vo
or
Vo
R2
=
V i R1 + R2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
and
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Y(s) = M(s)R(s)
M(s) = [I + G(s)H(s)]1G(s)
= G(s)[I + H(s)G(s)]1
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
G1
G2
G1
equivalent diagram
G1
G1 G 2
G2
u
G2 G1
G1
1 G 1 G2
G2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
u1
u2
u1
G
y
u1
u
u
u2
1
G
u
y
u2
u
u
u2
1
G
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
G1
G2
+ +
G4
G3
H1
H3
Answer:
Y
G 4 G3 G2 G1
=
R 1 G4 G 3 H 1 + G 3 G 2 H2 + G 4 G 3 G 2 G 1 H 3
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10
Reduction difculty?
Wrong way:
G1
G2
+
+
+
+
G3
Right way:
G4
G1
R
G1
+
+
G2
G3
Answer:
Y
= G2 G 1 + G 4 G 1 + G 2 G 3
R
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
11
U (s)
U (s)
Y (s)
G(s)
Y (s)
G(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
12
Vi
1
R1
Vo
R2
Example 2
H2
R
G1
G2
G3
G4
H1
H3
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
13
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
14
k=1
where
= 1 (all individual loops)
+ (gain products of all combinations of two nontouching loops)
(gain products of all combinations of three nontouching loops)
+ (. . . four nontouching loops) (. . . ve nontouching loops) +
N = total number of forward paths between yin and yout
Mk = the gain products of the kth forward path
k = the for that part of the SFG that is nontouching with the kth forward path
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
15
f
b
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
16
Y (s)
G1 G2 G3 + G 1 G4
=
,
R(s) 1 + G1G2H1 + G2G3H2 + G1G2G3 + G4H2 + G1G4
Y (s)
=?
E(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
17
>> G3=feedback(G1,G2)
Transfer function:
s + 2
------------s^2 + 3 s + 3
>> G4=G1/(1+G2*G1)
Transfer function:
s^2 + 3 s + 2
--------------------s^3 + 4 s^2 + 6 s + 3
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
18
19
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
20
Introduction
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
A resistor
free length
A mechanical spring
F
ideal:
F = kx
massless
frictionless
real:
solid
height
slope = k
capacitor
voltage-current
1 t
e(t) =
i( ) d
C 0
current-voltage
i(t) = C
resistor
L
inductor
e(t) = Ri(t)
d
e(t) = L i(t)
dt
i(t) =
1
i(t) =
L
d
e(t)
dt
1
e(t)
R
t
0
e( ) d
d
q(t)
dt
d
(t)
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
I2(s)
1
= ,
E(s)
Ec(s) L2s + R2
=
E(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Operational ampliers
Operational ampliers or OpAmps are active components which can be
used in realization of wider class of transfer functions.
C
+
EI (s)
R1
R3
R2
+
EO (s)
EO (s) R3R1
=
(RCs + 1)
EI (s)
R2 R
Note that this transfer function is improper.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
force-displacement
spring
b
damper
m
mass
f (t) = kx(t)
d
f (t) = b x(t)
dt
f (t) = m
d2
x(t)
dt2
force-velocity
t
f (t) = k v( ) d
0
f (t) = bv(t)
d
f (t) = m v(t)
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
torque-angular
displacement
spring
T (t) = K(t)
torqueangular velocity
t
T (t) = K ( ) d
0
T (t) = B
damper
J
inertia
d
(t)
dt
d2
T (t) = J 2 (t)
dt
T (t) = B(t)
T (t) = J
d
(t)
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Modeling of friction
Viscous friction is a linear relationship between force and velocity.
Static friction tends to prevent motion from the beginning. Once the
motion begins, static friction vanishes and other frictions take over.
Coulomb friction is a retarding force having a constant amplitude with
respect to the direction of velocity.
dx(t)
f (t) = B
dt
f (t) = (Fs)|x=0
dx(t)
f (t) = Fc
dt
dx(t)
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
11
Gear trains
If Ti, i, and Ni (i = 1, 2) are torque applied,
angular displacement, and teeth number of
the gear i, then we have
r1 N1
=
, 1r1 = 2r2, T11 = T22
r 2 N2
by considering the teeth ratio, distance along
surface, and work done, respectively.
In practice, considering inertia loads and
frictions at both sides, the equivalent
torque seeing from gear 1 is given as
d 2 1
d1
1
2
N1
T = J1e 2 + B1e
+ Fc1
+ Fc1
dt
dt
|1| N2 |2|
2
2
N1
1
where J1e = J1 + N2 J2, B1e = B1 + N
N2 B 2 .
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
12
13
kx
k
friction
b
mass
m
force
f (t)
x(t)
d2
d
f (t) = m 2 x(t) + b x(t) + kx(t)
dt
dt
f (t)
X(s)
1
=
F (s) ms2 + bs + k
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
14
d
d2
y(t) + ky(t)
y(t)
+
b
dt2
dt
d
d2
f (t) = m 2 x(t) + b x(t) + kx(t)
dt
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
15
K
T (t)
(t)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
16
17
d(t)
= Kt(t)
dt
Et(s)
= Kts
(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
18
19
=
Jm =
Bm =
m(t) =
m(t) =
Ra
La
Ki
Kb
ia(t)
eb(t)
TL(t)
Tm(t)
ea(t)
=
=
=
=
=
=
=
=
=
armature resistance
armature inductance
torque constant
back-emf constant
armature current
back emf
load torque
motor torque
applied voltage
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
20
dia(t)
+ Raia(t)
dt
Tm(t) = Kiia(t)
Tm(t) TL(t) = Jm
[ := Kmia(t)],
d2m(t)
dm(t)
+
B
m
dt2
dt
eb(t) = Kb
dm(t)
= Kbm(t)
dt
m(s)
Ki
=
Ea(s) TL=0 LaJms3 + (RaJm + BmLa)s2 + (KbKi + RaBm)s
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
21
x1(t)
r1(t)
f1(, )
x (t)
r (t)
f (, )
x(t)
= f (x(t), r(t)) where x(t) = 2. , r(t) = 2. , f (, ) = 2 .
.
.
.
xn(t)
rp(t)
fn(, )
The linearization of the system about an operating condition (x0, r0),
e.g., f (x0, r0) = 0, is given by
x
(t) = A
x(t) + B
r(t)
x
(t) = x(t) x0,
r(t) = r(t) r0
where
and
fi
A = [aij ] where aij =
xj x0,r0
and
fi
B = [bij ] where bij =
rj x0,r0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
22
d2y(t)
i2(t)
,
=
M
g
dt2
y(t)
e(t) = Ri(t) + L
di(t)
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
23
x2(t) = y(t),
x3(t) = i(t) i0
0
1
0
x (t)
g x1(t)
g 0 2
d 1
x2(t) +
x2(t) = y0
0 e(t)
M
y
0
1
dt
i(t)
i(t)
R
0 0
L
L
and
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
24
1
1 + Tds + Td2s2/2
1 Tds/2
1 + Tds/2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Time-domain response
The time-domain response is given by
ck emk t + Yp(t) = c1em1t + c2em2t + + cnemnt + Yp(t)
y(t) =
k=1
where m1, m2, . . . , mn are (real or complex) roots of the characteristics (or
auxiliary) equation
mn + 1mn1 + 2mn2 + + n1m + n = 0
and Yp(t) is the particular solution depending on f (t).
If the initial conditions y(0), y (0), . . . , y (n1)(0) are given, we can
determine c1, c2, . . . , cn.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
n(s)
1sn1 + 2sn2 + + n1s + n
=:
n
n1
n2
s + 1 s
+ 2 s
+ + n1s + n
d(s)
G(s) =
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Pole-zero cancellation
Consider, for example, two transfer functions with their partial fractions
C1(s) =
1
3.5
3.5
1
26.25(s + 4)
=
+
and
C2(s) =
26.25(s + 4)
0.87
5.3
4.4
0.033
=
+
+
s(s + 4.01)(s + 5)(s + 6)
s
s + 5 s + 6 s + 4.01
We can see that the residue of the pole at 4.01, which is closer to the
zero at 4, is smaller. Hence we can approximate C2(s) by neglecting the
response corresponding to the pole at 4.01 with the second-order
C2(s)
5.3
4.4
0.87
+
s
s+5 s+6
p =
4.3970
-5.3030
0.0332
0.8728
>>
>>
>>
>>
>>
k =
-6.0000
-5.0000
-4.0100
0
[]
p=[1 7 9 23 10]
roots(p)
s=tf(s); G=(s^2-2*s+2)/(s^4+7*s^3+19*s^2+23*s+10)
pole(G)
zero(G)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Introduction
absolute stability v.s. relative stability
Absolute stability refers to the condition whether the system is
stable or unstable; it is a yes or no answer.
Once the system is found to be stable, to determine how stable it
is, we need a measure of relative stability.
zero-state v.s. zero-input responses
total response = zero-state response + zero-input response
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
y(t)
g(t)
G(s)
Y (s)
we have
|y(t)| =
u(t )g( ) d
|u(t )| |g( )| d
Suppose the input is bounded, i.e., |u(t)| M for some positive M , then
the output is bounded if
|g(t)| dt Q <
0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
|g(t)| e0t dt
n1
k=0
i=0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Routh-Hurwitz criterion
The Routh-Hurwitz criterion is a method of determining the location of
zeros of a polynomial whether they are in the left- or right-half planes.
Consider that the characteristic equation of a linear time-invariant SISO
system is of the form
F (s) = ansn + an1sn1 + + a1s + a0 = 0
In order that F (s) does not have roots with non-negative real parts, it is
necessary (but not sufcient) that
1. All the coefcients a0, a1, . . . , an1, an have the same sign.
2. None of the coefcients vanishes.
zi
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
n3
s
p41
p42
p43
p44
..
..
..
s0
pn+1,1
where
1 p11 p12
1 p11 p13
1 p11 p14
p31 =
, p32 =
, p33 =
,
p21 p21 p22
p21 p21 p23
p21 p21 p24
1 p p
1 p p
1 p p
p41 = 21 22 , p42 = 21 23 , p43 = 21 24 ,
p31 p31 p32
p31 p31 p33
p31 p31 p34
..
The roots are all in the LHP if p11, p21, p31, . . . , pn+1,1 have the same sign.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1
2
3
4
2314
= 1 2510
2
2
1425
=
6
0
1
=5
5
0
There are two sign changes: 1 6 and 6 5. Hence P (s) has two
RHP roots.
Example 2 2s4 + s3 + 3s2 + 5s + 10 = 0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10
11
If
an
, Q(s, ) drops degree as one of its roots approaches
an1
1
an1
an
=
an an1
an1
12
3
6
7
1
3
Example 2
5
3
P2(s) = 7s P2(s) = s
Let (s) = 1 s2.
(s)P2(s) = s3 + s
s4 + s3 + 2s2 + 2s + 3 = 0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
13
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
14
1
1
0
1
3
1
3
1
8
8
8
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
15
s2 2s + 2
G(s) = 4
s + 7s3 + 19s2 + 23s + 10
Find ranges of K such that
1. the closed-loop system is stable, and
G(s)
2. all the closed-loop system poles have real part less than 1.
Solution
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
maximum overshoot
100%
yss
2. Delay time, td, is dened as the time required for the step response to
reach 50% of its nal value.
3. Rise time, tr , is dened as the time required for the step response to
rise from 10% to 90% of its nal value.
4. Settling time, ts, is dened as the time required for the step response
to decrease and stay within a specied percentage of its nal value.
5. Steady-state error, ess, is dened as the difference between the
output and the reference input when the steady state (t ) is
reached.
Here we assume that the system has unity d.c. gain, i.e., Gc(0) = 1.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
R(s) +
U (s)
Y (s)
G(s)
=
R(s) 1 + G(s)H(s)
G(s)
Y (s)
H(s)
If H(s) = 1, we have a unity feedback system and dene the error of the
system as e(t) = r(t) y(t). Hence the steady-state error is given by
sR(s)
s0 1 + G(s)
s0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
K(Tas + 1)(Tbs + 1)
sn(T1s + 1)(T2s + 1)
type
0
s0
s0
1 + Kp
R
0
Kv
R
0
0
Ka
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
K(s + 3.15)
s(s + 1.5)(s + 0.5)
G(s) =
K
s2(s + 12)
G(s) =
s2(s
5(s + 1)
+ 12)(s + 5)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1
R(s) Y (s)
KH
G(s) =
5(s + 1)
s+5
where
H(s)
= H1(0)
s0 sN
KH = lim
1
and
s2(s + 12)
H(s) =
10s
s+5
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
1.0
K
Y (s)
=
R(s) T s + 1
0.8
y(t)/K
0.4
0.2
K t/T
e
T
yss(t) = 0
y(t) = L1[G(s)] =
when t 0
63.2%
0.6
0.0
t/T
= K(1 et/T )
y(t) = L1
s
s(T s + 1)
s
Ts + 1
when t 0
yss(t) = K
step response =
Notice that
impulse response
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10
+ e
K
s(s + p)
G(s) =
n2
s2 + 2ns + n2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
11
1
B
n
y(t) = L1
= L1
+ 2 Re L1
2
2
s(s + 2ns + n)
s
s + ( + j)n
where
n2
j
B=
=
s(s + ( j)n) s=(+j)n 2( + j)
Hence
1
y(t) = 1 ent sin(nt + )
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
12
13
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
14
Maximum overshoot
peak time tmax or tp
tmax =
=
n 1 2
maximum overshoot
Mp := y(tmax) y()
/ 1 2
Mp = e
percent (maximum) overshoot
%Mp or P.O.
P.O. =
y(tmax) y()
100%
y()
P.O. = 100e/
1 2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
15
td
n
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
16
Settling time
3.2
4.5
,
> 0.69
n
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
17
n2
s(s + 2n)(1 + Tps)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
G(s)
n2
Y (s)
=
= 2
R(s) 1 + G(s) (s + 2ns + n2 )(1 + Tps)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
18
19
or
y(t) = y1(t) + Tz
dy1(t)
dt
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
20
6(1 + Tz s)
s(s + 1)(s + 2)
so that
Y (s)
6(1 + Tz s)
= 3
R(s) s + 3s2 + (2 + 6Tz )s + 6
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
21
or Mu z t
z0
z0
z0
e 0s1
If
1 and z0ts
1, this means Mu > z01ts .
fast settling time large undershoot
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
22
Dominant poles
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
23
20
2
(s + 10)(s2 + 2s + 2) s2 + 2s + 2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
24
introduction
design specications
controller congurations
PID controller
proportional action
integral action
derivative action
tuning of PID controller
closed-loop method
open-loop method
Introduction
Design specications
relative stability, steady-state accuracy (error), transient response:
maximum overshoot, rise time, settling time
frequency-response characteristics: gain margin, phase margin, Mr
Controller congurations
series (cascade), feedback, and feedforward compensations
one degree-of-freedom, two degrees-of-freedom
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
PID control
PID controllers
one of the oldest controller types and the most widely used in
industries
pulp & paper 86%
steel 93%
oil reneries 93%
only textbook version is introduced
differs a lot from the industrial version
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Integral
Plant
Derivative
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
PID controllers
PID controller
u(t) = KP e(t) + KI
P
U (s) = KP E(s) +
t
0
e( ) d + KD
d
e(t)
dt
D
I
KI
E(s)
+ KD sE(s)
s
or
KI
+ KD s
Gc(s) = Kp +
s
1
+ TD s
= Kc 1 +
TI s
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
P action
Let KI = 0 and KD = 0, i.e.
Gc(s) = KP
umax
u = KP e + u 0
umin
U (s) = KP E(s)
e > e0
e0 < e < e0
e < e0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
P control
set point, measured variable
1.5
KP = 5
1.0
KP = 2
0.5
KP = 1
0
0
10
15
20
6 control variable
KP = 5
4
2
KP = 2
KP = 1
0
2
0
10
15
20
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
I action
e
u = KP e(t) + u0
1 t
= KP e(t) +
e( ) d
TI 0
PI control
offset exists e d increases
u0 increases y increases reduce offset
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
PI control
set point, measured variable
1.5
TI = 2
1.0
TI = 1
TI = 5
0.5
TI =
0
0
10
15
20
15
20
control variable
2
TI = 1
TI = 2
0
0
TI = 5
TI =
5
10
10
D action
A PI-controller contains no prediction
The same control signal is obtained for both these cases:
I
P
t time
t time
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
11
D actionPrediction
error
e(t) + TD
e(t)
de(t)
dt
e(t + TD )
time
P control:
u(t) = KP e(t)
PD control:
de(t)
u(t) = KP e(t) + TD
dt
KP e(t + TD )
12
PD control
set point, measured variable
TD = 0.1
1.0
TD = 0.5
0.5
TD = 2
0
0
5
6 control variable
10
15
20
10
15
20
TD = 0.1
TD = 0.5
TD = 2
4
2
0
2
0
13
PID control
In brief, we use
P control to adjust overall dynamic (increase P to get faster response)
I control to adjust steady-state part (remove offset)
D control to adjust transient part (reduce oscillation)
PID tuning How to tune? Ziegler & Nichols (1942) suggested two
methods:
open-loop method (or step response method)
closed-loop method (or ultimate cycle method)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
14
P: KP =
T
L
T
PI: KP = 0.9 ,
L
T
PID: KP = 1.2 ,
L
TI =
L
0.3
TI = 2L,
TD = 0.5L
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
15
TI =
TI =
Pu
1.2
Pu
,
2
TD =
Pu
8
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Root-Locus Technique
9 Root-Locus Technique
Introduction
location of closed-loop poles (roots of characteristic equation) relates
closely to stability and time-domain characteristics
root locus: a systemetic contruction of the trajectories of the roots
of the characteristic equation
proposed by Walter R. Evans (1920-99) in 1948
use poles and zeros of open-loop (or equivalents) to determine the
trajectories of closed-loop poles when one parameter is changing
when more than one parameter varies, we called them root contours
give rough and quick graphical feeling of how to compensate for
simple SISO system
for root contours and more accurate root loci, computer tool
(M ATLAB) can be used
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
KB(s)
A(s)
1+
B(s)
2s
= 3
A(s) s + 4s2 + 5s + 5
or
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
G(s) =
1
K
m
(s zi) sm + bm1sm1 + + b1s + b0
B(s)
= ni=1
= n
G(s) =
A(s)
s + an1sn1 + + a1s + a0
j=1 (s pj )
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
Example
G(s) =
s0 p1
s z1
(s p1)(s p2)
s0 z1
3
2
1
s0 p2
Re-axis
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
G(s) =
s+1
s+1
=
s2 + s 2 (s 1)(s + 2)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
Multiple roots
For K 0, root loci for
1
G(s) = 2
s
can be found from
and for
G(s) =
from
(s )3 + K = 0
s2 + K = 0
j-axis
j-axis
1
(s )3
Re-axis
0 Re-axis
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
Asymptotic properties
When the magnitude of s is large (|s| ), 1 + KG(s) = 1 + K
B(s)
can
A(s)
n
m
m
n
1
pj
zi where bm1 =
zi, an1 =
pj
=
nm j=1
i=1
i=1
j=1
9 Root-Locus Technique
Examples
Example 1
G(s) =
s+1
s(s + 2)(s + 3)
Example 2
G(s) =
1
s(s + 3)2
Example 3
G(s) =
1
s(s + 1)(s + 3)(s + 4)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
10
(s0 zi)
i=1
n
(s0 pj ) = 180
j=1
with the desired angle replaced by D for the angle of departure and by
A for the angle of arrival.
Example 4
G(s) =
s+2
s2 + 2s + 2
G(s) =
s+2
(s2 + 2s + 2)2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
11
d
G(s) = 0
ds
or
A(s)
or
or
d 1
=0
ds G(s)
d
d
B(s) = B(s) A(s)
ds
ds
n
j=1
1
1
=
s pj
s zi
i=1
m
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
12
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
13
More examples
Example 6
G(s) =
(s + 1)(s + 2)
s(s2 + 2s + 2)
G(s) =
1
s(s2 + 8s + 32)
Example 7
Example 8
G(s) =
1
s(s + 2)(s2 + 2s + 2)
Example 9
s2 + 4
G(s) =
s(s2 + 9)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
14
4
2
4
j
3
2
4 3 2 1
2
3
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
15
s+1
s2(s + 9)
2
2
4
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
16
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
17
f (x)
1
f (x) f (x)
or
=
+
f (x)
h
f (x) 2f (x)
9 Root-Locus Technique
18
r +
where
G(s) =
1
s(s + 2)
G(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
19
B2(s)
=0
A(s) + K1B1(s)
Note that the root loci for K2 start from the root loci of the rst step.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
20
R(s) +
C(s)
G(s)
Y (s)
G(s) =
1
s(s2 + 6s + 10)
j-crossing at j 10 with K = 60
angle of departure at 3 + j is
180 90 (3 + j) = 71.57
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
21
= 0.7
2
K=?
2
= 0.7043
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
22
61.4,
10 2
61.4, 8.41.96 2, 6 2 1.4 3
=0
=0
2
and
K = 6 2 1.4 3
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
23
s0
p2
z
p1
p3
s0 p1 = s0 = 2.0 134.427
s0 p2 = s0 + 3 j = 1.6563 14.986
s0 p3 = s0 + 3 + j = 2.9080 56.619
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
24
K =
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
25
and
b = 12.8
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
26
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
27
R1
EI
R2
EI
R1
R2
EO
EO (s)
s + 1/T
=
EI (s) s + 1/T
R1
where =
< 1, T = R1C
R1 + R 2
EO (s) 1 s + 1/T
=
EI (s) s + 1/T
R1 + R2
where =
> 1, T = R2C
R2
z > p
EO
z < p
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
28
s + 1/T
,
s + 1/T
0<<1
4. compute Kc using MC
5. check if all requirements are met, repeat if not (trial and error)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
29
1
T
T1
O
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
30
R(s) +
C(s)
G(s)
Y (s)
Given
4
,
s(s + 2)
design C(s) such that = 0.5 and n = 4 rad/s.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
31
s + 2.9
s + 5.4
compute Kc from MC or
Kc =
4(s + 2.9)
s=2+j23
= 4.68
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
32
s + 1/T
,
s + 1/T
>1
place zero and pole very close to each other near the origin
|s0 + 1/T | |s0 + 1/T | C(s0) Kc
if Kc = 1, transient will not change
C(0) = Kc overall open-loop dc gain can be increased by
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
33
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
34
R(s) +
C(s)
Given
G(s) =
G(s)
Y (s)
1.06
s(s + 1)(s + 2)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
35
s + 0.05
s + 0.005
contributed angle 4
4
Imag Axis
4
4
0
Real Axis
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
36
1.06K
(s
+
0.05)
c
=1
s=s1
we obtain Kc = 0.9656
20s + 1
s + 0.05
= 9.656
s + 0.005
200s + 1
1
new Kv = 5.12 sec
C(s) = 0.9656
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
37
s + 1/T1 s + 1/T2
s + 1/T1 s + 1/T2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
38
R(s) +
C(s)
G(s)
Y (s)
Given
4
s(s + 0.5)
design C(s) such that = 0.5, n = 5 rad/s, and Kv > 80 sec1
G(s) =
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
39
s + 0.5
s + 5.021
compute Kc from MC or
s(s + 5.021)
= 6.263
Kc =
4
s=s0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
40
Kv = sClead(s)G(s)|s=0 = 4.9895
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
9 Root-Locus Technique
41
Other topics
complementary root locus (K < 0)
G(s) = 0 360n
number of zeros > number of poles
root locus of time delay systems
e
sT
1 T2 s
1 + T2 s
root sensitivity
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10
Frequency-Domain Analysis
sinusoidal response
Bode plot (logarithmic plot)
frequency-domain specications:
resonant peak and frequency
bandwidth
log-magnitude v.s. phase plot
Nyquist plot (polar plot)
Nyquist stability criterion
stability margins
10 Frequency-Domain Analysis
s2 + 2
1
s j
G(s)
Im L
s j
G(j)
+ [other poles]
Im L1
s j
Im[G(j)ejt] + [other poles]
Im[|G(j)|ejt+j ] + [other poles]
|G(j)| sin(t + ) + [other poles]
y(t) =
=
=
=
=
where = G(j).
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
Graphical representations
For each frequency , there are two elements of either
magnitude |G(j)| and phase G(j)
real Re G(j) and imaginary Im G(j)
Hence, various graphical representations are possible:
logarithmic plot
polar plot
log-magnitude v.s. phase plot
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
2
1.8
1.6
20
1.4
30
1.2
1
G(s) =
s + 0.5
is
40
50
|G(j)|
0.8
60
0.6
70
0.4
G(j)
0.2
0
80
90
8 (rad/sec) 10
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
Gain dB
0
10
20
30 2
10
10
10
10
Frequency (rad/sec)
Phase deg
30
60
90
2
10
10
10
10
Frequency (rad/sec)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
Gain: K
add
20 log K dB
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
First-order factors
Consider G(s) = (1 + sT )n
G(j) = (1 + jT )n
When T 1 1 + jT 1
When T 1 1 + jT jT
We call = T1 the break frequency or the corner frequency.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
First-order asymptotes
10
Gain (dB)
0
10
20
30
2
10
10
10
10
Frequency (rad/sec)
Phase (deg)
30
60
90
10
10
10
10
Frequency (rad/sec)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
10
Consider G(s) = 1 +
2 sn
s2
n2
1
or G(j) =
1+2
j
n
1
+
2.
j
n
Gain (dB)
20
0.1
0.7
20
40 1
10
10
Frequency (rad/sec)
10
Phase (deg)
90
0.7
0.1
180
1
10
10
Frequency (rad/sec)
10
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
11
2
2
which is called the resonant frequency. The maximum value is
= r := n
1 2 2,
|G(jr )| = Mr :=
1
1 2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
12
Gain dB
50
50
100 2
10
2000(s + 0.5)
G(s) =
s(s + 10)(s + 50)
10
10
10
Frequency (rad/sec)
10
10
Phase deg
90
180
2
10
Example 2
G(s) =
10
10
10
Frequency (rad/sec)
10
10
20(s2 + s + 0.5)
s(s + 1)(s + 10)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
13
Graphical interpretation
j
j0
G(j0) =
j0 z
(j0 p1)(j0 p2)
nonminimum-phase system
Gnmp(s) =
s1
,
s+2
Gmp(s) =
s+1
s+2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
14
Frequency-domain specications
resonant frequency: r
resonant peak: Mr
Note: |G(jn)| = 1/2, 0 < < 1
bandwidth: B the frequency at which the response has declined 3 dB
from its low-frequency value
Dorf:
B = (1.85 1.196)n,
. . . to be continued. . .
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
15
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
16
1
s(s + 1)2
G(s)
Y (s)
50
50
Phase (deg)
100 1
10
10
Frequency (rad/sec)
10
180
270
10
10
Frequency (rad/sec)
10
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
17
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
18
KG(j)
= M ()ej()
1 + KG(j)
at each frequency .
The closed-loop system will be marginal stable if there exists a
frequency such that
1 + KG(j) = 0
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
19
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
20
16
(s + 1)(s + 2)3
Gain dB
50
100
Phase deg
180
360
101
100
101
Frequency (rad/sec)
102
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
21
n = 1, 45/dec { 0.1
n = 4, 180/dec { 0.2
n = 3, 135/dec { 10
20
Hence is
G(j)
0
13.5
319.5
360
180 13.5
= 0.925 decade away from 0.2 or
180
= 100.925 0.2 = 1.6828 rad/sec
16
= 0.4577
|1 + j | |2 + j |3
20
7
or = 1.6903 rad/sec.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
22
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
23
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
24
G(s) =
KB
sn
1+
(1 +
pi
2
+ s2
ni
mj
sTj )
2 sni
when n = 2, KB = Ka = s2G(s)
s=0
If 1, we also have |G(j)| = KB / n, or
KB = n|G(j)|, 1
Now if we take the asymptote of Bode gain plot |G(j)| at low frequency
( 1) and draw until it reaches 1 such that |G(j1)| = 1 = 0 dB, we
have KB = 1n.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
25
Polar plots
or Nyquist plot is the graph between
|G(j)| and G(j) in polar form, or
Re G(j) and Im G(j) in cartesian coordinate
for each in < < . The polar plot of open-loop transfer
function is useful in determining the stability of the closed-loop system.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
26
16
(s + 1)(s + 2)3
Imag Axis
2
1
Real Axis
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
27
Im G(s)
G()
C
0
Re G(s)
Re s
Given a function G(s) and a closed contour C such that G(s) is analytic
on C, is analytic within C except at a nite number of poles of G(s), and
does not vanish on C, then the number of positive encirclement of
origin N is given by
N = Z P = # of zeros # of poles
of G(s) within C.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
28
p
)
j
j=1
1
1
d
G(s)
=
ln G(s) =
G(s) ds
s zi j=1 s pj
i=1
m
Because C is closed, |G(s1)| = |G(s2)| and the net change of G(s) must
be a multiple, say N , of 2. Hence we get
d ln G(s) = j(2N ) N = Z P
C
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
29
G(s) = s2
C1 = {Rej : = 0 2}
C2 = {Rej : = 0 2}
[CCW]
[CW]
Example 2 C = {1 + Rej : = 0 2}
G1(s) =
Example 3
1
s1
G2(s) =
G(s) =
(s2
s
s1
s
+ 1)2
C = {j + Rej : = 0 2, R 0+}
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
30
Let G(s) =
A(s) + B(s)
A(s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
31
More examples
Example 1
G(s) =
1
s+1
Example 2
G(s) =
1
(s + 1)(s + 2)
Example 3
G(s) =
16
(s + 1)(s + 2)3
Example 4
G(s) =
1
s(s + 1)
Example 5
G(s) =
1
s(s 1)
Example 6
G(s) =
1
s2(s2 + 1)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
32
0.4
0.3
0.2
0.2
0.1
0.1
0.1
0.2
0.4
0.6
0.8
0.1
0.2
0.3
0.2
0.3
0.4
0.2
0.4
0.5
0.1
0.1
0.3
1
s+1
1
(s + 1)(s + 2)
1
s(s + 1)
1
s(s 1)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
33
1.4
=0
2
= 0.4
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
34
sT
1 s T2
1 + s T2
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
35
R(s) +
C(s)
G(s)
Y (s)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
36
20
0
0
0
20
40
90
270
450
101
2
100
101
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
37
Specication: A revisit
open-loop: G.M., P.M., , 1
closed-loop: B.W., Mr , r , cutoff rate
For second-order system, if = cos1
r = n 1 2 2 = n cos 2
1
1
=
Mr =
2 1 2 sin 2
2
P.M. = tan1
1 + 4 4 2 2
This can be approximated as
P.M. (in degree) = 100,
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
38
G(j)
x + jy
=
1 + G(j) 1 + x + jy
1.0
1 + G(j)
G(j)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
39
M -circles
1 dB
.5 dB
.5 dB 1 dB
2 dB
2 dB
3 dB
3 dB
Im
6 dB
6 dB
0
1
|Gcl(j)| =
2
3
4
|x + jy|
|1 + x + jy|
Re
10 Frequency-Domain Analysis
40
N -circles
3
2
30
15
Im
60
15
60
30
2
3
4
Re
10 Frequency-Domain Analysis
41
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10 Frequency-Domain Analysis
42
Nichols chart
is essentially the frequency response with M - and N -circles in the
log-magnitude v.s. phase plane. The Nichols chart for
G(s) =
2
s(s + 1)(s + 2)
0.5 db
is shown below.
20
1 db
15
10
3 db
6 db
0
5
10
15
20
25
30
270
180
OpenLoop Phase (deg)
90
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
steady-state performance
static error constant
steady-state accuracy
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
= m
m
0
=0
=
1
2 (1
+ )
C(s) =
s + 1/T
,
s + 1/T
m = 1/ T,
sin m =
1
,
1+
|C(jm)| =
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
s + 1/T
Ts + 1
= Kc
s + 1/T
T s + 1
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
R(s) +
C(s)
G(s)
Y (s)
Given
4
,
s(s + 2)
design C(s) such that Kv = 20 sec1, P.M. > 50 and G.M. > 10 dB.
G(s) =
4K
= 2K = 20
s(s + 2)
40
.
s(s + 2)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Gain (dB)
40
20
0
20
40
Phase (deg)
90
120
150
180
10
10
10
10
Frequency (rad/sec)
1 sin m
= 0.24 10 log = 6.2 dB
1 + sin m
Hence from m =
T1 = 4.41 and
s + 4.41
K s + 1/T
= 41.7
s + 1/T
s + 18.4
New: P.M. = 50 and G.M. = .
C(s) =
40
Gain dB
20
0
20
40
10
10
10
10
Frequency (rad/sec)
Phase deg
90
120
150
180
10
10
10
10
Frequency (rad/sec)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
Gain (dB)
20
15
10
5
= 2, 5, 10
0
0
=0
Phase (deg)
= 2, 5, 10
20
40
60
102
101
100
101
Frequency (rad/sec)
C(s) =
s + 1/T
,
s + 1/T
>1
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
s + 1/T
Ts + 1
= Kc
s + 1/T
T s + 1
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
10
R(s) +
C(s)
G(s)
Y (s)
Given
2
s(s + 1)(s + 2)
1
design C(s) such that Kv = 5 sec , P.M. > 40 and G.M. > 10 dB.
G(s) =
2K
=5
s(s + 1)(s + 2)
10
.
s(s + 1)(s + 2)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
11
unstable!
Gain dB
40
20
0
0 dB = 0.7 rad/sec
20
40
2
10
10
10
10
Frequency (rad/sec)
Phase deg
90
180
0 dB = 0.5 rad/sec.
270
2
10
10
10
10
Frequency (rad/sec)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
12
40
20
0
20
Phase (deg)
40
0
90
180
270 2
10
10
10
10
Frequency (rad/sec)
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
c
2005
Dept. of Electrical Engineering, Chulalongkorn Univ., based on B. C. Kuo & F. Golnaraghi, Automatic Control Systems, 7th ed.
13