Interactive explainer
The synchronous reference frame PLL
A grid-connected converter needs the grid's angle at every instant. The SRF-PLL finds it by turning a Park frame until is zero. Below, the loop runs block by block with every wire's signal on it: tune it by its gains or by how fast you want it to settle, then throw a phase jump, a frequency step or ramp, a sag, unbalance or harmonics at it.
From the courses Analysis and Control of Modern Power Electronics Dominated Power Systems (UPC Barcelona) and Control of Electrical Machines and Power Electronics (UPC Barcelona).
Tap a block, or reach it with Tab, to read its equation and its numbers now.
| Error now | 0° |
|---|---|
| Largest after 40 ms | 40.0° |
| At the end | 0° |
Back within 2 % of the largest error (0.8°) 38.4 ms after the change.
What it is
The grid's voltage, phase a cosine, is a vector of length at the grid's angle in the αβ plane of the Clarke transformation. The PLL keeps its own angle, , and takes the Park transformation at it, on phase 's axis at and ahead:
So says how far the frame is behind the grid: positive when it lags, zero when it is on the vector, and then . Divided by the vector's length it is the angle error itself for small errors, . A PI controller turns that error into a correction of the frequency, and an integrator turns the frequency into the angle:
The integrator does what the voltage-controlled oscillator does in an analogue PLL, and fed forward means the PI only has to supply the difference. Dividing by makes (in 1/s) and (in 1/s²) the same whatever the voltage, so a sag doesn't slow the loop; without it the gains are per volt, and a sag to half the voltage halves them.
Who writes it otherwise
Papers and tools differ in which axis they drive to zero and in what units their gains are. A paper with its PI acting on a voltage in volts has gains per volt: multiply them by the voltage they were written for to get this page's, and, where the PI is written , .
| Who | Phase | Driven to zero | The error | The gains | To get this page's |
|---|---|---|---|---|---|
| This page | cosine | , radians | , | ||
| imperix TN103 | not stated | normalised | , | the same; its is here | |
| TI SPRABT4A | cosine | in per unit | and ; a Tustin PI's , | ; , | |
| Chung; Egea-Alvarez and others; the UPC course's models | cosine | (qd order) | in volts | and , or , per volt | , ; their axis is here |
Where it comes from
With , (2) is linear. Write the PI and the integrator as one open loop from the error to , and close it:
The denominator is a second-order loop's, so the loop has a natural frequency and a damping, and the poles are where they put them:
At the figure's gains, and , that is rad/s and , the poles at . Move them below: sets the angle of the poles from the real axis (), and so the shape of the answer; sets their distance from the origin, and so only how fast it happens.
also has a zero, at , which a textbook's second-order system doesn't. It makes the PLL's angle overshoot more: at the error after a phase jump swings 20.8 % of the jump the other way, not the 4.3 % the same poles give without it. For the error is
How long it takes to stay within 2 % of the jump has no formula: it is the last time leaves the band, , with found by scanning (5). The usual rule, , reads the envelope and is 15.6 % long at and 26 % short at , because above about 0.7 the slow part of the answer is no longer the envelope. also jumps where a lobe of the swing drops inside the band: from 6.39 at to 4.78 at 0.63. So sits just on the good side of a cliff, a better reason for it than habit.
| , 2 % | Swing back | Phase margin | −3 dB / | ||
|---|---|---|---|---|---|
| 0.5 | 7.51 | 8.00 | 29.8 % | 51.8° | 1.82 |
| 0.6 | 6.88 | 6.67 | 24.9 % | 59.2° | 1.93 |
| 0.707 | 4.89 | 5.66 | 20.8 % | 65.5° | 2.06 |
| 0.8 | 5.05 | 5.00 | 18.0 % | 69.9° | 2.18 |
| 1.0 | 5.39 | 4.00 | 13.5 % | 76.3° | 2.48 |
| 1.5 | 5.62 | 2.67 | 7.6 % | 83.7° | 3.33 |
| 2.0 | 5.05 | 2.00 | 4.8 % | 86.4° | 4.25 |
What the loop leaves for good follows from and the final-value theorem, . The two integrators (the PI's and 's) cancel the of a jump and the of a frequency step; a ramp of Hz/s, , is one too many:
| The grid | Left for good, with | With | |
|---|---|---|---|
| A phase jump | 0 | 0 | |
| A frequency step | 0 | : 4.00° for 2 Hz at | |
| A frequency ramp of Hz/s | : 0.0222° for 1 Hz/s | grows without end |
A grid's ramp of a few hertz a second is slow for any sensible PLL: 0.089° at 4 Hz/s with the figure's gains, 0.45° with . The frequency estimate has no lag at all; only the angle trails. Ruderman and others feed a frequency estimate forward into the loop so that even a ramp leaves nothing (Further reading).
The loop in the frequency domain
Three numbers say how fast and how safe the loop is. The crossover , where ; the phase margin, how far the phase of is from there; and the closed loop's −3 dB bandwidth, how far up still follows :
At the figure's gains: rad/s (31.5 Hz), a margin of 65.5°, and a −3 dB bandwidth of 262.0 rad/s, 41.7 Hz: 2.06 times , not itself. A real loop also has a lag in it, a sampling delay or a filter, , which takes off the margin: 63.8° at µs, 48.8° at 1.5 ms.
One rule for everything a dirty grid carries
Anything in the voltage besides the positive sequence turns at its own speed, and in the PLL's frame it is a vector turning at the difference, . Its size (per unit of the positive sequence) pulls the vector's angle back and forth by radians at , and the loop passes that on as it passes any angle, by :
A negative sequence turns backward, so it is away: at the figure's gains , and 0.1 pu shakes the angle by ±1.66° and the frequency by ±2.89 Hz at 100 Hz. The 5th harmonic turns backward at five times the speed and the 7th forward at seven, so both are away, at 300 Hz in the PLL's frame, and they add as : 5 % of either alone leaves ±0.274° (), 5 % of both cancels when each sits at its multiple of the fundamental's angle, and 5 % with 3 % leaves ±0.110°. An offset on one phase's measurement is a still vector of , away: 0.1 pu leaves ±2.25° (). These are the three disturbances Chung's paper derives one by one; (7) is all of them.
Choosing the gains
From a settling time and a damping. Choose (the swing you accept, the margin you need) and the time to stay within 2 % of a jump. Then
For 40 ms at that is and , and the simulated loop is back within 2 % after 40.0 ms, the sine in costing almost nothing at 40°. The rule of thumb , gives 200 and 20,000 and a loop that settles in 34.4 ms, early by the 15.6 % the envelope rule overstates. TI's application note designs from the envelope too, so its loop asked for 30 ms to within 5 % is there after 27.3 ms.
By the symmetrical optimum, when the loop has a delay. With a lag in the loop, has a phase that rises from after the PI's zero and falls again after . The optimum puts the crossover at the top of that hump, the geometric mean of the zero and , spaced by a factor each side:
At the margin is 45° at any ; gives 53.1° and a triple pole. It is the fastest loop the delay allows: with µs (1.5 samples at 10 kHz) , , a crossover of 439 Hz; with 1.5 ms, and . On a clean laboratory grid that is fine. On a real one the same loop passes unbalance almost whole, ±6.3° for 0.1 pu, so the optimum says how fast the delay lets the loop be, not how fast the grid lets it be.
That is the trade every PLL makes, and why the settling time can't be asked for freely: a faster loop passes more of what the grid carries.
| Whose | , 1/s | , 1/s² | , rad/s (Hz) | 2 %, ms | Margin | −3 dB, Hz | 0.1 pu unbalance | |
|---|---|---|---|---|---|---|---|---|
| This page's default | 180.0 | 16,200 | 127.3 (20.3) | 0.707 | 38.4 | 65.5° | 41.7 | ±1.66° |
| imperix, | 266.6 | 35,531 | 188.5 (30.0) | 0.707 | 26.0 | 65.5° | 61.7 | ±2.47° |
| TI, 30 ms to 5 % at | 222.2 | 25,181 | 158.7 (25.3) | 0.700 | 30.8 | 65.2° | 51.7 | ±2.06° |
| MathWorks' PLL (3ph) block | 180.0 | 3,200 | 56.6 (9.0) | 1.591 | 98.3 | 84.4° | 31.5 | ±1.59° |
| The course's, | 710.9 | 252,662 | 502.7 (80.0) | 0.707 | 9.7 | 65.5° | 164.7 | ±6.27° |
When the grid isn't clean: the DDSRF-PLL and the DSOGI-PLL
A fault on one phase is where (7) hurts. Phase falling to zero with and whole is, by symmetrical components, of positive sequence and of negative (and a zero sequence a three-wire converter never sees). The vector's own angle then swings ±30° twice a cycle, and a plain SRF-PLL with the figure's gains follows 8.28° of it for good. Lowering the bandwidth only shrinks the ripple. The PLLs built for this separate the sequences first and lock on the positive one.
The DDSRF-PLL (decoupled double synchronous reference frame) takes Park at and at . In the positive frame the negative sequence is a vector turning at , in the negative frame the positive one turns at ; each frame subtracts the other's filtered sequence turned by , and a low-pass at gives each sequence's size:
and the PI is given , the decoupled positive frame's . In parts, and , and the negative frame's the same with the signs of the angle turned.
The DSOGI-PLL (double second-order generalised integrator) filters and each through a SOGI tuned to the PLL's own , which gives the signal () and a copy behind it (); the positive sequence is then a sum:
with , and the PI is given of Park at on . Here are the three with the same PI on one fault.
| Phase to 0 | Largest error | Left at the end | Within 1° after | Frequency at the end | With 5 % of 5th |
|---|---|---|---|---|---|
| SRF-PLL | 13.04° | ±8.28° | never | ±14.46 Hz | ±7.84°, ±15.97 Hz |
| DDSRF-PLL | 6.53° | 0.000° | 16.5 ms | ±0.000 Hz | ±0.40°, ±2.07 Hz |
| DSOGI-PLL | 4.19° | ±0.007° | 57.6 ms | ±0.012 Hz | ±0.05°, ±0.26 Hz |
The two are one filter. Held at , the DDSRF's two low-passes seen from the stationary frame have the characteristic polynomial , the SOGI's : with and they are the same, poles at , a time constant of 4.5 ms. What differs is what the PI is given. The DDSRF-PLL locks on the decoupled signal before its filter, so it is quicker (16.5 ms to within 1°) and lets the 5th through; the DSOGI-PLL locks on the filtered one, which passes the 5th at 0.113 and the 7th at 0.115 of their size, so it is slower (57.6 ms) and cleaner.
These are two of many. Golestan, Guerrero and Vasquez sort the advanced three-phase PLLs by the filter they add before or inside the loop (moving-average, notch, complex-coefficient, delayed signal cancellation, the DDSRF and the DSOGI) and show that several are the same system written two ways. imperix's MSOGI-PLL adds a SOGI per harmonic.
Large jumps. is small near as well as near , so a jump close to starts slowly: back within 2° after 34.1 ms for 40°, 40.9 ms for 120°, 51.0 ms for 175°. Taking the error as the angle itself, , removes that: 34.0, 38.9, 40.0 ms.
The loop a microcontroller runs
A controller runs (2) once every sample . The plainest way is forward Euler for both integrals, each new value from the old one and its rate:
It puts the poles at , the continuous poles stretched along a line from instead of bent onto , so the loop is stable while for : 11.11 ms at the figure's gains, 2.81 ms at the course's. TI's note writes the PI by Tustin instead, with and , which keeps the damping far better, stable while and .
| Gains | Sampled at | Forward Euler: as if , swing | Tustin PI: as if , swing | |
|---|---|---|---|---|
| Kp 180, Ki 16,200 | 10 kHz | 0.013 | 0.704, 21.1 % | 0.707, 21.0 % |
| Kp 180, Ki 16,200 | 1 kHz | 0.127 | 0.672, 24.1 % | 0.707, 22.9 % |
| The course's | 10 kHz | 0.050 | 0.694, 22.0 % | 0.707, 21.6 % |
| The course's | 1 kHz | 0.503 | 0.520, 39.1 % | 0.701, 33.1 % |
At 10 kHz the method hardly matters. A fast loop on a slow processor is where forward Euler eats the damping. Two more things the sampled loop needs: a low-pass on the frequency estimate (imperix suggests about 15 Hz) when something else uses it, since carries every ripple (7) gives it; and care with a SOGI, which forward Euler puts out of quadrature, so a forward-Euler DSOGI-PLL sits off the grid's angle for good, 0.450° at 10 kHz.
Try this
- Choose "By what you want" and ask for 40 ms at ζ = 0.71, the 40° jump left as it is. Then hold the 40 ms and drag ζ from 0.60 to 0.65. The gains become and , and the error is back within 2 % (0.8°) after 40.0 ms. Dragging , the gains jump between 0.62 and 0.63: the second swing drops inside the band, and the same settling time needs a slower loop.
- Set the jump to 0 and the 5th harmonic to 0.05 pu; then the 7th to 0.05 pu too. A ripple of ±0.27° at 300 Hz in the PLL's frame, and with the 7th it is gone: both are away and cancel.
- Back to clean, add 0.10 pu of unbalance; ask for 10 ms instead of 40; then press "A fault on phase a". ±1.66° and ±2.9 Hz at 100 Hz at the default gains, ±6.16° with the 10 ms loop. The fault turns the αβ wire's circle into an ellipse, and the default loop's angle shakes ±8.2° for good: the case the DDSRF and DSOGI were built for.
- A sag to 0.5 pu. Then set "The PI is given" to "q alone" and jump the phase by 20°. Divided by the sag does nothing, at any depth. Given alone, the PI's gains fall with the voltage, to 90 rad/s and to 0.50, and the jump takes 83.4 ms to settle instead of 38.3.
Worked examples
The figure's gains are /s and /s². By (4),
the damping of , a settling time to 2 % of ms, and a −3 dB bandwidth of 41.7 Hz. Now the grid's phase jumps by . At that instant the error is the whole jump, , and the proportional part lifts the PLL's frequency at once by Hz, to 68.4 Hz, the highest it goes.
The simulated loop is within after 34.1 ms, sooner than 38.4 ms, since 2° is 5 % of 40°. On the way the error crosses zero and swings to −8.42° at 17.5 ms after the jump. The linear model (5) swings to −8.32° at 17.5 ms: at 40° the sine in is 8 % short of the angle, and that is all the difference it makes.
Last, take away and step the frequency by 2 Hz. The PLL ends at 52 Hz but an angle behind: rad, 4.0°.
Design 1: back within 2 % of a jump in 40 ms
Take , for which . By (8), rad/s (19.5 Hz), /s and /s². By (6), the crossover is 190.1 rad/s, the margin 65.5° and the −3 dB bandwidth 40.1 Hz.
A 40° jump lifts the frequency estimate at once by Hz; the error swings back 8.32° by (5) and 8.42° in the simulated loop, which is within 2 % (0.8°) after 40.0 ms. What it costs, by (7) and the final-value theorem: 0.1 pu of negative sequence leaves ±1.59° and ±2.78 Hz; 5 % of 5th ±0.26°; a ramp of 1 Hz/s 0.024°; a 2 Hz step peaks at 2.70° and goes back to zero.
Design 2: the course's PLL, 2π·80 rad/s on a 22 kV grid
The UPC course's parameters ("Parameters.m" in the folder Activity 2 on its page) ask for a PLL bandwidth of rad/s at , with the PI acting on a voltage in volts on a 22 kV grid, whose phase voltage peaks at V. In the model's own units that is and ms. In this page's: rad/s, /s and /s².
It is back within 2 % of a jump in 9.74 ms, four times quicker than the figure's default, with the same 65.5° of margin and a −3 dB bandwidth of 164.7 Hz. The price is in (7): , above 1, so 0.1 pu of negative sequence shakes the angle by ±6.27° and the frequency by ±10.9 Hz, against ±1.66° and ±2.9 Hz at the default. Forward Euler is stable below ms, and at the model's 20 µs step is 0.010. A design for a clean, stiff grid, which is the grid the course's model has.
Mistakes people make
The mistake
Copying a paper's and into a loop whose error is divided by .
Why it's wrong
A paper whose PI acts on a voltage in volts has gains per volt: Chung's 1.43 at 311 V is 444 /s here.
The right one
Multiply by the peak voltage the gains were written for (), or check which error the paper's PI is given before using its numbers.
The mistake
Calling the PLL's bandwidth.
Why it's wrong
At the −3 dB bandwidth is 2.06 times : the figure's "20 Hz" loop passes up to 41.7 Hz.
The right one
Say which: , the crossover or the −3 dB bandwidth, each from (6).
The mistake
Expecting 4.3 % of overshoot at .
Why it's wrong
That is a second-order loop without a zero. The PI's zero at makes the PLL's error swing back 20.8 %.
The right one
Read the swing from (5) or the table by damping.
The mistake
Taking as the settling time at any damping.
Why it's wrong
It is the envelope's: 15.6 % long at 0.707 and 26 % short at .
The right one
Use , from the table or by scanning (5).
The mistake
Raising the gains to get rid of a 100 Hz ripple.
Why it's wrong
The integral removes a steady error, not one at 100 Hz, and a faster loop passes more of it: ±1.66° at the default, ±6.27° at 2π·80.
The right one
Lower the bandwidth, or separate the sequences first (DDSRF, DSOGI).
The mistake
Looking for the 5th and the 7th at 250 and 350 Hz in the PLL's frequency.
Why it's wrong
In the PLL's frame both are away, at 300 Hz, and equal ones cancel.
The right one
Expect one ripple at of size .
The mistake
Expecting a balanced sag to throw the PLL off.
Why it's wrong
With the error divided by it changes nothing at any depth; without the division the loop only gets slower and less damped.
The right one
Test it with unbalance or a phase jump during the sag, which is what a real fault brings.
The mistake
Running a fast loop by forward Euler at a slow sampling rate.
Why it's wrong
It is stable only while , and at a loop designed for 0.707 already behaves as 0.52.
The right one
Sample ten times faster than at least, or write the PI by Tustin.
The mistake
Mixing conventions: a sine for phase , or driven to zero, with this page's equations.
Why it's wrong
Either turns the angle by , and the PLL locks a quarter of a cycle off.
The right one
Check against the conventions table which axis the source drives to zero and how its phase is written.
The mistake
Plotting the angle error as without wrapping it.
Why it's wrong
Both angles wrap at different moments, so the difference spikes by 360° once a cycle.
The right one
Wrap the difference into , or take it as .
The same in Python
import numpy as np
zeta, ts, dt = 1 / np.sqrt(2), 0.040, 1e-4 # design 1: back within 2 % of a jump in 40 ms
x = np.arange(0, 20, 1e-5) # time in units of 1/ωn
wd = np.sqrt(1 - zeta**2)
r = np.exp(-zeta * x) * (np.cos(wd * x) - zeta / wd * np.sin(wd * x)) # (5) with ωn = 1
N = x[np.nonzero(np.abs(r) > 0.02)[0][-1] + 1] # the last time it is outside ±2 %
kp, ki = 2 * zeta * N / ts, (N / ts) ** 2 # (8)
print(f"N = {N:.3f}, Kp = {kp:.1f} /s, Ki = {ki:,.0f} /s²")
t = np.arange(0, 0.3 + dt / 2, dt)
v = np.exp(1j * (2 * np.pi * 50 * t + np.radians(40) * (t >= 0.04))) # vα + jvβ, a 40° jump at 40 ms
th_hat, integral, err = 0.0, 0.0, np.empty_like(t)
for i in range(len(t)):
dq = v[i] * np.exp(-1j * th_hat) # Park at the PLL's angle
err[i] = np.angle(dq) # θ − θ̂
e = dq.imag / abs(dq) # q/|v|, what the PI is given
th_hat += (2 * np.pi * 50 + kp * e + integral) * dt
integral += ki * e * dt
after = np.abs(err - err[-1])[t >= 0.04]
late = np.nonzero(after > 0.02 * after.max())[0][-1] + 1
print(f"within 2 % ({np.degrees(0.02 * after.max()):.1f}°) after {late * dt * 1000:.1f} ms, {-np.degrees(err.min()):.2f}° the other way")It prints:
N = 4.893, Kp = 173.0 /s, Ki = 14,966 /s²
within 2 % (0.8°) after 40.0 ms, 8.42° the other wayWorked design 1 from the settling time to the gains, then the loop run as the figure runs it: , and from (5) and (8), and the 40° jump back within 2 % after 40.0 ms, swinging 8.42° the other way on the way.
Questions people ask
What does SRF-PLL stand for, and what is it for?
Synchronous reference frame phase-locked loop. It finds the grid voltage's angle and frequency by turning a Park frame until the voltage has no component. A grid-following converter uses that angle for its own Park transformation, so its current is active power and its current reactive.
What is the transfer function of an SRF-PLL?
Linearised, from the grid's angle to the PLL's, , (3): a second-order loop with , and a zero at . The error is .
How do I choose Kp and Ki?
Pick a damping (0.707 is usual) and the time to settle within 2 % of a jump, then , , , (8). If the loop has a known delay, the symmetrical optimum (9) gives the fastest loop it allows. Then check what the result passes of unbalance and harmonics with (7).
What bandwidth should a grid PLL have?
The gains in use in the table above run from to rad/s. Slower rides through unbalance and harmonics with little ripple; faster follows phase jumps sooner. Around to (−3 dB at 41 to 62 Hz) is a common middle for a plain SRF-PLL; behind a DDSRF or DSOGI it can be faster, since the unbalance no longer reaches it.
Why is q driven to zero, and why do some papers drive d?
It depends on where a paper puts its axes. With on phase 's axis at and phase a cosine, the frame is on the vector when . Papers that write the Park matrix in qd order (Chung, the UPC course's models) have their axis where this page has , and drive their to zero: the same loop.
What is the difference between the SRF-PLL, the DDSRF-PLL and the DSOGI-PLL?
The same PI and integrator, given different errors. The SRF-PLL locks on the whole voltage vector, so a negative sequence makes it ripple at . The DDSRF-PLL locks on its positive frame with the negative sequence subtracted (10); the DSOGI-PLL on the positive sequence built from two SOGIs (11). The two filters are the same at and ; the DDSRF-PLL is quicker, the DSOGI-PLL cleaner of harmonics.
Why does my PLL's frequency ripple at 100 Hz?
A negative sequence in the voltage: it is away from the positive sequence, so the PLL sees a ripple at 100 Hz on a 50 Hz grid, of size in angle and that times in hertz, (7). 0.1 pu at the figure's gains is ±2.9 Hz. A 50 Hz ripple instead is an offset in a measurement.
What does a PLL do during a voltage sag or a fault?
A balanced sag changes nothing if the error is divided by , and slows the loop if it isn't. An unbalanced fault adds a negative sequence: a plain SRF-PLL then shakes at for as long as the fault lasts, by many degrees, while a DDSRF or DSOGI-PLL settles on the positive sequence. A fault often comes with a phase jump too, which every PLL follows at its own speed.
Does it work on a single phase?
Not as it is: Park needs two axes. A single-phase PLL makes the second one, most often with a SOGI (its is the signal behind), then runs the same loop.
How do I build it in Simulink, MATLAB or PLECS?
The loop is (2) as blocks: Clarke, Park at the fed-back angle, the division by , a PI, and an integrator wrapped to . Check which axis the tool's Park block drives to zero and in what units its PI's gains are, using the conventions table; MathWorks' PLL (3ph) block defaulted to and with its own gain control, and imperix publishes Simulink and PLECS models of the SRF and DDSRF loops.
What does a grid-forming converter do instead of a PLL?
It sets its own angle and frequency, from its power (droop, a virtual machine's swing equation) rather than measuring the grid's, so it doesn't need a stiff grid to lock to. A grid-following converter with a PLL follows the grid and can lose step with it when the grid is weak; that interaction is one of the reasons grid-forming control is studied.
Where it's used
In every grid-following converter: solar and battery inverters, wind turbines' grid-side converters, STATCOMs and HVDC stations. The PLL's angle is the of the converter's Park transformation, so sets the active power and the reactive power. Its frequency feeds frequency measurement and protection, and a grid code's ride-through tests (phase jumps, frequency ramps, unbalanced faults) are tests of the PLL as much as of the converter. In weak grids the PLL's own dynamics interact with the grid's impedance, one of the reasons grid-forming control is studied as an alternative.
It belongs to two of my courses at UPC, and their pages are linked below. In Analysis and Control of Modern Power Electronics Dominated Power Systems, the folder Course site holds "PLL.pdf", Chung's paper in the IEE Proceedings listed under References, whose steady-state errors and three kinds of dirty grid are this page's table of errors and the cases of (7); "AMCPS_class3_vf.pdf", the third class's slides, which put the PLL between the voltage measurement and Park in a converter's control; and "Egea2011.pdf", the same design written in qd order with driven to zero (who writes it otherwise). The folder Weeks 2 to 4 holds "Model2_PLL.slx", the loop in Simulink on a 400 V grid with a 20° phase jump, its PI acting on in volts and left at , for you to tune. In this page's units that is /s and /s², : its poles are real, at −324 and −2.5 rad/s, so it takes the 20° jump within 2 % in 11 ms, as a loop with no integral would, while the error a frequency step leaves dies away over 0.4 s. The brief of Activity 1 in the same folder, "AMCPS___Activity_1__new_.pdf", asks for that jump, other gains and one phase changed; the folder Activity 0 is my report on the model; "Parameters.m" in Activity 2 is the course's own design, worked through as design 2; and Activity 3 sets a grid-following converter, which leans on its PLL, beside a grid-forming one.
In Control of Electrical Machines and Power Electronics the subject is a DC motor's speed and torque, controlled from Simulink on a TI LaunchPad whose processor, the F28379D, is a C2000: the family TI's PLL note under Further reading is written for. Its labs and my project, in the folders Labs and Project, build that controller for the board, where it runs one sample at a time: what the loop a microcontroller runs on this page does with the PLL's PI.
- Analysis and Control of Modern Power Electronics Dominated Power Systems
Course materials, UPC Barcelona
- Control of Electrical Machines and Power Electronics
Course materials, UPC Barcelona
Connects to
- Park transformation
is what the PLL turns: it makes q zero by finding the frame's angle
- Clarke transformation
gives the αβ vector the PLL starts from
- Symmetrical components
separates the negative sequence that makes a plain SRF-PLL ripple at 2ω
- Three-phase controlled rectifier
draws the 5th and 7th harmonic currents the PLL sees as a ripple at six times the grid's frequency
Further reading
- imperix, Synchronous reference frame (SRF) PLL (TN103)imperix.com
The loop and the DDSRF's decoupling worked out, with Simulink and PLECS models.
- imperix, Grid synchronization methods (TN107)imperix.com
Three PLLs measured on hardware under a phase jump, a frequency step, a 5th harmonic and a phase-to-phase fault.
- imperix, SOGI PLL (TN104)imperix.com
The SOGI's two filters, the single-phase PLL built on it, and the MSOGI tuned to harmonics.
- Texas Instruments, Software Phase Locked Loop Design Using C2000 Microcontrollers for Three Phase Grid Connected Applications (SPRABT4A)ti.com
A design from a settling time, the Tustin PI's coefficients and fixed-point code for one processor family.
- Golestan, Guerrero, Vasquez, Three-Phase PLLs: A Review of Recent Advancesvbn.aau.dk
Every family of advanced three-phase PLL sorted by the filter it adds; the authors' manuscript is on Aalborg University's site.
- Ruderman and others, Robust SRF-PLL with Feed-Forward Frequency Estimation (arXiv 2509.19111)arxiv.org
The symmetrical optimum with the sampling delay, and a frequency estimate fed forward so a ramp leaves no error.
References
- S.-K. Chung, “A Phase Tracking System for Three Phase Utility Interface Inverters”, IEEE Transactions on Power Electronics, 15(3), 2000, pp. 431–438
- S.-K. Chung, “Phase-locked loop for grid-connected three-phase power conversion systems”, IEE Proceedings – Electric Power Applications, 147(3), 2000, pp. 213–219
- V. Kaura, V. Blasko, “Operation of a Phase Locked Loop System Under Distorted Utility Conditions”, IEEE Transactions on Industry Applications, 33(1), 1997, pp. 58–63
- P. Rodríguez, J. Pou, J. Bergas, J. I. Candela, R. P. Burgos, D. Boroyevich, “Decoupled Double Synchronous Reference Frame PLL for Power Converters Control”, IEEE Transactions on Power Electronics, 22(2), 2007, pp. 584–592
- P. Rodríguez, R. Teodorescu, I. Candela, A. V. Timbus, M. Liserre, F. Blaabjerg, “New Positive-sequence Voltage Detector for Grid Synchronization of Power Converters under Faulty Grid Conditions”, IEEE Power Electronics Specialists Conference (PESC), 2006
- S. Golestan, J. M. Guerrero, J. C. Vasquez, “Three-Phase PLLs: A Review of Recent Advances”, IEEE Transactions on Power Electronics, 32(3), 2017, pp. 1894–1907
- S. Golestan, M. Monfared, F. D. Freijedo, “Design-Oriented Study of Advanced Synchronous Reference Frame Phase-Locked Loops”, IEEE Transactions on Power Electronics, 28(2), 2013, pp. 765–778
- P. Mao, M. Zhang, W. Zhang, “A Canonical Small-Signal Linearized Model and a Performance Evaluation of the SRF-PLL in Three Phase Grid Inverter System”, Journal of Power Electronics, 14(5), 2014, pp. 1057–1068
- J. Steinkohl, X. Wang, P. Davari, F. Blaabjerg, “Analysis of linear Phase-Locked Loops in Grid connected Power Converters”, EPE '19, 2019
- Ruderman, Brescia, Massenio, Cascella, Naso, “Robust Synchronous Reference Frame Phase-Locked Loop (PLL) with Feed-Forward Frequency Estimation”, IEEE Transactions on Control Systems Technology, 2026 (arXiv 2509.19111)
- R. Teodorescu, M. Liserre, P. Rodríguez, Grid Converters for Photovoltaic and Wind Power Systems, Wiley-IEEE Press, 2011, chapter 8
- A. Yazdani, R. Iravani, Voltage-Sourced Converters in Power Systems, Wiley-IEEE Press, 2010