Calculates on this device. File exports run online.
PID Tuning Calculator
Type the gain, time constant and dead time from a step test of your process, choose a tuning rule, and get the PID settings with a check of the loop: gain and phase margins, the largest sensitivity Ms and the response to a set-point step. Or start from the ultimate gain and period, check settings you have, or convert between PID forms.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use the PID tuning calculator
- Make a step test: with the controller in manual, change its output by a small step and record the measurement. Read the process gain K (change of measurement ÷ change of output), the dead time θ and the time constant τ (the time from the end of the dead time to 63% of the change).
- Choose the controller (PID, PI or P) and a tuning rule. SIMC and AMIGO are robust; Ziegler-Nichols and Cohen-Coon are fast but oscillatory.
- Press Calculate. You get Kc, Ti and Td (and Ki, Kd for a parallel controller) with the margins, Ms and a simulated step response.
- The box under the result checks the loop again on the server with the exact dead time and draws the response.
The tuning rules (process K e^(−θs) ÷ (τ s + 1))
- Ziegler-Nichols open loop (1942): PID Kc = 1.2τ ÷ (Kθ), Ti = 2θ, Td = 0.5θ.
- Cohen-Coon (1953): PID Kc = (τ ÷ (Kθ))(4/3 + θ/(4τ)), Ti = θ(32 + 6θ/τ) ÷ (13 + 8θ/τ), Td = 4θ ÷ (11 + 2θ/τ).
- SIMC (Skogestad 2003): PI Kc = τ ÷ (K(τc + θ)), Ti = min(τ, 4(τc + θ)), with τc = θ for tight but robust control.
- AMIGO (Åström and Hägglund 2004): PID Kc = (0.2 + 0.45τ/θ) ÷ K, Ti = θ(0.4θ + 0.8τ) ÷ (θ + 0.1τ), Td = 0.5θτ ÷ (0.3θ + τ).
- Ziegler-Nichols closed loop: PID Kc = 0.6Ku, Ti = Pu/2, Td = Pu/8; Tyreus-Luyben (1992) Kc = Ku/2.2, Ti = 2.2Pu, Td = Pu/6.3.
Worked example
A process with K = 2, τ = 10 s and θ = 2 s: the AMIGO PID settings are Kc = 1.225, Ti = 5.87 s and Td = 0.943 s. The loop has a phase margin of 59°, a gain margin of 10.3 dB and Ms = 1.45; a set-point step overshoots by 17.6%.
The Ziegler-Nichols settings for the same process (Kc = 3, Ti = 4 s, Td = 1 s) overshoot by 64% with Ms = 4.1: fast but close to oscillating.
Limits you should know
- The rules fit processes that a first-order-plus-dead-time model describes. Integrating, unstable and strongly oscillating processes need other methods.
- Linear simulation only: valve limits (with integral windup), noise and nonlinearity are not included. Try settings gently on the real plant.