u=Kp·[e1+(e0+e1)·Δt/(2Tn)+Tv·(e1−e0)/Δt]
A PID controller combines immediate response, accumulated error and anticipatory response to error change.
A PID controller combines immediate response, accumulated error and anticipatory response to error change.
Select a target and calculate.
The error rises linearly from e₀ to e₁ (orange). The derivative share Kp·Tv·(e₁−e₀)/Δt is constant during the ramp and lifts u immediately; the proportional share follows the ramp, the integral share grows with the area under e(t).
A PID controller combines immediate response, accumulated error and anticipatory response to error change.
Kp=2, Tn=5 s, Tv=0.5 s, e0=2, e1=4 and Δt=1 s give P=8, I=1.2 and D=2, total u=11.2.
Ideal parallel PID controller, linear error in the first interval and zero integral state at interval start; bias, derivative filter, output saturation and anti-windup are excluded.
Calculate the P, I and D contributions and the output of a PID controller from initial error, current error and sampling interval.
A PID controller combines immediate response, accumulated error and anticipatory response to error change. This calculator represents a clearly bounded technical relationship between the displayed quantities. The definition helps put inputs into the same reference state before interpreting the result.
u=Kp·[e1+(e0+e1)·Δt/(2Tn)+Tv·(e1−e0)/Δt]
| Symbol / input | Meaning |
|---|---|
| Controller output u at interval end | Sum of amplified P, I and D action. Compare with actuator range; saturation and bias must be added externally. |
| Proportional gain Kp | Common gain of all three controller contributions, obtained from design, simulation or controlled tuning. |
| Reset time Tn | Sets integration speed: a smaller Tn strengthens accumulation of past error. |
| Derivative time Tv | Weights error change. Larger values respond earlier and more strongly but increase sensitivity to measurement noise. |
| Error at interval start e0 | Setpoint minus measured value at the beginning of the interval. |
| Current error e1 | Setpoint minus measured value at interval end; directly forms the proportional contribution. |
| Sampling interval Δt | Time between e0 and e1. The calculator assumes linear error between them. |
Controller output u at interval end: Sum of amplified P, I and D action. Compare with actuator range; saturation and bias must be added externally. Proportional gain Kp: Common gain of all three controller contributions, obtained from design, simulation or controlled tuning. Reset time Tn: Sets integration speed: a smaller Tn strengthens accumulation of past error. Derivative time Tv: Weights error change. Larger values respond earlier and more strongly but increase sensitivity to measurement noise. Error at interval start e0: Setpoint minus measured value at the beginning of the interval. Current error e1: Setpoint minus measured value at interval end; directly forms the proportional contribution. Sampling interval Δt: Time between e0 and e1. The calculator assumes linear error between them.
Select the target quantity, enter the other known values with units, then check the result against the worked example and model limits.
Kp=2, Tn=5 s, Tv=0.5 s, e0=2, e1=4 and Δt=1 s give P=8, I=1.2 and D=2, total u=11.2.
A PID controller combines immediate response, accumulated error and anticipatory response to error change. Read the result as a model value for the selected operating point and check units, sign, order of magnitude and application boundary conditions.
Use the displayed units and convert afterwards. Prefixes such as k-, m- and µ- are common sources of mistakes.
PID Controller Output Calculator for an Error Ramp: Such basic calculations support plausibility checks, early component selection and preparation of a complete verification.
Ideal parallel PID controller, linear error in the first interval and zero integral state at interval start; bias, derivative filter, output saturation and anti-windup are excluded.
Common mistake: A formally correct result can still be unsuitable when load case, reference state or units do not match the application.
Compare unit and order of magnitude with a second calculation and vary inputs one at a time.
No. The calculator exposes a model; real boundary conditions require separate review.
Only when the calculator converts within the same physical quantity type.