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
- 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.
- 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
| Variable | Typical range | Lowest result | Highest result | Swing (1/s) | Local step | Change in result |
|---|---|---|---|---|---|---|
| Ti Integral time | 0.5 to 20 s | 0.1 | 4 | 3.9 | +10% | −9.09 % |
| Kp Proportional gain | 0.5 to 10 | 0.125 | 2.5 | 2.375 | +10% | +10 % |
| Td Derivative time | 0.01 to 2 s | 0.5 | 0.5 | 0 | +10% | 0 % |
Sweep of Integral time
| Integral time (s) | Integral gain (1/s) |
|---|---|
| 0.5 | 4 |
| 2.938 | 0.6809 |
| 5.375 | 0.3721 |
| 7.813 | 0.256 |
| 10.25 | 0.1951 |
| 12.69 | 0.1576 |
| 15.13 | 0.1322 |
| 17.56 | 0.1139 |
| 20 | 0.1 |
Sweep one variable
Variables and how each one contributes
Integral gain
What the equation gives you. Everything else feeds it.
Proportional gain
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.
Integral time
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.
Derivative time
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
- Integral gain: Ki = Kp / Ti = 2 / 4 = 0.5 1/s.
- Derivative gain: Kd = Kp Td = 2 × 0.1 = 0.2 s.
- 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