- Introduced by
- John G. Ziegler
- Year
- 1942
- Type
- algorithm
- Family
- PID Control
What does it do?
Ziegler-Nichols tuning is an empirical method for choosing PID controller gains, introduced by Ziegler and Nichols in 1942.
It does not require a full mathematical model of the plant: the open-loop variant uses a first-order-plus-delay approximation read from a step response, and the closed-loop variant uses the gain and oscillation period at which the loop becomes marginally stable. The method is mainly used to obtain a first set of gains that is refined afterwards.
The intuition behind the method
The method has two variants. In the open-loop variant, a step input is applied, the output curve is read, and a first-order-plus-delay model is fitted; the PID gains then follow from that model's parameters through fixed empirical rules. In the closed-loop variant, the proportional gain is raised until the loop oscillates steadily, and the critical gain Ku and oscillation period Tu are recorded. Apply the closed-loop tuning rules from the original 1942 paper (Ziegler and Nichols) to these two values, and check the resulting gains on the process. Both variants replace a full system identification with a few easily observed quantities, which is why they produce gains quickly. The gain formulas given in the step-by-step procedure are the open-loop rules.
History
Ziegler and Nichols published the method in 1942 in the Transactions of the American Society of Mechanical Engineers. Later tuning methods for PID controllers are covered in the PID literature, for example in Åström and Hägglund (2006).
When to use it
Choose Ziegler-Nichols when a first set of PID gains is needed quickly, when detailed knowledge of the plant is unavailable, or when a reasonable starting point is to be refined later. It suits process loops where a fast but somewhat oscillatory response is acceptable. Do not rely on it when tight performance specifications must be met, when the plant is strongly nonlinear or time-varying, or when the process is safety-critical. In those cases a model-based design, validated on the process, is the more appropriate choice, and the tuning test itself should be planned with the process constraints in mind.
Limitations and considerations
- The rules are designed for fast response, so loops tuned with them typically show an oscillatory transient with noticeable overshoot.
- The rules fix one design trade-off between speed and damping; different performance goals require different gains.
- The open-loop rules assume the plant can be approximated by a first-order-plus-delay model; higher-order dynamics are misread by this fit.
- The gains are sensitive to how K, L and τ are read from a noisy or imprecise response curve.
- The closed-loop variant drives the loop to the verge of instability, which may be unsafe for some processes.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Requires only a recorded step response (open-loop) or a critical gain and oscillation period (closed-loop).
- The open-loop gains follow from three values read off the response (K, L, τ) by simple arithmetic, so they can be calculated by hand.
- Gives a first set of gains quickly during commissioning of a loop.
- Provides a starting point that can be refined manually for the specific loop.
Applications
- Process control: Temperature control in furnaces and reactors, liquid level control in tanks.
- HVAC systems: Thermostats and building climate control with modest performance requirements.
- Industrial equipment: Motor speed control, pressure regulation in compressors.
- Water treatment: Chemical dosing and mixing control.
How it works
How it works
Apply a step input and record the output transient. Fit a first-order-plus-delay model, G(s) ≈ Ke^(−Ls)/(τs+1).
Read the steady-state gain K, the apparent time delay L and the time constant τ from the recorded curve.
For the open-loop variant, apply the empirical rules K_p = (1.2τ)/(KL), K_i = K_p/(2L) and K_d = K_p L/2 to obtain the PID gains.
Run the PID loop with the computed gains and inspect the step response for overshoot and settling time. Adjust the gains manually if the performance required differs from the response these rules aim for.
Common pitfalls
- Misreading the time delay or time constant from the step response, which shifts all three computed gains.
- Applying fixed Ziegler-Nichols gains to a time-varying plant; the gains become suboptimal as the parameters drift.
- Using the closed-loop method on an unstable plant or on a loop with significant dead time, where the test induces sustained oscillation.
- Accepting the computed gains without a final manual check; the rules give a starting point, not an optimum for a specific performance goal.
Frequently asked questions
What is the difference between open-loop and closed-loop tuning methods?
The open-loop variant applies a step input, fits a first-order-plus-delay model to the response and computes the gains from its parameters. The closed-loop variant raises the proportional gain until the loop oscillates steadily and computes the gains from the critical gain and period. The open-loop test is generally the less aggressive of the two, but both perturb the process and must be carried out with its safety constraints in mind.
Why does Ziegler-Nichols produce overshoot?
The rules are designed to give a fast response, and the tuned loop accepts a damped oscillatory transient to achieve that speed. To reduce overshoot, moderate the integral action first (lower K_i), since more integral action generally increases overshoot, and then check the response. Once gains are changed away from the rule values, they should be verified on the actual process.
Does the method require a model of the plant?
Not a full model. The open-loop variant uses a first-order-plus-delay approximation with three parameters (K, L, τ) read from a step response. The closed-loop variant uses only the critical gain and oscillation period, with no model fitted.
Related methods
Sources
Ziegler, J. G., & Nichols, N. B. (1942). Optimum settings for automatic controllers. Transactions of the American Society of Mechanical Engineers, 64(8), 759-768.
Open publication referenceAstrom, K. J., & Hagglund, T. (2006). Advanced PID Control. ISA-The Instrumentation, Systems, and Automation Society.
Open publication reference