Ziegler-Nichols Tuning
Step response and ultimate gain methods for PID.
Tuning a PID controller without a mathematical model of the plant is a practical necessity in industrial control systems. The Ziegler-Nichols tuning method provides two systematic experimental procedures to set proportional, integral, and derivative gains so that the closed-loop system achieves acceptable transient response. These methods are widely used in process control and are frequently tested in GATE.
Core Concept Explanation
The step response method (also called the process reaction curve method) operates in open-loop. A unit step input is applied to the plant, and the output response is recorded. The response of most industrial plants resembles a first-order system with transport delay. A tangent is drawn at the inflection point of the S-shaped response curve. Two parameters are extracted: the delay time L (where the tangent intersects the time axis) and the slope R of the tangent (maximum rate of rise divided by the step magnitude).
The ultimate gain method operates in closed-loop with only proportional control active (integral and derivative terms disabled). The proportional gain is increased gradually from zero until the closed-loop system produces sustained, undamped oscillations. The gain at this point is the ultimate gain Ku, and the period of oscillation is the ultimate period Pu. These two values are substituted into empirical formulas derived by Ziegler and Nichols to compute the PID gains.
Both methods aim to produce a closed-loop step response with roughly 25% overshoot, which was the design target Ziegler and Nichols used when deriving their formulas. This criterion may not suit all applications, so the ZN settings are often used as a starting point followed by manual fine-tuning.
Mathematical Expressions
Method 1: Step Response Formulas
From the open-loop step response, the tangent at the inflection point provides delay L (seconds) and slope R (units per second). The PID gains are set as follows. The proportional gain is Kp = 1.2 / (R times L). The integral time constant is Ti = 2L, giving Ki = Kp / Ti. The derivative time constant is Td = 0.5L, giving Kd = Kp times Td.
Method 2: Ultimate Gain Formulas
After finding Ku and Pu from the sustained oscillation experiment, the PID gains are computed as: Kp = 0.6 Ku, Ti = 0.5 Pu, Td = 0.125 Pu. The controller transfer function in parallel form is written as C(s) = Kp (1 + 1/(Ti s) + Td s). This formulation is standard in GATE problems.
Practical Understanding
Method 1 is preferred when the plant can be taken offline for an open-loop test without risk. It is simple to perform but sensitive to noise during the slope measurement. If the S-curve is noisy, parameter extraction becomes inaccurate. Method 2 is preferred when the plant must remain in closed-loop at all times. However, pushing the system to the verge of instability to find Ku can be dangerous in processes involving temperature or pressure.
In practice, Ziegler-Nichols tuned controllers often produce oscillatory responses that are too aggressive for some processes. Modified ZN rules and gain scheduling are applied to reduce overshoot. Despite limitations, ZN tuning remains a benchmark method taught in every control systems course and tested in competitive exams.
Solved Numerical Example
Given:
Open-loop step response of a plant gives delay L = 2 s and slope R = 0.5 per second.
Step input magnitude = 1 unit.
Why this formula applies:
Data extracted from open-loop step response, so Method 1 (process reaction curve) formulas apply.
Formula:
Kp = 1.2 / (R * L)
Ti = 2 * L
Td = 0.5 * L
Substitution:
Kp = 1.2 / (0.5 * 2) = 1.2 / 1.0
Ti = 2 * 2 = 4 s
Td = 0.5 * 2 = 1 s
Calculation:
Kp = 1.2
Ki = Kp / Ti = 1.2 / 4 = 0.3 per second
Kd = Kp * Td = 1.2 * 1 = 1.2 second
Final Answer:
Kp = 1.2, Ki = 0.3 s^-1, Kd = 1.2 s
PID controller: C(s) = 1.2 (1 + 1/(4s) + s)Exam Tip: In GATE problems, Method 1 gives Kp = 1.2/(RL) and Method 2 gives Kp = 0.6Ku. Do not confuse Ti with Ki. Ti is time constant (seconds); Ki = Kp/Ti. Always check which method the problem specifies before substituting.
Mechanism Diagram
Key Points in ZN Tuning
- Method 1 requires open-loop step test. L is the apparent dead time and R is the maximum slope of the output response curve.
- Method 2 requires finding Ku (gain at sustained oscillation) and Pu (period of those oscillations) in closed-loop proportional control.
- Both methods produce approximately 25% overshoot in the closed-loop step response, which may be too large for sensitive processes.
- ZN settings are initial estimates. Fine-tuning is always required in real installations.
- For a PI controller using Method 2: Kp = 0.45 Ku, Ti = 0.83 Pu (modified ZN for PI).
Quick Revision
- Method 1 (open-loop): Draw tangent at inflection of step response. Extract L (delay) and R (slope). Use Kp = 1.2/(RL), Ti = 2L, Td = 0.5L.
- Method 2 (closed-loop): Increase Kp-only until sustained oscillation. Record Ku and Pu. Use Kp = 0.6Ku, Ti = 0.5Pu, Td = 0.125Pu.
- Both methods target ~25% overshoot in closed-loop step response.
- Ti is integral time (seconds), not integral gain. Ki = Kp/Ti.
- Kd = Kp times Td. This is the parallel PID form used in GATE.
- Common trap: mixing up Method 1 and Method 2 formulas in problems that specify only one type of test data.
- ZN tuning is a starting point. Real plants often need detuning to reduce overshoot.
Ziegler Nichols Tuning
Test your understanding of Ziegler-Nichols PID tuning methods and their application to process control.
Q1.In the Ziegler-Nichols ultimate gain method, a system is brought to sustained oscillations by setting Ki = 0 and Kd = 0, then increasing Kp. If the ultimate gain is Ku = 4 and ultimate period is Tu = 2s, what is the Ziegler-Nichols recommended value of Ki for a PID controller?
Related Articles
Lag Compensator Design
Improving steady state error without affecting transient.
4 min read
P Controller
Proportional control, gain adjustment, offset error.
6 min read
Lead Compensator Design
Phase lead network, improving transient response.
4 min read
PI Controller
Proportional-integral, zero steady state error.
6 min read
Lead-Lag Compensator
Combined lead and lag, simultaneous improvement.
7 min read