Home / Instrumentation & automation

PID tuning

Paste the PV response to a step in controller output, or enter K, τ and θ, to get controller settings from three rules and see how each responds to a setpoint change.

Pre-sizing and estimating tool: results do not replace design, calculations or reports signed by a licensed professional, nor verification against the applicable codes and standards.

Preliminary estimate
Process
See what was read

Example: oven at 80 °C, 0 to 200 °C range, output stepped from 40% to 50% at t = 10 s. With PV already in % of span, use 100.

Tuning
——
—

Reaction curve and fitted model

Points: measured PV. Lines: first-order-plus-dead-time models from both fitting methods.

Tap the chart to see the values.

Simulated response to a setpoint step

Closed loop on the process model, for the three rules with the chosen controller. Derivative on PV with filter (N = 10), no output limits.

Tap the chart to see the values.

Parameters by rule and controller

Ideal (ISA) form: Kc, Ti, Td. Parallel form: Kp, Ki, Kd. Proportional band = 100 ÷ Kc.

Next step

Take this page’s results to another calculator with the fields already filled in.

The report gathers this page's inputs, results, equations, assumptions and references, with fields for project, engineer and revision. In the print dialog, choose Save as PDF.

Method, assumptions and references

Equations used

Model: G(s) = K · e^(−θs) ÷ (τs + 1); K = (ΔPV ÷ span × 100) ÷ ΔMV
Smith: τ = 1.5 · (t63.2 − t28.3); θ = t63.2 − τ. Tangent: θ = where the steepest tangent crosses the initial PV; τ = ΔPV ÷ maximum slope
Ziegler-Nichols: P Kc = τ/(Kθ); PI Kc = 0.9τ/(Kθ), Ti = 3.33θ; PID Kc = 1.2τ/(Kθ), Ti = 2θ, Td = 0.5θ
Cohen-Coon (r = θ/τ): P Kc = τ/(Kθ)·(1 + r/3); PI Kc = τ/(Kθ)·(0.9 + r/12), Ti = θ(30 + 3r)/(9 + 20r); PID Kc = τ/(Kθ)·(4/3 + r/4), Ti = θ(32 + 6r)/(13 + 8r), Td = 4θ/(11 + 2r)
Lambda/IMC: PI Kc = τ/[K(λ + θ)], Ti = τ; PID Kc = (τ + θ/2)/[K(λ + θ/2)], Ti = τ + θ/2, Td = τθ/(2τ + θ); P uses the PI Kc
Parallel: Kp = Kc; Ki = Kc ÷ Ti; Kd = Kc · Td; proportional band = 100 ÷ Kc (%)

Assumptions and limits

  • Self-regulating process, approximated by first order plus dead time; open-loop test with a single step, PV steady before the step and at the end of the curve.
  • Discrete simulation (6,000 zero-order-hold steps) of the identified model, ideal controller with derivative on PV and Td/10 filter, without output saturation or anti-windup. In the field, fine-tune while watching the real loop.
  • Ziegler-Nichols and Cohen-Coon target a 1/4 decay ratio and work best for 0.1 < θ/τ < 1; Kc is dimensionless (% output per % PV).

Standards and technical documents

  • Ziegler, J. G.; Nichols, N. B. Optimum settings for automatic controllers. Transactions of the ASME, 64, 1942
  • Cohen, G. H.; Coon, G. A. Theoretical consideration of retarded control. Transactions of the ASME, 75, 1953
  • Smith, C. L. Digital Computer Process Control. Intext, 1972 (método de dois pontos)
  • Rivera, D. E.; Morari, M.; Skogestad, S. Internal model control: PID controller design. Ind. Eng. Chem. Process Des. Dev., 25, 1986
  • Seborg, D. E.; Edgar, T. F.; Mellichamp, D. A.; Doyle, F. J. Process Dynamics and Control, 4th ed. Wiley, 2016
  • ISA-5.1-2022: Instrumentation Symbols and Identification; IEC 61131-3: linguagens de programação de CLP (bloco PID)

U.S. regulations

  • OSHA 29 CFR 1910.119 (PSM): process safety information and management of change for control loop settings
  • ANSI/ISA-61511-1-2018: Functional Safety — Safety Instrumented Systems for the Process Industry Sector
  • NFPA 85: Boiler and Combustion Systems Hazards Code (combustion control loops)

Frequently asked questions

How do I tune a PID from a reaction curve?

With the controller in manual, step the output 5% to 10% and record PV until it settles. Fit the model (K, τ, θ) from the 28.3% and 63.2% points and apply a rule. In the example, K ≈ 1.6 %/%, τ ≈ 42.5 s and θ ≈ 20.6 s give a lambda PI (λ = τ) with Kc ≈ 0.42 and Ti ≈ 42.5 s.

Ziegler-Nichols or lambda?

Ziegler-Nichols aims for a fast quarter-decay response, accepting 20% to 60% overshoot. Lambda with λ = τ gives a robust response with no overshoot; it is preferred for flow, level and temperature in continuous processes.

What is the difference between ideal and parallel forms?

In the ideal (ISA) form, Kc multiplies all three terms and Ti, Td are times. In the parallel form the gains are independent: Ki = Kc ÷ Ti and Kd = Kc · Td. With Kc = 0.42 and Ti = 42.5 s, Ki ≈ 0.0099 1/s.

When should I use derivative action?

On slow, low-noise processes such as temperature, with significant dead time. On liquid flow and pressure, measurement noise makes D harmful: use PI.