Beginner8 min readWater & Wastewater

Water Pump Control for Water & Wastewater

Complete PLC implementation guide for water pump control in water & wastewater settings. Learn control strategies, sensor integration, and best practices.

📊
Complexity
Beginner
🏭
Industry
Water & Wastewater
Actuators
2
This comprehensive guide covers the implementation of water pump control systems for the water & wastewater industry. Water pump control systems maintain consistent pressure and flow in distribution networks using centrifugal pumps ranging from 1-500 HP. Modern systems employ pressure transducers monitoring discharge pressure (30-150 PSI typical) and implement VFD control or staged pump sequencing. The control strategy must prevent water hammer (pressure surges), manage pump rotation for even wear, and protect against dry-run conditions. Pump curves define the relationship between flow (GPM) and head (feet), with efficiency peaks typically at 70-85% of best efficiency point (BEP). Systems must handle variable demand from near-zero to peak flow while maintaining pressure setpoint +/- 5 PSI. Estimated read time: 8 minutes.

Problem Statement

Water & Wastewater operations require reliable water pump control systems to maintain efficiency, safety, and product quality. Water and wastewater utilities face aging infrastructure requiring modernization with limited budgets, highly variable influent loads from wet weather events straining treatment capacity, increasingly stringent discharge limits for nutrients and emerging contaminants, skilled operator shortage with many approaching retirement, cybersecurity threats against critical infrastructure, energy costs representing 30-40% of operational budget, and public expectation of uninterrupted service 24/7/365. Climate change is increasing frequency and severity of extreme weather events. Asset management requires balancing limited capital budgets across hundreds of distributed assets like pump stations, meters, and treatment facilities.

Automated PLC-based control provides:
• Consistent, repeatable operation
• Real-time monitoring and diagnostics
• Reduced operator workload
• Improved safety and compliance
• Data collection for optimization

This guide addresses the technical challenges of implementing robust water pump control automation in production environments.

System Overview

A typical water pump control system in water & wastewater includes:

• Input Sensors: flow sensors, pressure sensors, level sensors
• Output Actuators: pump motors, solenoid valves
• Complexity Level: Beginner
• Control Logic: State-based sequencing with feedback control
• Safety Features: Emergency stops, interlocks, and monitoring
• Communication: Data logging and diagnostics

The system must handle normal operation, fault conditions, and maintenance scenarios while maintaining safety and efficiency.

**Industry Environmental Considerations:** Water and wastewater facilities operate in harsh outdoor environments with temperature extremes from -40°F to 120°F, high humidity causing condensation and corrosion, corrosive gases like hydrogen sulfide and chlorine attacking electronics, lightning exposure in elevated structures like clarifiers and aerators, and flooding risks during storm events. Instrumentation requires specialized materials (Hastelloy, titanium) for chemical resistance. Enclosures must be NEMA 4X rated with heaters and thermostats for temperature control. Explosive atmosphere considerations exist in digesters, wet wells, and other confined spaces.

Controller Configuration

For water pump control systems in water & wastewater, controller selection depends on:

• Discrete Input Count: Sensors for position, status, and alarms
• Discrete Output Count: Actuator control and signaling
• Analog I/O: Pressure, temperature, or flow measurements
• Processing Speed: Typical cycle time of 50-100ms
• Communication: Network requirements for monitoring

**Control Strategy:**
Deploy PID control for VFD-driven lead pump maintaining discharge pressure setpoint with parameters: Kp=0.5-1.5 (PSI per PSI error), Ki=0.05-0.2, Kd=0.01-0.05. Implement alternating lead/lag pump selection based on runtime counters to equalize wear. Use pressure setpoint ramping during pump starts (10-30 seconds) to minimize water hammer. Stage additional pumps when lead pump reaches 85-95% speed. Deploy pressure sustaining valves for system protection during low-flow conditions. Implement anti-cycling timers preventing rapid on/off (minimum 5-minute off time between starts). Use low-pressure cutout (<20 PSI suction) and high-pressure cutout (>175 PSI discharge) for system protection.

Recommended controller features:
• Fast enough for real-time control
• Sufficient I/O for all sensors and actuators
• Built-in safety functions for critical applications
• Ethernet connectivity for diagnostics

**Regulatory Requirements:** Water and wastewater systems must comply with Clean Water Act discharge permits (NPDES) with strict effluent limits, Safe Drinking Water Act monitoring requirements for public water systems, EPA regulations for biosolids management (40 CFR Part 503), OSHA confined space entry regulations (29 CFR 1910.146), state-specific discharge standards often more stringent than federal requirements, and cross-connection control to prevent contamination of potable water. Cybersecurity requirements under America's Water Infrastructure Act (AWIA) mandate risk assessments and security measures. Discharge monitoring reports (DMRs) require certified data with auditable quality assurance.

Sensor Integration

Effective sensor integration requires:

• Sensor Types: flow sensors, pressure sensors, level sensors
• Sampling Rate: 10-100ms depending on process dynamics
• Signal Conditioning: Filtering and scaling for stability
• Fault Detection: Monitoring for sensor failures
• Calibration: Regular verification and adjustment

**Application-Specific Sensor Details:**
• **flow sensors**: Deploy electromagnetic flow meters (mag meters) with +/- 0.5% accuracy across 10:1 turndown ratio. Install in straight pipe sections with 5-10 diameters upstream, 2-3 diameters downstream clearance. Minimum conductivity: 5 microsiemens/cm. Output: 4-20mA proportional to flow rate. Alternate: ultrasonic flow meters (clamp-on or wetted) for larger pipes >6 inches, accuracy +/- 2%.
• **pressure sensors**: Utilize piezoresistive or capacitive pressure transducers with 0-200 PSI range and +/- 0.25% accuracy. Install with isolating diaphragm seals for dirty water applications. Use pressure snubbers or capillary dampening for pump pulsation protection. Temperature compensation required for outdoor installations. Output: 4-20mA or 0-10 VDC. Install pressure gauges locally for visual confirmation.
• **level sensors**: Deploy submersible pressure transmitters in wet wells measuring 0-20 feet typical range with +/- 0.5% accuracy. Use ultrasonic level sensors for non-contact measurement (accuracy +/- 0.25%). Float switches provide backup on/off control and alarm functions. Implement redundant level sensing for critical applications with 2-out-of-3 voting logic.

Key considerations:
• Environmental factors (temperature, humidity, dust)
• Sensor accuracy and repeatability
• Installation location for optimal readings
• Cable routing to minimize noise
• Proper grounding and shielding

Water Pump Station Control - Water & Wastewater

Multi-pump control with alternation and pressure regulation: Industry-specific enhancements for Water & Wastewater applications.

PROGRAM WATER_PUMP_STATION_CONTROL
VAR
    // Inputs
    tank_level : REAL;         // 0-100%
    pressure_sensor : REAL;    // Bar
    pump1_running : BOOL;
    pump2_running : BOOL;
    pump1_fault : BOOL;
    pump2_fault : BOOL;

    // Outputs
    pump1_start : BOOL;
    pump2_start : BOOL;

    // Control Parameters
    pressure_sp : REAL := 4.5; // Pressure setpoint in bar
    level_low : REAL := 20.0;
    level_high : REAL := 80.0;

    // Lead pump alternation
    lead_pump : INT := 1;      // 1 or 2
    runtime1 : INT := 0;
    runtime2 : INT := 0;

    // State
    demand : REAL;


    // Flow Measurement & Totalization
    Instantaneous_Flow : REAL;  // m³/h or GPM
    Flow_Total_Daily : REAL;    // Accumulated flow
    Flow_Total_Monthly : REAL;
    Flow_Totalizer : CTU;

    // EPA Compliance Monitoring
    Effluent_pH : REAL;
    Effluent_BOD : REAL;  // Biological Oxygen Demand (mg/L)
    Effluent_TSS : REAL;  // Total Suspended Solids (mg/L)
    Effluent_Chlorine : REAL;  // Residual chlorine (mg/L)
    EPA_Limit_Violation : BOOL;

    // Chemical Dosing Control
    Chlorine_Dosing_Rate : REAL;  // mg/L or ppm
    Polymer_Dosing_Rate : REAL;
    Chemical_Tank_Level : REAL;
    Low_Chemical_Alarm : BOOL;

    // Level & Pressure Control
    Tank_Level_Percent : REAL;
    System_Pressure_PSI : REAL;
    High_Level_Alarm : BOOL;
    Low_Level_Alarm : BOOL;

    // SCADA Integration
    Remote_Start_Command : BOOL;
    Remote_Stop_Command : BOOL;
    SCADA_Communication_OK : BOOL;
    Telemetry_Update_Timer : TON;

    // Regulatory Reporting
    Sample_Collection_Due : BOOL;
    DMR_Report_Due : BOOL;  // Discharge Monitoring Report
    Last_Sample_Time : DATE_AND_TIME;
    Compliance_Status : STRING[20];
END_VAR

// ==========================================
// BASE APPLICATION LOGIC
// ==========================================

// Track runtime for alternation
IF pump1_running THEN runtime1 := runtime1 + 1; END_IF;
IF pump2_running THEN runtime2 := runtime2 + 1; END_IF;

// Alternate lead pump weekly (604800 = 1 week in 100ms)
IF runtime1 > runtime2 + 604800 THEN
    lead_pump := 2;
ELSIF runtime2 > runtime1 + 604800 THEN
    lead_pump := 1;
END_IF;

// Calculate demand based on pressure error
demand := (pressure_sp - pressure_sensor) * 20.0;

// Pump staging logic
IF tank_level < level_low THEN
    // Low level - disable pumps
    pump1_start := FALSE;
    pump2_start := FALSE;

ELSIF tank_level > level_high THEN
    // Adequate water - stage pumps by demand

    IF demand > 80.0 THEN
        // High demand - run both pumps
        pump1_start := NOT pump1_fault;
        pump2_start := NOT pump2_fault;

    ELSIF demand > 40.0 THEN
        // Medium demand - run lead pump only
        IF lead_pump = 1 THEN
            pump1_start := NOT pump1_fault;
            pump2_start := pump1_fault AND NOT pump2_fault;  // Backup
        ELSE
            pump2_start := NOT pump2_fault;
            pump1_start := pump2_fault AND NOT pump1_fault;  // Backup
        END_IF;

    ELSIF demand < 10.0 THEN
        // Low demand - stop all pumps
        pump1_start := FALSE;
        pump2_start := FALSE;
    END_IF;
END_IF;

// ==========================================
// WATER & WASTEWATER SPECIFIC LOGIC
// ==========================================

    // Flow Totalization for Billing & Reporting
    // Convert instantaneous flow to volumetric pulses
    IF Instantaneous_Flow > Min_Flow_Threshold THEN
        Flow_Pulse := TRUE;  // Generate pulse per unit volume
        Flow_Totalizer(CU := Flow_Pulse);
        Flow_Total_Daily := DINT_TO_REAL(Flow_Totalizer.CV) * Flow_K_Factor;
    END_IF;

    // Reset daily totalizer at midnight
    IF Current_Time = TIME#00:00:00 THEN
        Flow_Totalizer(R := TRUE);
        Flow_Total_Monthly := Flow_Total_Monthly + Flow_Total_Daily;
        Flow_Total_Daily := 0.0;
    END_IF;

    // EPA Discharge Limits Monitoring
    // Typical secondary treatment limits
    EPA_Limit_Violation := (Effluent_BOD > 30.0)      // > 30 mg/L
                          OR (Effluent_TSS > 30.0)     // > 30 mg/L
                          OR (Effluent_pH < 6.0)       // pH below range
                          OR (Effluent_pH > 9.0);      // pH above range

    IF EPA_Limit_Violation THEN
        Compliance_Status := 'VIOLATION';
        // Trigger alarm and regulatory notification
        // Log excursion for DMR reporting
    ELSE
        Compliance_Status := 'COMPLIANT';
    END_IF;

    // Proportional Chemical Dosing
    // Dose chlorine based on flow rate for consistent residual
    Chlorine_Dosing_Rate := Instantaneous_Flow * Target_Chlorine_Residual / 1000.0;

    // Polymer dosing for flocculation based on turbidity
    IF Influent_Turbidity > 100.0 THEN
        Polymer_Dosing_Rate := High_Dose_Rate;
    ELSIF Influent_Turbidity > 50.0 THEN
        Polymer_Dosing_Rate := Medium_Dose_Rate;
    ELSE
        Polymer_Dosing_Rate := Low_Dose_Rate;
    END_IF;

    // Chemical Tank Monitoring
    IF Chemical_Tank_Level < 20.0 THEN  // Below 20%
        Low_Chemical_Alarm := TRUE;
        // Alert operator to refill
    END_IF;

    // SCADA Telemetry Updates
    Telemetry_Update_Timer(IN := TRUE, PT := T#10s);

    IF Telemetry_Update_Timer.Q THEN
        // Send data to SCADA master station
        Send_To_SCADA(Flow_Total_Daily,
                      System_Pressure_PSI,
                      Tank_Level_Percent,
                      EPA_Limit_Violation);
        Telemetry_Update_Timer(IN := FALSE);
    END_IF;

    // Remote SCADA Control Integration
    IF SCADA_Communication_OK THEN
        IF Remote_Start_Command THEN
            System_Enable := TRUE;
        END_IF;

        IF Remote_Stop_Command THEN
            System_Enable := FALSE;
        END_IF;
    ELSE
        // Revert to local control if SCADA comm lost
        System_Enable := Local_Start_Button AND NOT Local_Stop_Button;
    END_IF;

    // Regulatory Sampling Schedule
    IF (CURRENT_DATETIME() - Last_Sample_Time) > Sample_Interval THEN
        Sample_Collection_Due := TRUE;
        // Alert lab technician
    END_IF;

// ==========================================
// WATER & WASTEWATER SAFETY INTERLOCKS
// ==========================================

    // Operational Interlocks
    Production_Allowed := NOT High_Level_Alarm
                          AND NOT Low_Level_Alarm
                          AND NOT Low_Chemical_Alarm
                          AND (System_Pressure_PSI > Min_Pressure)
                          AND (System_Pressure_PSI < Max_Pressure);

    // EPA Compliance Interlock
    IF EPA_Limit_Violation THEN
        // Continue operation but alert operator
        // Log violation for regulatory reporting
        Alarm_Active := TRUE;
    END_IF;

    // Emergency Shutdown on Critical Parameters
    IF (Effluent_Chlorine > Max_Safe_Chlorine) OR
       (System_Pressure_PSI > Burst_Pressure) THEN
        Emergency_Shutdown := TRUE;
        All_Pumps_Stop := TRUE;
    END_IF;

Code Explanation:

  • 1.Pump alternation prevents uneven wear
  • 2.Staging based on pressure demand optimizes energy
  • 3.Tank level prevents dry running damage
  • 4.Automatic backup pump on lead pump fault
  • 5.Pressure deadband prevents short cycling
  • 6.Runtime tracking ensures equal usage
  • 7.
  • 8.--- Water & Wastewater Specific Features ---
  • 9.Flow totalization for billing, reporting, and water accountability
  • 10.EPA NPDES permit compliance monitoring for discharge limits
  • 11.Proportional chemical dosing based on flow and water quality
  • 12.SCADA integration for remote monitoring and control
  • 13.Regulatory reporting support (DMR - Discharge Monitoring Report)
  • 14.Tank level control prevents overflow and dry-run conditions
  • 15.Automatic sampling schedule tracking for compliance
  • 16.Emergency shutdown on critical parameter violations

Implementation Steps

  1. 1Conduct hydraulic modeling to determine retention times and flow rates for treatment stages
  2. 2Design SCADA system with geographic information system (GIS) integration for distributed assets
  3. 3Implement multi-parameter monitoring including pH, dissolved oxygen, turbidity, and chlorine residual
  4. 4Configure aeration basin control with DO optimization to minimize energy consumption
  5. 5Design pump control with alternating duty cycles to equalize wear and prevent deadheading
  6. 6Implement flow equalization to handle wet-weather surge capacity and prevent overflow
  7. 7Configure automated chemical dosing for coagulation, flocculation, and disinfection
  8. 8Design automated backwash sequences for filtration systems with optimization algorithms
  9. 9Implement alarming and notification for regulatory exceedances and equipment failures
  10. 10Configure energy optimization scheduling pumps during off-peak electricity rates
  11. 11Design integration with regulatory reporting systems for discharge monitoring reports
  12. 12Establish predictive maintenance based on run hours, cycle counts, and performance trending

Best Practices

  • Use submersible sensors with automatic cleaning systems to prevent bio-fouling
  • Implement cascade PID control for dissolved oxygen with feedforward from influent load
  • Design redundant critical sensors with automatic switchover on failure or out-of-range readings
  • Use variable frequency drives on aeration blowers with DO trim optimization
  • Implement alternating pump operation with hour meters for balanced equipment wear
  • Log complete operational data for regulatory compliance and optimization studies
  • Use intrinsically safe or submersible-rated instrumentation in hazardous wet-well areas
  • Implement automated composite sampling for lab analysis and compliance monitoring
  • Design energy management with demand limiting to avoid peak electricity charges
  • Use cellular or licensed radio for remote lift stations without wired communication
  • Implement weather data integration for predictive control during storm events
  • Maintain comprehensive asset management database linked to SCADA system

Common Pitfalls to Avoid

  • Inadequate sensor maintenance causing drift and unreliable readings leading to process upsets
  • Failing to implement proper grounding in wet environments causing ground loop interference
  • Poor sensor placement in non-representative locations yielding misleading data
  • Not implementing backup control strategies when sensors fail or go into maintenance
  • Inadequate surge protection on communication lines exposed to lightning strikes
  • Overlooking hydrogen sulfide corrosion requiring special materials in sewer applications
  • Failing to size chemical storage and feed systems for maximum day demands
  • Inadequate backup power sizing based on average load rather than peak demand
  • Not implementing flow verification via multiple methods to detect sensor failures
  • Overlooking freeze protection for outdoor instrumentation in cold climates
  • Inadequate cybersecurity on SCADA systems creating vulnerability to ransomware attacks
  • Failing to calibrate flow meters annually leading to billing and compliance errors
  • Pump cavitation from inadequate NPSH (Net Positive Suction Head) - Verify suction pressure >3-5 PSI above vapor pressure, lower pump elevation, increase suction pipe diameter
  • Pressure oscillation from improper PID tuning - Reduce proportional gain 25-50%, implement derivative filtering with 0.1-0.5 second time constant, add pressure dampening
  • Water hammer during pump start/stop - Extend VFD ramp times to 15-30 seconds, install surge tanks or accumulator vessels, deploy slow-closing check valves
  • Dry running from level sensor failure - Implement redundant level sensors with 2oo3 voting, add minimum runtime timers (30-60 seconds), install flow switches for backup protection
  • Pump short cycling from insufficient system volume - Add accumulator tanks (10-50 gallons typical), increase pressure differential (5-10 PSI), implement minimum off-time delays
  • Motor overheating from continuous operation above BEP - Install discharge throttle valve reducing flow, verify impeller diameter correct for application, check for recirculation
  • Check valve leakage causing pump backflow - Replace worn valve seats and seals, verify valve orientation (flow arrow direction), consider spring-assisted check valves

Safety Considerations

  • 🛡Implement continuous hydrogen sulfide and methane monitoring in confined spaces like wet wells
  • 🛡Install forced ventilation with gas detection interlocks before entry into pump stations
  • 🛡Use intrinsically safe instruments in classified hazardous areas per NEC Article 500
  • 🛡Implement automated chlorine leak detection with ventilation and neutralization systems
  • 🛡Install fall protection and retrieval systems for confined space entry operations
  • 🛡Use explosion-proof equipment in areas where methane concentrations may exceed 5% LEL
  • 🛡Implement remote pump station monitoring to reduce operator exposure during inspections
  • 🛡Install emergency showers and eyewash stations near chemical feed areas
  • 🛡Use lockout/tagout procedures with confined space permits for all maintenance activities
  • 🛡Implement automated overflow alarming and diversion to prevent environmental releases
  • 🛡Train operators on chlorine emergency response and respiratory protection requirements
  • 🛡Maintain up-to-date safety data sheets for all treatment chemicals including ozone and UV systems
Successful water pump control automation in water & wastewater requires careful attention to control logic, sensor integration, and safety practices. By following these industry-specific guidelines and standards, facilities can achieve reliable, efficient operations with minimal downtime. Remember that every water pump control system is unique—adapt these principles to your specific requirements while maintaining strong fundamentals of state-based control and comprehensive error handling. Pay special attention to water & wastewater-specific requirements including regulatory compliance and environmental challenges unique to this industry.