Toolvito

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

Your values

Change of the measurement ÷ change of the controller output, at steady state (from a step test). Use the same units as the controller.

From the step test: the time from the end of the dead time to 63% of the change.

The time before the measurement starts to move after a step of the controller output.

More options

Optional: a step added to the controller output halfway through the simulation, as a disturbance.

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.

Loop check with the exact dead time

Loop check with the exact dead time

Uses the process model and the settings of the result above (the first and third modes). The server works out the margins and Ms with the exact dead time and simulates the set-point and load responses with its own method, then draws them.

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the PID tuning calculator

  1. 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).
  2. 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.
  3. Press Calculate. You get Kc, Ti and Td (and Ki, Kd for a parallel controller) with the margins, Ms and a simulated step response.
  4. 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.

Related tools