MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you implement constant-pressure water supply with S7-1200 PID and a VFD?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How do you implement constant-pressure water supply with S7-1200 PID and a VFD?

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.

1. System composition and control approach

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.

2. Signal wiring

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.

3. PLC program structure

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.

4. VFD and motor settings

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.

5. Interlocks and protection

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.

6. Key constant-pressure parameters and settings at a glance

Parameter or stageSettingTypical approachNote
Pressure setpointPID setpointEngineering units from the HMIBound to a sensible range
Feedback signalAnalog input4-20 mA over the rangeShielded, separate routing
PID outputFrequency setpointClamp to frequency limitsClamp before sending
Acceleration/decelerationVFD rampSet slowly against water hammerA compromise with hammer
Sample timeCall cycleMatch the program cycleToo long lags the loop
Integral timeRemoves steady-state errorTighten from large to smallToo small oscillates
Over-pressure interlockLimit the outputLimit frequency or stop the pumpIndependent protection
Broken-wire handlingHold or switch to manualUse the 4-20 mA criterionEnter a safe state
Multi-pump changeoverRotation and sleepEven wear, avoid frequent startsChangeover needs interlocking

7. Notes

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.

8. References

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.

9. Points to watch

⚠️ Three common traps:
1. Setting the acceleration time too short, so starting the pump produces water hammer that shocks the pipes and valves while the gauge shows an abnormal spike;
2. Not handling a broken pressure feedback, so the PID regulates on a bad value and the pump ramps to its upper frequency or runs dry;
3. Missing or bypassed interlocks, so the pump and motor keep running in an unsafe state under dry-run or overload conditions.

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.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL