Load / Frequency Control (AGC / LFC) — Control Design
Shared by TSIMEREZIVO Team · 4 Oct 2026 · 36 views
# Power Generation Template: Load / Frequency Control (AGC / LFC)
## 1. Overview
**Purpose:**
Automatic Generation Control (AGC) and Load-Frequency Control (LFC) for a generating unit participating in primary, secondary, and tertiary frequency response. Covers Area Control Error (ACE) computation, generation ramp management, tie-line bias control, and unit economic dispatch integration.
**Industry Standards:**
- NERC BAL-001 (Real Power Balancing Control Performance)
- NERC BAL-003 (Frequency Response and Frequency Bias Setting)
- UCTE/ENTSO-E P1/P2/P3 policies (Continental Europe Grid Code)
- IEEE Std 1547.12 (Distributed Resource Frequency Response)
- IEC 60050-603 (Power System Control Terminology)
- FERC Order 842 (Primary Frequency Response — mandatory for interconnection)
**Critical Constraints:**
- **ACE target:** 0 MW within 10-minute control area (NERC BAL-001 CPS1/CPS2 compliance)
- **Primary response:** Must be fully activated within 30 s of frequency deviation (NERC)
- **Ramp rate limit:** Must not exceed contracted ramp rate (MW/min) — AGC over-request causes GT trips
- **Frequency bias setting (B):** Per NERC BAL-003 — B = 10 × rated_MW × R⁻¹ (R = droop in p.u.) MW/0.1Hz
- **Dead band (AGC):** ±0.06 Hz — no AGC response within this band (primary governor handles it)
- **Tie-line scheduling:** Interchange must match NERC-approved interchange schedules ±10 MW
- **Manual override:** Operators MUST be able to override ACE correction at any time
- **Communication loss:** If AGC signal lost > 30 s, revert to last setpoint (hold control)
**Relevant Physics:**
- Area Control Error: **ACE = ΔP_tie − B × Δf** (MW — negative bias factor)
- ΔP_tie = Actual interchange − Scheduled interchange
- B = Frequency bias (MW/0.1 Hz) — typically −(10 × rated capacity × R⁻¹)
- Δf = f_actual − f_scheduled (Hz)
- Load-Frequency characteristic: **Δf = −(ΔP_load + ΔP_AGC_correction) / D**
- D = system load damping coefficient (%MW/%Hz)
- Capacity factor: **CF = P_actual / P_rated** (unitless 0–1)
- Economic dispatch merit order: **λ = dC/dP** (incremental cost $/MWh — equal for all units at optimum)
---
## 2. Control Philosophy
**Challenge:**
AGC must coordinate multiple generating units to maintain area control performance while respecting each unit's ramp rate, MW limits, and governor response. Under-correction causes ACE accumulation (frequency deviation); over-correction causes generation trips or oscillations.
**Solution: Three-Level Frequency Response Architecture**
```
Primary Response (0–30 s): Governor Droop (see Template 02)
- Automatic, no communication required
- Proportional to frequency deviation × droop characteristic
- Response: fully deployed within 30 s
- Non-restorative: establishes new equilibrium at offset frequency
Secondary Response (30 s – 10 min): AGC / LFC
- Integral control of ACE (Area Control Error)
- Receives setpoint from Energy Management System (EMS)
- Distributes correction across participating units via participation factors
- Restores frequency to scheduled value (removes primary response offset)
Tertiary Response (10 min – 60 min): Economic Dispatch
- Optimizes unit loading for minimum fuel cost
- Considers bid prices, constraints, minimum stable generation
- Communicates new schedules to units; AGC layer tracks to new schedule
ACE Calculation:
ACE = (ΔP_tie_actual − ΔP_tie_scheduled) − B × (f_actual − f_scheduled)
ACE Correction Distribution:
ΔP_unit_i = participation_factor_i × AGC_correction_total
participation_factor_i = reg_capacity_i / Σ(reg_capacity_all_units)
Ramp Management:
- AGC_correction filtered through ramp rate limiter (MW/min)
- Smooth correction to avoid generator hunting
- Emergency mode: Ramp rate doubled if ACE > 25% of total regulation capacity
```
---
## 3. Control Logic
```pascal
{ === AUTOMATIC GENERATION CONTROL (AGC / LFC) === }
{ Secondary frequency regulation for interconnected power system area }
{ Executes on EMS/SCADA at 4-second scan cycle }
PROGRAM AGC_Controller
CONSTANTS
FREQ_SCHEDULED_HZ = 50.000 { Hz — scheduled frequency }
BIAS_FACTOR_MW = -150.0 { MW/0.1Hz — area frequency bias (negative) }
ACE_DEADBAND_MW = 5.0 { MW — ACE deadband (don't correct small errors) }
FREQ_DEADBAND_HZ = 0.06 { Hz — frequency deadband (governor handles this) }
AGC_KI = 0.03 { MW/(MW·s) — AGC integral gain }
AGC_KP = 0.5 { MW/MW — AGC proportional gain }
RAMP_RATE_MWM = 30.0 { MW/min — maximum AGC ramp command rate }
MAX_REGULATION_MW = 200.0 { MW — total regulation capacity available }
MIN_REGULATION_MW = -200.0 { MW — maximum load shedding response }
COMM_TIMEOUT_S = 30.0 { s — SCADA/EMS communication watchdog }
CPS1_LIMIT = 100.0 { % — NERC CPS1 minimum compliance target }
VARIABLES
{ Inputs — from SCADA/EMS }
freq_actual_hz : REAL { Hz — area frequency measurement }
tie_actual_mw : REAL { MW — actual tie-line interchange (+ = export) }
tie_scheduled_mw : REAL { MW — NERC-approved interchange schedule }
agc_enable : BOOL { Operator AGC enable/disable }
emergency_mode : BOOL { EMS emergency dispatch flag }
comm_watchdog_ok : BOOL { EMS communication healthy }
{ Per-unit inputs (array index = unit number) }
unit_mw_actual : ARRAY[1..4] OF REAL { MW — actual generation }
unit_mw_max : ARRAY[1..4] OF REAL { MW — maximum capability }
unit_mw_min : ARRAY[1..4] OF REAL { MW — minimum stable generation }
unit_ramp_mwm : ARRAY[1..4] OF REAL { MW/min — unit ramp limit }
unit_agc_enabled : ARRAY[1..4] OF BOOL { Unit participating in AGC }
{ Outputs — setpoints to unit governors }
unit_mw_setpoint : ARRAY[1..4] OF REAL { MW — dispatch setpoint }
agc_raise_lower : REAL { MW — net raise/lower signal }
alarm_ace_high : BOOL
alarm_comm_loss : BOOL
alarm_cps_violation : BOOL
{ Internals }
delta_freq_hz : REAL { Hz — frequency error }
delta_tie_mw : REAL { MW — interchange error }
ace_mw : REAL { MW — Area Control Error }
ace_integral : REAL { MW·s — ACE integral }
agc_correction_mw : REAL { MW — total required generation change }
agc_ramp_limited_mw : REAL { MW — rate-limited correction }
agc_correction_last : REAL { MW — previous cycle (for rate limiting) }
participation_factor : ARRAY[1..4] OF REAL { unitless 0–1 }
total_reg_capacity : REAL { MW }
unit_reg_capacity : ARRAY[1..4] OF REAL { MW per unit }
cps1_avg : REAL { % — 12-month CPS1 rolling average }
scan_time_s : REAL := 4.0 { s — AGC scan cycle }
BEGIN
{ --- Communication Watchdog --- }
alarm_comm_loss := NOT comm_watchdog_ok
IF alarm_comm_loss THEN
{ Freeze setpoints at last values — hold control }
RETURN
END_IF
IF NOT agc_enable THEN RETURN END_IF
{ --- ACE Calculation --- }
delta_freq_hz := freq_actual_hz - FREQ_SCHEDULED_HZ
delta_tie_mw := tie_actual_mw - tie_scheduled_mw
{ NERC definition: ACE = ΔPtie - B × Δf }
ace_mw := delta_tie_mw - BIAS_FACTOR_MW * (delta_freq_hz / 0.1)
alarm_ace_high := ABS(ace_mw) > MAX_REGULATION_MW * 0.5
{ --- AGC Dead Bands --- }
{ Do not respond if both tie error and frequency error are within dead bands }
IF ABS(ace_mw) < ACE_DEADBAND_MW AND ABS(delta_freq_hz) < FREQ_DEADBAND_HZ THEN
ace_integral := ace_integral * 0.99 { Decay integral to zero naturally }
agc_correction_mw := 0.0
GOTO DISPATCH
END_IF
{ --- PI ACE Correction --- }
{ Integral anti-windup: freeze at regulation limits }
IF NOT (agc_correction_mw >= MAX_REGULATION_MW AND ace_mw > 0.0) AND
NOT (agc_correction_mw <= MIN_REGULATION_MW AND ace_mw < 0.0) THEN
ace_integral := ace_integral + (-ace_mw) * scan_time_s
END_IF
agc_correction_mw := AGC_KP * (-ace_mw) + AGC_KI * ace_integral
agc_correction_mw := MAX(MIN_REGULATION_MW, MIN(MAX_REGULATION_MW, agc_correction_mw))
{ --- Emergency Mode: Double ramp rate --- }
IF emergency_mode THEN
agc_ramp_limited_mw := agc_correction_mw { Remove ramp limiting }
ELSE
{ Rate limit: max MW/min converted to MW/scan }
IF agc_correction_mw - agc_correction_last > RAMP_RATE_MWM * scan_time_s / 60.0 THEN
agc_ramp_limited_mw := agc_correction_last + RAMP_RATE_MWM * scan_time_s / 60.0
ELSIF agc_correction_last - agc_correction_mw > RAMP_RATE_MWM * scan_time_s / 60.0 THEN
agc_ramp_limited_mw := agc_correction_last - RAMP_RATE_MWM * scan_time_s / 60.0
ELSE
agc_ramp_limited_mw := agc_correction_mw
END_IF
END_IF
agc_correction_last := agc_ramp_limited_mw
agc_raise_lower := agc_ramp_limited_mw
{ === DISPATCH: Distribute correction across participating units === }
DISPATCH:
{ --- Calculate regulation capacity per unit --- }
total_reg_capacity := 0.0
FOR i := 1 TO 4 DO
IF unit_agc_enabled[i] THEN
unit_reg_capacity[i] := MIN(unit_mw_max[i] - unit_mw_actual[i],
unit_mw_actual[i] - unit_mw_min[i])
unit_reg_capacity[i] := MAX(0.0, unit_reg_capacity[i])
total_reg_capacity := total_reg_capacity + unit_reg_capacity[i]
ELSE
unit_reg_capacity[i] := 0.0
END_IF
END_FOR
{ --- Participation factors (proportional to available regulation) --- }
FOR i := 1 TO 4 DO
IF total_reg_capacity > 0.0 AND unit_agc_enabled[i] THEN
participation_factor[i] := unit_reg_capacity[i] / total_reg_capacity
ELSE
participation_factor[i] := 0.0
END_IF
END_FOR
{ --- Unit setpoints with individual ramp and MW limits --- }
FOR i := 1 TO 4 DO
IF unit_agc_enabled[i] THEN
{ Proposed new setpoint }
unit_mw_setpoint[i] := unit_mw_actual[i] + participation_factor[i] * agc_ramp_limited_mw
{ Apply unit ramp limit }
unit_mw_setpoint[i] := MAX(unit_mw_actual[i] - unit_ramp_mwm[i] * scan_time_s / 60.0,
MIN(unit_mw_actual[i] + unit_ramp_mwm[i] * scan_time_s / 60.0,
unit_mw_setpoint[i]))
{ Apply MW operating limits }
unit_mw_setpoint[i] := MAX(unit_mw_min[i], MIN(unit_mw_max[i], unit_mw_setpoint[i]))
END_IF
END_FOR
END_PROGRAM
```
---
## 4. Tag List (ISA-5.1 Naming)
| Tag Name | Description | Type | Direction | EGU | Lo | Hi |
|---|---|---|---|---|---|---|
| `AGC_FREQ_PV` | Area frequency measurement | REAL | Input | Hz | 49.0 | 51.0 |
| `AGC_TIE_ACT_PV` | Actual tie-line interchange | REAL | Input | MW | -300 | 300 |
| `AGC_TIE_SCH_PV` | Scheduled tie-line interchange | REAL | Input | MW | -300 | 300 |
| `AGC_ACE_PV` | Area Control Error | REAL | Calculated | MW | -300 | 300 |
| `AGC_CORR_MW` | AGC correction signal | REAL | Calculated | MW | -200 | 200 |
| `AGC_ENABLE` | AGC enable/disable | BOOL | Input | — | — | — |
| `AGC_EMERG_MODE` | Emergency dispatch mode | BOOL | Input | — | — | — |
| `AGC_COMM_WD` | EMS communication watchdog | BOOL | Input | — | — | — |
| `AGC_U1_SP` | Unit 1 MW setpoint | REAL | Output | MW | 0 | 300 |
| `AGC_U2_SP` | Unit 2 MW setpoint | REAL | Output | MW | 0 | 300 |
| `AGC_U3_SP` | Unit 3 MW setpoint | REAL | Output | MW | 0 | 300 |
| `AGC_U4_SP` | Unit 4 MW setpoint | REAL | Output | MW | 0 | 300 |
| `AGC_CPS1_AVG` | 12-month CPS1 rolling average | REAL | Calculated | % | 0 | 200 |
---
## 5. Alarm Configuration (ISA-18.2)
| Alarm Tag | Description | Priority | Setpoint | Action |
|---|---|---|---|---|
| `AGC_ACE_HIGH_ALM` | ACE exceeds 50% regulation range | High | >100 MW | Verify unit availability; check EMS |
| `AGC_ACE_PERSIST_ALM` | ACE > 30 MW for > 10 min | High | 10 min | Notify ISO/TSO; potential NERC violation |
| `AGC_COMM_LOSS_ALM` | EMS communication lost | Critical | 30 s timeout | Hold setpoints; alert operator immediately |
| `AGC_FREQ_DEV_ALM` | Area frequency deviation | High | ±0.3 Hz | Verify primary response; check governor droop |
| `AGC_CPS1_ALARM` | CPS1 compliance below threshold | Medium | <100% | Review AGC tuning; unit outage check |
| `AGC_RAMP_SAT_ALM` | AGC ramp limit saturated | Medium | — | Units may be at capacity; request ISO assistance |
---
## 6. NERC BAL-001 Compliance Targets
| Metric | Standard | Monitoring |
|---|---|---|
| CPS1 (Control Performance Standard 1) | ≥ 100% (12-month average) | ACE × Δf product |
| CPS2 (10-minute ACE average) | Must not exceed L10 limit | ΔP_L10 = 1.65 × √(10 × BF) |
| Disturbance Control Standard (DCS) | Return ACE to pre-disturbance within 15 min | Event-triggered; logged per NERC |
| Primary Response | ≥ governor droop response within 30 s | Per NERC BAL-003 |
---
## 7. Commissioning Checklist
- [ ] Verify SCADA data feeds: frequency, tie-line MW, unit MW actual — confirm quality flags
- [ ] Calculate and configure frequency bias (B) per NERC BAL-003 formula; document in operating procedure
- [ ] Test communication watchdog: interrupt EMS feed for 35 s; confirm setpoints freeze and alarm
- [ ] Test ACE deadband: inject ±4 MW ACE; confirm no AGC response
- [ ] Test ACE response: inject −20 MW ACE (excess load); confirm raise signal distributed across units
- [ ] Verify participation factors sum to 1.0 across all enabled units
- [ ] Verify unit ramp rate limits: command step change; confirm MW ramp does not exceed design limit
- [ ] Simulate emergency mode: toggle emergency flag; confirm ramp rate doubling
- [ ] Verify NERC CPS1 calculation logic — cross-check with ISO/TSO settlement data first month
- [ ] Review and sign commissioning report with transmission operator before AGC activation