P vs PI vs PID Controllers: Working Principle and Differences
P vs PI vs PID Controllers – Interactive Tank Level Control Simulator
Process control is an important part of industrial instrumentation and automation. In industries such as power generation, oil and gas, chemical processing and manufacturing, maintaining process variables at their required setpoints is essential for stable and efficient operation.
Three commonly used control strategies are Proportional (P), Proportional Integral (PI) and Proportional Integral Derivative (PID) control.
Although these controllers perform the same basic function, their control actions and responses are different. Understanding these differences helps instrumentation technicians and engineers work with industrial control loops and troubleshoot process control problems.
This interactive simulator demonstrates how P, PI and PID controllers work using a tank level control system. You can change the setpoint, introduce a load disturbance and observe how each controller responds.
The simulator also displays individual P, I and D contributions, helping you understand how each control action influences the process.
1. What Is a P Controller?
P stands for Proportional control.
A Proportional controller generates its output based on the difference between the required setpoint and the actual process variable. This difference is known as the error.
For example, consider a tank where the required liquid level is 50%.
If the actual level is 40%, the controller detects a 10% error and adjusts its output to correct the difference.
The greater the error, the greater the proportional response.
P Controller Working Principle
The proportional control action is calculated using:
[
P=K_p\times Error
]
Where:
- P = Proportional contribution.
- Kp = Proportional gain.
- Error = Setpoint − Process Variable.
How P Control Works
- When the actual level is below the setpoint, the controller increases its output.
- As the tank level approaches the setpoint, the error becomes smaller.
- The proportional contribution decreases as the error decreases.
- When the error becomes zero, the proportional contribution becomes zero.
What Is Offset in P Control?
One limitation of proportional-only control is that it may not eliminate steady-state error.
For example, the tank level may stabilize slightly below the required setpoint even though the controller continues operating.
This remaining difference is called offset.
Industrial Applications of P Control
Proportional control may be used in:
- Simple flow control applications.
- Pressure control systems.
- Level control applications.
- Basic process control loops.
- Applications where a certain amount of offset is acceptable.
The suitability of P control depends on process characteristics and operating requirements.
2. What Is a PI Controller?
PI stands for Proportional Integral control.
A PI controller combines two control actions:
- Proportional action (P).
- Integral action (I).
The proportional component responds to the present error, while the integral component considers the accumulated error over time.
The main purpose of integral action is to eliminate steady-state offset under suitable operating conditions.
PI Controller Working Principle
A simplified PI controller equation is:
[
Output=K_p e(t)+K_i\int e(t),dt
]
Where:
- Kp = Proportional gain.
- Ki = Integral gain.
- e(t) = Present error.
- Integral term = Accumulated error over time.
How PI Control Works
Consider the same tank level example with a setpoint of 50%.
If the actual level remains below 50%, an error continues to exist.
- The proportional action responds to the current error.
- The integral action accumulates the error over time.
- The accumulated integral contribution changes the controller output.
- The controller continues correcting the process until the error approaches zero.
Why Is Integral Action Important?
A P controller may leave a steady-state offset.
By adding integral action, the controller can continue adjusting its output to compensate for the remaining error.
However, excessive integral action can cause overshoot, oscillations and poor settling behaviour.
Industrial Applications of PI Control
PI controllers are commonly used in:
- Flow control loops.
- Pressure control loops.
- Liquid level control systems.
- Temperature control applications.
- General industrial process control.
PI control is often selected when accurate steady-state control is required and derivative action is not necessary.
3. What Is a PID Controller?
PID stands for Proportional Integral Derivative control.
A PID controller combines three control actions:
- Proportional action (P).
- Integral action (I).
- Derivative action (D).
It considers the present error, accumulated error and rate of change of error.
This provides additional information about how the process is responding.
PID Controller Working Principle
A simplified PID controller equation is:
[
Output=K_p e(t)+K_i\int e(t),dt+K_d\frac{de(t)}{dt}
]
Where:
- Kp = Proportional gain.
- Ki = Integral gain.
- Kd = Derivative gain.
- e(t) = Present error.
- Integral term = Accumulated error.
- Derivative term = Rate of change of error.
How PID Control Works
Each control action has a different responsibility.
Proportional Action (P)
Responds to the present error and provides an immediate correction.
Integral Action (I)
Accumulates error over time and helps eliminate steady-state offset.
Derivative Action (D)
Responds to the rate of change of error. It can help anticipate process movement and improve damping when properly tuned.
Why Is Derivative Action Used?
Imagine a tank level is increasing rapidly and approaching the setpoint.
The derivative component responds to the rate of change and can help reduce excessive movement towards the target.
This can improve dynamic response and reduce overshoot in suitable applications.
However, derivative action is sensitive to measurement noise. Industrial PID controllers generally use filtering to reduce this problem.
Industrial Applications of PID Control
PID controllers are used in:
- Temperature control systems.
- Pressure control applications.
- Flow control systems.
- Motor speed control.
- Process applications requiring improved dynamic response.
The actual controller selection depends on process characteristics, measurement quality and tuning requirements.
4. Difference Between P, PI and PID Controllers
The main difference between these controllers is the number of control actions used to calculate the output.
P Controller – Proportional
- Uses one control action.
- Responds to present error.
- Provides immediate correction.
- May leave steady-state offset.
PI Controller – Proportional Integral
- Uses two control actions.
- Responds to present and accumulated error.
- Helps eliminate steady-state offset.
- Excessive integral action can cause oscillations.
PID Controller – Proportional Integral Derivative
- Uses three control actions.
- Responds to present error, accumulated error and rate of change.
- Can improve damping and dynamic response.
- Requires appropriate tuning and derivative filtering.
Remember:
- P considers the present error.
- I considers accumulated error over time.
- D considers the rate of change of error.
5. Understanding the P vs PI vs PID Simulator
The simulator displays three tank level control systems side by side.
Each section represents a different control strategy:
- First section – P Controller.
- Second section – PI Controller.
- Third section – PID Controller.
All three systems receive the same setpoint and load disturbance conditions. This allows you to compare their responses under identical simulated conditions.
P Controller Animation
The first section demonstrates proportional-only control.
It displays:
- Animated tank level.
- Setpoint reference.
- Proportional contribution bar.
- Error indication.
- Peak level indication.
- Controller output percentage.
- Operating status.
Observe how the tank level changes when the setpoint is modified.
The proportional contribution changes according to the difference between the setpoint and the actual tank level.
This helps you understand how the present process error influences controller output.
PI Controller Animation
The second section demonstrates proportional and integral control.
In addition to the proportional contribution, the simulator displays an integral contribution bar.
Observe how the integral contribution develops as the controller responds to the difference between the setpoint and the actual tank level.
This demonstrates how accumulated error influences controller output and helps correct steady-state offset.
PID Controller Animation
The third section demonstrates proportional, integral and derivative control.
It displays three individual contribution bars:
- P – Present error contribution.
- I – Accumulated error contribution.
- D – Rate of change contribution.
Observe how the derivative contribution changes when the tank level starts moving.
The simulator uses a filtered estimate of the process-variable rate to calculate the derivative contribution.
This provides a visual explanation of how all three control actions work together.
6. How to Use the Simulator
The simulator provides four main operating controls and a fullscreen option.
Setpoint
Select SETPOINT to change the target tank level.
The simulator switches between:
- 50% level.
- 70% level.
Observe how all three controllers respond to the same setpoint change.
Pay attention to:
- How quickly the tank level starts moving.
- How the controller output changes.
- How the error indication changes.
- How the process approaches the new target.
This exercise helps you understand controller response during a setpoint change.
Load
Select LOAD to change the simulated process load.
The simulator switches between:
- 40% load.
- 80% load.
A load disturbance represents a change in process demand.
For example, consider a tank with continuous inlet and outlet flow.
If the outlet demand increases, the tank level may decrease unless the inlet flow is adjusted accordingly.
Observe how the three controllers respond to the changed load condition.
This demonstrates the importance of disturbance rejection in process control.
Auto Demo
Select AUTO DEMO to start the automatic demonstration.
The simulator automatically alternates between setpoint and load changes.
Select STOP DEMO to stop the automatic sequence.
This feature is useful for comparing the three controller responses without manually operating the controls.
Reset
Select RESET to restore the initial simulation conditions.
The simulator restores:
- Setpoint to 50%.
- Load to 40%.
- Initial controller states.
- Initial tank level conditions.
Use RESET whenever you want to start a fresh comparison.
Full Screen
Select FULL SCREEN to expand the simulator.
This is useful for:
- Instrumentation training sessions.
- Classroom demonstrations.
- Technical presentations.
- Detailed observation of controller behaviour.
7. Understanding the P, I and D Contribution Bars
One of the useful features of this simulator is the individual display of controller contributions.
Each bar represents a different control action.
P – Proportional Contribution
The blue bar represents the proportional response to the present error.
A larger error produces a larger proportional contribution, subject to the controller’s output limits.
Observe how the blue bar changes when the tank level moves away from or towards the setpoint.
I – Integral Contribution
The green bar represents the accumulated integral contribution.
It changes as the error accumulates over time.
This helps explain how integral action compensates for persistent process error.
D – Derivative Contribution
The orange bar represents the derivative contribution.
It responds to the rate of change of the process variable.
When the tank level changes rapidly, the derivative contribution can become more significant.
Setpoint Reference
The yellow dashed line indicates the required tank level.
Compare the actual liquid level against this reference to understand the process error.
8. Understanding the Simulator’s Process Indications
Each controller section also displays three numerical indications.
ERR – Error
Displays the difference between the setpoint and the actual tank level.
[
Error=SP-PV
]
Where:
- SP = Setpoint.
- PV = Process Variable.
A positive error means the actual level is below the setpoint.
A negative error means the actual level is above the setpoint.
PEAK – Peak Level
Displays the highest tank level recorded during the current simulation.
This is useful for observing overshoot after a setpoint change or process disturbance.
OUT – Controller Output
Displays the controller output as a percentage.
The output represents the simulated control action used to influence the inlet flow.
Operating Status
The simulator displays the current process status:
- MOVING – The process is still responding.
- ON TARGET – The process is sufficiently close to the setpoint according to the simulator’s status criteria.
- OFFSET – The process has stabilized but remains outside the target tolerance.
These indications help you compare the behaviour of the three control strategies.
9. Practical Exercises for Instrumentation Technicians
Try these exercises to understand the differences between P, PI and PID control.
Exercise 1 – Compare the Initial Conditions
- Open the simulator.
- Observe all three tank level displays.
- Check the initial setpoint.
- Compare the P, PI and PID contribution bars.
- Observe the error, peak and output indications.
- Identify the differences between the three controller configurations.
Exercise 2 – Observe a Setpoint Change
- Select SETPOINT.
- Observe the setpoint changing from 50% to 70%.
- Watch all three tank levels.
- Compare the proportional contribution.
- Observe how integral action changes in the PI and PID sections.
- Watch the derivative contribution in the PID section.
- Compare how each simulated process approaches the new target.
Exercise 3 – Introduce a Load Disturbance
- Select RESET.
- Observe the initial tank level conditions.
- Select LOAD.
- Observe the load changing from 40% to 80%.
- Monitor the tank level response.
- Compare how the three controllers react to the disturbance.
- Observe the controller output and process error.
Exercise 4 – Observe Derivative Action
- Select RESET.
- Observe the PID section.
- Select SETPOINT.
- Watch the tank level start moving towards the new target.
- Observe the orange derivative bar.
- Compare its response with the proportional and integral contributions.
Exercise 5 – Automatic Demonstration
- Select AUTO DEMO.
- Observe the automatic setpoint and load changes.
- Compare all three controller responses.
- Observe the peak level and error indications.
- Select STOP DEMO to stop the sequence.
These exercises help instrumentation technicians understand controller behaviour through practical visual observation rather than relying only on equations.
10. Practical Applications in Instrumentation and Control Systems
Understanding P, PI and PID control is important when working with industrial control systems.
Level Control
Tank level control is commonly used in power plants, water treatment facilities and chemical processing industries.
Controllers adjust the inlet or outlet flow to maintain the required liquid level.
PI and PID strategies may be used depending on process characteristics and control requirements.
Flow Control
Flow controllers regulate the movement of liquids, gases and steam through pipelines.
PI control is commonly used to maintain the required flow rate by adjusting a control valve or other final control element.
Pressure Control
Pressure controllers maintain the required pressure in vessels, pipelines and process equipment.
The controller adjusts a final control element to correct deviations from the required pressure.
Temperature Control
Temperature control loops are widely used in boilers, heaters, heat exchangers and furnaces.
PID control may be selected when the application requires suitable dynamic response and improved damping.
Motor Speed Control
PID control is also used in motor speed regulation through suitable drive systems.
The controller compares the actual motor speed with the required speed and adjusts the drive output to reduce the error.
11. Important Points to Remember
- P stands for Proportional control.
- PI stands for Proportional Integral control.
- PID stands for Proportional Integral Derivative control.
- P action responds to present error.
- I action accumulates error over time.
- D action responds to the rate of change of error.
- Proportional-only control may leave steady-state offset.
- Integral action helps eliminate steady-state offset under suitable conditions.
- Derivative action can improve damping and reduce overshoot when properly tuned.
- Excessive integral action can cause oscillations and overshoot.
- Derivative action can amplify measurement noise.
- Controller tuning is important for stable process operation.
- The most suitable controller depends on process characteristics and application requirements.
Conclusion
P, PI and PID controllers are fundamental control strategies used in industrial instrumentation and automation.
Although all three controllers perform the same basic task of correcting process error, their control actions produce different responses.
A P controller responds to the present error, a PI controller also considers accumulated error, and a PID controller additionally considers the rate of change of error.
The easiest way to understand these differences is to observe how each controller responds to the same process conditions.
Use this interactive tank level simulator to change the setpoint, introduce load disturbances and compare the response of P, PI and PID control.
For instrumentation technicians and engineers, understanding these control strategies provides a strong foundation for working with DCS, PLC, control valves, process control loops and industrial automation systems.
Training Note: This simulator uses a simplified mathematical tank model to demonstrate P, PI and PID controller behaviour. It is intended for educational purposes. Actual industrial controller performance depends on controller configuration, tuning parameters, process dynamics, output limits, valve characteristics, measurement quality and other operating conditions. The simulator should not be treated as a replacement for actual DCS or PLC control logic.
