Cs1 - Chapter 1
Cs1 - Chapter 1
CONTROL SYSTEM 1
SUBJECT NUMBER : 403036
1.1. Introduction
1.2. Analysis of feedback system
1.3. Control objective
1.4. Summary
Control goals:
• Stability
• Tracking
• Disturbance rejection
• Robustness
• Control
• Types of control: open-loop control and closed
loop control
• Block diagram: process, actuator, reference,
controller, output signal
2.1.1. Definition
The Laplace transform of , denoted by ,
is a function of the complex variable s = + j .
F ( s) L f (t) f (t ) e dt st
u(t)
1
Step 1, when t 0
u (t ) t
function 0, when t 0
L u (t) 1 s
f(t)
f (t ) sin t u (t ) 1 t
Sinusoid
sin t , when t 0
function
0, when t 0
L f (t ) s 2 2
01/17/2024 403036 - Chapter 3. Dynamic Response 28
Laplace transform
• Time delay F1 ( s ) f (t )e st dt e s F ( s )
0
1 s
• Time scaling F1 ( s ) st
f (at )e dt F
0
a a
• Shift in Frequency F1 ( s) e at f (t )e st dt F ( s a )
0
Y ( s)
H ( s)
U ( s)
m 1
b0 s b1s ... bm 1s bm
m
n n 1
s a1s ... an 1s an
RCv o (t ) vo (t ) vi (t )
RCvo (t ) vo (t ) RCvi (t )
R1 R2C R2 1
(T ; KC ; )
R1 R2 R1 R2 KC
Tvo (t ) vo (t ) K C Tvi (t ) K C vi (t )
R2
T ( R1 R2 )C ; K C 1;
R1 R2
vo (t ) K P vi (t )
Rf Rf
vo (t ) v1 (t ) v2 (t )
R1 R2
1
V ( s) m
U (s) s b
m
Problems:
1/ Write the equations of motion for the
automobile (suspension model) ([1]: pp. 48).
2/ Write the equations of motion for the simple
pendulum ([1]: pp. 56).
3.8. Stability
3.8.1. BIBO stability
3.8.2. Routh stability
i (s pi )
n
i (s pi )
n
C1 C2 Cn
...
s p1 s p2 s pn
i 1
Using Matlab:
The coefficients of the numerator polynomial are
displayed as row vector :
num 1 2
01/17/2024 403036 - Chapter 3. Dynamic Response 58
Declare transfer function
using simulation software
The coefficients of the denominator polynomial are
displayed as row vector :
den 1 2 10
Transfer function in Matlab is declared as:
H tf num, den
Definitions:
• Nodes: The input and output points or junctions
• Branch: Line connecting two nodes.
• Path: Branch or continuous sequence of branches
that can be traversed from one signal (node) to
another signal (node).
• Loop (Self-loop): Closed path that originates and
terminates on the same node.
01/17/2024 403036 - Chapter 3. Dynamic Response 71
Equivalent transfer function of
the system
Mason’s signal-flow gain formula:
Y s P k k
T k
R s
Where 1 Li Li L j Li L j Lm ...
i i, j i , j ,m
• Pk: Gain of kth path
• D: Determinant of the graph
• Dk: Cofactor of the path Pk
•01/17/2024
L: Self-loop 403036 - Chapter 3. Dynamic Response 72
Equivalent transfer function of
the system
Notes
• Two loops are said to be non-touching if they do not
have a common node.
• Two touching loops share one or more common
nodes.
01/17/2024 73
Modeling in state space
Transfer function .
d n y (t ) d n 1 y (t ) dy (t )
n
a1 n 1
... an 1 an y (t ) b0 r (t )
dt dt dt
x1 (t ) y (t )
Set xi (t ) x i 1 (t ) (i 2, n)
Therefore, we have
x1 (t ) x2 (t )
x (t ) x (t )
2 3
x (t ) x (t )
n 1 n
x (t ) Ax(t ) Br (t )
In Matrix form
y (t ) Cx(t )
x1 (t ) 0 1 0 0 0
x (t ) 0 0 1 0 0
2
x(t ) ; A ; B ;
x
n 1 (t ) 0 0 0 1 0
x n (t ) a n a n 1 a n2 a1 b0
C 1 0 0 0
Condition: m = n - 1
01/17/2024 403036 - Chapter 3. Dynamic Response 78
Modeling in state space
x1 (t ) y (t )
Set
xi (t ) x i 1 (t ) i 1r (t ) (i 2, n)
In Matrix form x (t ) Ax(t ) Br (t )
y (t ) Cx(t )
0 1 0 0 1
0 0 1 0
2
A ; B ; C 1 0 0 0
0 0 0 1
n 1
a n a n 1 an2 a1 n
1 b0 ; 2 b1 a1 1 ;
3 b2 a1 2 a 2 1 ;; n bn 1 a1 n 1 a n 1 1
01/17/2024 403036 - Chapter 3. Dynamic Response 79
Modeling in state space
Characteristic equation
det sI A 0
1
Example:
2s 1
H ( s) 2
s 3s 2
• Poles:
• Poles farther to the left in the decay
faster than poles closer to the imaginary axis.
• Complex poles:
s jd
• Where:
: damping ratio
n : undamped natural frequency
Example:
2s 1
H ( s) 2
s 2s 5
n ? 5(rad/s)
? 0.447
s /
H (s) 2
s 2 s 1
0.5
s /
H (s) 2
s 2 s 1
0.707
24 s / z
H (s)
z ( s 4)( s 6)
2
s 2
H (s)
( s 1) ( s 0.1) 1
2
1
0.5
1.8
tr
n
1 2
Mp e 100%, 0 1
tp
n 1 2
4.6
ts
n
01/17/2024 403036 - Chapter 3. Dynamic Response 104
Transient qualities of system
responses
Graph of regions in the s plane:
n 3(rad/s)
0.6
1.5(s)
n 1
s a1s
n
... an 0
m 1
Y ( s ) b0 s b1s ... bm
m
T (s) n n 1
R( s) s a1s ... an
m
( s z i )
K i 1
i 1 (s pi )
n
i 1
Routh array
• Arrange the coefficients of the characteristic
polynomial in two rows, beginning with the first
and second coefficients and followed by the even
numbered and odd numbered coefficients.
• Compute the elements from the (n-2)th rows as:
ci 2,1
cij ci 2, j 1 i ci 1, j 1 i
c
i 1,1
01/17/2024 403036 - Chapter 3. Dynamic Response 118
Stability
Example 1
- The polynomial:
A( s ) s 4 s 3s 2 s s 4 s 4
6 5 4 3 2
Example:
4.1. Definitions
4.2. PID controller
4.2.1. P controller
4.2.2. PI controller
4.2.3. PD controller
4.2.4. PID controller
Output:
Yol GDol R GW
GDcl G GDcl
Output: Ycl R W V
1 GDcl 1 GDcl 1 GDcl
Define:
1 GDcl
S T
1 GDcl 1 GDcl
U Dcl SR TW Dcl SV
Ecl SR GSW TV
Stability:
The open loop:
• Define: b( s ) c( s)
G(s) Dol ( s )
a( s) d (s)
• Stability requirements: neither a(s) nor d(s) may
have roots in the RHP.
Stability:
The closed loop:
• The system characteristic equation:
a ( s ) d ( s ) b ( s )c ( s ) 0
• More freedom to the controller design than the
open-loop case.
Example:
1 K s
G(s) 2 Dol ( s ) 1
s 1 s
Tracking:
The tracking problem is to cause the output to
the reference input as closely as possible.
In the open – loop case, if the plant is stable, in
principle, the controller can be selected.
Tracking:
Three conditions:
• The controller transfer function must be proper.
• Must not request an unrealistically fast design.
• Once cancel any pole in LHP, the system
response may expose to unacceptable
transient.
Example:
1 c s 2
c1s c0
G (s) 2 Dol ( s ) 2
s 3s 9 s ( s d1 )
Desired characteristic equation:
( s 6)( s 3)( s 2 3s 9) 0
A) Solve for the parameters of this controller.
B) Steady state error when reference input is a step.
Sensitivity:
The sensitivity S of a transfer function Tol to a
T
G
Sensitivity:
Open loop:
• The plant gain G changes to be G G
• The open loop controller gain Dol
• The nominal overall gain Tol GDol
The gain change: Tol GDol
Sensitivity:
Open loop:
Tol G
• The sensitivity: S T
G
Tol G
Tol G
• And
Tol G
• This means a 10% error in G would yield a 10%
error in Tol , S = 1
Sensitivity:
Closed loop:
• The plant gain G changes to be G G
• The open loop controller gain Dcl
GDcl
• The nominal overall gain Tcl
1 GDcl
dTcl
The gain change: Tol G
dG
01/17/2024 403036 - Chapter 4. A First Analysis of Feedback 147
Definitions
Sensitivity:
Closed loop:
1
• The sensitivity: S T
G
1 GDcl
Sensitivity:
Closed loop:
• The complementary sensitivity function:
GDcl
T 1 S
1 GDcl
System type:
• In the regulator problem, the reference input is a
constant.
• Consider the steady state errors in a stable system
with polynomial inputs classify systems as to type
according to the degree of the polynomial.
1
transform is R k 1
s
• Step input: k=0, position input.
• Ramp input: k=1, velocity input.
• Parabola input: k=2, acceleration input
1 1
lim e(t ) lim sE ( s) lim s
t s 0 s 0 1 GD s k 1
cl
u (t ) k D e (t )
01/17/2024 403036 - Chapter 4. A First Analysis of Feedback 167
PID controller
PID control
• PID control:
t
u (t ) k P e(t ) k I e( )d k D e (t )
t0
PID control
• Depending on the nature of dynamic response of
the system, three parameters of PID control can
be determined.
Example
• PID control of Motor Speed ([1]: page 223)
• PI control for a DC motor position control ([1]:
page 224)
• Introduction MATLAB/SIMULINK
• Introduction Simulink library: Source, Sink,
Math, Signal Routing.
• Introduction PID controller block
• Build a model of PID controller
• PID controller
kI
U ( s) kP kD s E (s)
s
1
U ( s) kP 1 TD s E ( s )
TI s
U ( s ) Dc ( s ) E ( s )
• Tuning PID controller
• Modelling PID controller using MATLAB
01/17/2024 403036 - Chapter 4. A First Analysis of Feedback 185
Chapter 5
THE ROOT – LOCUS DESIGN METHOD
5.1. Definitions
5.2. Root locus method
5.3. System stability according to root
locus using Matlab
5.4. Design of lead and lag compensators
using root-locus method
1 Dc ( s)G ( s ) H ( s) 0
pi zi
nm
01/17/2024 403036 - Chapter 5. The Root - Locus Design Method 193
Root Locus Method
2. Selected Illustrative
root loci
The addition of the zero
has pulled the locus
into the LHP, a point of
general importance in
constructing a compensation. s 1
G(s) 2
s
01/17/2024 403036 - Chapter 5. The Root - Locus Design Method 196
Root Locus Method
2. Selected Illustrative
root loci
The addition pole moving
in from the far left tends to
push the locus branches to
the right as it approaches
a given locus. s 1
G (s) 2
s ( s 12)
01/17/2024 403036 - Chapter 5. The Root - Locus Design Method 197
Root Locus Method
s 1 s 1
G (s) 2 G (s) 2
s ( s 4) s ( s 9)
01/17/2024 403036 - Chapter 5. The Root - Locus Design Method 198
System Stability according to Root
Locus using Matlab
1. Lead Compensation
1
G (s)
s ( s 1)
Dc ( s ) K (solid line)
Dc ( s ) K ( s 2)(dashed line)
01/17/2024 403036 - Chapter 5. The Root - Locus Design Method 203
Design of Lead and Lag Compensators
using Root-Locus Method
1. Lead Compensation
K ( s 2)
Dc ( s )
s 10
K ( s 2)
Dc ( s )
s 20
1. Lead Compensation
• Selecting z and p is done by trial and error,
minimized with experience.
• In general, zero is placed in the neighborhood of
the closed loop n (determined by rise time or
settling time requirements).
1. Lead Compensation
The pole is located at a distance 5 to 20 times the
value of the zero location.
2. Lag Compensation
The lag compensation is determined to raise Kv
(or some other steady state error constant) but is
Nearly unity (no effect) at the higher frequency n .
sz
Dc ( s ) K ,z p
s p
2. Lag Compensation
• Values of z and p are small compared with n
•
2. Lag Compensation
Example:
1 91( s 2)
G ( s) Dc1 ( s )
s ( s 1) s 13
K v 14
2. Lag Compensation
• Calculate: n 7(rad/s)
z
• Choose: 5 , p 0.01
p
s 0.05
Dc 2 ( s )
s 0.01
2. Lag Compensation
3. Notch Compensation
• Lead and Lag compensation
91( s 2) s 0.05
Dc1 ( s )
s 13 s 0.01
• It oscillates at about 50rad/s. The plant transfer
function is estimated:
2500
G ( s)
s ( s 1)( s s 2500)
2
1
G(s) u (t ) sin10t
s 1
01/17/2024 403036 - Chapter 6. The Frequency - Response 218
Frequency Response
Im G ( j0 )
tan 1
Re G ( j0 )
01/17/2024 403036 - Chapter 6. The Frequency - Response 219
Frequency Response
In polar form:
y (t ) AM cos 0t
j
where: G ( j0 ) Me
M: magnitude
: phase
Example:
Frequency-response
evaluation:
s 1
D(s)
s /10 1
Frequency Response
Example:
Responses of
second-order
systems versus ζ
1
G (s)
s / n 2 s / n 1
2
KG ( j ) K 0 ( j )
j 1 1 j 2 1 ...
n
Example:
10
KG ( s )
s s 2 0.4s 4
10 1
KG ( s )
4 s s 2 / 4 2 0.1 s / 2 1
Example:
Example:
• bode
• margin
• semilog
• loglog
• logspace
7.1. Introduction
7.2. Analyze the system based on state space
model
7.2.1. A review of state space equations
7.2.2. State diagram of the system
7.2.3. Declare the state space using Matlab
1. Definition
• The state variable form as a vector equation:
x Ax Bu
• The output: y Cx Du
• The column vector x: state of the system, contain n
elements for nth – order system
• A (nn): system matrix, B(n1): input matrix, C(1n):
output matrix, D: a scalar, direct transmission term
• Compute t n 0 0 ... 1 1
• Construct t n A n 1
1 t A n2
T n
...
t
n
Transfer function:
Y ( s)
C sI A B D
1
G ( s)
U ( s)
Poles: det sI A 0
det s I A B 0
Zeros: C D
Observability matrix
C
CA
CA n1
1. Overview:
• Control law: assign a set of pole locations for
the closed loop system that will correspond to
satisfy dynamic response.
• If the full state is not available: estimator
design.
1. Overview:
Control law and estimator fit together, referred to
as compensation
J x Qx u Ru dt
T T
0
Q, R : diagonal matrices