PWM / Active-Front-End Rectifier
A fully controlled three-phase rectifier that shapes its own grid current into a sine at unity power factor, holds the DC bus wherever you ask — and, unlike every rectifier before it, can send the power straight back to the grid.
- Introduction
- What is an Active Front End?
- Circuit Diagram & Construction (Typical AFE Topology)
- Why an AFE Instead of a Diode Rectifier?
- Control Diagram of the Active Front End
- Line-Cycle Waveforms (Deep Dive)
- Switching-Cycle Waveforms (Deep Dive)
- Rectifying vs Regenerating (Deep Dive)
- DC-Bus Step Response & dq Currents
- Key Parameters & Formulas
- AFE vs Other Rectifiers
- Advantages & Disadvantages
- Applications
- Frequently Asked Questions – FAQs
- Related Topics
Introduction
An ordinary three-phase diode bridge is cheap and rugged, but it is also dumb. It gulps current in ugly spikes, throws harmonics back into the grid, gives you whatever DC voltage the mains happens to provide, and it is a one-way street — energy can only flow from the grid into the load. The moment your load tries to give energy back (a motor braking, a lift coming down, a battery discharging), a diode bridge simply cannot accept it.
The Active Front End — also called a PWM rectifier or active rectifier — replaces those six diodes with six controllable switches. Because the converter can now decide, thousands of times a second, exactly what voltage to put on each phase, it can shape the grid current into a clean sine, hold it in phase with the voltage for unity power factor, regulate the DC bus to a chosen value, and — the big one — run the power backwards into the grid when the load wants to regenerate. That is why AFEs sit in front of variable-speed drives and fast EV chargers. This page covers the topology, the control that makes it work, and the waveforms.
What is an Active Front End?
An Active Front End (AFE) belongs to the family of controllable rectifiers: AC-to-DC converters whose switches are actively driven rather than left to conduct on their own. Physically it is the very same three-phase, two-level bridge used as an inverter — only here it is run in reverse, pulling power from the grid into a DC bus. Its headline abilities are:
- Bidirectional power flow — it rectifies, and it can inject regenerative power back into the grid.
- Current shaping — the grid current is forced to be sinusoidal, giving low THD.
- Power factor control — usually run at unity power factor, but it can deliberately supply reactive power if asked.
- A regulated DC bus — the output voltage is held at a setpoint you choose (it is a boost-type converter, so that setpoint must sit above the grid’s line-to-line peak).
Circuit Diagram & Construction (Typical AFE Topology)
The typical AFE is a three-phase, two-level voltage-source bridge. Its parts are few and familiar:
- Three half-bridge legs — six switches (S1…S6): each leg is an upper and a lower switch (MOSFETs or IGBTs), each with an anti-parallel diode. The midpoint of each leg is that phase’s output. Upper and lower are driven complementary (with a small dead-time).
- Grid filter (Lg, Rg): an inductor per phase between the grid and each leg midpoint. It carries the grid current ig and smooths the switching ripple. For tighter harmonic attenuation an LCL filter is often used instead of a plain L.
- DC-link capacitor (Cdc): stiffens the DC bus Vdc and absorbs the switching and transient currents.
- DC load: the drive inverter, charger stage or whatever the bus feeds.
Why an AFE Instead of a Diode Rectifier?
Swapping six diodes for six switches buys four things a diode bridge can never give you:
- Regeneration. Power can flow both ways. A braking motor or a discharging battery pushes energy back to the grid instead of burning it in a braking resistor.
- Clean current. The current is actively shaped into a sine, so THD is low and the grid stays happy.
- Power factor you choose. Normally unity; but the same control can inject reactive power on purpose.
- A DC bus you choose. The output is regulated to a setpoint and stays there through load steps — a diode bridge just follows the mains.
Control Diagram of the Active Front End
All of the AFE’s cleverness lives in its control. The standard scheme is voltage-oriented control: line up a rotating reference frame with the grid voltage, then the messy three-phase AC quantities become two steady DC-like numbers that a plain PI controller can handle. It is built as two nested loops:
- Grid synchronisation (SRF-PLL): a phase-locked loop tracks the grid’s phase and frequency and gives a clean angle θ. Everything else is timed from θ. Switching is only allowed once the PLL is locked (and the pre-charge relays are closed).
- abc → dq: using θ, the three measured currents become just two: ig,d (the active, power-carrying part) and ig,q (the reactive part). In steady state both are flat DC values, which is why simple PI controllers work so well here.
- Outer loop — DC-link voltage PI: compares Vdc with its setpoint and outputs the d-axis current reference i*g,d — in plain words, “draw this much active current to keep the bus up”. It is deliberately slow and uses saturation with anti-windup.
- Inner loop — dq current PIs: two fast PI controllers drive ig,d and ig,q to their references. Setting i*g,q = 0 is what gives unity power factor; ask for a non-zero q and the AFE supplies reactive power instead.
- Decoupling & feed-forward: the d and q axes naturally pull on each other through the filter inductance (the ±ωLgi terms). Those terms are calculated and added back so each axis behaves independently, and the measured grid voltage is fed forward so the PIs only have to correct the small remainder.
- dq → abc and PWM: the two voltage references are rotated back into three-phase quantities using θ and handed to the modulator, which produces the gate pulses for the six switches.
Line-Cycle Waveforms (Deep Dive)
Over one grid cycle the AFE looks beautifully boring on the grid side — which is exactly the point — while the converter terminals are chopping hard.
- Grid currents: sinusoidal and in phase with the voltages — near-unity power factor and low THD, which is the whole reason to use an AFE.
- Two-level pole voltage: notice the contrast with the Vienna rectifier, which has three levels. Here every switching step swings the full bus, so the devices must block all of Vdc and the filter has more ripple to mop up — the price of full bidirectional control.
- Pulse widths tell the story: the pulses are widest at the positive peak and narrowest at the negative peak. That sinusoidal modulation is what the inductor turns into a sinusoidal current.
- DC bus: flat, because the outer PI keeps it there regardless of what the grid or the load does.
Switching-Cycle Waveforms (Deep Dive)
Zoom in on a few switching periods of one leg and the mechanism is obvious:
- Complementary switching: when S1 is on the phase is tied to the top rail; when S2 is on it is tied to the bottom rail. A short dead-time between them stops the leg from shorting the bus.
- Current ripple: the slope of ig is set by (vpole − vgrid)/Lg. A bigger inductor or a faster switching frequency means less ripple — and an LCL filter cleans up what is left.
- The anti-parallel diodes carry the current whenever it flows against the switch it is in — which is what lets the same bridge work in both power directions.
Rectifying vs Regenerating (Deep Dive)
This is the AFE’s party trick, and it is easiest to see in one picture. Nothing changes in the hardware — the controller simply asks for a negative d-axis current, and the current flips over. The voltage keeps doing exactly what it was doing:
- Power is voltage × current. When v and i rise and fall together, their product is positive on average — power flows in. Flip the current over and the product goes negative — power flows out. That is all “regeneration” is.
- The power factor is still unity in both cases: the current is still a clean sine perfectly aligned (or anti-aligned) with the voltage. Only the direction changed, not the quality.
- In practice this is a motor braking, a lift descending, or a battery discharging — energy that a diode bridge would have to burn in a resistor is instead sold back to the grid.
DC-Bus Step Response & dq Currents
Because the outer loop is a real controller, you can ask the bus for a new voltage and watch it get there. Here the reference is stepped up and the bus follows in a few milliseconds with only a small overshoot, while the current controllers do the work underneath:
- The outer loop is deliberately slow (a bandwidth of roughly 50 Hz here). It only has to keep the bus steady, and going faster would just fight the natural ripple and the inner loop.
- ig,d is the throttle: to lift the bus you must temporarily draw extra active current from the grid, so d surges, then falls back once the bus is at its new level.
- ig,q staying flat at zero through the whole transient is the visible proof that the decoupling terms are doing their job — the power factor never wobbles even while the bus is moving.
- Load steps behave the same way: a sudden extra DC load pulls the bus down a few volts, and the loop recovers it in a few tens of milliseconds.
Key Parameters & Formulas
| Quantity | Formula & Value |
|---|---|
| Boost condition (must hold) | Vdc ≥ VLL,peak — below this the diodes conduct and the current is uncontrollable |
| Pre-charge threshold before switching | Vdc,min = 0.9 · √3 · Vphase,peak |
| Unity power factor condition | i*g,q = 0 (all current on the d-axis) |
| Current-loop PI (Magnitude Optimum) | Kp,I = Lg / (2Td) , Ki,I = Rg / (2Td) |
| Voltage-loop PI integral gain | Ki,V = Kp,V · 2πfBW / tan(φPM) |
| Rise-time estimate | tr ≈ 0.35 / fBW (≈ 7 ms at fBW = 50 Hz) |
| Levels per phase | 2 (+Vdc/2, −Vdc/2) |
| Example bench values | 230 Vrms/50 Hz grid, Vdc 650–800 V, Lg = 950 µH, Rg = 54 mΩ |
AFE vs Other Rectifiers
| Feature | 6-Pulse Diode Bridge | Vienna Rectifier | PWM / AFE Rectifier |
|---|---|---|---|
| Active switches | 0 | 3 | 6 |
| Levels | — | 3 | 2 |
| Power factor / THD | Poor | Excellent | Excellent |
| DC bus regulation | No (follows mains) | Yes | Yes |
| Power direction | Unidirectional | Unidirectional | Bidirectional |
| Reactive power control | No | Limited | Yes |
| Device voltage stress | Full bus | Half bus | Full bus |
| Best for | Cheap, tolerant loads | Efficient one-way chargers | Regeneration, drives, V2G |
Advantages & Disadvantages
Advantages
- Bidirectional — regenerative energy goes back to the grid instead of into a brake resistor.
- Sinusoidal grid current, low THD and a power factor you control (unity, or leading/lagging on demand).
- Regulated, boosted DC bus that holds through load and grid disturbances.
- Same hardware as an inverter, so it reuses standard half-bridge modules and pairs naturally into back-to-back converters.
Disadvantages
- Six active switches plus gate drives — more cost and more to go wrong than a diode bridge.
- Complex control — PLL, dq transforms, two tuned loops, decoupling, plus pre-charge and protection logic.
- Two-level switching means full-bus voltage steps: higher switching loss, more EMI and a bigger filter than a three-level design like the Vienna rectifier.
- Boost only — Vdc can never go below the line-to-line peak.
Applications
- Variable-speed drives — the classic AFE job, letting motors brake regeneratively (cranes, lifts, centrifuges, test benches).
- Fast EV chargers and bidirectional / vehicle-to-grid charging.
- Back-to-back converters — an AFE plus an inverter, as used in wind turbines and motor drives.
- Grid-tied inverters, battery storage and microgrids, where the same bridge runs as a grid-following (or grid-forming) converter.