Your Equation

Library / Control engineering / CTL-09

Control engineering

PID gains from integral and derivative times

Converts the integral and derivative time form of a PID controller into the parallel form with separate proportional, integral and derivative gains.

Ref
CTL-09
Rev
v1
Field
Control engineering
Result
Ki [1/s]

Kp(1 + 1/(Tis) + Tds) is the integral-and-derivative-time form of a PID controller. Expanding it gives the parallel form Kp + Ki/s + Kds with Ki = Kp/Ti and Kd = KpTd. Ti and Td are in seconds, so Ki has the units of Kp per second and Kd the units of Kp times seconds.

Converts the integral and derivative time form of a PID controller into the parallel form with separate proportional, integral and derivative gains. The time form is Kp(1 + 1/(Tis) + Tds) and the parallel form is Kp + Ki/s + Kds.

Calculator

Solve for
1/s
0.510
s
0.520
s
0.012
  • Derivative gain, Kd = KpTd0.2 s
  • Integral corner frequency, 1/Ti0.25 rad/s
  • Derivative corner frequency, 1/Td10 rad/s
  • Ratio Ti / Td40

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Integral gain (1/s) current value 0.5 1/s
TiIntegral timeKey driver
0.14
KpProportional gain
0.1252.5
TdDerivative time
  • At the defaults Ki = 0.5 1/s and Kd = 0.2 s. With a constant error of 0.1 and a 20 ms sample interval the integral term grows by Ki Ts e = 0.001 per sample.
  • Doubling Kp to 4 while keeping the times changes Ki to 1 1/s and Kd to 0.4 s. In the parallel form the three gains are independent, so the same change would leave the others alone.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (1/s)Local stepChange in result
Ti Integral time0.5 to 20 s0.143.9+10%−9.09 %
Kp Proportional gain0.5 to 10 0.1252.52.375+10%+10 %
Td Derivative time0.01 to 2 s0.50.50+10%0 %

Sweep of Integral time

Integral time (s)Integral gain (1/s)
0.54
2.9380.6809
5.3750.3721
7.8130.256
10.250.1951
12.690.1576
15.130.1322
17.560.1139
200.1

Sweep one variable

Integral gain (1/s)Hover, touch, or use the arrow keys on the chart
01234 5101520 Integral time (s) now 0.5

Variables and how each one contributes

Ki

Integral gain

Result · 1/s

What the equation gives you. Everything else feeds it.

Kp

Proportional gain

· typical 0.5 to 10

The proportional gain. In the time form it multiplies all three terms. Directly proportional: Ki and Kd both scale with Kp in this convention, so retuning Kp alone changes all three gains. Raising it by 10 % (to 2.2) moves the result by +10 %, from 0.5 to 0.55 1/s.

Ti

Integral time

s · typical 0.5 to 20

The integral time in s: roughly the time the integral term takes to repeat the proportional action for a constant error. A smaller Ti means stronger integral action. Inversely proportional: halving Ti doubles the integral gain. Raising it by 10 % (to 4.4) moves the result by −9.09 %, from 0.5 to 0.4545 1/s.

Td

Derivative time

s · typical 0.01 to 2

The derivative time in s: how far ahead the derivative term looks along the error trend. No effect on Ki. It sets the derivative gain instead: Kd = KpTd = 0.2 s at the defaults.

Worked example with the values above

  1. Integral gain: Ki = Kp / Ti = 2 / 4 = 0.5 1/s.
  2. Derivative gain: Kd = Kp Td = 2 × 0.1 = 0.2 s.
  3. The parallel controller is C(s) = 2 + 0.5/s + 0.2s, with Ki = 0.5 1/s.

Assumptions and limits

  • The ideal (non-interacting) time form, with the same Kp multiplying the integral and derivative terms.
  • Consistent units: Ti and Td in seconds (not minutes or repeats per minute).

Common mistakes

  • Entering Ti where Ki is expected. The two act in opposite directions: a larger Ti means weaker integral action.
  • Mixing the ideal form with a series (interacting) form, where the same numbers give a different controller.

Statistics and uncertainty

Ki is a ratio, so independent relative errors in Kp and Ti add in quadrature: 5 % in each gives about 7 % in Ki. Integral times quoted in minutes, rather than seconds, are a common source of a 60-fold error, and no statistics will catch that.

Where it is used

  • Moving settings between software tools and tuning rules that use different PID conventions.
  • Comparing a hardware controller that quotes integral time with a simulation that uses an integral gain.

Maths you need

  • PID controller: proportional, integral and derivative terms
  • Units of the gains: Ki is Kp per second, Kd is Kp times seconds

Related formulas

Practise this formula