Controllers Design Simple
Controllers Design Simple
Controllers Design
Outline
◼ Introduction to compensation design
◼ Phase Lead Compensation
◼ Phase Lag Compensation
◼ Phase Lead-lag Compensation
◼ PID Control
Question: What is system compensation?
Given the control plant, the procedure of controller
design to satisfy the requirement is called system
compensation.
Question: Why to compensate?
The closed-loop system has the function of self-tunning. By
selecting a particular value of the gain K, some single
performance requirement may be met.
Is it possible to meet more than one performance requirement?
Sometimes, it is not possible.
Something new has to be done to the system in order to make
it perform as required.
Resonant frequency r = n 1 − 2 2
Bandwidth b = n 1 − 2 2 + (1 − 2 2 ) 2 + 1
R(s) + C(s)
Compensator Plant
-
+ + C(s)
Original Part
- -
Compensator
Compensator
2
+
R(s) + + C(s)
Original Part
-
N(s)
Compensator
+ +
R(s) + + Original C(s)
Controller Part
+
-
Remark:
➢ Cascade compensation and feedback compensation are
inside the feedback loop.
➢ Feed-forward compensation and disturbance compensation
are outside the feedback loop.
Compensator Design Methods
1. Frequency Response Based Method
Main idea : By inserting the compensator, the Bode
diagram of the original system is altered to achieve
performance requirements.
Original open-loop Bode diagram+Bode diagram of
compensator+alteration of gain
=open-loop Bode diagram with compensation
2. Root Locus Based Method
Main idea: Inserting the compensator introduces new open-
loop zeros and poles to change the closed-loop root locus to
satisfy the requirement.
Cascade Compensation
Frequency response based compensation
Phase lead compensation
Phase lag compensation
Phase lead-lag compensation
Fundamental rule for control design:PID control
Each requirement relates to a different region of the
frequency axis in the Bode diagram.
1. The steady-state error relates to the magnitude at low
frequency.
2. The transient response requirement relates to the gain
crossover frequency, which usually occurs at higher
frequencies.
Three design rules for cascade compensator:
1. The system is stable with satisfactory steady-state error, but
dynamic performance is not good enough.
Compensator is used to change medium and high frequency
parts to change crossover frequency and phase margin.
2. The system is stable with satisfactory transient performance, but
the steady-state error is large.
Compensator is used to increase gain and change lower
frequency part, but keep medium and higher frequency parts
unchanged.
3. If the steady-state and transient performance are either
unsatisfactory, the compensator should be able to increase gain
of the lower frequency part and change the medium and higher
frequency parts.
L ( ω) L ( ω) L ( ω)
1. Transfer function: C
Ei R2 Eo
Eo ( s ) 1 1 + Ts
Gc ( s ) = =
Ei ( s ) 1 + Ts Passive Phase Lead Network
where
R1 + R2 RR
= 1, T = 1 2 C
R2 R1 + R2 1 1
− −
T T
40 −20 −20
20 − 40
0
1000
10 23.8
100
142
− 40
− 40 2
1
−
2
3
−
4 2
1
−
20 Uncompensated
0 system
-20
20
-40 G( s) =
-60
10
0 1
10
2
10
s(0.5s + 1)
-100
-180
0 1 2
10 10 10
= 15
Remark: K = 100
The phase lead compensator not only takes extra phase
40
margin of 33o at the uncompensated gain crossover
frequency.
However, we also have to add the magnitude part of the
compensator to the uncompensated magnitude, and the gain
crossover frequency moves to a higher value. The ultimate
phase margin is less than 33o .
It implies we need to consider extra phase margin for
determine α.
1 + sin m 1 + sin 38
= = = 4.2
1 − sin m 1 − sin 38
1
10 lg = 6.2dB m = 9rad/s = = c1
can also find 𝑤𝑚 analytically
T
40
1 20
1 = = m = 4.4rad/s
T
0
-20
1
2 = = m = 18.4rad/s -40
T -60
0 1 2
10 10 10
s + 4.4 1 + 0.227 s
Gc (s ) = = 0.238 50
s + 18.4 1 + 0.054 s 0
-50
Complete Compensator -100
1 + 0.227 s
Gc (s ) = -150
1 + 0.054 s -200
0 1 2
10 10 10
(4) Determine
(5) Calculate ωm
(6) Determine T
(7) Confirmation
2021/10/9 24
Phase Lag Compensation
R1
Transfer function:
R2
1
R2 + Ei
Gc ( s) = CS Eo
C
1
R1 + ( R2 + )
CS
R2Cs + 1 Passive phase lag network
=
( R1 + R2 )Cs + 1
Ts + 1
=
Ts + 1
R2
T = ( R1 + R2 )C , = 1
R1 + R2
L( )
1 − 20dB / dec
m =
T
10 lg
0.01 0.1 10
0
dB − 0
(c1 )
-20 −5
-5
20 lg
-40
-2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 0−10
-10
K v = 30 40 o GM 10(dB)
c1 2.3(rad / s)
Solution:
(1) K v = lim sG (s ) = K = 30
s →0
0 = −38.3o
2021/10/9 32
(4) L(ωc1)=22dB
1 1
(5) = c1 = 0.25
T 10
1
p = = 0.25 0.08 = 0.02rad/s
T
4s + 1
Gc ( s ) =
(6)
50s + 1
Confirmation: (c1 ) = 44 o , g = 6.7rad / s, GM 10dB
2021/10/9 33