How to Commission a VFD Process PID Loop for Pressure
Most modern drives include a built-in PID controller so a pump can hold a pressure or flow setpoint without a separate loop controller, and commissioning it well turns a variable-speed pump into a steady, self-regulating machine. Done carelessly, the same feature hunts, overshoots, or drifts. This page is for the technician setting up a drive's onboard PID for pressure control. It covers scaling the feedback signal, setting the setpoint and control action correctly, tuning the gains conservatively, and confirming the loop holds without oscillating.
VFD Process PID Commissioning in one line: To commission a VFD process PID loop for pressure, first scale the feedback transmitter so the drive reads pressure correctly across its 4-20 mA range, set the setpoint in the same engineering units, and choose the control action so a rise in pressure slows the pump on a direct-acting pump. Then tune conservatively: start with low gain and slow integral, raise the gain until the response is brisk but stable, and add just enough integral to remove the offset. Verify the pump holds the setpoint through a load change without hunting before leaving it in automatic.
Scale the Feedback and Set the Setpoint
The loop is only as good as the pressure signal it reads, so scale the feedback first. Confirm the drive's PID feedback input matches the transmitter's signal type and range, so that 4 mA maps to the transmitter's zero pressure and 20 mA maps to its full-scale pressure. This is the same analog-scaling discipline used for a speed reference, covered in the guide on verifying VFD analog reference scaling, applied here to the feedback instead of the command. A mis-scaled feedback makes every setpoint and gain meaningless.
Enter the setpoint in the same engineering units the feedback is scaled to, so the number the operator sets means the pressure they expect. If the feedback reads in one unit and the setpoint in another, the loop controls to the wrong target. Confirm the drive displays the process variable in real units, and check that reading against an independent gauge on the system so you know the loop sees true pressure, not a scaling artifact.
Decide the control action, because getting it backward makes the loop run away. On a pump raising system pressure, higher pump speed means higher pressure, so when pressure rises above setpoint the loop must slow the pump, which is one action, and when pressure falls it must speed up. Set the PID action so the correction opposes the error rather than reinforcing it. A loop wired or configured with the wrong sense drives the pump to a rail instead of holding the setpoint, which is easy to catch on the first automatic test and dangerous to leave.
Tune the Gains Conservatively
Start gentle and firm it up. Begin with a low proportional gain and a slow integral so the loop is sluggish but stable, then raise the proportional gain in steps until the pump responds briskly to a setpoint change without oscillating. Proportional gain sets how hard the loop reacts to error, and pushing it too high makes the pressure hunt around setpoint. The general behavior of these terms is described in the page on PID control, and the same principles apply to a drive's onboard loop.
Add integral action to erase the steady offset. Proportional action alone leaves the pressure a little short of setpoint under load; the integral term slowly closes that gap. Add just enough integral to remove the offset without making the loop sluggish or driving it into a slow oscillation. Too much integral, or too fast, makes the loop overshoot and wander, so increase it cautiously and watch the settling. The way to set these terms methodically is laid out in the guide on PID tuning.
Guard against windup on a pump that can hit its limits. When a pump reaches maximum or minimum speed and still cannot meet the setpoint, the integral term can keep accumulating, then overshoot badly when the load returns, a problem addressed by anti-windup PID control. Confirm the drive's anti-windup is active, because a pressure loop that saturates at full speed during a high-demand event and then slams the pressure high when demand drops is both a control problem and a mechanical stress on the system.
Verify the Loop Holds and Hand It Over
Prove the loop with a real disturbance, not just a quiet bench. Change the setpoint and watch the pressure move to it cleanly, then create a load change, such as opening or closing a downstream valve, and confirm the pump adjusts speed to hold pressure without hunting or a long droop. A well-tuned loop settles quickly with little overshoot; a loop that oscillates or takes a long time to recover needs the gains revisited before it goes into service.
Check the loop across the pump's real operating band, including its speed limits. A loop tuned at a comfortable mid-range flow can misbehave near minimum speed, where a skip frequency or a minimum-speed clamp changes how the pump responds, or near maximum speed, where the pump can no longer add pressure. If the pump runs a pressure loop like the one described for an irrigation pump VFD pressure-control loop, walk the demand across its full range so no operating point is left untested.
Document the tuning and connect the loop to monitoring. Record the feedback scaling, the setpoint, the action, and the final gains so the loop can be understood and restored later. Because the pressure setpoint, the measured pressure, and the pump speed are all values a monitoring system can trend continuously, a loop that starts to hunt or drift after months in service shows up as a change in the recorded pattern, giving early warning that a gain needs revisiting or the process has shifted since commissioning.
Frequently Asked Questions
How do I know if the VFD PID action is set the right way?
Put the loop in automatic and nudge the setpoint. If a higher setpoint speeds the pump up and pressure rises toward it, the action is correct for a pump raising system pressure. If a higher setpoint slows the pump or the pressure runs away from the setpoint, the action is inverted and must be switched. The safe way to check is to test the response to a small setpoint change before the loop controls anything critical, because a wrong action drives the pump to a rail.
Why does my pump pressure hunt when the PID is in automatic?
Hunting usually means the gains are too aggressive for the system. A proportional gain set too high makes the loop react hard to small errors and oscillate around setpoint, and too much or too fast integral makes it overshoot and wander. Back the proportional gain down until the oscillation stops, then re-add integral slowly to remove the offset. Verify the pump is not bouncing off a speed limit or a skip frequency, which can also make a loop appear to hunt.
Should I use the drive's built-in PID or a PLC loop?
The drive's built-in PID is convenient for a single-pump pressure or flow loop because it keeps the control local and needs no extra hardware, and it is well suited to straightforward single-variable control. A PLC loop makes sense when the control interacts with other logic, needs coordination across multiple pumps, or requires features the drive's PID lacks. For a simple hold-a-pressure duty on one pump, the onboard PID is usually the simpler, self-contained choice.
Automation services
Need help turning this into a working system?
Merobix integrates SCADA, programs Allen-Bradley and Siemens PLCs, and designs and fabricates industrial control panels.
Meeting requests are reviewed before confirmation.