Process Visualization
PID Output Breakdown
Simulation Speed
Speed up the simulation to see PID response faster. 1x = real-time, 100x = 100× faster.
Control Mode
PID Tuning Parameters
Disturbance (Outflow)
Simulates a drain valve or process demand. Increase to challenge the controller.
Trend Chart (60 seconds)
📚 What is PID Control?
A PID controller continuously calculates an error value as the difference between a desired setpoint (SP) and a measured process variable (PV), then applies a correction based on Proportional, Integral, and Derivative terms.
Where e = SP - PV (the error)
🔴 P - Proportional (Kp)
The P term produces an output proportional to the current error. Larger error = larger correction.
- High Kp: Fast response, but may overshoot and oscillate
- Low Kp: Slow, sluggish response
- Limitation: P-only control always has steady-state error (offset)
🟠 I - Integral (Ki)
The I term accumulates error over time. It eliminates steady-state error by adding correction until error reaches zero.
- High Ki: Eliminates offset quickly, but can cause overshoot and slow oscillation
- Low Ki: Slow to eliminate offset
- Danger: "Integral windup" if error persists (we use anti-windup limits)
🟣 D - Derivative (Kd)
The D term responds to the rate of change of error. It provides "damping" to reduce overshoot and oscillation.
- High Kd: Strong damping, may slow response or amplify noise
- Low Kd: Less damping, more overshoot
- Note: D is sensitive to noise in real systems
⚡ Disturbance Rejection
A good controller rejects disturbances - unexpected changes in the process. The outflow slider simulates a drain valve opening.
🎯 Tuning Guidelines
Conservative (slow, no overshoot):
Kp=10, Ki=0.2, Kd=5
Aggressive (fast, some overshoot):
Kp=40, Ki=1.0, Kd=2
Ziegler-Nichols method:
- Set Ki=0, Kd=0
- Increase Kp until sustained oscillation (Ku)
- Measure oscillation period (Tu)
- Set: Kp=0.6×Ku, Ki=1.2×Ku/Tu, Kd=0.075×Ku×Tu
🔧 Manual Mode
In MANUAL mode, you directly control the inflow valve. The PID is disconnected. Use this to:
- Understand the process dynamics
- Perform bump tests for tuning
- Take over during controller problems