Control System Analysis
Control System Analysis
Topics:
Objectives:
21.1 INTRODUCTION
Control variable
INPUT
(e.g. gas)
vdesired
verror
+
OUTPUT
(e.g. velocity)
SYSTEM
(e.g. a car)
Driver or
cruise control
gas
car
vactual
The control system is in the box and could be a driver or a cruise control
(this type is known as a feedback control system)
Figure 21.1
Figure 21.2
Some of the things we do naturally (like the rules above) can be done with
math- ematics
u
K c e Ki
edt
Figure 21.3
d
e
Kd
----dt
The figure below shows a basic PID controller in block diagram form.
proportional
PID Controller
Kp e
V
e
+
-
Figure 21.4
Ki e
derivative
K d --d-- e
dt
+V
integral
amp
+
+
-V
motor
e.g.
gas r
erro
c error
K
dt v
d dv error
K ---
Rules 2 & 3
(general difference)
Kc
Ki
Kd
---
dt
----------
Rule 4
(Immediate error)
Rule 1
(Long term error)
For a PI Controller
K v
+ K i v error dt
gas = c error
For a P Controller
gas = K c v error
For a PD Controller
gas = K c v error
dv error
-------
+ K d ---
dt
= Kdt v
d
dv errordt
+K
-----
---------
d
gas
= K c + Ki dt + Kd -- --
-----------
dt
v erro r
Then do a Laplace transform
d x
--- -
sx dt
d
- -- s dt
1
dt
= s
a s
K
----L - g------ -- = K c + s i + Kd s
v error
xdt
x
= -s
10
gas
= Ma =
F = M
--- d
v - ---
x
---dM 2
dt
d v
= M ---- dt
dt
v
L - -- =
F
1
--- ---Ms
gas
10
--1
--Ms
vactual
gas
1
- -0
--Ms
vactual
5. Finally, knowing the error is verror, and we can control gas (the control
variable), we can select a control system.
verror
Controller
K
----ga s = K c + i + Kd s
s
L ------------v erro r
gas
vdesired
verror
+
Ki
K c + -----+ Kd s
s
gas
10
--1
---Ms
vactual
output.
Even though the transfer function uses the Laplace s, it is still a ratio of input to
vdesired
100
step
vdesired(t) = 100 for t >= 0 sec
ramp
vdesired(t) = 50t for t >= 0 sec
t(sec)
Input type
Time function
STEP
f t = Au t
RAMP
f t = Atu t
Laplace function
A
f s = --s
A
f s = - 2 --s
2
SINUSOID
f t = A sin t u t
PULSE
f t = A u t u t t1
etc......
= -----------f s s2 + 2
fs =
Therefore to continue the car example, lets assume the input below,
v desired t = 100
t 0 sec
1
v desired s = L v desi red t --0
-=
0
-s
Next, lets use the input, and transfer function to find the output of the system.
v
v act ual = act ual de sired
v
----------------v
desired
v actual
2
s K + s d K + K c100
i
--------------
= ------------------- -------------------------- -------s
2 M
- ---- + K + cs K i + K
s 10
d
v actual
100
= ---------------------------------------------------------------------- -------
At this point we have the output function, but not in terms of time yet. To do this
we break up the function into partial fractions, and then find inverse Laplace
transforms for each.
2
2
s + s + 0.1
v act ual = 10 -------------------------------------------------
s s 2 1.01 + s + 0.1
ax + bx + c = 0
x =
b 4ac
x = -------------------------------2a
b
----
1 1
------- ------------------- -------------------
v ac t ual
2
10
s + s + 0.1
A
B
C
v act u al = s --- s++---------+ ---------- ----------0.114 ----------s + 0.795
--------------------------------------------
=
-----
----------------
1
0
A = lim 0 .1 1 0 s0 .--1+---------------s +
s0
1.01
1.01 s s + 0.113 s + 0.877
0.113 0.877
A = 99.9
B =
lim
s 0.113
1 0
s
1.01 s s + 0.113 s + 0.877
s +
0 .
1 20
2 + 0.113 + 0.1
-
= 0.264
0.113
B = - --- ---- 1.01 ------------------------------------------
-------------------- s + 0.877
----- ---- ---- --- --
lim
s 0.877
1 1 0
1.01
s s + 0.113 s +
0.877
0 .
= ---------= 1.16
f t
A
---2
s
At
Ae
A
--------- s+
Asin
t
n t
--s
A
----- --------- 2
2
s +
for 1
n 1
--------------------------------------2
sin n t 1
s + 2n s + n
etc.
To finish the problem, we simply convert each term of the partial fraction back to
the time domain.
99.9
0.264
1.16
v act u al = ---------- + --------------------- --------------------s
s + 0.113 s + 0.877
Type
Transfer Function
Proportional (P)
Gc = K
Proportional-Integral (PI)
+
G c = K 1 -- 1
-s
Proportional-Derivative (PD)
G c = K 1 + s
Proportional-Integral-Derivative (PID)
G c = K 1 + --1-- + s
=
Lead
Gc
1+
s
-------
Lag
1 + s
-- --------
1 + s
G c = K -----------------1 + s
s
Lead-Lag
Gc
=
1 + 1 s
K
1 + s
------------------1
1 + 2
1+ s
1 2
------------------2
Note: this procedure can take some time to do, but the results are very important
when designing a control system.
Consider the example below,
1
-s
1
G s =
H s = 1
-s
First, we must develop a transfer function for the entire control system.
GS s
=
K
---
s
G s
K
-----------------=
= ----- --------------------------- s + K
-------------1 + G s H s
K
1 + ---
1
s
Next, we use the characteristic equation of the denominator to find the roots
as the value of K varies. These can then be plotted on a complex plane.
Note: the value of gain K is normally found from 0 to +infinity.
s+K = 0
K
0
1
2
3
etc..
root
K
K = 0
Note: because all of the roots for all values of K are real negative this system will
always be stable, and it will always tend to have a damped response. The large the
value of K, the more stable the system becomes.
Consider the previous example, the transfer function for the whole system was
found, but then only the denominator was used to determine stability. So in general we do
not need to find the transfer function for the whole system.
-----------K
------------2
s + 3s + 2
H s = 1
First, find the characteristic equation,. and an equation for the roots,
K
1 = 0
1 + ------------ ------------ 2
s + 3s + 2
2
s + 3s + 2 + K = 0
3
1
4 K
-----9 ---
4 2 = 1.5 ----- ---- ----- --- --------------+ ------K ----- ------- -2
-2
Next, find values for the roots and plot the values,
roots =
root
0
1
2
3
0
-1
-2
-3
1. write the characteristic equation. This includes writing the poles and zeros of
the
equation.
s + z1 s + 2z sm+ z
= 0
1 + G s H s 1 + K -------------------------------------------------------------- s + p 1 s + p 2 s + p n
=
2. count the number of poles and zeros. The difference (n-m) will indicate how
many root loci lines end at infinity (used later).
3. plot the root loci that lie on the real axis. Points will be on a root locus line if
they have an odd number of poles and zeros to the right. Draw these lines
in.
4. determine the asymptotes for the loci that go to infinity using the formula below.
Next, determine where the asymptotes intersect the real axis using the second
formula. Finally, draw the asymptotes on the graph.
180 2k + 1
k ---------------------------------=
nm
k 0 n m 1
p1 + p2 + +np 1 z +2 z + m +
z
= ------------------------------------------------------------------------------------------nm
5. the breakaway and breakin points are found next. Breakaway points exist
between two poles on the real axis. Breakin points exist between zeros. to calculate these the following polynomial must be solved. The resulting roots are
the breakin/breakout points.
A = s + p 1 s + p2 s +
pn
B = s + z 1 s + z 2 s + z m
-- --- A B A -- -- B = 0
ds
ds
6. Find the points where the loci lines intersect the imaginary axis. To do this substitute the fourier frequency for the laplace variable, and solve for the frequencies. Plot the asymptotic curves to pass through the imaginary axis at this point.
j + z1 j + z2 j m+ z
1 + K -------------------------------------------------------------------------- = 0
j + p 1 j + p 2 j + p n
Consider the example in the previous section,
H s = 1
-----------K
------------2
s + 3s + 2
s + 3s + 2
Step 2: (find loci ending at infinity)
m = 0
n = 2
nm = 2
-2
-1
=
0
1 8 0
k I 0 1
2----k -- +
1-- ----- ------------- -2
1 8 0
= 90
-2 --0 -- +- 1
- -- -- ---------------- --- ---2
180 2 1 + 1
=
= 270
-----------------------------------2
0 1
2
=
----------------------------- =
0
2
-2
-1
asymptotes
d
-- --- A =
d
-- ---
0
ds
B =
ds
2s + 3
A -- -- B B -- --- A = 0
ds
A = 1
ds
1 2s + 3 s + 3s + 2 0 =
0
-2
-1
-1.5
2s + 3 = 0
s = 1.5
Note: because the loci do not intersect the imaginary axis, we know the system will be
stable, so step 6 is not necessary, but we it will be done for illustrative purposes.
s + 3s + 2 + K = 0
2
j + 3 j + 2 + K = 0
2
+ 3j + 2 + K = 0
2
+ 3j + 2 K = 0
3j 4K 1
=
=
= ------------------------------2
------------------------------------------ --------------------------------------------------------------2
2
3j 3j 2 4 2 K
3j 9 + 8 + 4K
In this case the frequency has an imaginary value. This means that there will be
no frequency that will intercept the imaginary axis.
--s
G
K + --- 5
= s H s ------ - ------ ----------2
s s + 4s + 8
21.5 SUMMARY
x t = 5
t 0 sec
8. Draw a detailed root locus diagram for the transfer function below. Be careful to specify
angles of departure, ranges for breakout/breakin points, and gains and frequency at stability
limits.
2
2K s + 0.5 s + 2s + 2
G s = ---------------------------------------------------------3
s s + 1 s +
2
10. Draw the root locus diagram for the transfer function below,
2
K s + 4
--- --------- G
=s
-------2
s s + 1
11. Draw the root locus diagram for the transfer function below,
K s + 1 s + 2
G s = -----------------------------------3
s
12. The block diagram below is for a motor position control system. The system has a proportional controller with a variable gain K.
d
Vd +
2
-
Ve
K
Vs
1 0 0
-- --- --- --s+2
Va
2
a) Simplify the block diagram to a single transfer function.
ans.
2 0 0 K
-------------- --- ---- -------------2
s + 2s + 200K
1
-s
b)
D
raw the Root-Locus diagram for the system (as K varies). Use either the
approximate or exact techniques.
ans.
roots =
= 1 1 200K
2
-----4 --
4 2
-----0 0 ----K ---- - -- ---- ---- ---------2
Im
K
r
o
K=0.005
o
ts
0
-2
-1
Re
0
0
c) Select a K value that will result in an overall damping coefficient of 1. State if the Root-Locus
diagram shows that the system is stable for the chosen K.
2
(ans. s 2 + 2s + 200K = 2
s + 2 n s + n
K = 0.005
n = 1
OR
5
- --2
s
----K +K
+ Kd s
s
p
i
3
----- -----s+9
Y
- -- =
---------X
s 2 3K d + s 3K p + 3K i
----------
---------------------------------------------------------------2
+ 3K i
s 4 + 3K d + s 36 +
3K p
equation as shown.
e = dh
error
h
2
Ki
+ ----+K
d s
=
s
p
2 s
- --- ---+
1
----- ---+ s
----- --s
combine the transfer functions
-- =
K
e
PID controller
-c
1 0
= ---- --- -----2
elevator
s +s
2
h
c h--
10 s + 1
2s + 1 + s
s +
1
2
2
s
s
0 s + 1
1----------- ----
-- =
s
-------------- -----------------
d
1 0 s
-- 1 + - -+
1
----- ------- 2 ---
1 0
= ------ --- --s + 1
---- ----- -0
-------
s + 10s + 10
a) Find the response of the final equation to a step input. The system starts at rest
on the ground floor, and the input (desired height) changes to 20 as a step input.
b) Write find the damping coefficient and natural frequency of the results in part
a).
c) verify the solution using the initial and final value theorems.
(ans. a)
d s
=
d t = 20u t
1 0 s
= ------ --- --- ---h +-----1--0-------2
d
s + 10s + 10
2 0
- -- -s
C
20
1 0 s
h = ------ -- ---- --- = --- + -------------------------------- + --------------------------------+
1 0
----- --2 ------- ----s s + 5 3.873 j s + 5 + 3.873j
s + 10s + 10 s
200s + 200 = 20
A = lim
------------------------------
s0 2
s + 10s + 10
-------2---0---0---- = 2.5 22.6j
B =
lim
s
+ 2 0
---- ---- ---- --0
-------
s 5 + 3.873 j s s + 5 + 3.873j
C = 2.5 + 22.6j
h t = 20 + L
A =
2 . 5
2 2 .
-- ---- -- -- ---- ----- --- --- 6 j
2 . 5 +
---- - + -- ---- -- -- ---- ----2 2 . 6 j
--- --- -- --- -s + 5 3.873j s + 5 + 3.873j
= 4.602
= 5
= 3.873
h t
= 20 + 2 22.73 e
4.602
b)
5 t
= n
cos 3.873t +
5
------=n
2 5
1 - 2--- n-
n
3.873 =
1 n =
2
25 2
25
1 ----- =
15 =
c)
h 0 =
lim
s
n =
35 = 5.916
= = 0.845
---- ----35
5
1 0 s
s ------ -- ---- --+ 1 0
20
----- --- -------
2
s + 10s + 10 s
h =
= lim 1 0 s
- -- ----- 20 = 0
s
lim
1 0 s +
1
--- --- ---- ----- --s
0
2 0
------ ------- -- -2
s0
s + 10s + 10 s
10 20
= ---------------- = 20
10