z−1
rk−1
−b1 a1
z−1
rk−2
−b2 a2
z−1
rk−n
−bn an
Figure 10.1 Canonical direct structure
10.1.2 Direct Noncanonical Structure
Consider Equation (10.2) with b0 = 1:
|
|
|
|
|
n |
a j z− j |
U (z) |
|
|
|
j |
= |
0 |
D(z) = |
|
|
= |
|
|
E (z) |
|
|
n |
|
|
|
|
|
j =0 b j z− j |
|
|
|
|
|
Cross multiplying and rewriting this equation we obtain
|
|
n |
|
|
|
|
n |
|
|
|
|
|
|
|
|
U (z) |
|
= |
b j z− j = E (z) |
|
= |
a j z− j |
(10.10) |
|
j |
0 |
|
|
j |
0 |
|
|
|
|
|
|
|
|
or, since b0 = 1, |
n |
|
|
|
|
n |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
U (z) = |
= |
|
a j z− j E (z) − |
|
= |
b j z− j U (z). |
(10.11) |
j |
0 |
|
j |
1 |
|
|
|
|
|
|
|
|
|
Writing (10.11) in the time domain, we obtain the noncanonical form of the direct realization
n n
|
|
uk = |
a j ek− j − |
j =1 |
b j uk− j . |
(10.12) |
|
|
|
|
|
|
|
j =0 |
|
|
|
|
|
|
|
|
|
|
|
ek |
|
+ |
|
|
|
|
|
rk |
1 |
|
|
+ |
|
uk |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
rk−1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
−2 |
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
rk−2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
−5 |
|
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 10.2 Block diagram for Example 10.1
D(z) =
246 CONTROLLER REALIZATION
ek |
|
|
|
|
a0 |
+ |
|
|
|
|
|
|
uk |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
|
|
|
|
|
z−1 |
|
|
ek−1 |
|
|
a1 |
|
−b1 |
|
|
|
uk−1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
|
|
|
|
|
z−1 |
|
|
ek−2 |
|
|
a2 |
|
−b2 |
|
|
uk−2 |
|
|
|
|
|
|
|
|
z−1 |
|
|
|
|
|
z−1 |
|
|
|
|
|
|
|
an |
|
−bn |
|
|
|
|
|
|
e |
k−n |
|
|
|
|
|
u |
k−n |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 10.3 Noncanonical direct structure
The block diagram of the noncanonical direct realization is shown in Figure 10.3. This structure has only one adder, but 2n delay elements.
Example 10.2
The transfer function of a digital controller is found to be
1 + 2z−1 + 4z−2 1 + 2z−1 + 5z−2 .
Draw the block diagram of the direct noncanonical realization of this controller.
Solution
With reference to (10.12) and Figure 10.3, we can draw the required block diagram as in Figure 10.4.
10.2 CASCADE REALIZATION
The cascade realization is less sensitive to coefficient sensitivity problems. In this method the transfer function is implemented as a product of first-order and second-order transfer functions. Thus, the controller transfer function is written as
D(z) =
ek
z−1
ek−1
z−1
ek−2
m
P (z) |
= |
Qi (z) for n odd |
(10.13) |
i |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
+ |
|
|
|
|
|
|
uk |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
|
|
2 |
|
|
−2 |
|
|
|
uk−1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
|
|
4 |
|
|
−5 |
|
|
uk−2 |
|
|
|
|
|
|
Figure 10.4 Block diagram for Example 10.2
−β
Figure 10.5 Realization of P (z)
and
|
m |
|
|
|
|
D(z) = |
= |
Qi (z) for n even, |
(10.14) |
i |
1 |
|
|
|
where m is the smallest integer greater than or equal to n/2.P (z) in (10.13) is the first-order transfer function
1 + α z−1
P (z) = 1 + β z−1 ,
shown in Figure 10.5. With reference to Figure 10.5, we can write
rk = ek − β rk−1
and
uk = rk + α rk−1.
Q(z) in (10.13) and (10.14) is a second-order transfer function,
Q(z) = a0 + a1z−1 + a2z−2 , 1 + b1z−1 + b2z−2
shown in Figure 10.6. With reference to Figure 10.6, we can write
rk = ek − b1rk−1 − b2rk−2
and
uk = a0rk + a1rk−1 + a2rk−2.
(10.15)
(10.16)
(10.17)
(10.18)
(10.19)
(10.20)
In practice, in order to avoid coefficient sensitivity problems second-order transfer function modules of the form given by (10.18) are frequently used and the modules are cascaded to give the required order. The block diagram of Figure 10.6 is sometimes drawn vertically, as shown in Figure 10.7.
|
|
|
|
|
|
a0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ek |
|
|
|
|
|
|
|
|
|
|
|
a1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a2 |
|
|
+ |
|
uk |
|
|
|
|
z−1 |
|
|
|
|
|
z−1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rk |
|
r |
|
|
|
r |
|
|
|
|
|
|
|
|
k−1 |
k−2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
−b1
−b2
Figure 10.6 Realization of Q(z)
D(z) =
D(z) =
D(z) =
248 CONTROLLER REALIZATION
ek |
+ |
|
rk |
+ |
uk |
|
|
|
|
a0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
|
|
|
|
|
|
−b1 |
|
|
|
a1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rk−1 |
|
|
|
|
|
|
|
|
|
|
|
|
z−1 |
|
|
|
|
|
|
−b2 |
|
|
|
a2 |
|
|
|
|
|
|
|
|
|
|
|
|
rk−2 |
|
|
Figure 10.7 Figure 10.6 drawn vertically
Example 10.3
The transfer function of a digital controller is given by 3(z + 1)(z + 2)
.
z2 + 0.4z + 0.03
Use two-first order cascaded transfer functions to implement this controller.
Solution
The transfer function can be factorized as
3(z + 1)(z + 2) 3(1 + z−1)(1 + 2z−1) (z + 0.1)(z + 0.3) = (1 + 0.1z−1)(1 + 0.3z−1) .
The required cascaded realization is shown in Figure 10.8.
Example 10.4
The transfer function of a digital controller is given by
(1 + 0.6z−1)(1 + 2z−1 + 4z−2) (1 + 0.4z−1)(1 + 0.1z−1 + 0.3z−2) .
Use a first-order and a second-order cascaded transfer function to implement this controller.
Solution
The transfer function can be implemented as a cascade of a first-order and a second-order function, as shown in Figure 10.9.
ek |
3 |
+ |
z−1 |
1 |
+ |
z−1 |
2 |
+ |
uk |
|
|
|
−0.1 |
|
|
−0.3 |
|
|
|
Figure 10.8 Cascaded realization for Example 10.3