Professional Documents
Culture Documents
DESIGN OF CONTINUOUS
CONTROL SYSTEMS
R(s) Y(s)
+ GC(s) G(s)
Im s Im s Im s
Re s Re s Re s
Im s Im s Im s
Re s Re s Re s
E(s) U(s)
E(s) U(s)
The lead-lag
lead lag compensators improve transient response and
reduces the steady-state error.
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 15
Effects of proportional controller (P)
T
Transfer
f function:
f ti GC ( s ) K P
Increasing proportional gain leads to decreasing steady-state
error, however,
h the
h system become
b l
less stable,
bl andd the
h POT
increases.
y(t)
(t)
Ex: response of a
proportional control
system
t whose
h
plant has the
transfer function
below:
10
G ( s)
( s 2)( s 3)
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 16
Effects of proportional derivative controller (PD)
The PD controller is a
special case of phase lead
compensator,
t the
th
maximum phase lead is
max=900 at the frequency
q y
max=+.
The PD controller speed up
the response of the system,
however it also makes the
system more sensitive to
high frequency noise.
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 17
Effects of proportional derivative controller (PD)
Note: The larger the derivative constant,
constant the faster the
response of the system.
y( )
y(t)
unompensated
E(s)
U(s)
( )
PI controllers eliminate
stead state error to step
steady
input, however it can
increase POT and settling
time.
uncompensated
E(s)
U( )
U(s)
(t)
y(t)
U
Uncompensated
t d
s (1 / T )
Lead compensator: GC ( s ) K C ( 1)
s (1 / T )
*
s
Step 1: Determine the dominant poles 1, 2 from desired
transient response specification:
Overshoot ((POT))
s1*, 2
n jn 1 2
Settling time ts n
Step 2: Determine the deficiency angle so that the dominant
poles s1*, 2 lie on the root locus of the compensated system:
n m
* 180 0 arg( s1* pi ) arg( s1* z i )
i 1 i 1
GC ( s )G ( s ) s s* 1
1
R(s)
( ) 50 Y(s)
+ GC(s)
s ( s 5)
Objective:
j design
g the compensator
p GC((s)) so that the
response of the compensated system satisfies: POT<20%;
ts< 0,5sec (2% criterion).
Solution:
Because the design objective is to improve the transient
response, we need to design a lead compensator:
s (1 / T )
GC ( s ) K C ( 1)
s (1 / T )
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 28
Example of designing a lead compensator using RL (cont)
Step 1:
1 Determine the dominant poles:
poles
POT exp 0.2 ln 0.2 1,6 0,45
2 1 2
1
Chose 0,707
4 4
t q 0,5 n n 11,4
n 0,5
Chose n 15
The dominant p
poles are:
s1*, 2 n j n 1 2 0,707 15 j15 1 0,707 2
B A C 1 Re s
O
10,5 5
OP x * OP x *
sin sin
OB OP 2 2
28,12 2 2
OC OP 8,0
OP x
*
OP x
*
sin sin
2 2 2 2
s8
GC ( s ) K C
s 28
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 31
Example of designing a lead compensator using RL (cont)
GC ( s )G ( s ) s s* 1
10,5 j10,5 8 50
KC . 1
10,5 j10,5 28 (10,5 j10,5)(10,5 j10,5 5)
10,79 50
KC 1
20,41 15 11,85
K C 6,7
Conclusion: The transfer function of the lead compensator is:
s8
GC ( s ) 6,7
s 28
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 32
Root locus of the system
y(t)
uncompensated
compensated
s (1 / T )
Lag compensator: GC ( s) KC ( 1)
s (1 / T )
Step 1: Determine to meet the steady-state error requirement:
KP KV Ka
* or * or *
KP KV Ka
1
Step 2: Chose the zero of the lag compensator: Re(
( s *
1, 2 )
T
1 1
Step 3: Calculate the pole of the compensator: .
T T
R(s)
( ) 10 Y(s)
+ GC(s)
s( s 3)( s 4)
Objective:
j design
g the compensator
p GC((s)) so that the
compensated system satisfies the following performances:
steady state error to ramp input is 0,02 and transient
response of the compensated system is nearly unchanged
unchanged.
Solution:
The compensator to be design is a lag compensator:
s (1 / T )
GC ( s) KC ( 1)
s (1 / T )
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 36
Example of designing a lag compensator using RL (cont)
Step 1: Determine
The velocity constant of uncompensated system :
10
KV lim sG ( s) lim s 0.83
s 0 s 0 s ( s 3)( s 4)
0,017
GC ( s )G ( s ) s ss* 1
s 0,1 10
KC . 1
s 0,00177 s( s 3)( s 4) s 1
1 j
( 1 j 0,1) 10
KC . 1
( 1 j 0,0017) ( 1 j )( 1 j 3)( 1 j 4)
KC 1,0042 1
s 0,1
GC ( s )
s 0,0017
()
y(t)
uncompensated
compensated
t d
phase phase
lead lag
Step 1: Design the lead compensator GC1(s) to satisfy the
transient response performances.
R(s)
( ) 4 Y(s)
+ GC(s)
s( s 0.5)
Objective:
j design
g the compensator
p GC((s)) so that the
compensated system has the dominant poles with = 0.5,
n =5 (rad/sec) and the velocity constant KV =80.
Solution
The compensator
p to be designed
g is a lead lag g compensator
p
because the design objective is to improve the transient
response and to reduce the steady-state error.
GC ( s) GC1 ( s)GC 2 ( s)
C l l
Calculate KC1: GC1 ( s )G ( s ) s s* 1
s 0,5 4
K C1 . 1
s 5 s ( s 0,5) s 2,5 j 4,33
K C1 6,25
s 0,5
GC1 ( s ) 6,25
s5
KV* 80
KV 5 1
*
KV 80 16
Determine
D i the
h zero off the
h lag
l compensator:
1
Re( s * ) Re(2,5 j 4,33) 2,5
T2
1
Chose: 0,16
T2
( s 0,5)( s 0,16)
Final result: GC ( s ) GC1 ( s )GC 2 ( s ) 6,31
( s 5)( s 0,01)
Ts 1
The lead compensator: GC ( s ) KC ( 1)
Ts 1
Step 1: Determine KC to meet the steady
steady-state
state error requirement:
K C K P* / K P or K C KV* / KV or K C K a* / K a
Step 2: Let G1(s)=KCG(s).
G(s) Plot the Bode diagram of G1(s)
Step 3: Determine the gain crossover frequency of G1(s):
L1 (C ) 0 or G1 ( j C ) 1
Step 4: Determine the phase margin of G1(s) (phase margin
of uncompensated system): M 180 1 ( C )
Step 5: Determine the necessary phase lead angle to be
added to the system: M * M
max
M * is the desired phase margin, 50 200
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 51
Procedure for designing lead compensators in frequency domain
1 sin max
Step 6: Calculate :
1 sin max
Step 7:
St 7 Determine
D t i th new gain
the i crossover frequency
f ( f
(of
the compensated open-loop system) using the conditions:
L1 (C ) 10 lg or G1 ( jC ) 1 /
1
p 8: Calculate the time constant T: T
Step
C
Step 9: Check if the compensated system satisfies the gain
margin? If not,
not repeat the design procedure from step 5.
5
Note: It is possible to determine C (step 3), M (step 4) and
C (step 7) by using Bode diagram instead of using analytic
calculation.
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 52
Design lead compensator in frequency domain - Example
R(s)
( ) 4 Y(s)
+ GC(s)
s( s 2)
Objective:
j Design
g the compensator
p GC((s)) so that the
compensated system satisfies the performances:
KV* 20; M * 50 0 ; GM * 10dB
Solution:
The transfer function of the lead compensator
p to be designed:
g
1 Ts
GC ( s ) K C ( 1)
1 Ts
Step 1: Determine KC
The velocity constant of the uncompensated system:
4
KV lim
li sGG ( s ) lim
li s 2
s 0 s 0 s ( s 2)
The desired velocityy constant: KV* 20
KV* 20
KC K C 10
KV 2
4
Step 2: Denote G1 ( s ) K C G ( s ) 10.
s ( s 2)
20
G1 ( s )
s (0,5s 1)
Draw the Bode diagram of G1(s)
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 54
Design lead compensator in frequency domain Example (cont)
-20dB/dec
26
-40dB/dec
2 c=6
-160
160
max 37 0
Step 6: Calculate
1 sin max 1 sin 37 0
4
1 sin max 1 sin 37 0
Step 7: Determine the new gain crossover frequency using
Bode p
plot L ( ) 10 lg 10 lg 4 6dB
1 C
-20dB/dec
-40dB/dec
+20dB/dec
-20dB/dec
-6
-40dB/dec
-40dB/dec
M *
M
-160
160
R(s)
( ) Y(s)
+ GC(s) G(s)
16e 0.02 s
G( s)
( s 2)( s 2 10 s 25)
Solution:
Ts 1
The lag compensator: GC ( s ) K C ( 1)
Ts 1
Step 1: Determine KC to meet the steady state error requirement:
steady-state
K C K P* / K P or K C KV* / KV or K C K a* / K a
Step 2: Let G1(s)=KCG(s).
G(s) Plot the Bode diagram of G1(s)
Step 3: Determine the new gain crossover frequency C
satisfying the following condition:
1 (C ) 180 M
0 *
St 5 : Chose
Step Ch th zero off the
the th lag
l compensator
t so that:
th t
1
C T
T
Step 6: Calculate the time constant T:
1 1
T
T T
Step 7: Check if the compensated system satisfies the gain
margin? If not, repeat the design procedure from step 3.
R(s)
( ) 1 Y(s)
+ GC(s)
s( s 1)(0.5s 1)
Objective:
j design
g the lag
g compensator
p GC((s)) so that that
compensated system satisfies the following performances:
KV* 5; M * 400 ; GM * 10dB
Solution
The transfer function of the lag compensator to be designed:
1 Ts ( 1)
GC ( s ) K C
1 Ts
Step 1: Determine KC
The velocity constant of the uncompensated system:
1
KV lim sG
G ( s ) lim s 1
s 0 s 0 s( s 1)(0.5s 1)
The desired velocityy constant: KV* 5
KV*
KC 5
KV
Step 2: Denote G1 ( s ) K C G ( s )
5
G1 ( s )
s ( s 1)(0.5s 1)
Draw the Bode diagram of G1(s)
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 64
Design lag compensator in frequency domain Example (cont)
-20dB/dec
14 -40dB/dec
-60dB/dec
60dB/dec
1 2
-20dB/dec
L1(c)
14 -40dB/dec GM*
L(()
-60dB/dec
60dB/dec
-135
R(s)
( ) Y(s)
+ GC(s) G(s)
16e 0.02 s
G( s)
( s 2)( s 2 10 s 25)
Solution:
u(t) y(t)
Plant
y(t)
T1 T2
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 72
Zeigler Nichols method 1 (cont)
R( )
R(s) Y(s)
+ PID Plant
1
PID controller: GC ( s ) K P 1 TD s
TI s
Controller KP TI TD
P T2/(T1K) 0
PI 0.9T2/(T1K) 0.3T1 0
PID 1.2T2/(T1K) 2T1 0.5T1
+ KKcr Plant
y(t)
Tcr
t
R(s) Y(s)
+ PID Plant
1
PID controller: GC ( s ) K P 1 TD s
TI s
Controller KP TI TD
P 0 5Kcr
0.5K 0
PI 0.45Kcr 0.83Tcr 0
PID 0.6Kcr 0.5Tcr 0.125Tcr
Step 1:
St 1 Establish
E t bli h equation(s)
ti ( ) representing
ti ththe relationship
l ti hi
between the controller to be designed and the desired
performances.
10 100 K D a 8 a 156.25
100 100 K P 8a 64 K P 12,14
100 K 64a K 1,54
I D
100
Conclusion: GC ( s ) 12,64 1,54 s
s
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 81
Manual tuning of PID controllers
Steady-
Para- Settling
Rise time POT state Stability
meter time
error
Small
KP Decrease Increase Decrease Degrade
change
KI Decrease Increase Increase Eliminate Degrade
Minor Improve if
KD Decrease Decrease No effect
change KD small
y(t)
System: x (t ) Ax(t ) Bu (t )
y (t ) Cx (t )
Controllability matrix
C [ B AB A2 B An1 B]
Note:
N t we use theth term
t controllable
t ll bl iinstead
t d off complete
l t
state controllable for short.
0 1 0 0
A 0 0 1 B 3 C 0 0 1
4 7 3 1
Determine the state feedback controller u (t ) r (t ) Kx(t )
so that the closed-loop system has complex poles with
0,6;n 10 and the third pole at 20.
B l
Balance th coefficients
the ffi i t off the
th equations
ti (1) and
d (2),
(2) we have:
h
3 3k 2 k3 32
7 3k1 10k 2 21k3 340
4 10k 12k 2000
1 2
x (t ) Ax(t ) Bu (t )
Consider a system:
y (t ) Cx(t )
The system
y is complete
p state observable if g given the control
law u(t) and the output signal y(t) in a finite time interval
t0 t tf , it is possible to determine the initial states x(t0).
Qualitatively the system is state observable if all state variable
Qualitatively,
x(t) influences the output y(t).
y(t)
S t
System x (t ) Ax(t ) Bu (t )
y (t ) Cx(t )
It is necessaryy to estimate the state x (t ) from mathematical
model of the system and the input-output data.
Observability matrix: C
CA
O CA
2
CAn 1
+
L
x (t )
B ++
+ C
y (t )
x (t ) Ax (t ) Bu (t ) L( y (t ) y (t ))
State estimator:
y (t ) Cx (t )
L [l1 l2 ln ]
T
where:
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 98
Design of state estimators
Requirements:
The state estimator must be stable, estimation error
should approach to zero.
Dynamic response of the state estimator should be fast
enough in comparison with the dynamic response of the
control loop.
It is required to chose L satisfying:
All the roots of the equation det( sI A LC ) 0 locates
i the
in th hhalf-left
lf l ft s-plane.
l
The roots of the equation det( sI A LC ) 0 are further
from the imaginary axis than the roots of the equation
det( sI A BK ) 0
Depending on the design of L, we have different state estimator:
Luenberger state observer
Kalman filter
9 November 2012 H. T. Hong - www4.hcmut.edu.vn/~hthoang/ 99
Procedure for designing the Luenberger state observer
St 1:
Step 1 Write
W it the
th characteristic
h t i ti equation
ti off the
th state
t t observer
b
det[ sI A LC ] 0 (1)
Step 1: Write the desired characteristic equation:
n
( s pi ) 0
(2)
i 1
pi , (i 1, n) are the desired poles of the state estimator
Step 3: Balance the coefficients of the characteristic
equations (1) and (2), we can find the gain L.
0 1 0 0
A 0 0 1 B 3 C 1 0 0
4 7 3 1
Assuming that the states of the system cannot be directly
measured. Design the Luenberger state estimator so that the
y g at 20,, 20 and 50.
poles of the state estimator lying
p
B l
Balancing
i the
th coefficients
ffi i t off the
th equ. (1) and
d (2) leads
l d to:
t
l1 3 90
3l1 l2 7 2400
7l 3l l 4 20000
1 2 3
L 87 2132 12991
T
Conclusion