Field fix / guideDesign DocumentVendor-agnostic (IEC 61131-3)Water / Wastewaterindustrial-automation

Multi-Pump Distribution System with Pressure Regulation — Control Design

Shared by TSIMEREZIVO Team · 4 Oct 2026 · 62 views

# Water/Wastewater Template: Multi-Pump Distribution System with Pressure Regulation ## 1. Overview **Purpose:** Manage water distribution from treatment plant to customers via a **variable-speed pump network**. System must maintain constant downstream pressure despite fluctuating demand (day: 700 m³/h peak; night: 80 m³/h base). Uses pressure feedback and multiple pump stages to minimize energy (continuous operation at part-load wastes ~30% energy) while guaranteeing supply during peak demand. **Industry Standards:** - AWWA (American Water Works Association) M7 (Distribution Pumping Systems) - EPA Drinking Water Standards (40 CFR Parts 141–143) - ANSI/AWWA G301 (Software documentation for water utilities) - ASME B29.1 (Centrifugal pump design and performance) - NFPA 79 (Electrical installation safety) **Critical Constraints:** - **Constant pressure setpoint:** ±0.5 bar (50–150 m³/h demand must not vary pressure >±0.5 bar) - **Pump efficiency:** Centrifugal pump efficiency is peak at ~85% of rated flow; running 25% or 150% rated flow → efficiency ↓ to 60–65% - **Cavitation risk:** NPSH (net positive suction head) must exceed pump requirement; cold water OK, hot water can cavitate - **Prime loss:** Pump must remain primed (water-filled); air leaks → cavitation → seal failure - **Demand elasticity:** 4 AM = 80 m³/h (night); 8 AM = 400 m³/h (showers); 2 PM = 600 m³/h (irrigation + industrial); 11 PM = 200 m³/h - **Redundancy:** 2 or 3 pump configuration; single pump failure → pressure drop acceptable for <2 hours - **Backpressure:** Transmission mains have friction loss; larger main (add pump) reduces backpressure loss $f_L V^2 / (2gD)$ **Relevant Physics:** - **Pump curve:** Head (m) vs. Flow (m³/h); describes operating point where pump head = system resistance - **System curve:** $H_{sys} = H_0 + k \cdot Q^2$ (static head + friction; k = friction factor) - **Operating point:** intersection of pump curve and system curve - **Power:** $P = \rho g Q H / \eta$ (joule/sec = watts; ρ = 1000 kg/m³, g = 9.81, η = pump efficiency) - **Pressure (gauge):** $P_{gauge} = \rho g H$ (bar/10m head) --- ## 2. Control Philosophy **Challenge:** Demand varies 8.75:1 (700 / 80 m³/h). A fixed-speed pump at 700 m³/h rated flow would run at 11% flow at night, wasting energy and creating cavitation risk. Solution: **demand-driven pump staging with VFD modulation**. ``` STRATEGY: Multi-Pump VFD with Pressure Feedback TIER 1: Master Pressure Controller Input: Downstream pressure (bar, at system boundary) SP: 4.0 bar constant (typical for small systems) Output: Pump demand signal (0–100%) TIER 2: Pump Selection Logic Demand <25% of Pump1: Run Pump1 slow (VFD 25–100%), idle Pump2 & Pump3 Demand 25–65%: Run Pump1 at 100%, add Pump2 slow (VFD modulates) Demand >65%: Run Pump1 + Pump2 full, modulate Pump3 for fine control TIER 3: Individual Pump VFD Each pump has own frequency command (30–60 Hz typical) Hysteresis band: ±0.3 bar (don't add/drop pump on minute pressure ripples) TIER 4: Safety Checks - NPSH monitor: must stay >0.5 m (supply tank depth, suction line losses) - Thermal sensing: if discharge temp >50°C → recirculate via bypass valve - Prime loss detection: pressure ramp too slow → air in line → manual prime - Leak detection: flow vs. demand mismatch >10% → alert for main break ``` **Why This Works:** - Each pump runs near sweet spot on its curve (high efficiency) - VFD reduces speed smoothly (no on/off banging) - Pressure stays constant ± small band (customer taps deliver same flow state) - Energy cost ↓ 30–40% vs. fixed-speed + throttle --- ## 3. Control Logic **Pseudocode: Multi-Pump Distribution System** ```pascal { === WATER DISTRIBUTION PUMP CONTROL === } { 3-pump system: variable speed + manual switchover for redundancy } PROCEDURE Distribution_Pump_Master CONSTANTS NUM_PUMPS = 3 PRESSURE_SETPOINT = 4.0 { bar, constant downstream pressure } PRESSURE_HYSTERESIS = 0.3 { ±0.3 bar deadband for pump switch } PRESSURE_MIN_SAFE = 2.5 { bar, minimum for supply } PRESSURE_MAX_RELIEF = 5.5 { bar, relief valve setting } PUMP_RATED_FLOW_M3H = [250, 250, 250] { m³/h per pump } VFD_MIN_HZ = 30 VFD_MAX_HZ = 60 PUMP_SWITCH_HYSTERESIS_M3H = 50 { don't switch at small flow changes } NPSH_MIN_REQUIRED = 0.5 { meters } REC_PUMP_POWER_KW = [65, 65, 65] { rated power each pump } VARIABLES { Measured inputs } discharge_pressure : REAL { bar, downstream system pressure } discharge_flow : REAL { m³/h, totalizer (mag flowmeter) } supply_tank_level : REAL { m, depth } discharge_temp : REAL { °C } suction_pressure : REAL { bar, absolute (supply tank + lift) } npsh_available : REAL { m, net positive suction head } npsh_required : REAL { m, pump spec } cavitation_risk : BOOLEAN { 0/1 } leak_detected : BOOLEAN { 0/1 } { Pump state } pump_running[1..NUM_PUMPS] : BOOLEAN { 0/1, each pump on/off } pump_vfd_frequency[1..NUM_PUMPS] : REAL { Hz, for each running pump } pump_actual_flow[1..NUM_PUMPS] : REAL { m³/h, from curve estimate } pump_power_kw[1..NUM_PUMPS] : REAL { kW, measured } { System state } total_demand_m3h : REAL { calculated from down-stream flow } demand_change_rate : REAL { m³/h per minute } pressure_error : REAL { setpoint - measured } pressure_error_integral : REAL { for integral control } { VFD outputs } total_pump_demand_pct : REAL { 0–100% aggregate demand } pump_switch_needed : BOOLEAN { 0/1, should add/drop pump } { Bypass & relief } bypass_valve_cmd : REAL { 0–100%, recirculation } relief_valve_open : BOOLEAN { 0/1, backpressure relief } { Alarms } alarms_active : ARRAY[*] OF STRING system_fault_level : ENUMERATION { NORMAL / WARN / CRIT } BEGIN { === SENSOR ACQUISITION === } discharge_pressure = Read_Downstream_Pressure() { bar, 0–10 bar transmitter } discharge_flow = Read_Flow_Totalizer() { m³/h, magnetic meter } supply_tank_level = Read_Tank_Level() { m, ultrasonic } discharge_temp = Read_Discharge_Temperature() { °C } suction_pressure = Read_Suction_Pressure() { bar absolute } { Pump power (optional, from VFD bus) } FOR p = 1 TO NUM_PUMPS DO IF pump_running[p] THEN pump_power_kw[p] = Read_Pump_Power(p) END IF END FOR { === NPSH CALCULATION === } { Available NPSH = pressure at suction + static lift - vapor pressure - friction losses } vapor_pressure_bar = Get_Vapor_Pressure_At_Temperature(discharge_temp) suction_line_loss_bar = 0.1 { estimated friction } npsh_available = (suction_pressure - vapor_pressure_bar - suction_line_loss_bar) * 10.2 { 10.2 = meter-to-bar conversion } { Estimate pump NPSH requirement from operating point (simplified) } estimated_flow = discharge_flow / POPCOUNT(pump_running[]) { per-pump average } npsh_required = 0.8 + (estimated_flow / 250) ^ 2 { empirical; increases with flow } cavitation_risk = (npsh_available < npsh_required) IF cavitation_risk THEN Log_Warning("CAVITATION_RISK_SUPPLY_TANK_LOW_OR_SUCTION_LEAK") END IF { === MASTER PRESSURE FEEDBACK LOOP === } pressure_error = PRESSURE_SETPOINT - discharge_pressure { Integral for smooth demand ramp } pressure_error_integral = pressure_error_integral + pressure_error pressure_error_integral = LIMIT(pressure_error_integral, -50, 50) { PID -> total pump demand } kp_pressure = 10.0 { proportional gain } ki_pressure = 0.3 { integral gain } total_pump_demand_pct = LIMIT(50 + kp_pressure × pressure_error + ki_pressure × pressure_error_integral, 0, 100) { Hysteresis: within ±0.3 bar, hold current demand (reduce pump switching) } IF ABS(pressure_error) < PRESSURE_HYSTERESIS THEN total_pump_demand_pct := total_pump_demand_pct_prev END IF { === PUMP STAGING ALGORITHM === } { Convert total demand % to required flow } total_rated_flow = POPCOUNT(pump_running[]) × PUMP_RATED_FLOW_M3H[1] required_flow_m3h = total_pump_demand_pct × total_rated_flow / 100 { Decision: add/drop pump? } CASE WHEN discharge_flow < 60 AND POPCOUNT(pump_running[]) > 1 THEN { Drop slowest pump } longest_running_pump = ARG_MAX(pump_runtime[]) Deactivate_Pump(longest_running_pump) Log_Event("PUMP_DROP_LOW_DEMAND") pump_switch_needed = TRUE WHEN discharge_flow > 250 AND POPCOUNT(pump_running[]) < NUM_PUMPS THEN { Add next pump } next_pump = FIND_OFFLINE_PUMP() Activate_Pump(next_pump) pump_vfd_frequency[next_pump] := VFD_MIN_HZ Log_Event("PUMP_ADD_HIGH_DEMAND") pump_switch_needed = TRUE OTHERWISE pump_switch_needed = FALSE END CASE { === INDIVIDUAL PUMP VFD COMMANDS === } active_pump_count = POPCOUNT(pump_running[]) FOR p = 1 TO NUM_PUMPS DO IF pump_running[p] THEN { Distribute demand proportionally among active pumps } demand_per_pump_pct = total_pump_demand_pct { simplified; equal load } { Convert % demand to VFD frequency } freq_span = VFD_MAX_HZ - VFD_MIN_HZ pump_vfd_frequency[p] = VFD_MIN_HZ + (demand_per_pump_pct / 100) × freq_span pump_vfd_frequency[p] = LIMIT(pump_vfd_frequency[p], VFD_MIN_HZ, VFD_MAX_HZ) { Avoid chatter: rate limit frequency } IF ABS(pump_vfd_frequency[p] - pump_vfd_frequency_prev[p]) > 2 THEN pump_vfd_frequency[p] = pump_vfd_frequency_prev[p] + SIGN(...) × 2 END IF { Write to VFD drive } Write_VFD_Frequency(p, pump_vfd_frequency[p]) { Soft-start: if just activated, ramp from 30 Hz over 10 sec } IF Rising_Edge(pump_running[p]) THEN Activate_Soft_Start_Ramp(p, target_hz = pump_vfd_frequency[p], ramp_time_sec = 10) END IF { Estimate pump flow from VFD frequency (Q ∝ N for centrifugal pump) } pump_actual_flow[p] = PUMP_RATED_FLOW_M3H[p] × (pump_vfd_frequency[p] / 60) ELSE pump_vfd_frequency[p] := 0 pump_actual_flow[p] := 0 pump_power_kw[p] := 0 END IF END FOR { === THERMAL & BYPASS MANAGEMENT === } { If discharge temp rises (low flow = high friction = heat), bypass to tank } IF discharge_temp > 45 THEN bypass_valve_cmd = LIMIT(bypass_valve_cmd + 5, 0, 100) Log_Warning("DISCHARGE_TEMP_HIGH_OPENING_BYPASS") ELSIF discharge_temp < 30 THEN bypass_valve_cmd = LIMIT(bypass_valve_cmd - 3, 0, 100) END IF Write_Bypass_Valve(bypass_valve_cmd) { === SYSTEM INTEGRITY CHECKS === } CLEAR alarms_active { Pressure alarms } IF discharge_pressure < PRESSURE_MIN_SAFE THEN APPEND alarms_active "PRESSURE_CRITICAL_LOW" Activate_Emergency_Pump_3() system_fault_level := CRIT END IF IF discharge_pressure > PRESSURE_MAX_RELIEF THEN APPEND alarms_active "PRESSURE_CRITICAL_HIGH_RELIEF_ACTIVE" Log_Event("RELIEF_VALVE_DISCHARGE") END IF { Leak detection } demand_flow_mismatch = ABS(discharge_flow - SUM(pump_actual_flow[])) / discharge_flow IF demand_flow_mismatch > 0.10 THEN { >10% mismatch } APPEND alarms_active "POSSIBLE_MAIN_BREAK_FLOW_LOSS" leak_detected = TRUE END IF { Cavitation alert } IF cavitation_risk THEN APPEND alarms_active "CAVITATION_RISK" { Reduce demands on all pumps by 10% to improve suction } total_pump_demand_pct := total_pump_demand_pct × 0.9 END IF { Prime loss (pressure ramp too slow, air in system) } prime_loss_indicator = Estimate_Prime_Loss() IF prime_loss_indicator > 0.5 THEN { heuristic } APPEND alarms_active "PRIME_LOSS_SUSPECTED_MANUAL_PRIME_REQUIRED" Log_Event("PUMP_PRIME_LOSS_ALERT") END IF { === ENERGY TRACKING === } total_power_kw = SUM(pump_power_kw[]) energy_kwh := energy_kwh + (total_power_kw / 3600) { accumulate } energy_cost_usd_per_m3 = total_power_kw / (discharge_flow / 1000) × price_per_kwh { === LOGGING & DIAGNOSTICS === } IF MOD(scan_count, 300) = 0 THEN { every 5 min } Log_Process_Data({ timestamp: Get_Timestamp(), discharge_pressure_bar: discharge_pressure, discharge_flow_m3h: discharge_flow, total_demand_pct: total_pump_demand_pct, pump_on_count: POPCOUNT(pump_running[]), vfd_frequencies: pump_vfd_frequency[], discharge_temp: discharge_temp, tank_level_m: supply_tank_level, total_power_kw: total_power_kw, cavitation_risk: cavitation_risk, leak_suspected: leak_detected }) END IF pump_vfd_frequency_prev[] := pump_vfd_frequency[] total_pump_demand_pct_prev := total_pump_demand_pct discharge_flow_prev := discharge_flow END PROCEDURE ``` --- ## 4. Tag List ``` DISCHARGE_PRESSURE_BAR { bar, downstream system pressure } DISCHARGE_FLOW_M3H { m³/h, total system flow } DISCHARGE_TEMPERATURE_C { °C } SUPPLY_TANK_LEVEL_M { m, depth } SUCTION_PRESSURE_BAR { bar absolute } NPSH_AVAILABLE_M { m, available NPSH } NPSH_REQUIRED_M { m, pump requirement } PUMP1_RUNNING { boolean } PUMP1_VFD_FREQUENCY_HZ { Hz } PUMP1_DEMAND_PCT { % } PUMP2_RUNNING { boolean } PUMP2_VFD_FREQUENCY_HZ { Hz } PUMP3_RUNNING { boolean } TOTAL_PUMP_DEMAND_PCT { 0–100% } BYPASS_VALVE_OPENING_PCT { 0–100% } TOTAL_POWER_KW { kW, all pumps } ENERGY_CUMULATIVE_KWH { kWh } LEAK_DETECTED { boolean } CAVITATION_RISK { boolean } ``` --- ## 5. Alarm & Trip Matrix | **Condition** | **Severity** | **Action** | |---|---|---| | **Pressure < 2.5 bar** | 🔴 CRIT | Activate pump 3; alert dispatch | | **Pressure > 5.5 bar** | 🔴 CRIT | Relief valve active; reduce demand | | **NPSH < 0.5 m** | 🔴 CRIT | Cavitation risk; reduce flow 10% | | **Flow mismatch >10%** | ⚠ WARN | Possible main break; inspect system | | **Prime loss suspected** | ⚠ WARN | Manual prime required; check suction line | | **Discharge temp >45°C** | ⚠ WARN | Open bypass valve; check friction losses | | **Tank level <1 m** | 🟡 WARN | Low supply; reduce demand | --- ## 6. HMI Layout ``` ╔════════════════════════════════════════════════════════════════════╗ ║ WATER DISTRIBUTION SYSTEM — PRESSURE REGULATION ║ ╚════════════════════════════════════════════════════════════════════╝ SYSTEM STATUS: [ RUNNING ] ✓ ALL SYSTEMS NORMAL 10:34 AM Tue ┌─────────────────────────────────────────────────────────────────┐ │ PRESSURE CONTROL │ │ │ │ Setpoint: 4.0 bar │ │ Discharge: 4.02 bar ✓ [█████████████░░░░░░░░░░░░] │ │ Error: +0.02 bar (within deadband) │ │ │ │ Tank Level: 2.8 m ✓ GOOD │ │ Temperature: 28°C ✓ COOL │ │ Flow: 385 m³/h (mid-morning peak) │ └─────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────┐ │ PUMP OPERATING CONFIGURATION │ │ │ │ [ ✓ PUMP 1 ONLINE ] Freq: 48.2 Hz Demand: 64% Power: 42 kW │ │ [ ✓ PUMP 2 ONLINE ] Freq: 45.1 Hz Demand: 60% Power: 38 kW │ │ [ ☐ PUMP 3 OFFLINE ] Freq: 0.0 Hz Standby Power: 0 kW│ │ ─────────────────────── │ │ TOTAL SYSTEM: Total Power: 80 kW │ │ Active Pumps: 2 / 3 Flow Per Pump: 193 m³/h │ │ Combined Demand: 62% [████████████░░░░░░░░░░░░░░░░░░░] │ │ Bypass Valve: 0% (closed) │ │ │ │ Soft-Start: Inactive │ │ Last Pump Switch: 06:18 (Pump 2 activated for peak demand) │ └─────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────┐ │ SYSTEM HEALTH │ │ │ │ NPSH Available: 1.3 m ✓ OK (required: 1.1 m) │ │ Cavitation Risk: NO ✓ │ │ Leak Detection: No mismatch ✓ │ │ Prime Status: GOOD ✓ │ │ │ │ Today's Energy: 245 kWh Cost: $29.40 @ $0.12/kWh │ │ Efficiency Est: 78% (pumps + system losses) │ └─────────────────────────────────────────────────────────────────┘ CONTROL BUTTONS: [ Start Pump 3 ] [ Stop Pump 2 ] [ Manual Override... ] [ Test Relief Valve ] [ Prime System ] ``` --- ## 7. Configuration **JSON (distribution_pump_config.json)** ```json { "system": { "name": "Town Distribution", "pressure_setpoint_bar": 4.0, "pressure_min_safe": 2.5, "pressure_max_relief": 5.5, "design_flow_m3h": 700 }, "pumps": [ {"id": 1, "type": "centrifugal_vfd", "rated_flow_m3h": 250, "rated_power_kw": 65, "softstart_ramp_sec": 10}, {"id": 2, "type": "centrifugal_vfd", "rated_flow_m3h": 250, "rated_power_kw": 65, "softstart_ramp_sec": 10}, {"id": 3, "type": "centrifugal_vfd", "rated_flow_m3h": 250, "rated_power_kw": 65, "softstart_ramp_sec": 10} ], "vfd_config": { "frequency_min_hz": 30, "frequency_max_hz": 60, "rate_limit_hz_per_sec": 2 }, "npsh": { "required_m": 0.8, "available_margin_m": 0.5 }, "alarms": { "pressure_critical_low_bar": 2.5, "pressure_relief_high_bar": 5.5, "temp_caution_c": 45, "flow_mismatch_alarm_pct": 10, "tank_level_low_m": 1.0 } } ``` --- ## 8. Commissioning Checklist - [ ] Pump curves (head vs. flow) obtained from manufacturer - [ ] System resistance curve calculated (pipe friction + elevation) - [ ] Operating points plotted: 80, 200, 400, 700 m³/h - [ ] Verify each pump operates left of shutoff head (N × 30 Hz = 3000 rpm typical) - [ ] Tank suction line inspected: no leaks, no air pockets - [ ] Manual prime: fill pump housings before startup - [ ] VFD commissioning: soft-start ramp tested - [ ] Pressure setpoint tuned: ±0.5 bar band verified - [ ] Multi-pump startup: sequence tested (pump 1 → pump 2 → pump 3) - [ ] Relief valve bench-tested to 5.5 bar before install - [ ] 24-hour steady-state run: no cavitation, no oscillation --- **Document Version:** 1.0 **Last Updated:** 2026-04-13 **Status:** Ready for Production **Approval:** Water Distribution Engineering (pending)

More like this

Rate, comment, and get full access

Members can download files, rate contributions, and discuss fixes with the engineers who posted them — free.

Join the library