How do I set up VFD PID control for constant-pressure pumping?: wiring, scaling and tuning with a worked example
Use a pressure transducer and the drive's PID loop to hold pressure steady as demand changes, with sensor scaling, tuning steps and sleep mode.
Updated 2026-11-28
Short answer
Connect a pressure transducer to the drive's analog input, select that input as the PID feedback, enter the setpoint in the same units, and let the PID loop adjust pump speed to hold pressure at the setpoint. Scale the transducer correctly, set a minimum speed with sleep mode for near-zero demand, and tune the gains step by step. A well-tuned loop holds pressure within a few percent without sustained hunting, and saves energy because a pump at reduced speed draws much less power.
1. How the loop works
The PID block compares the setpoint with the feedback: e = SP − PV. Its output is Kp × e + Ki × ∫e dt + Kd × de/dt, a speed reference in Hz that the drive ramps towards. Proportional action responds to the present error, integral removes the steady error, and derivative reacts to the rate of change. Most pressure loops use P and I only, because derivative amplifies sensor noise.
2. Worked example: scaling the transducer
A 0 to 10 bar transducer with a 4 to 20 mA output gives 1 bar = 16 mA / 10 = 1.6 mA. For a 4.5 bar setpoint the current is 4 + 4.5 × 1.6 = 11.2 mA. In the drive, set the feedback scale so that 4 mA = 0 bar and 20 mA = 10 bar, then enter the setpoint as 4.5 bar. The drive should show about 11.2 mA as 4.5 bar; if it shows a different value, the scaling is wrong.
3. Setup steps
- Set the motor data and control mode first, as in the commissioning checklist in this section.
- Set the minimum speed high enough for motor cooling and for the pump's minimum flow. Check the pump curve for the lowest frequency that still gives adequate head.
- Set the maximum frequency to the motor rating, not higher, unless the pump has been checked for it.
- Enter the setpoint in bar, in the same unit as the sensor.
- Set the PID output limits to the minimum and maximum frequency.
4. Tuning
- Start with a small Kp and a long integral time (10 to 30 s), or with the integral off.
- Step the setpoint by about 10% and watch the pressure response.
- Increase Kp until pressure starts to oscillate, then reduce it to about 60% of that value.
- Shorten the integral time until pressure returns to setpoint within 5 to 10 s, without overshoot.
- Keep derivative at zero unless the sensor signal is clean and the loop is slow.
5. Sleep mode and energy
By the affinity laws, pump power is proportional to speed cubed. At 80% speed the power is about 0.8³ = 51% of full-speed power; at 60% it is about 0.6³ = 22%. Sleep mode stops the pump when the output has sat at minimum speed for a set time and pressure is above setpoint. The pump restarts when pressure drops to a wake level. Set the wake level a little below the setpoint, for example 0.3 bar below, to avoid cycling.
6. Common mistakes
- Wrong transducer scaling, so the pump runs at full speed all the time.
- Transducer on the discharge side of a check valve, which gives false readings when the pump is off.
- Kp too high, which causes hunting that wears the pump and pipework.
- Derivative gain high on a noisy signal, which makes the output jitter.
- Sleep and wake settings left at defaults, so the pump never stops at night.
- Letting the pump run dry or at very low flow for long periods.
7. Check
Log pressure and frequency for an hour at normal demand and again at peak demand. The target is steady pressure, no sustained oscillation, and a sleep period when demand is low.
Energy savings from a higher-efficiency motor
ΔE = P · load · h · (1/η₁ − 1/η₂)
Uses IEC 60034-30-1 minimum efficiencies (4-pole, 50 Hz) at full load, applied to the average load. Real motors often beat the minimum; for exact figures use the efficiencies from both datasheets.
Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →