Lecture 7 B
Lecture 7 B
F 1 0
and
1n F 1 0
an 0
z0
z1
z2
z nk
z n1 z n
a0
a1
a2
ank
an1 an
an
ak
a1
b0
b2
bnk
bn1
bn1 bn2
bn3
bk
b0
c0
c1
c2
c n2
c n2
c n3
c n4
c0
2n 5
p0
p1
p2
p3
2n 4
p3
p2
p1
p0
2n 3
q0
q1
q2
an1 an2
b1
a0
where:
bk
a0
ank
an
ak
ck
b0
bn1k
bn1
bk
dk
c0
cn2k
cn2
ck
b0 bn1
c 0 c n2
n 1 conditions
M M
p0 p 3
q0 q2
a0 an
CE: z 2 z 2 0
Example:
Necessary conditions:
F 1 12 1 2 2 0
1n F 1 12 12 1 2 4 0
Sufficient conditions:
row
1: a0 2
a1 1
a2 1
a2 1
a1 1
a0 2
a0 2 2
and
a2 1
a0 a2
system is UNSTABLE
2:
or
1w
1w
z 1
gives w
, undefined atz 1
z 1
w 1
w 1
z 1
gives w
, undefined atz 1
z 1
Maps the inside of the unit circle in the z - plane into the LH w - plane.
the necessary condition for stability is that all the coefficients are present
and have the same sign.
Sufficient conditions are obtained from the following table:
sn
an
an2
an4 an6 K
s n1 an1 an3
an5
s n2
bn1 bn2
bn3
s n3
c n1 c n2
c n3
s n4 d n1 d n2
M
s0
where
bn k
an
an 2k
an1 an 1 an2k 1
d nk
1 bn1 bnk 1
cnk
1 an1 an2k 1
Every change of sign in the first column of this array signifies the
presence of a root with a positive real part.
Two different types of singularity can occur:
(a) zero in first column - solution is to let 1 s and repeat the procedure.
(b) full row of zeros (indicates diametrically opposite roots) solution is to solve the auxiliary equation (i.e. the polynomial whose
coefficients are the elements of the row immediately above the row of
zeros) to give the offending roots. The Routh array is completed by
replacing the row by the coefficients of the first derivative of the
auxiliary equation.
CLCE: z 2 z 2 0
Example:
use z
1 w
1 w
1 w 2 1 w 2 0
1 w 2 1 w
CE becomes
2w 2 w 1 0
Necessary conditions:
all coefficients present
Sufficient conditions:
w2 :
w1 :
-1
1 2 1
1
1 1 0
w :
y t
% overshoot (PO )
100
tr
tp
ts
Example: - OLTF G s
1
s 1 2s
Find CLTF and hence determine the closed loop unit step response.
For sampling times of 0.25 s and 1.0 s, find the OL z - transfer function,
the CL z - transfer function and hence the CL unit step response.
Using MATLAB:
Ts1=0.25;
%define sampling period
dis_sys1=c2d(cont_sys,Ts1,'zoh') %discretize system
cl_dis_sys1=feedback(dis_sys1,1) %close the feedback loop
step(cl_dis_sys1,tfinal)
pause
k1=[0:tf/Ts1];
%"time" vector
[yz1,xz1]=step(cl_dis_sys1,tfinal); %store results for later
Ts2=1.0;
dis_sys2=c2d(cont_sys,Ts2,'zoh');
cl_dis_sys2=feedback(dis_sys2,1)
step(cl_dis_sys2,tfinal)
pause
hold off
k2=[0:tf/Ts2];
[yz2,xz2]=step(cl_dis_sys2,tfinal);
%"time" vector
%store results for later
K z z i
z pi
(1)
where z i are the open loop system zeros, p i the open loop system poles
and K is a variable gain term.
Eq. (1) is in exactly the same form as can be obtained for root - locus
analysis of characteristic polynomials in the s - domain and therefore the
analysis is identical.
z zm 1
z zn
(2)
then any point on the root locus must satisfy the magnitude condition:
K z z1 z z 2 z zm
(3)
1
z p1 z p2 z pn
and the angle condition:
z z 1 z z 2
z z m
z p1 z p 2
i
z pn i
(4)
3, 1,1, 3,5,
The angle condition is used to locate points on the root locus and the
magnitude condition gives the value of K at that point.
Examples:
120
90
3 excess poles
45
4 excess poles
poles of P z zeros of Pz
n m
(6)
7) The intersection of the root - loci with the unit circle can be calculated
by Jury, Bilinear Transformation/Routh - Hurwitz or geometrical analysis
(only on some plots).
Examples
j z
1
P (z ) z p
1
p1
j z
z z1
P (z ) z p
1
p1
z1
j z
1
P (z ) z p z p
1
2
p1
p2
z z1
P (z ) z p z p
1
2
j z
z1
p1
z z1
P (z ) z p z p
1
2
j z
p1
z z1
P (z ) z p z p
1
2
p2
p2 z
z1
p1
z1
p2
j z
P (z ) z p z 1p z p
1
2
3
p3
p 2 p1
z z1
P (z ) z p z p z p
1
2
3
z1
p3
j z
p2
j z
p1
so
1 2
e T e j T 1
z nT 1 2
and
2
- depends on n
real part of s 3t
s
T
In the z-plane, z e
n
z e
3T t
j z
radius e
1
1T
Procedure:
design continuous compensator using traditional methods
(Bode, phase lead etc)
then discretize the resulting compensator.
Traditionally popular in industry
-
T
T
5T
Y s 1
if y t u t dt area under curve , then D s
U s s
u t dt
2T
3T
4T
area of rectangles
i.e. y kT y k 1T Tu k 1T
e.g. y 4T y 3T new area
Y z Tz 1
T
so D z
U z 1 z 1 z 1
z 1
T
T
T
2T
3T
4T
5T
so y kT y k 1T Tu kT
D z
Y z
T
Tz
U z 1 z 1 z 1
dy y y kT y k 1T
dt
t
T
finite difference
1 z 1
Y z
T
A
T
2T
3T
4T
5T
y t u t dt area of trapeziums
so y kT y k 1T
T
u kT uk 1T
i.e. y 4T y 3T A
Y z T 1 z 1 T z 1
D z
U z 2 1 z 1 2 z 1
remembering D s
substitution:
2 z 1
s
T z 1
1
, D z is obtained from D s by making the
s
Tustins rule
(bilinear transformation)
z 1Ts
1
1Ts
c) Tustins rule:
1Ts 2
1Ts 2
b)
c)
unstable D z
z e jdT
j dT
1
2 e
From Tustins rule: jc
T e j dT 1
i.e. s jc
and
2 e j d T 2 e jd T
jc
T e j d T 2 e jd T
2
c tandT 2
T
2
2
2 2 j sindT 2
T 2 cosdT 2
a
z 1
tanaT 2 z 1
2. Pole-Zero Mapping
An alternative approach is to use the mapping z e sT .
For a continuous signal y t , the poles of the Laplace transform Y s
are related to the poles of the z-transform Y z of y kT by z e sT .
This is NOT true for the zeros of Y s and Y z and the z-transform
must be obtained to locate the zeros.
For small T, z e sT is approximately true for the zeros as well as the
poles.
Heuristic Rules:
1. All poles of D s are mapped according to z e sT
s p 0
z e pT 0
s 0
z e
D z z 1 D s s 0
i.e.
or
1 1
1
D
s
D z
1
z
s
t kT
1
1
1
D z
D
s
1 z 1
s t
kT
D s
s
D z 1 z 1
D s s1
i.e.
D(z)
ZOH
D(s)
s
s 2 s 25
{bandpass filter with a centre frequency of 0 5 rads 1}
1
sec
3
z 1 T
z 2 2z 1 T 2 z 1 T 25
z 1
0.3333z 0.3333
(unstable)
s 2 s 25
z 2 2z 1 T 2z 2 z 1 Tz 25
z z 1
12.33z 2 7z 3
0.0811z 2 0.0811z
z 2 0.5676z 0.2432
2 z 1
T z 1
4 z 1 2 z 1
25
2
2
T z 1 T z 1
2
0.6667z 2 0.6667
0.0896z 2 0.0896
z 2 0.3283z 0.8209
a
z 1
tan aT 2 z 1
a 2
z 12
a
z 1
25
tan2 aT 2 z 12 tan aT 2 z 1
5.5029z 5.5029
0.0905z 0.0905
a 0
z e
0.5 j 4.97T
z e
0.5 j 4.97T
0.1909z 0.1909
z 2 0.148z 0.7165
1 z
1 z
1 z
s s 25
1
1
j 2 4.97
j 2 4.97
0.5
j
4.97
0.5
j4.97
z
z
1
j 2 4.97
0.5 j 4.97T
z e 0.5 j 4.97T
z e
0.1695z 0.1695
z 2 0.148z 0.7165
+
x
0.15
BR
TU
TUW
PZ
ZOH
0.1
0.05
-0.05
-0.1
-0.15
0.5
1.5
Time (s)
2.5
TU
-5
PZ
-10
Magnitude (dB)
-15
-20
ZOH
cont
FR
-25
BR
TUW
-30
-35
-40
-45
-50
10 0
Frequency (rad/s)
s
2
10 1
j s
z - plane
2
j s
1
s2
Y(s)
U(s) +
-
D(z)
T
ZOH
G(s)
T 0.05 sec
0.00125
2
z 12
s
2 z 1
-1
+1
We require a zero near the double pole to pull the root locus inside
the unit circle.
Settling time: poles must lie within a circle of radius e 4T t s 0.8
Try
Roughly:
requires K = 600
2
-1
+1
Results:
z 0.9
z 0.8
D s K P
KI
K Ds
s
or
D s K 1
TD s
TI s
W(z) +
input -
digital PID
system
controller
E(z)
U(z)
D(z)
G(z)
Y(z)
output
where i* and d* are the integral and derivative of the error respectively
Two Methods
Eulers method:
i * kT i * k 1T T e * kT
Trapezium rule:
i * kT i * k 1T
Also:
d * kT
T
e * kT e * k 1T
2
e * kT e * k 1T
T
In the z - domain:
(i) I z
Tz
E z
z 1
(ii) I z
and D z
T z 1
E z
2 z 1
z 1
E z
zT
[Tustins rule]
K P 0.5K u
Proportional + Integral (PI) Control:
1.2K P 0.54K u
K P 0.45K u
KI
Tu
Tu
Proportional + Integral + Derivative (PID) Control:
0.6TuK u
1.2K u
KD
K P 0.6K u
KI
8
Tu
Only applicable for systems which are CL stable at low gains.
gain K
maximum slope N
H
mag. of step
T1
KP
T1 T1
NL HL KL
PI control:
KP
0.9
NL
KI
0.3K P
L
PID control:
KP
1.2
NL
KI
0.5K P
L
K D 0.5LK P