











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












+
_
+
_
Process
Sensor
Electronic Control
DAC
ADC
Discrete Time Steps Continuous in Time
Fs
Z-Domain Operations for the Closed Loop
From the previous example, we see an input to output relationship with a corresponding
transformation as seen in continuous time systems. Therefore, we use (b) to represent
processing of the digitized signal r(t) from (a) below.
The discrete feedback equation:
Gz
Rz
Yz
Note: If a discrete system is driving a continuous time system, the goal of a discrete
time representation is to provide the same result as the continuous time system at
the sampling points. It will not describe the behavior of the continuous time signal
between the sampling points.
Determining the output response:
z z e
z e e Y z ⋅ ⎥ ⎦
−
− −
2 1
1 1
z
z Rz
2 1
1 1
−
− −
z
z
z z e
z e e Y z
( ) ⎥ ⎦
− −
− −
3 2 1 1
2 1 1
z z z z z e e
z e z e Y z
( )
( ) ( )
− −
− −
3 2 1 1
2 1 1
z z z e e
z e z e Y z
Perform long-hand polynomial division and the solution will be of the form
− − − 3 3
2 2
1 Yz a 1 z a z a z
The output sequence observed will then be the coefficients in time …
Using MATLAB Chap13_Ex
Ts=1;
num=1;
den=[1 1 0];
sys=tf(num,den)
sysCL=feedback(sys,1)
sysd=c2d(sys,Ts,'ZOH')
sysdCL=feedback(sysd,1)
step(sysCL,sysdCL);
legend('Cont','c2d')
grid
Result: Transfer function: 1
s^2 + s
Transfer function: 1
s^2 + s + 1
Transfer function: 0.3679 z + 0.
z^2 - 1.368 z + 0.
Sampling time: 1
Transfer function: 0.3679 z + 0.
z^2 - z + 0.
Sampling time: 1
0 5 10 15 20 25
0
1
Step Response
Time (sec)
Amplitude
Cont c2d
and
0 2 4 6 8 10 12
0
1
Step Response
Time (sec)
Amplitude
Cont c2d@8x
The gain and phase margins for the open loop systems are
0
20
Magnitude (dB)
10
0
Phase (deg)
Bode Diagram Gm = 23.7 dB (at 3.96 rad/sec) , Pm = 79.2 deg (at 1.06 rad/sec)
Frequency (rad/sec)
Cont c2d@8x
The sample rate is everything in digital and discrete time systems.
The Nyquist sampling rate and theory are valid, but …normal analog approaches that are
“transformed” to digital will not perform in a similar fashion to the analog system! The
sample rate must be significantly higher than the Nyquist rate.
Digital systems and controls can be designed to perform at ar near the Nyquist rate, but
they should be designed using digital techniques, not analog techniques!
Using the element z – digital filters
− 1 z represents a time period delay in a sampled system. So,
a a z a z
b b z b z Y z ⋅
− −
− −
2 3
1 1 2
2 3
1 1 2
Y ( ) ( z ⋅ a + a ⋅ z + a ⋅ z + ) =( b + b ⋅ z + b ⋅ z + ) ⋅ R ( ) z
− − − − L L
2 3
1 1 2
2 3
1 1 2
1
3
1
2
1
1
1
3
1
2 rk a
b rk a
b rk a
b yk a
a yk a
a yk
The next output is based on the weighted sum of previous outputs and the weighted sum
of the inputs.
P.S. We just repeated the first order difference estimate using z transforms.
Special Case
If the denominator coefficients are zero except for a 1 (^) = 1 , then the output has a finite
impulse response (FIR).
1
3
1
2
1
1 rk a
b rk a
b rk a
b yk
Meaning, that if r(k) is an impulse (one for only one sample, then zero), the output will
last for a finite period of time and go to zero. This is where an FIR filter comes from.
Example Section 13.
Roots to roots comparison.
s s
G (^) ps
( )
( ) ( )
( )
( )
T T
T T T
T
T T T
z z e e
z T e T e e
z z e
z T e T e e G z − −
− − −
−
− − −
2
The z-plane root are based on
( ) ( )
T T z z z e e
− − Δ = − ⋅ 1 + +
2
which have roots
( ) ( ) (^) T
T T
e
e e z z
−
− −
⎥ − ⎦
2
1 2 2
( ) ( ) ( )
2 1 2
T T T T
T e e e e
e z z
− − − −
− − ±
T z z e
− 1 ,^2 =^1 ,
The system is marginally stable; one of the roots is on the unit circle.
Therefore, marginally stable in the s-plane and marginally stable in the z-plane.
What if this was a closed loop system with gain K.?
w G (^) p s ⋅ +
K Gz
Rz
Yz
( ) ( )
w G s e
sT
⋅ +
− 2
( ) ( ) ⎥
−
s w
w
s s
w G z z Z
z
2
− w ⋅ T z e
w
z
z
T z
z
w
z
z
z Gz
2
− w ⋅ T − w ⋅ T z e
z
z
w T
z e w
w
z
z
w
G z
( ) ( ) ( ) ( )
( ) ( )
−⋅
−⋅ −⋅
w T
wT wT
z z e
z z e w T z e z
w
G z 1
2
( )
( ) ( )
−⋅
−⋅ −⋅ −⋅
w T
wT wT wT
z z e
z z z e z e wT z w T e
w
G z 1
2 2
( ) ( )
( ) ( )
−⋅
−⋅ − ⋅
w T
wT wT
z z e
e wT z w T e
w
G z 1
The characteristic equation would become
( ) ( )
( ) ( )
−⋅
−⋅ −⋅
w T
wT wT
z z e
e wT z w T e
w
z K 1
( ) ( ) ( ) (( ) ( ) )
w T wT wT e wT z w T e w
z z z e K
− ⋅ −⋅ −⋅ Δ = − 1 ⋅ − + ⋅^1 ⋅ − 1 + + ⋅ ⋅ + 1 − 1 + ⋅ ⋅
( ) ( ) ( ( ) )
w T wT wT wT w T e w
e w T e w
z z z e
− ⋅ −⋅ −⋅ −⋅ ⎟+ + ⋅ − + ⋅ ⋅ ⎠
2
The conditions for all roots to be inside the unity circle are (given without proof)
For performance of a second order system
From text
w =^1 ; therefore, w
Figure 13.19 The maximum overshoot │ y│ for a second-order sampled system for a
unit step input.
Figure 13.21 The steady-state error of a second-order sampled system for a unit ramp
input r ( t ) = t, t > 0_._
The Z-Domain Root Locus
Repeating the same old problem (Example 13.5) for T=
s s
( ) ( ) ( )
2 1 1
1 1
1
1 1
− −
− −
−
− −
z z e e
z e e
z z e
z e e Gz
K Gz
Rz
Yz
( )
2 1 1
1 1
− −
− −
z z e e
z e e z K Gz K
( ) ( ) ( )
2 1 1 1 1 1 1 2
− − − − Δ z = z − z ⋅ + e + e + K ⋅ z ⋅ e + − ⋅ e
( ) 0 ( 1 2 ) 1
1 1 Δ = + ⋅ − ⋅ <
− − e K e
1
1
1
1
−
−
−
−
e
e K e
e or − 5. 1766 < K < 2. 3922
( ) 1 1 1 ( 1 ) ( 1 1 2 ) 0
2 1 1 1 1 Δ = − ⋅ + + + ⋅ ⋅ + − ⋅ >
− − − − e e K e e
( 1 ) 0
1 ⋅ − >
− K e
( 1 ) 1 1 ( 1 ) ( 1 2 ) 0
1 1 1 1 Δ − = + ⋅ + + + ⋅− + − ⋅ >
− − − − e e K e e
( )
1
1
−
−
e
e K or K < 26. 397
Therefore
The Z-Domain Root Locus Example 13.
Repeating the same old problem (Example 13.5) for T=
2
s
2
2
3
2
z
T z
z
T z z
z
z Gz
Note: this Z-Transform with a ZOH is not in Table 13.1 (I have other books …)
K Dz Gz
Rz
Y z
2
2
z
T z z K Dz Gz K
2
2
2
2
2
2
From MATLAB
-7 -6 -5 -4 -3 -2 -1 0 1 2
-2.
-1.
-0.
0
1
2
Root Locus
Real Axis
Imaginary Axis
Method #2: Use a z-domain root locus method in the digital domain
K Gz Dz
Rz
Y z
The characteristic equation is
and all conditions and/or requirements for forming the root locus (now in the z-domain)
are identical to the continuous time case. See Table 13.4 on p. 922!
Evaluation of the root locus must now be done using the z-domain (unit circle) stability
criteria.
Example 13.7 Method #1: Plant compensated with a phase-lead network
s s
G (^) p s
Phase lead compensation to provide 45 deg. margin at w=125 rad/sec.
s
s G (^) c s
Converting the compensation to a digital compensator for T=0.001,
z B
z A D z C −
Where 0. 95
− A e and 0. 73
− B e and 4. 85 1 0. 73
z
z Dz