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

Aeration Basin Control — Control Design

Shared by TSIMEREZIVO Team · 4 Oct 2026 · 45 views

# Water/Wastewater Template: Aeration Basin Control ## 1. Overview **Purpose:** Dissolved oxygen (DO) control in an activated-sludge aeration basin for biological wastewater treatment. Covers blower/diffuser DO control, MLSS (mixed liquor suspended solids) monitoring, ammonia-based aeration control (ABAC), and energy optimization. **Industry Standards:** - WEF MOP-8 (Biological Wastewater Treatment) - ASCE/EWRI 2-18 (Measurement of Oxygen Transfer in Clean Water) - ISO 5814 (DO electrochemical probe calibration) - Ten States Standards (4 mg/L DO minimum for secondary treatment) - USEPA Secondary Treatment Regulations (30-day average BOD₅ ≤ 30 mg/L; TSS ≤ 30 mg/L) **Critical Constraints:** - **DO minimum (biological):** DO < 1.0 mg/L → anaerobic conditions → H₂S production, filamentous bulking - **DO maximum (energy):** DO > 3.0 mg/L → diminishing oxygen transfer efficiency (OTE drops 15–25%) - **MLSS target:** 2500–4000 mg/L for conventional AS; 6000–10000 mg/L for MBR - **SRT (Sludge Retention Time):** 8–15 days (conventional) — shorter SRT risks process washout - **Temperature correction:** O₂ saturation = 14.62 mg/L at 0°C; ≈9.09 at 20°C; correct probes per ISO 5814 - **Blower surge protection:** Centrifugal blowers require minimum flow — do NOT throttle below surge line - **Diffuser fouling:** Air flux > 1.2 m³/(m²·h) maintains diffuser cleanliness; below 0.4 causes clogging **Relevant Physics:** - Oxygen transfer: **OTR = SOTR × α × β × (DO_sat − DO_actual)/DO_sat × θ^(T−20)** - α = process water transfer factor (0.6–0.9); β = salinity correction (0.95–1.0) - θ = temperature correction factor (1.024 for wastewater) - Nitrification DO demand: Each mg/L NH₄⁺ requires ≈ 4.57 mg/L O₂ - Power: **P_blower = (Q_air × ΔP) / (η_adiabatic × η_mechanical)** --- ## 2. Control Philosophy **Challenge:** Biological oxygen demand varies with diurnal flow patterns, storm events, and seasonal temperature changes. Fixed-speed blowers waste significant energy during low-load periods (10 PM–6 AM). Conventional DO control loops cannot anticipate ammonia load spikes from industrial discharges. **Solution: Cascade DO Control with Ammonia-Based Aeration Control (ABAC)** ``` Primary Loop: DO Control Setpoint: 2.0 mg/L (operator-adjustable 1.5–3.0 mg/L) PV: Dissolved oxygen probe (mg/L) Output: Blower speed command (%) or total airflow setpoint (m³/min) Algorithm: PI with anti-windup Kp = 15.0 (faster response to DO deficit) Ki = 0.08 (slow integral — blower lag is 30–60 s) Anti-windup: Clamp integral when at min/max blower speed Cascade Master (where ABAC fitted): NH₄⁺ > 3 mg/L → raise DO setpoint to 2.5 mg/L NH₄⁺ < 1 mg/L → lower DO setpoint to 1.5 mg/L (energy saving) Secondary Loop: Airflow Distribution (multi-zone) Zone 1 (inlet/head): 40% of total airflow (highest BOD load) Zone 2 (mid): 35% of total airflow Zone 3 (tail): 25% of total airflow (final nitrification) Zone weighting adjustable per zone DO measurements Blower Control: - VFD blowers: Speed modulated 40–100% Hz - On/Off blowers: Duty cycle or stage start/stop - Minimum airflow: 0.4 m³/(m²·h) per diffuser zone (fouling prevention) - Maximum airflow: 1.8 m³/(m²·h) per zone (diffuser pressure rating) ``` --- ## 3. Control Logic ```pascal { === AERATION BASIN DO CONTROL (ABAC) === } { Multi-zone activated sludge aeration with energy optimization } PROGRAM Aeration_DO_Control CONSTANTS DO_SETPOINT_NOMINAL = 2.0 { mg/L — base DO setpoint } DO_SETPOINT_HIGH = 2.5 { mg/L — elevated SP during ammonia load } DO_SETPOINT_LOW = 1.5 { mg/L — reduced SP for energy saving } NH4_HIGH_MGL = 3.0 { mg/L — ammonia threshold for high DO mode } NH4_LOW_MGL = 1.0 { mg/L — ammonia threshold for low DO mode } DO_ALARM_LOW = 1.0 { mg/L — DO alarm (biological risk) } DO_ALARM_HIGH = 4.0 { mg/L — DO over-aeration alarm (energy waste) } BLOWER_MIN_PCT = 35.0 { % speed — surge protection minimum } BLOWER_MAX_PCT = 100.0 { % speed } KP = 15.0 { DO controller proportional gain } KI = 0.08 { DO controller integral gain [/s] } MLSS_TARGET = 3000.0 { mg/L — target mixed liquor suspended solids } MLSS_HI = 4500.0 { mg/L — MLSS high — increase waste sludge rate } MLSS_LO = 2000.0 { mg/L — MLSS low — reduce waste sludge rate } VARIABLES { Inputs } do_zone1_pv : REAL { mg/L — DO sensor zone 1 (inlet) } do_zone2_pv : REAL { mg/L — DO sensor zone 2 (mid) } do_zone3_pv : REAL { mg/L — DO sensor zone 3 (tail/effluent) } nh4_pv : REAL { mg/L — inline ammonia analyzer } mlss_pv : REAL { mg/L — MLSS probe or manual entry } temp_c : REAL { °C — process temperature } blower1_speed_fb : REAL { % — blower 1 speed feedback } blower2_speed_fb : REAL { % — blower 2 speed feedback } influent_flow_m3h : REAL { m³/h — influent flow (load indicator) } { Outputs } blower1_speed_cmd : REAL { % — blower 1 VFD speed command } blower2_speed_cmd : REAL { % — blower 2 VFD speed command } zone1_air_valve : REAL { % — zone 1 airflow distribution valve } zone2_air_valve : REAL { % — zone 2 airflow distribution valve } zone3_air_valve : REAL { % — zone 3 airflow distribution valve } waste_sludge_rate : REAL { m³/h — WAS pump setpoint } alarm_do_low : BOOL alarm_do_high : BOOL alarm_mlss_high : BOOL alarm_blower_surge : BOOL { Internals } do_setpoint : REAL { mg/L — active DO setpoint (ABAC adjusted) } do_error : REAL { mg/L — control error } do_integral : REAL { mg/L·s — integral accumulator } blower_output_pct : REAL { % — computed blower output } do_avg_pv : REAL { mg/L — basin average DO } abac_mode : INT { 0=nominal 1=high 2=low } BEGIN { --- Basin Average DO --- } do_avg_pv := (do_zone1_pv + do_zone2_pv + do_zone3_pv) / 3.0 { --- ABAC: Ammonia-Based DO Setpoint Adjustment --- } IF nh4_pv > NH4_HIGH_MGL THEN do_setpoint := DO_SETPOINT_HIGH abac_mode := 1 ELSIF nh4_pv < NH4_LOW_MGL THEN do_setpoint := DO_SETPOINT_LOW abac_mode := 2 ELSE do_setpoint := DO_SETPOINT_NOMINAL abac_mode := 0 END_IF { --- PI DO Controller (anti-windup) --- } do_error := do_setpoint - do_avg_pv { Integral anti-windup: freeze integration at blower limits } IF NOT (blower_output_pct >= BLOWER_MAX_PCT AND do_error > 0.0) AND NOT (blower_output_pct <= BLOWER_MIN_PCT AND do_error < 0.0) THEN do_integral := do_integral + do_error * SCAN_TIME_S END_IF blower_output_pct := KP * do_error + KI * do_integral blower_output_pct := MAX(BLOWER_MIN_PCT, MIN(BLOWER_MAX_PCT, blower_output_pct)) { --- Blower Commands (lead-lag equal speed) --- } blower1_speed_cmd := blower_output_pct blower2_speed_cmd := blower_output_pct { --- Airflow Zone Distribution --- } { Weighted by zone DO deficit relative to setpoint } zone1_air_valve := 40.0 + MAX(-15.0, MIN(15.0, (do_setpoint - do_zone1_pv) * 5.0)) zone2_air_valve := 35.0 + MAX(-10.0, MIN(10.0, (do_setpoint - do_zone2_pv) * 5.0)) zone3_air_valve := 25.0 + MAX(-10.0, MIN(10.0, (do_setpoint - do_zone3_pv) * 5.0)) { Normalize to sum to 100% } { (simplified — production implementation uses proper normalization) } { --- Waste Sludge Rate — MLSS Control --- } IF mlss_pv > MLSS_HI THEN waste_sludge_rate := 50.0 { m³/h — increase WAS rate } ELSIF mlss_pv < MLSS_LO THEN waste_sludge_rate := 10.0 { m³/h — minimum WAS to maintain SRT } ELSE { Proportional MLSS control } waste_sludge_rate := 10.0 + (mlss_pv - MLSS_LO) / (MLSS_HI - MLSS_LO) * 40.0 END_IF { --- Alarms --- } alarm_do_low := do_avg_pv < DO_ALARM_LOW alarm_do_high := do_avg_pv > DO_ALARM_HIGH alarm_mlss_high := mlss_pv > MLSS_HI alarm_blower_surge := blower1_speed_fb < BLOWER_MIN_PCT AND blower1_speed_cmd > BLOWER_MIN_PCT END_PROGRAM ``` --- ## 4. Tag List (ISA-5.1 Naming) | Tag Name | Description | Type | Direction | EGU | Lo | Hi | |---|---|---|---|---|---|---| | `AB01_DO_Z1_PV` | Aeration zone 1 DO | REAL | Input | mg/L | 0.0 | 12.0 | | `AB01_DO_Z2_PV` | Aeration zone 2 DO | REAL | Input | mg/L | 0.0 | 12.0 | | `AB01_DO_Z3_PV` | Aeration zone 3 DO | REAL | Input | mg/L | 0.0 | 12.0 | | `AB01_DO_AVG_PV` | Basin average DO | REAL | Calculated | mg/L | 0.0 | 12.0 | | `AB01_DO_SP` | DO setpoint (ABAC adjusted) | REAL | Internal | mg/L | 1.5 | 3.0 | | `AB01_NH4_PV` | Effluent ammonia concentration | REAL | Input | mg/L | 0.0 | 20.0 | | `AB01_MLSS_PV` | Mixed liquor suspended solids | REAL | Input | mg/L | 0.0 | 8000.0 | | `AB01_TEMP_PV` | Basin temperature | REAL | Input | °C | 5.0 | 35.0 | | `AB01_INFL_FLOW_PV` | Influent flow rate | REAL | Input | m³/h | 0.0 | 2000.0 | | `AB01_BLW1_SPD_CMD` | Blower 1 VFD speed command | REAL | Output | % | 35.0 | 100.0 | | `AB01_BLW2_SPD_CMD` | Blower 2 VFD speed command | REAL | Output | % | 35.0 | 100.0 | | `AB01_Z1_VLV_CV` | Zone 1 air distribution valve | REAL | Output | % | 0.0 | 100.0 | | `AB01_Z2_VLV_CV` | Zone 2 air distribution valve | REAL | Output | % | 0.0 | 100.0 | | `AB01_Z3_VLV_CV` | Zone 3 air distribution valve | REAL | Output | % | 0.0 | 100.0 | | `AB01_WAS_RATE_SP` | Waste activated sludge rate SP | REAL | Output | m³/h | 0.0 | 80.0 | | `AB01_ABAC_MODE` | ABAC mode (0=nominal, 1=high, 2=low) | INT | Internal | — | — | — | --- ## 5. Alarm Configuration (ISA-18.2) | Alarm Tag | Description | Priority | Setpoint | Action | |---|---|---|---|---| | `AB01_DO_LOW_ALM` | Basin DO critically low | Critical | 1.0 mg/L | Increase blower speed; notify operator | | `AB01_DO_HH_ALM` | DO over-aeration | Medium | 4.0 mg/L | Reduce blower speed; check ABAC mode | | `AB01_NH4_HIGH_ALM` | Ammonia high — ABAC elevated mode | High | 5.0 mg/L | Check nitrification health; ABAC active | | `AB01_MLSS_HIGH_ALM` | MLSS high — increase WAS | High | 4500 mg/L | Increase waste sludge pumping rate | | `AB01_MLSS_LOW_ALM` | MLSS low — process washout risk | Critical | 1500 mg/L | Stop WAS; check RAS rate | | `AB01_BLW_SURGE_ALM` | Blower surge detected | Critical | — | Emergency blower shutdown; check network | | `AB01_TEMP_LOW_ALM` | Low basin temperature — nitrification risk | Medium | 10 °C | Review SRT; reduce WAS if necessary | --- ## 6. Energy Optimization Notes | Strategy | Expected Saving | Implementation | |---|---|---| | ABAC (ammonia-based) | 15–25% power | NH₄⁺ analyzer drives DO setpoint | | DO setpoint reduction (off-peak) | 10–15% power | Time-of-day DO SP schedule | | Zone distribution optimization | 5–10% power | Multi-zone DO feedback weighting | | Blower efficiency monitoring | 5% power | Compare actual vs design pressure curve | | Diffuser condition monitoring | 8–12% power | Track headloss increase over time | **Total achievable energy reduction with full ABAC + zone control: 25–40% vs fixed-speed systems.** --- ## 7. Commissioning Checklist - [ ] Calibrate all DO probes per ISO 5814 (two-point: 0% and 100% air saturation) - [ ] Calibrate ammonia analyzer with primary standard (0.5, 2.0, 5.0 mg/L NH₄⁺) - [ ] Calibrate MLSS probe with gravimetric sample comparison (minimum 5 samples) - [ ] Test blower surge protection — verify minimum speed interlock cannot be bypassed - [ ] Verify zone air valve operation and flow distribution calibration - [ ] Commission PI controller — step test from 1.5 → 2.5 mg/L setpoint; confirm response without oscillation - [ ] Test ABAC mode transitions — inject ammonia standard solution; confirm setpoint adjustment - [ ] Measure actual oxygen transfer efficiency vs design (ASCE/EWRI 2-18 clean water test) - [ ] Benchmark baseline power consumption at average daily flow; record for energy monitoring KPI

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