Skip to main content

Direct programming of a third-order controller

Short answer

Divide by 10z^3 to get G(z) = (0.6z^-1+0.7z^-2+1.6z^-3)/(1+0.8z^-1+0.9z^-2+1.5z^-3). Direct form uses three input delays and three output delays with feedforward gains 0.6, 0.7, 1.6 and feedback gains -0.8, -0.9, -1.5. Difference equation: y(k) = -0.8y(k-1) -0.9y(k-2) -1.5y(k-3) +0.6x(k-1) +0.7x(k-2) +1.6x(k-3).

Realize the given digital controller by direct programming: Y(z)/X(z)=(6z²+7z+16)/(10z³+8z²+9z+15).

Step 1: Write in powers of z−1z^{-1}

Divide the numerator and denominator by 10z310z^3:

Y(z)X(z)=0.6z−1+0.7z−2+1.6z−31+0.8z−1+0.9z−2+1.5z−3\frac{Y(z)}{X(z)} = \frac{0.6z^{-1} + 0.7z^{-2} + 1.6z^{-3}}{1 + 0.8z^{-1} + 0.9z^{-2} + 1.5z^{-3}}

Step 2: Difference equation

y(k)=−0.8y(k−1)−0.9y(k−2)−1.5y(k−3)+0.6x(k−1)+0.7x(k−2)+1.6x(k−3)y(k) = -0.8y(k-1) - 0.9y(k-2) - 1.5y(k-3) + 0.6x(k-1) + 0.7x(k-2) + 1.6x(k-3)

Step 3: Block diagram (direct programming)

x(k)
  o              (S)--------------o--> y(k)
  |               ^               |
[z^-1]            |             [z^-1]
  | x(k-1)        |               | y(k-1)
  o--[0.6]------>(S)<[-0.8]-------o
  |               ^               |
[z^-1]            |             [z^-1]
  | x(k-2)        |               | y(k-2)
  o--[0.7]------>(S)<[-0.9]-------o
  |               ^               |
[z^-1]            |             [z^-1]
  | x(k-3)        |               | y(k-3)
  o--[1.6]------>(S)<[-1.5]-------o
  • The input delay chain gives x(k−1)x(k-1), x(k−2)x(k-2), x(k−3)x(k-3), with gains 0.6, 0.7, 1.6.
  • The output delay chain gives y(k−1)y(k-1), y(k−2)y(k-2), y(k−3)y(k-3), fed back with gains −0.8-0.8, −0.9-0.9, −1.5-1.5.
  • All products are added in the summer column to give y(k)y(k). There is no direct x(k)x(k) term.

Direct programming uses 3+3=63 + 3 = 6 delays. (The denominator has roots −1.1507-1.1507 and 0.1754±j1.12820.1754 \pm j1.1282, which are outside the unit circle, so this filter is unstable as given. The question asks only for its realization.)

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Control System chapter 4 questions →