Phase Locked Loop(PLL) for 3 phase grid connected inverter | MATLAB Simulation.

Tech Simulator
2 Jul 202013:56

Summary

TLDRThis video discusses the implementation of a Phase Locked Loop (PLL) for a three-phase grid-connected inverter, explaining both open-loop and closed-loop methods. The importance of generating a reference signal in phase with the grid voltage to send active or reactive power is highlighted. The closed-loop PLL method is favored for handling issues like harmonics and surges. A MATLAB simulation demonstrates how to transform ABC voltages to DQ components, align voltage vectors, and generate unit vectors for active and reactive power control, ensuring stability and accuracy under critical grid conditions.

Takeaways

  • 🔄 PLL (Phase-Locked Loop) is essential for aligning current with grid voltage to ensure proper power transmission.
  • ⚡ For active current transmission, the reference signal must be in phase with the grid voltage, and its magnitude between 1 and -1.
  • 💡 The first PLL method involves converting three-phase voltages (ABC) into two-phase (alpha-beta) and using an inverse cosine to generate angle information, but it has limitations.
  • ❌ The first method can lead to instability under critical grid conditions, such as harmonics, surges, and noise.
  • 🔒 A closed-loop PLL system is used to address the limitations of the open-loop system, providing better stability under adverse conditions.
  • 📐 In the closed-loop method, the three-phase signals are transformed into alpha-beta and DQ voltages, where VQ is controlled to zero to align VD with the D-axis.
  • 🔧 The PI controller is used to keep the Q value at zero, improving phase alignment and ensuring proper generation of active and reactive components.
  • 📊 The simulation demonstrates how PLL aligns the active component with the alpha waveform and the reactive component with the beta waveform.
  • ⚙️ The final output of the closed-loop PLL system generates unit vectors for both active and reactive components, ensuring stability and performance.
  • 🖥️ MATLAB simulation is used to validate the PLL operation, showing correct phase alignment and expected waveforms for both alpha-beta and DQ transformations.

Q & A

  • What is the primary function of a Phase-Locked Loop (PLL) in a grid-connected inverter?

    -The primary function of a PLL in a grid-connected inverter is to generate a reference signal that is in phase with the grid voltage, ensuring that the active current sent to the grid is synchronized with the grid voltage.

  • Why is it important for the current sent to the grid to be in phase with the voltage?

    -It is important for the current to be in phase with the grid voltage to ensure efficient power transfer. When the current and voltage are synchronized, active power can be transmitted without power loss due to phase differences.

  • What are the two main methods of PLL implementation discussed in the script?

    -The two main methods of PLL implementation discussed are an open-loop algebraic method and a closed-loop control method. The closed-loop control method is more robust and is preferred in situations with harmonics, surges, noise, and spikes.

  • What are the key problems associated with the open-loop PLL method?

    -The key problems with the open-loop PLL method are that it is a simple algebraic system without feedback, making it prone to instability under critical grid conditions such as harmonics, surges, noise, and spikes. This can result in incorrect angle information.

  • How does the closed-loop PLL method improve stability?

    -The closed-loop PLL method improves stability by using feedback control, specifically a PI controller, to adjust the system based on the current grid conditions, ensuring that the generated signal remains accurate and stable even under challenging conditions like noise or harmonics.

  • What is the role of the alpha-beta to DQ transformation in the PLL process?

    -The alpha-beta to DQ transformation is used to convert the grid's three-phase voltages into a two-phase system. This simplifies the process of extracting phase information, as it aligns the D axis with the voltage, allowing for easier control of the active and reactive power components.

  • What is the significance of making the VQ value zero in the PLL process?

    -Making the VQ value zero aligns the D axis with the grid voltage, which ensures that the system is correctly synchronized with the grid. This is essential for accurate phase locking and for generating the correct active and reactive power signals.

  • How does the PI controller function in the closed-loop PLL system?

    -The PI controller in the closed-loop PLL system is responsible for minimizing the VQ value, ensuring that the voltage is aligned with the D axis. Its output is used to adjust the system’s phase angle (Omega T), which helps maintain synchronization with the grid.

  • What is the purpose of generating sine and cosine functions in the PLL block diagram?

    -The sine and cosine functions are generated to create the reference signals for active and reactive power. These signals ensure that the current components are correctly aligned in phase (for active power) or 90 degrees out of phase (for reactive power) with the grid voltage.

  • What result should be expected from the MATLAB simulation of the closed-loop PLL system?

    -The MATLAB simulation should show that the active component aligns with the alpha waveform and the reactive component aligns with the beta waveform, both forming unit vectors. This indicates that the PLL is working correctly and the system is synchronized with the grid.

Outlines

00:00

🔍 Introduction to Phase Locked Loop (PLL) for Three-Phase Grid Connected Inverters

This section introduces the Phase Locked Loop (PLL) and its importance in grid-connected inverters. PLL is essential for sending active current to the grid by ensuring the current is in phase with the grid's voltage. It generates a reference signal aligned with the actual voltage, with a magnitude between 1 and -1. The signal helps in the implementation of current controllers for both active and reactive power transmission. The paragraph also highlights the use of PLL to generate signals 90 degrees out of phase with the grid voltage when transmitting reactive power.

11:03

⚙️ Basic Open-Loop PLL Method for Three-Phase Inverters

The paragraph explains the first and simplest method of implementing PLL for a three-phase grid-connected inverter. The three-phase ABC voltages are transformed into two-phase alpha-beta voltages. From the inverse cosine of V alpha over the square root of V alpha squared plus V beta squared, angle information is derived. This angle is used to generate current references for active and reactive power. However, this open-loop method has limitations, including instability under grid disturbances, and it struggles with noise, surges, and harmonics, making it unsuitable for certain conditions.

🔄 Introduction to Closed-Loop PLL with Control Mechanisms

This section introduces the closed-loop PLL system that overcomes the limitations of the previous open-loop method. It begins similarly with transforming ABC signals into alpha-beta and DQ voltages. The goal is to align the D-axis with the grid voltage, and this is achieved by making the Q-axis voltage equal to zero. The paragraph includes a phasor diagram to visualize the process and explains how Omega T (the angle between the alpha component and D axis) is generated using a PI controller. The resulting Omega T value helps create active and reactive components for the inverter.

🛠️ MATLAB Simulation of Closed-Loop PLL

This paragraph marks the transition to MATLAB simulation for implementing the closed-loop PLL. The necessary blocks for constructing the PLL are outlined, and the simulation begins by displaying the input AC voltages with an RMS value of 400. The simulation confirms the accuracy of the PI controller by showing a Q-axis value of zero, aligning with the reference. Alpha-beta waveforms are generated with a 90-degree phase difference, and their magnitudes match the original AC waveforms.

📊 Output Analysis of PLL in Simulation

The final section presents the results of the PLL simulation. The alpha waveform and the active component of the PLL are shown to be in phase, with the active component having a magnitude of 1, representing a unit vector. Similarly, the beta waveform and the reactive component are aligned in phase, also forming a unit vector. The paragraph concludes by thanking the audience and closing the presentation.

Mindmap

Keywords

💡Phase-Locked Loop (PLL)

A Phase-Locked Loop (PLL) is a control system that generates an output signal whose phase is related to the phase of an input signal. In the context of this video, it is used to synchronize the inverter's output current with the grid voltage. The PLL generates reference signals that ensure the current sent to the grid is in phase with the grid voltage, making it crucial for grid-connected inverters.

💡Three-Phase Grid-Connected Inverter

A three-phase grid-connected inverter converts DC power to AC power and feeds it into the grid. The video focuses on how PLL is implemented in this type of inverter to ensure that the generated current is in phase with the grid voltage, facilitating effective power delivery.

💡Active Power

Active power is the real power that performs useful work in an electrical system. In the video, active power refers to the current that is in phase with the grid voltage. The PLL helps to generate a reference signal that aligns the inverter's output current with the grid voltage for active power delivery.

💡Reactive Power

Reactive power is the power that oscillates between the source and the load without performing any useful work. It is associated with the current that is 90 degrees out of phase with the voltage. The video explains how PLL can generate a signal that is out of phase with the grid voltage to send reactive power.

💡Alpha-Beta Transformation

Alpha-beta transformation refers to converting three-phase voltages into two-phase voltages, simplifying control in a PLL system. In the video, it is the first step in both the open-loop and closed-loop PLL methods for generating the necessary phase information for synchronization.

💡DQ Transformation

DQ transformation converts the two-phase alpha-beta components into a rotating reference frame (d-axis and q-axis) that aligns with the grid voltage. The video highlights this transformation as critical for aligning the inverter's voltage and current with the grid voltage for precise control in the PLL system.

💡Open-Loop System

An open-loop system is a type of control system that does not use feedback to adjust its performance. The video mentions an open-loop method for PLL, which is algebraically simple but susceptible to instability in critical grid conditions like harmonics, surges, or noise.

💡Closed-Loop System

A closed-loop system uses feedback to adjust its operation and maintain stability. The video explains the superiority of a closed-loop PLL over an open-loop system for grid-connected inverters, as it can handle disturbances and maintain proper phase alignment under various grid conditions.

💡PI Controller

A Proportional-Integral (PI) controller is a control loop mechanism that uses both proportional and integral terms to correct errors in system performance. In the video, the PI controller is used to ensure that the Q-axis voltage is zero in the PLL, aligning the D-axis voltage with the grid voltage for synchronization.

💡Unit Vector

A unit vector is a vector with a magnitude of one. In the video, the unit vector is used to represent the active and reactive components of the PLL output. The alpha and beta waveforms, corresponding to the active and reactive components, are normalized to a magnitude of one to simplify control.

Highlights

Introduction to Phase Locked Loop (PLL) and its necessity in three-phase grid-connected inverters.

The current sent to the grid needs to be in phase with the voltage, and a PLL helps generate the reference signal for this.

PLL generates a signal for reactive power by producing a 90-degree out-of-phase signal with the voltage.

Explanation of the first and simplest method of PLL implementation using three-phase ABC voltages converted into two-phase alpha-beta voltages.

Using an inverse cosine of V alpha divided by the square root of V alpha squared plus V beta squared gives the angle information.

This open-loop method is not suitable for handling harmonics, surges, noise, and spikes, leading to incorrect angle information under critical grid conditions.

Introduction to the closed-loop Phase Locked Loop system, which offers a more stable solution.

In the closed-loop method, ABC voltages are first converted into alpha-beta voltages, followed by DQ transformation.

Explanation of the phasor diagram, showing that D and Q axis voltages are not aligned with grid voltage, leading to non-zero values.

By setting VQ to zero, the system aligns the VD with the D-axis, stabilizing the system and improving accuracy.

PI controller is used to maintain the VQ value at zero, and the output is integrated to determine the Omega T angle.

Omega T, derived from VQ=0, is used to generate active and reactive components for the grid-connected inverter.

MATLAB simulation demonstrates the effectiveness of the PLL system, starting with a face-to-face voltage with an RMS value of 400V.

The Q output of the alpha-beta to DQ transformation block confirms that the PI controller is working correctly by maintaining a zero Q value.

The alpha-beta waveforms show a 90-degree phase difference, and the active and reactive components align with their respective alpha and beta waveforms.

Transcripts

play00:00

[Music]

play00:12

today we are discussing phase lock loop

play00:15

for a three-phase grid connected

play00:16

inverter and it's MATLAB simulation

play00:18

first let me give you a brief

play00:20

introduction to PLL

play00:23

why do we need a PLL the answer is very

play00:27

simple suppose we want send an active

play00:30

current to the grid first I will mark

play00:32

the grid side voltage now the current

play00:34

which has to be sent should be in phase

play00:36

with this voltage in order to send this

play00:39

current we need to generate a reference

play00:40

signal and that signal should be in

play00:42

phase with the actual voltage and it's

play00:44

magnitude should be in between 1 and

play00:46

minus 1 so PLL is used to generate the

play00:50

signal and the signal is used as the

play00:52

reference for the implementation of

play00:53

current controller in a grid connected

play00:55

inverter similarly when we need to send

play00:58

reactive power to the grid we use PLL to

play01:01

generate a signal which is 90 degree out

play01:03

of phase with the actual voltage

play01:06

here I will explain two methods of PLL

play01:08

implementation this is the first method

play01:11

and the simplest method for a

play01:12

three-phase grid-connected inverter you

play01:14

can see this method explained in many

play01:16

literature's here three-phase ABC

play01:19

voltages are first converted into two

play01:21

phase alpha beta voltages from the alpha

play01:23

beta voltages taking the inverse cosine

play01:25

of V alpha divided by root of v alpha

play01:28

square plus v beta square will give us

play01:30

the angle information and from this

play01:32

angle information we generate the

play01:34

current reference for active and

play01:35

reactive power but there are few

play01:37

problems with this method and hence this

play01:39

method is not used in many situations

play01:41

the major problem is that this is merely

play01:44

an algebraic method with simple

play01:45

mathematics involved and it's just an

play01:48

open-loop system so the system can go to

play01:50

an unstable situation under critical

play01:52

grid conditions

play01:53

so this PLL cannot withstand conditions

play01:56

like harmonics surges noise and spikes

play01:58

due to this the output of PLL will give

play02:01

wrong angle information we can get rid

play02:04

of all these issues by using a closed

play02:06

loop phase locked loop that I will

play02:08

explain now this is the complete block

play02:11

diagram of phase locked loop with closed

play02:12

loop control similar to the previous

play02:15

method here also we start with

play02:16

transforming the ABC signals to alpha

play02:19

beta signals let me also draw the phasor

play02:22

diagram I have marked alpha beta and

play02:24

grid voltage now we convert the alpha

play02:27

beta voltages to DQ voltages now let me

play02:30

mark the d axis and Q axis in the phasor

play02:32

diagram from the phasor diagram it is

play02:35

clear that the axis is not aligned with

play02:37

the grid voltage so we will have nonzero

play02:39

value of D axis and Q axis voltages I

play02:42

will mark that also in the phasor

play02:44

diagram I will also mark Omega T which

play02:47

is the angle between V axis and alpha

play02:49

component now by using some kind of

play02:52

control mechanism we are making the

play02:53

value of V Q as equal to 0 when we do

play02:56

that the phasor diagram will get

play02:58

modified in such a way that the VD will

play03:00

get aligned with the D axis let me draw

play03:03

the new phasor diagram so it's pretty

play03:05

clear from the phasor diagram that VD is

play03:07

now aligned with the axis and the value

play03:09

of V Q becomes 0 and Omega T which is

play03:12

the angle between alpha component and D

play03:14

axis has now changed to it new value so

play03:17

this Omega T which we got after making Q

play03:19

value 0 can

play03:20

used for generating the active and

play03:21

reactive component now going back to the

play03:24

PLL block diagram you can see API

play03:26

controller which I have used to make the

play03:28

cue value 0 so I have given VQ reference

play03:31

as 0 the output of the P I control er is

play03:34

given to an integrator to find the Omega

play03:36

T and finally we use sine and cosine

play03:39

functions to generate the active and

play03:41

reactive components and that is the

play03:43

final output of PLL this is how we make

play03:46

a PLL for three-phase grid connected

play03:48

inverter now we will do the simulation

play03:50

using MATLAB

play03:53

these are the blocks required to make

play03:55

the PLL

play04:30

now we can start connecting all

play04:32

components

play11:02

you

play11:54

we have completed connecting all the

play11:56

components now it's time to run the

play11:58

simulation

play12:00

first we shall see the input AC voltages

play12:09

this is the face-to-face voltage with

play12:11

rms value 400

play12:14

now we shall see the Q output of alpha

play12:17

beta to DQ transformation block

play12:24

the Q value we are getting is zero which

play12:27

is same as the reference value so P I

play12:29

controller working fine now we shall see

play12:33

the alpha beta waveforms

play12:40

these are the alpha-beta waveforms as we

play12:43

expected there is a 90 degree phase

play12:45

difference between these two waveforms

play12:47

magnitude of these waves are same as the

play12:49

original AC waveforms

play12:52

now we shall see the output of PLL first

play12:55

we see the alpha wave form an active

play12:57

component of PLL the active component

play13:00

should align in phase with the alpha

play13:01

wave form

play13:04

you

play13:07

as we expected alpha wave an active

play13:10

component are aligned in phase with each

play13:11

other and the magnitude of active

play13:14

component as one so we call it as unit

play13:16

vector now we shall see the beta wave

play13:20

form and reactive component of PLL the

play13:23

reactive component should align in phase

play13:24

with the beta wave form

play13:31

as we expected beta wave and reactive

play13:33

component are also aligned in phase with

play13:35

each other and the magnitude of reactive

play13:38

component as one so this also called as

play13:40

unit vector this is the end of this

play13:42

presentation thank you

play13:47

[Music]

Rate This

5.0 / 5 (0 votes)

関連タグ
Phase Lock LoopGrid InverterMATLAB SimulationActive PowerReactive PowerPower SystemsClosed-loop ControlABC to DQControl MechanismUnit Vector
英語で要約が必要ですか?