F 06 Ztransf
F 06 Ztransf
0.5 0.5
• Z-transform
0 0
• Pulse transfer function −0.5
u y −0.5
u( kh) = sin(ω kh) [ y( kh) = A(ω ) sin ω kh + φ (ω )
F
c Dept. of Automatic Control, Lund 1
Mini-problem Frequency response revisited
1 1
For the step and the ramp examples, for what values of z is the 0.5 0.5
−0.5
u y −0.5
−1 −1
0 10 20 30 40 0 10 20 30 40
= [ k → ∞] = Im [ eiω k H ( eiω )]
= p H ( eiω )p sin ω k + arg H ( eiω )
−1 −1
0 2 4 0 2 4
Z (q f ) = z( F ( z) − f (0))
q f ( kh) = f ( kh + h) k = 0, 1, 2, . . .
Xk
Z ( f ∗ ) = Z f ( j )( k − j ) = (Z f ) ⋅ (Z )
Backward shift
j =0
q−1 f
2 2
f
1 1
0 0
−1 −1
0 2 4 0 2 4
(
−1 0 k=0
q f ( kh) =
f ( kh − h) k = 1, 2, . . .
F
c Dept. of Automatic Control, Lund 2
Bode diagram for continuous transfer function 1/(s2 + 1.4s + 1)
From state space to pulse transfer function (dashed) and for the sampled counterpart with Z-O-hold (solid)
log p H ( eiω )p
x( k + 1) = Φ x( k) + Γ u( k)
y( k) = Cx( k) + Du( k) −10
−20
( −30
z( X ( z) − x(0)) = Φ X ( z) + Γ U ( z)
−40
Y ( z) = C X ( z) + DU ( z)
arg H ( eiω )
−45
−1 −1
Y ( z) = C ( zI − Φ) zx(0) + [ C ( zI − Φ) Γ + D ] U ( z) −90
−135
The rational function H ( z) = C( zI − Φ)−1 Γ + D is called the
−180
pulse transfer function from u to y. It is the Z-transform of the
−225
pulse response. Compare to the time domain formula log ω
k
y( k) = C Φ x(0) + (h ∗ u)( k) The magnitude and phase of H ( eiω h ) are plotted for ω h ∈
[0, π ]
0.8
0.6 Y ( z) = [ C ( zI − Φ)−1 Γ + D ] U ( z)
| {z }
Imaginary axis
0.4 H ( z)
0.2
0
H ( eiω ) The points p ∈ C where H ( z) = ∞ are called poles of H .
−0.2
They are eigenvalues of Φ and determine stability.
−0.4 The poles of H ( z)−1 are called zeros of H .
−0.6
−0.8
F
c Dept. of Automatic Control, Lund 3
Poles determine stability Interpretation of poles and zeros
Poles:
All poles of H ( z) = C( zI − Φ)−1 Γ + D are eigenvalues of Φ.
• A pole z = a is associated with the time function z( k) = a k
The matrix Φ can always be written on the form
• A pole z = a is an eigenvalue of Φ
λ1k
λ1 ∗ ∗
Φ=U .. −1
Hence Φ k = U
.. −1 Zeros:
. U . . U .
0 λn 0 λ nk • A zero z = a implies that the transmission of the input
u( k) = a k is blocked by the system
The diagonal elements are the eigenvalues of Φ. • A zero is related to how inputs and outputs are coupled to
Φ k decays exponentially if and only if pλ kp < 1 for all k. the states
1 1
0.8
0.5
0.6
0
0.4
−0.5
u y 0.2
0
−1
0 10 20 30 40 0 5 10
3π / h
ωN
p2 x
π/h
p1 x px
−ω N
S0 p1 x x
ωN −π /h
p2 x
−ω N −3 π / h
F
c Dept. of Automatic Control, Lund 4
Sampling of a second order system Transformation of zeros
ω 02 • More difficult than poles
s2 + 2ζ ω 0 s + ω 02
• In general more sampled zeros than continuous
Poles of the discrete-time system are given by z2 + a1 z + a2 = 0
p • For short sampling periods
where a1 = −2e−ζ ω 0 h cos 1 − ζ 2 ω 0 h , a2 = e−2ζ ω 0 h
zi ( esi h
1
ζ= 0
ζ = 0.2
Imaginary axis
ζ = 0.4
0.5
ζ = 0.6
ζ = 0.8
0 ζ = 1.0
−1 −0.5 0 0.5 1
Real axis
n n−1 n−1
Example 1. For G (s) = 1/s2 , the previous lecture gave
gives [ z + a1 z
| {z
+ ⋅ ⋅ ⋅ + an ] Y ( z) = [b1 z
} |
+ ⋅ ⋅ ⋅ + bn−1 z + bn ] U ( z)
{z } 2
h
A( z) B ( z) 1 h
Φ=
Γ=
2
C = 1 0
0 1
Hence B ( z)/ A( z) is the pulse transfer function from u to y. h
A corresponding state space representation was derived in the With h = 1, this gives
previous lecture z− 1 −1 h2
−1
−h
H ( z) = C ( zI − Φ) Γ = 1 0
2
−a1 −a2 . . . − an 1 0 z−1
1 0 h
0 ... 0 h2
x( k + 1) = .. x( k) + . u( k) ( z − 1)−1 h( z − 1)−2 2
.. = h ( z + 1)
.
. . . = 1 0
2
0 ( z − 1)−1
h
2( z − 1)2
1 0 0
y( k) = [ b1 b2 ... bn ] x( k)
F
c Dept. of Automatic Control, Lund 5
Calculation of H ( z) given G (s) Summary
Example 2. For G (s) = e−τ s/s2 , the previous lecture gave • Z-transform
x( kh + h) = Φ x( kh) + Γ 1 u( kh − h) + Γ 0 u( kh) • Pulse transfer function
τ (h − τ )2
1 h τ h −
• Poles and zeros
Φ=
Γ1 =
2
Γ0 =
2
0 1 τ
h −τ • Transformations between system representations
With h = 1 and τ = 0.5, this gives
0.125( z2 + 6z + 1)
H ( z) = C ( zI − Φ)−1 (Γ 0 + Γ 1 z−1 ) =
z( z2 − 2z + 1)
Order: 3
Poles: 0, 1, and
√ 1
Zeros: −3 ± 8
F
c Dept. of Automatic Control, Lund 6