The basic loop of constant-pressure water supply is: a pressure transmitter measures the pipe pressure as the PID feedback, the PID output sets the VFD frequency, and the frequency changes the pump speed to hold the pressure at the setpoint. It sounds simple, but the hard parts are the signal wiring, the acceleration and deceleration, and the interlocks and protection. The sections below take each in turn.
For a single pump, one VFD driving one pump is enough, with the PID output going straight out as the frequency setpoint. Multi-pump systems also need pump rotation and duty/standby or mains/inverter changeover so wear is even. The approach is the same: pressure is the controlled variable and frequency the manipulating variable, and the loop adjusts frequency to hold pressure.
Wire the pressure transmitter to an analog input as 4-20 mA or 0-10 V, and give the VFD its frequency setpoint either as an analog signal or over communication such as PROFINET or Modbus. An analog cable should be shielded and earthed, and run in a separate duct from power cables to reduce common-mode noise. Use single-point earthing for the signal ground to avoid a ground loop.
Organise the program as: acquire pressure, scale it to engineering units, compare with the setpoint, run PID_Compact, clamp and ramp the output, then send it to the VFD setpoint. The PID sample time should match the program call cycle, and the output should be clamped to the VFD's permitted frequency range before it is sent.
Set the VFD's frequency setpoint source, acceleration and deceleration times, upper and lower frequency limits, and protection parameters. An acceleration time that is too short produces a pressure surge (water hammer), so in general set it slowly. A pump should not start and stop frequently: use a lower frequency limit to maintain a small flow, or set sleep and wake thresholds.
At minimum you need over-pressure protection, low-pressure protection, pump overload and dry-run detection. The PID output must work with these: limit the output or reduce frequency on over-pressure, switch to manual or stop the pump on a broken wire, and forbid starting when there is no water, so the pump does not run dry and seize.
| Parameter or stage | Setting | Typical approach | Note |
|---|---|---|---|
| Pressure setpoint | PID setpoint | Engineering units from the HMI | Bound to a sensible range |
| Feedback signal | Analog input | 4-20 mA over the range | Shielded, separate routing |
| PID output | Frequency setpoint | Clamp to frequency limits | Clamp before sending |
| Acceleration/deceleration | VFD ramp | Set slowly against water hammer | A compromise with hammer |
| Sample time | Call cycle | Match the program cycle | Too long lags the loop |
| Integral time | Removes steady-state error | Tighten from large to small | Too small oscillates |
| Over-pressure interlock | Limit the output | Limit frequency or stop the pump | Independent protection |
| Broken-wire handling | Hold or switch to manual | Use the 4-20 mA criterion | Enter a safe state |
| Multi-pump changeover | Rotation and sleep | Even wear, avoid frequent starts | Changeover needs interlocking |
When constant-pressure water supply will not settle, it is usually not the PID parameters but the ramp times and the interlocks. Set the VFD ramp slowly and complete the dry-run and over-pressure protection first, then adjust the proportional and integral terms; it normally takes one or two attempts to steady. Multi-pump systems need the rotation and sleep rules settled before any tuning.
The speed control and protection of electrical drive systems follow the GB/T 12668 series, Adjustable speed electrical power drive systems. The electrical safety and earthing of the equipment follow GB 5226.1 and the equivalent international standard IEC 60204-1, and the control programming follows GB/T 15969.3 (equivalent to IEC 61131-3). The exact VFD parameters and motor protection settings are as stated in the manufacturer's manual.
Isolate and prove dead, apply lockout/tagout and confirm the pipework is depressurised before commissioning or servicing. Pressure and electrical interlocks that carry a safety function should be provided independently, not rely on software alone.