Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Three-Phase SRF-PLL (srfPll)

Locks onto a three-phase signal and gives the grid angle and speed.

srfPll

Component reference · 繁體中文

Group: Control · Kind: {"block":"srfPll","kind":"control"}

When to use it

Use it in a grid-connected three-phase inverter or rectifier to get the angle for the dq transforms. Use Phase-Locked Loop (single-phase) for one phase.

Pins

Pin Domain Meaning
a signal Phase a, such as the grid voltage
b signal Phase b, 120 degrees behind a
c signal Phase c, 120 degrees ahead of a
theta signal Estimated angle in radians
w signal Estimated speed in radians per second

Common parameters

  • f0: Normal frequency the loop starts at (Default: 50)
  • kp: Reaction to the phase error (Default: optional (off))
  • ki: Reaction to the phase error over time (Default: optional (off))

Parameters

Key Unit Default Typical range Description
f0 Hz 50 Normal frequency the loop starts at
kp rad/s optional (off) Reaction to the phase error
ki rad/s² optional (off) Reaction to the phase error over time
fmin Hz optional (off) Lowest frequency the loop can follow
fmax Hz optional (off) Highest frequency the loop can follow

Parameter descriptions are in English in both languages.

Model

The input is turned into d and q by the Clarke and Park transforms at the loop's own angle, using the convention of abc to dq Transform. A cosine on phase a at angle theta gives d equal to the amplitude and q equal to 0. For a positive sequence q/|dq| = sin(theta_grid - theta), and a PI controller drives it to zero. The speed is w = wi + kpe, the integral part is d(wi)/dt = kie, both are held to the range 2pifmin to 2pifmax, and d(theta)/dt = w. Dividing by the amplitude makes the loop gain independent of the voltage. The linearised loop is s^2 + kps + ki. With the gains unset, wn = 2pi0.3f0 and the damping is 0.707. The output w is the integral part of the loop.

Common mistakes

  • The phase order matters. With a negative sequence, where b and c are swapped, the loop locks to a wrong angle that turns backwards, or does not lock at all. Check that b is 120 degrees behind a.
  • Unbalance and negative sequence on the grid show up as a ripple at twice the grid frequency on theta and w. Lower kp and ki to reduce it, and accept a slower response to phase jumps.
  • The angle theta is where the cosine of phase a peaks. A source written as sines, such as Three-Phase Sine Source, gives an angle 90 degrees behind the sine phase, so use the same convention in the transforms of the controller.

Datasheet and sources

There is no datasheet. Set f0 to the nominal grid frequency, 50 or 60 Hz, and keep the bandwidth between 10 and 30 Hz, which balances speed against rejection of unbalance and harmonics. The default gains give 15 Hz at 50 Hz.

Example

Open the example with the command file.openExample and the name demo:srfPll.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.