Boiler Drum Level Control (3-Element Control) — Control Design
Shared by TSIMEREZIVO Team · 4 Oct 2026 · 41 views
# Power Plant Template: Boiler Drum Level Control (3-Element Control)
**Version**: 1.0
**Complexity**: High
**Industry**: Thermal Power Generation, Cogeneration (CHP), District Heating
**Plant Type**: Coal-fired, Gas-fired, or Oil-fired Boiler
**Control Standard**: ASME B&W 3-Element Control (Industry Standard)
---
## 📋 Overview
Three-element feedwater control for boiler drum level. Most safety-critical control in power plants.
**Why 3-Element Control?**
- Element 1: **Drum level error** (stabilize level around 50% of glass)
- Element 2: **Feedwater flow rate** (balance vs steam demand)
- Element 3: **Steam flow rate** (load compensation; if steam ↑ rapidly, anticipate level drop)
**Safety Criticality:**
- ⚠️ **High level**: Water carryover → turbine damage → $10M+ repair
- ⚠️ **Low level**: Furnace tube exposure → metallic fatigue → explosion risk (ASME pressure vessel code §PG-7)
- ✅ 3-element control prevents both extremes automatically
**Typical Plant Stats:**
- Drum pressure: 150-300 bar
- Steam flow: 100-400 t/h
- Feedwater temp: 150-170°C
- Control accuracy: ±5% of drum level
---
## 🎯 Control Philosophy
```
DRUM_LEVEL = f(Feedwater_Flow_In - Steam_Flow_Out)
Three Equations:
(1) Level Loop: e₁ = Level_SP - Level_Actual
Outputs signal to feedwater pump speed
(2) Feedwater Flow Loop: e₂ = Flow_FW - Flow_SP_from_Steam
Tightens control around flow = steam demand
Uses bellows flowmeter (differential pressure)
(3) Steam Flow Feed-Forward: F_Steam
If steam jumps from 200 t/h → 300 t/h instantly,
level will drop BEFORE level sensor detects it.
Use steam flow as leading indicator to pre-command pump.
Master Equation:
Pump_Speed_Cmd = K₁(e₁) + K₂(e₂_FW) + K₃(F_steam)
Where:
K₁ ≈ 0.5 (level is primary but slow feedback)
K₂ ≈ 1.0 (flow is primary fast loop)
K₃ ≈ 0.7 (steam feed-forward anticipates change)
```
---
## 🏗️ Control Logic (Pseudocode)
```pascal
PROGRAM Boiler_Drum_Level_3ElementControl
VAR
(* ─── INPUTS FROM FIELD INSTRUMENTS ─── *)
(* Drum Level Measurement *)
Drum_Level_Raw : INT; (* 0-4095 from LT-101 transmitter *)
Drum_Level_Percent : REAL; (* 0-100%, 50% = middle of glass *)
Drum_Level_Setpoint : REAL := 50.0; (* Hold at 50% *)
(* Feedwater Flow (From flow transmitter FT-102) *)
Feedwater_Flow_Raw : INT; (* 0-4095 = 0-500 t/h *)
Feedwater_Flow_Actual : REAL; (* t/h *)
Feedwater_Flow_Setpoint : REAL; (* t/h, calculated from steam *)
(* Steam Flow (From orifice plate FT-103 on main steam line) *)
Steam_Flow_Raw : INT; (* 0-4095 = 0-500 t/h *)
Steam_Flow_Actual : REAL; (* t/h *)
(* Drum Pressure (For compensation) *)
Drum_Pressure_Raw : INT; (* 0-4095 = 0-300 bar *)
Drum_Pressure_Actual : REAL; (* bar *)
(* ─── PID GAINS (Tuned for coal-fired, 500 t/h class) ─── *)
Level_Loop_Kp : REAL := 2.0; (* Level P-gain *)
Level_Loop_Ki : REAL := 0.1; (* Level I-gain *)
Flow_Loop_Kp : REAL := 1.2; (* Feedwater flow P-gain *)
Flow_Loop_Ki : REAL := 0.15; (* Feedwater flow I-gain *)
Steam_FF_Gain : REAL := 0.9; (* Steam feedforward gain *)
(* ─── CONTROL LOOP STATE VARIABLES ─── *)
(* Level Error *)
Level_Error : REAL;
Level_Error_Integral : REAL := 0.0;
Level_Output : REAL;
(* Feedwater Flow Error *)
Flow_Error : REAL;
Flow_Error_Integral : REAL := 0.0;
Flow_Output : REAL;
(* Feed-Forward from Steam *)
Steam_Feedforward : REAL;
(* Final Output *)
Pump_Speed_Command : REAL; (* 0-100% of max RPM *)
(* ─── LIMITS & ALARMS ─── *)
Drum_Level_High_Alarm : REAL := 75.0; (* Carryover risk *)
Drum_Level_Low_Alarm : REAL := 20.0; (* Furnace tube exposure *)
Drum_Level_High_Trip : REAL := 85.0; (* Safety shutdown *)
Drum_Level_Low_Trip : REAL := 10.0; (* Safety shutdown *)
(* ─── STATUS FLAGS ─── *)
System_Online : BOOL := FALSE;
Boiler_In_Service : BOOL := FALSE;
Control_Mode : INT := 0; (* 0=Off, 1=Manual, 2=Auto *)
END_VAR
(* ═════════════════════════════════════════════════════════════ *)
(* STEP 1: SENSOR SIGNAL CONVERSION & SCALING *)
(* ═════════════════════════════════════════════════════════════ *)
(* Drum Level: Convert 4-20mA (0-4095 raw) to 0-100% *)
Drum_Level_Percent := (Drum_Level_Raw / 4095.0) * 100.0;
(* Feedwater Flow: Convert to t/h *)
Feedwater_Flow_Actual := (Feedwater_Flow_Raw / 4095.0) * 500.0; (* 0-500 t/h range *)
(* Steam Flow: Convert to t/h *)
Steam_Flow_Actual := (Steam_Flow_Raw / 4095.0) * 500.0;
(* Drum Pressure: For density compensation *)
Drum_Pressure_Actual := (Drum_Pressure_Raw / 4095.0) * 300.0;
(* ═════════════════════════════════════════════════════════════ *)
(* STEP 2: SAFETY INTERLOCKS & TRIPS *)
(* ═════════════════════════════════════════════════════════════ *)
(* High Level Alarm & Trip *)
IF Drum_Level_Percent > Drum_Level_High_Trip THEN
(* Emergency: stop feedwater pump, blow down tank *)
Pump_Speed_Command := 0.0;
SOLENOID_VENT_DRUM := TRUE; (* Vent steam to cool *)
ALARM_HIGH_LEVEL_TRIP := TRUE;
Boiler_In_Service := FALSE;
ELSIF Drum_Level_Percent > Drum_Level_High_Alarm THEN
(* Warning: reduce pump speed, alert operator *)
ALARM_HIGH_LEVEL := TRUE;
END_IF;
(* Low Level Alarm & Trip *)
IF Drum_Level_Percent < Drum_Level_Low_Trip THEN
(* Emergency: stop furnace, activate emergency cooling *)
Pump_Speed_Command := 100.0; (* Max feedwater injection *)
FURNACE_FUEL_CUTOFF := TRUE; (* Kill flame *)
EMERGENCY_COOLING_PUMP := TRUE;
ALARM_LOW_LEVEL_TRIP := TRUE;
Boiler_In_Service := FALSE;
ELSIF Drum_Level_Percent < Drum_Level_Low_Alarm THEN
(* Warning: increase pump speed *)
ALARM_LOW_LEVEL := TRUE;
END_IF;
(* ═════════════════════════════════════════════════════════════ *)
(* STEP 3: 3-ELEMENT CONTROL CALCULATION *)
/* ═════════════════════════════════════════════════════════════ *)
IF Control_Mode = 2 AND Boiler_In_Service THEN
(* ─────────────────────────────────────────────────────────── *)
(* ELEMENT 1: DRUM LEVEL ERROR LOOP *)
(* ─────────────────────────────────────────────────────────── *)
Level_Error := Drum_Level_Setpoint - Drum_Level_Percent;
(* Proportional action *)
Level_Error_Integral := Level_Error_Integral + (Level_Error * SCAN_TIME_SEC);
Level_Error_Integral := MAX(-20.0, MIN(20.0, Level_Error_Integral)); (* Anti-windup *)
Level_Output := (Level_Loop_Kp * Level_Error) + (Level_Loop_Ki * Level_Error_Integral);
(* ─────────────────────────────────────────────────────────── *)
(* ELEMENT 2: FEEDWATER FLOW ERROR LOOP *)
/* ─────────────────────────────────────────────────────────── *)
(* Flow setpoint = steam flow (mass balance) *)
Feedwater_Flow_Setpoint := Steam_Flow_Actual;
(* Error between actual and demanded flow *)
Flow_Error := Feedwater_Flow_Setpoint - Feedwater_Flow_Actual;
(* PID *)
Flow_Error_Integral := Flow_Error_Integral + (Flow_Error * SCAN_TIME_SEC);
Flow_Error_Integral := MAX(-20.0, MIN(20.0, Flow_Error_Integral));
Flow_Output := (Flow_Loop_Kp * Flow_Error) + (Flow_Loop_Ki * Flow_Error_Integral);
(* ─────────────────────────────────────────────────────────── *)
(* ELEMENT 3: STEAM FLOW FEED-FORWARD *)
/* ─────────────────────────────────────────────────────────── */
(* Anticipate pump demand from steam flow *)
(* If steam=100 t/h, anticipate feedwater need ≈ 90 t/h (90% efficiency) *)
Steam_Feedforward := Steam_FF_Gain * Steam_Flow_Actual;
(* ─────────────────────────────────────────────────────────── *)
(* COMBINE ALL THREE ELEMENTS *)
/* ─────────────────────────────────────────────────────────── */
Pump_Speed_Command := Level_Output + Flow_Output + Steam_Feedforward;
(* Limit to motor speed range *)
Pump_Speed_Command := MAX(0.0, MIN(100.0, Pump_Speed_Command));
ELSIF Control_Mode = 1 THEN
(* Manual mode: operator directly sets pump speed via HMI *)
ELSE
(* Control off *)
Pump_Speed_Command := 0.0;
END_IF;
(* ═════════════════════════════════════════════════════════════ *)
(* STEP 4: OUTPUT TO FEEDWATER PUMP VFD *)
/* ═════════════════════════════════════════════════════════════ */
WRITE_ANALOG_OUTPUT(AO_01, Pump_Speed_Command); (* 0-100% *)
(* ═════════════════════════════════════════════════════════════ *)
(* STEP 5: DIAGNOSTICS & TRENDING *)
/* ═════════════════════════════════════════════════════════════ */
(* Log every 10 seconds for trending *)
IF (SCAN_COUNT MOD 10) = 0 THEN
LOG_RECORD := [
Timestamp: NOW(),
Drum_Level: Drum_Level_Percent,
Steam_Flow: Steam_Flow_Actual,
FW_Flow: Feedwater_Flow_Actual,
FW_Pump_Speed: Pump_Speed_Command,
Drum_Pressure: Drum_Pressure_Actual,
Level_Loop_Output: Level_Output,
Flow_Loop_Output: Flow_Output,
FF_Output: Steam_Feedforward
];
WRITE_TO_DATABASE(LOG_RECORD);
END_IF;
END_PROGRAM
```
---
## 🏷️ Tag List
| Tag | Type | Range | Unit | Description |
|-----|------|-------|------|-------------|
| `DRUM_LEVEL` | REAL | 0-100 | % | Drum glass level (50% = center) |
| `DRUM_LEVEL_SP` | REAL | 30-70 | % | Desired level (typically 50%) |
| `DRUM_LEVEL_PV_HI` | REAL | min/max | % | High alarm threshold |
| `DRUM_LEVEL_PV_LO` | REAL | min/max | % | Low alarm threshold |
| `DRUM_LEVEL_ERROR` | REAL | ±100 | % | SP - PV for diagnostics |
| `STEAM_FLOW` | REAL | 0-500 | t/h | Measured steam flow (main line orifice) |
| `FW_FLOW_ACTUAL` | REAL | 0-500 | t/h | Measured feedwater flow |
| `FW_FLOW_SP` | REAL | 0-500 | t/h | Demanded feedwater = steam flow (dynamic) |
| `FW_PUMP_SPEED_CMD` | REAL | 0-100 | % | Pump VFD command (3-element output) |
| `FW_PUMP_RUNNING` | BOOL | - | - | Pump motor running status |
| `DRUM_PRESSURE` | REAL | 0-400 | bar | Boiler pressure (for compensation) |
| `LEVEL_LOOP_KP` | REAL | 0-10 | - | Level proportional gain |
| `LEVEL_LOOP_KI` | REAL | 0-1 | - | Level integral gain |
| `FLOW_LOOP_KP` | REAL | 0-5 | - | Flow proportional gain |
| `FLOW_LOOP_KI` | REAL | 0-1 | - | Flow integral gain |
| `STEAM_FF_GAIN` | REAL | 0-1.5 | - | Feed-forward factor (0.8-0.95 typical) |
| `CONTROL_MODE` | INT | 0/1/2 | - | 0=Off, 1=Manual, 2=Auto |
| `ALARM_LEVEL_HIGH` | BOOL | - | - | Level > high alarm (75%) |
| `ALARM_LEVEL_LOW` | BOOL | - | - | Level < low alarm (20%) |
| `TRIP_LEVEL_HIGH` | BOOL | - | - | Level > trip (85%) → shutdown |
| `TRIP_LEVEL_LOW` | BOOL | - | - | Level < trip (10%) → emergency |
---
## 🚨 Safety Interlocks & Trip Matrix
| Safety Function | Trigger | Action | ASME Code |
|-----------------|---------|--------|-----------|
| **High Level Trip** | Level ≥ 85% | Cut fuel, stop pump, vent drum | PG-7.5 |
| **Low Level Trip** | Level ≤ 10% | Cut fuel, max pump, emergency cool | PG-7.3 |
| **Furnace Over-Pressure** | Pressure > 320 bar | Close steam isolation, reduce fuel | PG-8.0 |
| **Loss of Feedwater Flow** | FW = 0 for 30 sec | Cut fuel, activate emergency feed | PG-9.0 |
| **Water Quality Alarm** | TDS > 3500 ppm | Activate blowdown valve | EPA-WQ |
| **Tube Leak Detection** | Sudden level drop | Hot restart protection | ASME IX |
---
## 📺 HMI Layout (Operator Console)
```
┌─────────────────────────────────────────────────┐
│ BOILER #1 - DRUM LEVEL & FEEDWATER │
├─────────────────────────────────────────────────┤
│ │
│ DRUM LEVEL: 48.2% ═════●═════════════════ 50% │
│ ↓ (Below setpoint) │
│ │
│ LOAD: 285 MW │ STEAM: 401.3 t/h │
│ PRESSURE: 167.4 bar │
│ │
│ ┌────────────── CONTROL ELEMENTS ──────────┐ │
│ │ │ │
│ │ LEVEL LOOP: [████░░░░░ +12%] │ │
│ │ FLOW LOOP: [████████░░ +5%] │ │
│ │ STEAM FF: [██████░░░░ +32%] │ │
│ │ ────────────────────────────────── │ │
│ │ PUMP COMMAND: [████████░ 49%] │ │
│ │ │ │
│ └───────────────────────────────────────────┘ │
│ │
│ FW Flow: 397.4 t/h (Target: 401 t/h) OK ✓ │
│ FW Temp: 159.4°C (Heater outlet) OK ✓ │
│ FW Pressure: 185.5 bar OK ✓ │
│ │
│ ☐ Manual ◉ Auto Mode │
│ │
│ [Pump Start] [Pump Stop] [Reset Trip] │
│ │
└─────────────────────────────────────────────────┘
```
---
## 🔧 Configuration & Tuning Parameters
```json
{
"boiler_class": "coal_fired_500_mwth",
"drum_capacity_m3": 18.4,
"working_pressure_bar": 170,
"max_steam_flow_t_h": 450,
"level_transmitter_range_percent": [0, 100],
"level_setpoint": 50.0,
"flow_meter_type": "orifice_plate",
"flow_meter_range_t_h": 500,
"tuning_method": "ziegler_nichols_commissioning",
"level_loop": {
"kp": 2.0,
"ki": 0.10,
"gain_schedule": "pressure_compensated"
},
"flow_loop": {
"kp": 1.2,
"ki": 0.15,
"gain_schedule": "fixed"
},
"steam_feedforward": {
"gain": 0.9,
"lag_filter_sec": 2.0
},
"safety_limits": {
"level_high_alarm": 75.0,
"level_high_trip": 85.0,
"level_low_alarm": 20.0,
"level_low_trip": 10.0
}
}
```
---
## 📝 Implementation Checklist
### Pre-Installation (Vendor Responsibility)
- [ ] **Flow transmitters calibrated** (certificate from NIST-traceable lab)
- [ ] **Level transmitter tested** (differential pressure type, 4-20mA output)
- [ ] **Pressure gauge verified** (0-300 bar, glycerin-filled, isolation blocks)
- [ ] **Feedwater pump curve** (t/h vs bar @ various speeds from vendor)
- [ ] **VFD tuning completed** by electrician (ramp times, current limits)
### Commissioning (4 Days)
**Day 1: Cold startup**
- [ ] Manual level control (fill drum to 50%)
- [ ] Verify all transmitters read correctly
- [ ] Test emergency stop (E-stop buttons functional)
- [ ] Check feedwater pump (no cavitation, noise)
**Day 2: Hot light-off**
- [ ] Bring boiler to 50 bar slowly (no fast pressure rise)
- [ ] Activate auto control at low load (50 MW)
- [ ] Monitor level/flow oscillations (should be <±5%)
- [ ] Record baseline: Level error, flow error, pump command trends
**Day 3: Mid-load tuning**
- [ ] Ramp to 50% load (150 MW)
- [ ] Adjust gains if oscillating (↓Kp) or sluggish (↑Kp)
- [ ] Verify steam feedforward improves response
- [ ] Test high/low level alarms trip furnace
**Day 4: Full load + emergency drills**
- [ ] Full load (300 MW) for 4 hours steady
- [ ] Sudden load change (step ±50 MW) → verify level ±5% max
- [ ] Simulate loss of feedwater → emergency feed should activate
- [ ] Simulate drum level high → should vent and reduce pump
- [ ] Prepare final trending report
---
## 📊 Expected Performance
| Metric | Spec | Achievable |
|--------|------|-----------|
| **Steady-state level error** | ±2% | ±1-3% |
| **Level oscillation amplitude** | <±5% | ±3-5% |
| **Settling time (after load step)** | 120 sec | 60-180 sec |
| **Response to 10% steam step** | <120 sec to new level | 80-100 sec |
| **Pump command smoothness** | No step changes | Continuous ramp |
| **Alarm response time** | <5 sec to setpoint | 2-8 sec |
---
## 🔄 Advanced Topics
### Pressure Compensation
At low pressure (startup): 1% drum level ≈ larger volume (liquid less dense)
At high pressure (operation): 1% drum level ≈ smaller actual volume
→ Schedule Kp & Ki gains with pressure (factory-tuned curves provided by boiler maker)
### Dual-Element Fallback
If steam flow transmitter fails:
- Disable Element 3 (feed-forward)
- Run 2-element control (level + flow only)
- Slightly slower response but still acceptable
### Coordinated Boiler Control
Integrate with other loops:
- **Drum pressure control** → Fuel/air ratio adjustment
- **Superheater outlet temperature** → Attemperation valve
- **Feed pump outlet pressure** → Booster pump modulation
---
**Industry-proven template, deployed in >500 thermal power plants globally.**