PID Control for Pumps: How Constant Pressure Works
PID control continuously adjusts pump operation to bring a measured pressure, flow or liquid level toward a target. In a water booster system, for example, it helps maintain delivery pressure as demand changes. The pump controller evaluates sensor feedback and produces a speed demand for the variable frequency drive.
PID stands for proportional, integral and derivative. These are three control actions with different jobs. A successful PID loop does not necessarily use all three: the appropriate combination depends on the hydraulic system, measurement quality and required response.
1. Setpoint, Feedback and Error
The desired value is the setpoint, or SP. The measured process value is the PV. A common error definition is e = SP − PV. If the pressure target is 4 bar and the measured pressure is 3.4 bar, the error is +0.6 bar.
Where increasing pump speed raises the measured discharge pressure, that pressure deficit should cause the controller to increase its speed demand. If demand falls and pressure rises, the speed demand should decrease. Manufacturers do not always use “normal,” “inverse,” “direct” and “reverse” in the same way, so verify the physical response rather than relying on the parameter name alone.
The location of the pressure sensor determines what the loop actually regulates. Holding pressure at the pump discharge does not guarantee the same pressure at the far end of a long pipe. In a circulation system, the relevant target may instead be differential pressure between selected points.
2. Proportional Action: Responding to the Present Error
The proportional term reacts to the current error. With other conditions unchanged, a larger error produces a larger proportional contribution. A substantial pressure deficit therefore calls for a stronger correction, while that contribution becomes smaller as the pressure approaches its target.
Too little proportional gain can produce a weak response. Too much can make speed and pressure oscillate. Proportional-only control also leaves a steady offset in many applications. Understanding the separate P, I and D actions explains why integral action is commonly added to remove that remaining error.
3. Integral Action: Correcting a Persistent Offset
The integral term accumulates error over time. If pressure remains slightly below target, it progressively adjusts the controller output to remove the offset. When the error reaches zero, the integral contribution does not have to disappear; it can retain the output contribution needed to keep the pump at its operating speed.
Stronger integral action is not automatically better. An aggressive setting can cause overshoot and prolonged oscillation. When adjusting PID gains, first establish how the controller expresses its integral setting.
Integral gain Ki and integral time Ti are different parameters. In the common parallel form, increasing Ki strengthens integral action. In common integral-time implementations, reducing Ti strengthens it when the other settings remain unchanged. Numerical settings cannot be copied reliably between drive models without checking the equation, units and signal scaling.
4. Derivative Action—and Why Many Pumps Use PI
Derivative action responds to the rate of change. When appropriate, it can add damping and reduce overshoot. It is also sensitive to measurement noise, so rapid fluctuations in the sensor signal can produce unnecessary changes in the controller output.
Many pressure-control applications work well with PI control, meaning that derivative action is disabled. Consider adding D only when the process response justifies it and the feedback signal is suitable. Practical controllers may filter the derivative term and may calculate it from the measured process value rather than directly from the error.
Process delays and sensor filtering affect how the loop responds. Derivative action is not an automatic remedy for poor sensor placement or excessive measurement delay.
5. Get the Pressure Scaling Right First
The controller must convert its feedback signal into the correct engineering units. For a linear 0–10 bar transmitter with a 4–20 mA output, configure 4 mA as 0 bar and 20 mA as 10 bar. In this example, the ideal signal at 4 bar is 10.4 mA.
If the analog input is accidentally configured for 0–20 mA, or the pressure range is entered incorrectly, the controller will regulate against a false measurement. A broken signal wire should not be treated as a valid low-pressure reading. Configure the available signal-loss detection and an appropriate fault response separately.
A 4 bar setpoint is not a fixed frequency command. The speed needed to maintain that pressure changes with demand and system conditions. The requested pressure must also remain within the ratings of the pump and installation.
6. Should the PID Run in the Drive or the PLC?
For a single-pump installation, the drive’s built-in process PID function may be sufficient. The transmitter connects to the drive, which regulates its speed demand from the process error. A more complex plant may benefit from PID control in a PLC, particularly when pump staging and other equipment must be coordinated.
Two independent controllers trying to regulate the same pressure without a defined relationship can work against each other. Assign responsibility clearly. A process loop commanding speed while the drive manages the motor’s electrical operation is an intentional control structure; two unrelated pressure loops fighting over the same command are not.
7. Output Limits and Integral Windup
A pump may reach its maximum permitted speed while pressure remains below target. Asking for more speed cannot create additional capacity. Anti-windup helps prevent or limit unnecessary integral accumulation when the output is constrained. Without suitable handling, the stored integral contribution can keep the output too high after demand falls, causing pressure overshoot.
Minimum and maximum speed, current limits and drive ramps need to work with the PID loop. Where a PLC generates the demand and the drive applies additional limits, integral management should account for those actual constraints. Among the fundamental limitations of PID control is that it cannot increase pump capacity, motor rating or pipe pressure capability.
8. A Practical Approach to Commissioning
Validate the hydraulics and measurement first. Check rotation, water availability, valve positions, sensor scaling and motor data. If the pump performance curve cannot meet the required pressure and flow, increasing controller gain will not solve the problem.
Next, verify the control direction and operating limits. A small, controlled demand change should produce the correct response. Use the manufacturer’s application guidance for initial settings, change one parameter at a time and observe the result. There is no single set of P, I and D values that suits every pump installation.
Then test the operating range. Include low demand, high demand, sleep and wake-up, and any assist-pump transitions. Stable control means an acceptable response to changing conditions, not just a steady pressure display during one test.
9. Pressure Hunting Is Not Always a Tuning Problem
Regular oscillation in both pressure and frequency can point to excessive gain, aggressive integral action or delay. Fast, irregular jumps in the measured pressure suggest checking the sensor, wiring, electrical interference, trapped air or genuine hydraulic transients. More filtering may smooth the reading, but it also delays the information reaching the controller.
Continuous maximum-speed operation calls for checks on leakage, demand, pump capacity, suction conditions and feedback accuracy. Frequent stopping and restarting may involve sleep thresholds, the pressure vessel or minimum run times. These distinctions help separate PID-related problems from hydraulic and measurement faults.
Recording setpoint, measured pressure, frequency and current on the same timeline in SCADA or drive monitoring software makes diagnosis easier. PID is a regulating function: it does not replace the required dry-run, overpressure or motor protection functions. Blindly commanding maximum speed after a sensor failure is not a general-purpose fallback strategy.
