- 2071 Bhadra · 5 marks
Discrete PID realization and roles of P, I, D
Short answer
A digital PID replaces the integral with a trapezoidal sum and the derivative with a backward difference. The velocity (recursive) form uses only the last two errors and last output. P responds to present error, I removes steady-state error by accumulating past error, and D anticipates future error by reacting to rate of change.
Explain how PID controller is realized in discrete time domain. Discuss the role of P, I and D parts.
A digital PID controller is obtained by replacing the integral and derivative of the analog PID law with sums and differences of the sampled error .
Analog PID law
Discretization
- Integral by the trapezoidal rule, derivative by the backward difference:
- Taking the z-transform:
Realization (velocity / recursive form)
Multiplying by gives an algorithm that needs only the last two errors and the last output:
+--> [ KP ] -----------------+
| v
e(k) ----+--> [ KI/(1-z^-1) ] ---->( + )---> m(k)
| ^
+--> [ KD(1-z^-1) ] ---------+
The computer runs this equation once every sampling period, and the D/A converter with a zero-order hold applies to the plant.
Role of each part
- P (proportional): gives an output proportional to the present error. A larger makes the response faster and reduces steady-state error, but too much gain causes overshoot and instability.
- I (integral): adds a pole at and accumulates past error. It removes steady-state error to a step (raises the system type by one) but adds phase lag, so it can make the response more oscillatory. Anti-windup is needed when the actuator saturates.
- D (derivative): responds to the rate of change of error, so it anticipates future error. It adds damping, reduces overshoot and improves stability, but it amplifies high-frequency measurement noise. It is often applied to the measured output instead of the error, with a filter.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Pulse TF with PID controller, plant 1/(s+1) · Digital Control System, chapter 3 · asked 2×
- Pulse transfer function of digital PID controller · Digital Control System, chapter 3 · asked 2×
- Controller design for peak time ≤ 1.2 s (ζ = 0.5) · Digital Control System, chapter 4 · asked 2×
- Controller design for peak time 1.2 s (ζ = 0.55), Kv · Digital Control System, chapter 4 · asked 2×
- Closed-loop TF with digital PID, plant 1/(s(s+1)) · Digital Control System, chapter 3 · asked 2×
- Pulse TF with digital PID, plant 1/(s(s+2)) · Digital Control System, chapter 3
- PID controller block diagram, transfer function, characteristics · Control Systems, chapter 7
- PID controller types and applications · Embedded System, chapter 7
- LTI system output in time domain · Communication Systems, chapter 1
- Single tone DSB-FC AM in time and frequency domain · Communication Systems, chapter 2