Skip to main content

Pulse TF with PID controller, plant 1/(s+1)

Short answer

Compute G_D(z) = (1.4z^2 − 1.4z + 0.2) / (z(z−1)) and G(z) = 0.6321 / (z−0.3679). Then C(z)/R(z) = G_DG / (1 + G_DG) = (0.8850z^2 − 0.8850z + 0.1264) / (z^3 − 0.4829z^2 − 0.5171z + 0.1264).

Obtain the pulse transfer function of the system shown below. [Figure: unity-feedback loop: R(s) → summing junction → E(s) → sampler (T = 1) → PID controller (kₚ=1, kD=0.2, kI=0.2) → ZOH → 1/(s+1) → C(s); ZOH = transfer function of zero order hold circuit]

There is one sampler in front of the controller, so the closed-loop pulse transfer function is C(z)/R(z)=GD(z)G(z)/[1+GD(z)G(z)]C(z)/R(z) = G_D(z)G(z)/[1+G_D(z)G(z)], where G(z)G(z) is the z-transform of ZOH and plant together.

Step 1: Digital PID controller

Digital PID controller. Using the positional PID form (Ogata), with KP=1K_P = 1, KI=0.2K_I = 0.2, KD=0.2K_D = 0.2:

GD(z)=KP+KI1−z−1+KD(1−z−1)=(KP+KI+KD)−(KP+2KD)z−1+KDz−21−z−1=1.4−1.4z−1+0.2z−21−z−1=1.4z2−1.4z+0.2z(z−1)\begin{aligned} G_D(z) &= K_P + \frac{K_I}{1-z^{-1}} + K_D(1-z^{-1}) \\ &= \frac{(K_P+K_I+K_D) - (K_P+2K_D)z^{-1} + K_D z^{-2}}{1-z^{-1}} \\ &= \frac{1.4 - 1.4z^{-1} + 0.2z^{-2}}{1-z^{-1}} = \frac{1.4z^2 - 1.4z + 0.2}{z(z-1)} \end{aligned}

Here KP=K−KI/2K_P = K - K_I/2, KI=KT/TiK_I = KT/T_i and KD=KTd/TK_D = KT_d/T are the usual digital PID gains. Trapezoidal integration and a backward difference for the derivative give this form.

Step 2: ZOH + plant 1/(s+1)1/(s+1)

G(z)=(1−z−1) Z[1s(s+1)]=(1−z−1)[zz−1−zz−e−T]=1−e−Tz−e−T=0.6321z−0.3679(T=1)\begin{aligned} G(z) &= (1-z^{-1})\,\mathcal{Z}\left[\frac{1}{s(s+1)}\right] = (1-z^{-1})\left[\frac{z}{z-1} - \frac{z}{z-e^{-T}}\right] \\ &= \frac{1-e^{-T}}{z-e^{-T}} = \frac{0.6321}{z-0.3679} \quad (T = 1) \end{aligned}

Step 3: Open-loop pulse transfer function

GD(z)G(z)=0.6321(1.4z2−1.4z+0.2)z(z−1)(z−0.3679)=0.8850z2−0.8850z+0.1264z3−1.3679z2+0.3679z\begin{aligned} G_D(z)G(z) &= \frac{0.6321(1.4z^2-1.4z+0.2)}{z(z-1)(z-0.3679)} \\ &= \frac{0.8850z^2 - 0.8850z + 0.1264}{z^3 - 1.3679z^2 + 0.3679z} \end{aligned}

Step 4: Closed-loop pulse transfer function

C(z)R(z)=0.8850z2−0.8850z+0.1264(z3−1.3679z2+0.3679z)+(0.8850z2−0.8850z+0.1264)=0.8850z2−0.8850z+0.1264z3−0.4829z2−0.5171z+0.1264\begin{aligned} \frac{C(z)}{R(z)} &= \frac{0.8850z^2 - 0.8850z + 0.1264}{(z^3 - 1.3679z^2 + 0.3679z) + (0.8850z^2 - 0.8850z + 0.1264)} \\ &= \frac{0.8850z^2 - 0.8850z + 0.1264}{z^3 - 0.4829z^2 - 0.5171z + 0.1264} \end{aligned}

In powers of z−1z^{-1}:

C(z)R(z)=0.8850z−1−0.8850z−2+0.1264z−31−0.4829z−1−0.5171z−2+0.1264z−3\frac{C(z)}{R(z)} = \frac{0.8850z^{-1} - 0.8850z^{-2} + 0.1264z^{-3}}{1 - 0.4829z^{-1} - 0.5171z^{-2} + 0.1264z^{-3}}

Answer: C(z)R(z)=0.8850z2−0.8850z+0.1264z3−0.4829z2−0.5171z+0.1264\dfrac{C(z)}{R(z)} = \dfrac{0.8850z^2 - 0.8850z + 0.1264}{z^3 - 0.4829z^2 - 0.5171z + 0.1264}

Check: At z=1z = 1 both numerator and denominator equal 0.12640.1264. The DC gain is 1, so there is zero steady-state error to a step input because of the integral term.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Control System chapter 3 questions →