Professional Documents
Culture Documents
Lecture 10
Chapter 13 Nise
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
G. Hovland 2004
In this lecture
Ideal Sampler and Second-Order Zero-and-Hold
z-Transform
Stability of discrete control systems
Steady-state errors of discrete control systems
Bilinear Transformation
Why?
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Analog Controller
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Digital Controller
Figure 13.2
a. Placement of
the digital
computer within
the loop;
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
b. detailed block
diagram showing
placement of A/D
and D/A converters
Digital to Analog (D/A) Converter
In general,
Quantisation
M / 2n voltage
Errors
levels.
sampling rate.
a. switch opening
and closing;
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
b. product of time
waveform and
sampling waveform
0 t
Tw
u(t-Tw)
1
0 t
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Tw
u(t) - u(t-Tw)
1
0 t
Tw
k =∞
f *
TW (t ) = f (t ) s(t ) = f (t )∑k = −∞ u(t − kT ) − u (t − kT − Tw )
k: integer
The Sampled Function f*Tw
f (t ) = f ( kT )
f *TW (t ) = ∑k = −∞ f ( kT )[u (t − kT ) − u(t − kT − Tw )]
k =∞
= ∑k = −∞ f ( kT ) e
s
Taylor Series Expansion of F*Tw(s)
k =∞ 1 − e −Tw s −kTs
F *
Tw ( s ) = ∑k =−∞ f ( kT ) e
s
(Tw s ) 2
1 − 1 − Tws + − L
f ( kT ) e −kTs
k =∞ 2 !
= ∑k = −∞
s
Assuming Tw small
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
k =∞
≈ ∑k =−∞ f ( kT )Twe −kTs
Inverse Laplace Dirac delta function
k =∞
f *Tw (t ) = Tw ∑k = −∞ f ( kT )∂ (t − kT )
Summary so Far
Ideal Sampler
k =∞
f (t ) = ∑k = −∞ f (kT )∂ (t − kT )
*
1 − e −Ts
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Gh ( s ) =
s
Ideal Sampler
k =∞
f (t ) = ∑k =−∞ f (kT )∂(t − kT )
*
∞
F ( s) = ∑k =0 f (kT ) e−kTs
*
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Open Form
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Note F(z) is closed-form while F*(s) is not. This is one reason why
the new z-transform is introduced. The Laplace F(s) is closed-form,
but the sampled F*(s) is not!
z-Transform Theorems
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Final Value:
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
z −1
f (∞) = lim z →1 (1 − z −1 ) F ( z ) = lim z→1 F ( z)
z
z − 1 Tz T
= lim z →1 = lim z →1 =∞
z ( z − 1) 2
z −1
Inverse z-Transform
z
F ( z) =
z − e −aT
f (kT ) = e − akT
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
1
F ( s) =
s+a
z-Domain Transfer Functions
∞ ∞
C ( z ) = ∑m =0 g ( mT ) z − m ∑n =0 r ( nT ) z − n
= G ( z ) R( z )
z-domain transfer
functions can be
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
multiplied as in
s-domain
Assumption: sampled
output (See Nise
Chapter 13.4) R(z) C(z)
G(z)
Example 13.4
Given a z.o.h. in cascade with G1(s) = (s+2) / (s+1) or
1 − e −Ts s + 2
G(s) =
s s +1
Find the sampled-data transfer function, G(z), if the sampling
time T=0.5 seconds
G(s) → G(z)
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
Zero-order-hold
1 − e −Ts G1(s)
G2 ( s ) =
s
Again, partial
fractions!
1 z
→
s z −1
1 z
→
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
s +1 z − e −T
Closed-loop
transfer function
G / (1 + GH)
z-Domain Stability
z −1 = e −Ts
z = eTs = eT (α + jω ) = eαT e jωT = eαT ∠ωT
α = 0 : eαT = 1 Region B (marginally stable)
K = 20
K = 100
T = 0.1 seconds
Example 13.7
z +1 s +1
s= z=
z −1 s −1
Bilinear Transformations
s = α + jω
(α + 1) + jω
z=
(α − 1) + jω
(α + 1)2 + ω 2
z=
(α − 1) 2 + ω 2
s +1
z= → s 3 − 19 s 2 − 45s − 17
s −1
How many
poles outside
the unit circle
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
in z-domain
does the system
have?
Discrete Control Steady-State Errors
In order to
analyse steady-
state errors, we
assume that
samplers are
placed in the
loop as illustrated.
Given these
assumptions, the
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
error equals
E(z) =
R(z) / [1 + G(z)]
z − 1 1 − z −1
R( z ) 1 1
e( ∞) = lim z →1 (1 − z −1 ) = lim z→1 =
1 + G( z ) 1 + G ( z ) 1 + lim z→1 G ( z )
If we define the error constant: K P = lim z →1 G ( z )
1
Then: e( ∞ ) =
1 + KP
Discrete Steady-State Errors: Ramp / Parabola
1
Ramp: R( s) =
s2
Tz T
R( z) = = −1
( z − 1) (1 − z )( z − 1)
2
R( z) T
e(∞) = limz→1(1 − z −1 ) = limz→1
1 + G( z) ( z − 1)(1 + G( z))
T 1
= limz→1 =
( z − 1)G( z) Kv
Parabola:
T 2 z( z + 1) T 2 ( z + 1)
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
R( z) = =
2( z − 1)3 2(1 − z −1 )( z − 1)2
R( z)
−1 T 2 ( z + 1)
e(∞) = limz→1 (1 − z ) = limz→1
1 + G( z) 2( z − 1)2 (1 + G( z))
T2 1
= limz→1 =
( z − 1)2 G( z) Ka
G(s) → G(z)
R(s) Zero-order-hold
1 − e −Ts G1(s)
- G2 ( s ) =
s
same control
system are
stable, then
the steady-state
errors will be the
same.
s-domain design, z-domain implementation
s= z= 2
T z +1 1− s
T
2
This transformation yields a digital transfer function
whose output response at the sampling instants is
approximately the same as the analog transfer function.
1
G p ( s) =
s ( s + 6)( s + 10)
0dB
0.1 1 10 100
-65dB
-40dB
-80dB
Check-
-120dB points
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
-90o
0.1 1 10 100
-180o
-270o
− ln(%OS / 100)
ζ = = 0.456
π + ln (%OS / 100)
2 2
We add 8o margin
to get total phase
−1 2ζ margin of 56o
Φ M = tan
= 48o
− 2ζ + 1 + 4ζ
2 4
4
wn = ≈ 8.0
Tsζ
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
7dB
Lead-Compensator Formulas: β=0.2
1
s + 1− β 1 1
Gc ( s ) =
K T ,β <1 ϕ MAX = sin −1
wMAX = Gc ( jwMAX ) =
β s+ 1 1 + β T β β
βT
Lead Compensator
1
wMAX =
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
T ≈ 0.17
T β
Continuous
lead-compensator
1977( s + 6)
Gc ( s ) ≈ design including
( s + 29.1) additional gain K
2 z −1 1977( s + 6)
s= Gc ( s ) ≈
T z +1 ( s + 29.1)
200( z − 1)
1977( + 6)
Gc ( z ) = z + 1
200( z − 1)
+ 29.1
METR4200 – ADVANCED CONTROL SEMESTER 2, 2004
z +1
1977(200 z − 200 + 6 z + 6)
=
200 z − 200 + 29.1z + 29.1
1977(206 z − 194)
=
229.1z − 170.9
1778 z − 1674
=
z − 0.746
Example 13.12 - Verification