Increase Kp until the loop responds
Proportional gain creates an immediate correction. Too little is slow; too much produces cycling or actuator saturation.
Change Kp, Ki and Kd, run the process, and get an objective tuning score.
First challenge
Tune a delayed temperature loop
Hold a 60 °C setpoint on a first-order process with an 8 s time constant and 2 s transport delay.
Reusable lab resources
PID tuning recordCSVInteractive tuning lab
Hold a 60 °C setpoint on a first-order process with an 8 s time constant and 2 s transport delay.
The backend calculates the expected result and returns individual checks, a score and reproducible evidence. Client-supplied scores are ignored.
Your run is free. Keep the evidence when it matters.
Create an account only when you want saved attempts, projects, sharing and progress.
Training outcomes
Each run teaches a transferable industrial workflow and produces evidence you can inspect, repeat and discuss.
See how proportional, integral and derivative terms change the same process.
Compare overshoot, settling time, final error and IAE instead of tuning by appearance.
Save alternate tunings and share a read-only setup for peer review.
Progress from a free run to graded tuning records and training evidence.
Field method
Proportional gain creates an immediate correction. Too little is slow; too much produces cycling or actuator saturation.
Integral action accumulates error and eliminates steady-state offset. Aggressive integral gain creates overshoot and wind-up, especially when the output saturates.
Derivative action anticipates change and can damp a clean process. On noisy measurements it amplifies noise, so real controllers normally filter the derivative term.
Continue from a single exercise to a complete training record.
Guided scenarios, saved progress, fault diagnosis and instructor reporting are built into the main platform.
PID tuning guide
PID tuning is choosing how strongly the proportional, integral and derivative parts of a controller act so a loop reaches its setpoint quickly, without wild overshoot and without cycling. This guide uses the process in the lab above, so every number can be checked by running it. For the follow-along version with acceptance steps, see the PID controller tuning tutorial.
Move the three gains and watch the loop respond. This runs the same temperature process as the graded lab, an 8 second time constant and a 2 second delay with a 60 degree setpoint. It is an explainer: the graded attempt is the lab above.
Process value ends at 60.0 degrees against a setpoint of 60. Overshoot 0.0 percent, final error 0.00 degrees, settled in 22.6 seconds.
A PID controller looks at the error, which is the setpoint minus the process value, and builds its output from three parts. The proportional part (Kp) gives a push in proportion to the error right now: a big error gets a big push. The integral part (Ki) adds up the error over time, so a small error that lasts still produces a growing push until it is gone. The derivative part (Kd) reacts to how fast the error is changing, which can calm a loop that is about to overshoot.
In plain terms: P reacts to the present, I corrects the past and D anticipates the future. Tuning is the job of choosing how strongly each one acts so that the loop reaches the setpoint quickly, without overshooting wildly, and without cycling.
This is the same order most technicians use on a real loop, written for the simulator. Change one gain at a time and rerun, so you can tell which change did what.
The lab process is a temperature loop with an 8 second time constant and a 2 second transport delay, held at a 60 degree setpoint. The six runs below use the same process and only change the gains. Every figure comes from running the same model the lab uses.
First, proportional action alone. For this process the loop settles where the output just balances the error. With Kp 1.8 that is 38.6 degrees, an offset of 21.4. You can predict it: the final value is the setpoint times Kp divided by one plus Kp, which is 60 x 1.8 / 2.8 = 38.6. Raising Kp to 5 shrinks the offset to 10.0 degrees, but it never reaches zero, and a higher gain brings other problems.
Adding Ki 0.25 removes the offset. The loop settles in 23.2 s with no overshoot. Pushing the integral to 1.2 does the opposite of what you might hope: the loop overshoots by 17.8 percent and is still 6.7 degrees away from the setpoint at the end of the minute, because the integral keeps pushing after the process value has passed the setpoint.
| Run | Kp / Ki / Kd | Overshoot | Final error | Settles in |
|---|---|---|---|---|
| P only (Kp 1.8) | 1.8 / 0 / 0 | 0.0 % | 21.43 degrees | not settled in 60 s |
| P only (Kp 5) | 5 / 0 / 0 | 0.0 % | 10.01 degrees | not settled in 60 s |
| PI (1.8 / 0.25) | 1.8 / 0.25 / 0 | 0.0 % | 0.01 degrees | 23.2 s |
| PID (lab default) | 1.8 / 0.25 / 0.05 | 0.0 % | 0.00 degrees | 22.6 s |
| Too much integral | 1.8 / 1.2 / 0 | 17.8 % | 6.74 degrees | not settled in 60 s |
| Too aggressive | 8 / 1 / 0 | 9.0 % | 11.55 degrees | not settled in 60 s |
Read the table by symptom. The two P-only runs have a large final error, which is the signature of missing integral action. The heavy-integral run has overshoot and an unfinished swing, the signature of too much integral. The aggressive run has high gain with a process delay and cannot settle, the signature of a loop that is too aggressive for its dead time.
The lab's first challenge accepts several tunings, so the exact gains matter less than being able to explain why a run behaved as it did. The graded run is scored on stability, overshoot, final error, integrated absolute error and settling time.
A trend usually tells you which gain to change. Use this table as a starting point, then change one gain at a time.
| What you see | Likely cause | First thing to try |
|---|---|---|
| Settles short of the setpoint and stays there | No integral action, or too little | Add or raise Ki |
| Slow to approach the setpoint | Kp too low | Raise Kp a little |
| Overshoots then settles | Ki too high, or Kp too high | Lower Ki first, then Kp if needed |
| Cycles up and down at a steady size | Overall gain too high for the process delay | Lower Kp, then Ki |
| Output jumps about on a noisy measurement | Derivative amplifying noise | Lower Kd or filter the measurement |
| Slow to recover after a load change | Ki too low | Raise Ki with care |
You will meet several formal methods. Ziegler-Nichols in its closed-loop form has you raise Kp with Ki and Kd off until the loop cycles steadily, note that ultimate gain Ku and the cycle period Pu, and then compute gains from them. For example, its classic PID rule uses Kp = 0.6 x Ku, an integral time of Pu / 2 and a derivative time of Pu / 8. It is quick to state but tends to give a lively response with noticeable overshoot, and pushing a real process into sustained oscillation is not acceptable on many plants.
Other methods work from a recorded step response instead, so the loop never has to cycle. Cohen-Coon and the internal model control or lambda approaches fit a simple model to the process and derive gains from it. Many controllers also offer an autotune that runs a controlled test and proposes gains. All of them give a starting point that you then check against the real process with the same symptoms table.
Real tuning needs more than gains. It needs the process identified, output limits and alarm limits agreed, a safe operating condition, a way back if the new tuning is worse, and often a controller whose structure (series or parallel form, derivative on error or on measurement, units of integral time) you have read from its manual. Gains from this simulator must not be copied to a real plant. The lab is for learning the trade-offs and a repeatable method in a place where a mistake costs nothing.
Related: the instrumentation training, process control simulator and PID control for PLCs pages.
Runnable simulator field guide
Direct answer
The learner can identify a process response, choose a conservative starting point, compare trends and distinguish tuning problems from measurement, actuator and process faults.
Written for pLC and process-control learners studying proportional, integral and derivative effects, process dynamics, constraints and disturbance response.
The controlled variable, setpoint, manipulated output, units, sample time, process gain, lag, delay, constraints and safe test range.
Measurement and setpoint through error, P/I/D calculation, output limits, actuator and process response back to feedback.
A bounded setpoint and disturbance test with stable response and recorded trend metrics.
Dead time, saturation, noise, derivative kick, integral windup, mode transfer, sample-time and restart.
A sensor, scale, sign, actuator, saturation, process or tuning fault separated from the trend.
The algorithm and parameters verified in the exact target controller under approved process tests.
First verify measurement, output direction, scaling, constraints and process response. Then use a bounded method, change one term at a time and compare recorded rise, overshoot, settling and disturbance recovery.
It generally increases response to current error, but excessive gain can amplify noise or cause oscillation. Process delay and controller form affect the result.
Check sustained error, output limits, actuator feedback, process capacity, integral windup, sign and mode state before changing gains.