Frequently Asked Question

Video: 5.4.1. Microgrid control in islanded mode
Last Updated 3 years ago


Press "Ctrl + F" to find the keyword of your interest.

If you wish to have a direct link access to the video timestamps, please follow these instructions.

Found this video helpful? Why not take the whole HIL Specialist course? A Certificate is waiting for you for free at HIL Academy.

Would you or your organization benefit from having these videos narrated in your native language? Contact us and let us know if you wish to contribute.

TRANSCRIPT

00:00:03

Hello and welcome to this lesson on microgridcontrol in islanded mode.

00:00:07

In the last lesson you learned how to easilycreate a simple microgrid model using Typhoon's

00:00:12

generic DER components.

00:00:14

You also used predefined widgets from a userwidget library to create a SCADA panel.

00:00:19

The previous lesson made use of a VirtualHIL device, which means that the simulation

00:00:24

was not truly running in real time.

00:00:26

In this lesson, you will see a fully functionalterrestrial microgrid model based on DER switching

00:00:32

components.

00:00:33

First, let's open the model using the ExampleExplorer.

00:00:36

Go to microgrid, microgrid example and selectthe Plug-and-play microgrid library and testing

00:00:46

of microgrid controller example.

00:00:51

Open this example by clicking the "Open model"button.

00:00:59

In order to run in real time, this model requiresa 6-series HIL device, such as the Typhoon

00:01:05

HIL602+, HIL603, HIL604, or HIL606.

00:01:11

For this lesson, we will use a HIL606 device.

00:01:14

The reason this model requires a 6-seriesHIL device can be better understood by looking

00:01:19

at the message console.

00:01:21

From the resource perspective, this modelutilizes four standard processing cores and

00:01:26

a machine solver.

00:01:27

If you look at the device configuration table,you can see how the different configurations

00:01:31

allocate these resources.

00:01:36

As you can see for the HIL606, most configurationssupport this combination of four SPCs and

00:01:50

one machine solver.

00:01:52

Only configurations four and seven do notsatisfy this requirement.

00:02:01

If you look at the configuration table fora 4-series HIL device, however, you can see

00:02:06

that there are no such configurations.

00:02:09

The HIL606 combines the speed of the HIL404with the capacity of the HIL604.

00:02:17

With this in mind, the HIL606 enables youto increase model complexity and add more

00:02:22

DER components than ever before.

00:02:25

You can find more information about this examplein the application note.

00:02:30

This example demonstrates a microgrid controllerand its ability to handle a microgrid islanding

00:02:36

event.

00:02:37

Net power flow is observed at the point ofcommon coupling or PCC and system resources

00:02:42

are commanded as necessary to prepare forand respond to islanding.

00:02:46

In two separate cases, a battery inverterand a diesel generator are used as the primary

00:02:51

grid-forming DER in order to compare theirdynamic responses when islanding.

00:02:55

The microgrid model consists of four DER components:an Energy Storage System, a Wind Plant, a

00:03:02

PV Plant, and a Diesel Genset.

00:03:04

The microgrid also has three types of loads:a constant load, an interruptible load, and

00:03:10

a variable load.

00:03:11

All elements of the microgrid are connectedto the same point of common coupling.

00:03:16

All components except the interruptible loadare plug-and-play, directly introduced from

00:03:20

the Typhoon Microgrid Library.

00:03:22

Each DER has its own transformer with ratio12.5 kV/480 V. The ESS, the Wind Plant, and

00:03:31

the PV Plant are all converter-based models.

00:03:40

While this example is implemented using switchedcomponents, the same model can be implemented

00:03:45

using generic or average components if preferred.

00:03:48

In this way, the model would be able to runon 4-series devices.

00:03:57

The microgrid controller is the brain of themicrogrid.

00:04:01

It can monitor and issue commands to the DERsand command the synchronization relay to connect

00:04:05

or disconnect the microgrid from the maingrid, depending on the operating mode requested

00:04:10

by the microgrid operator and any grid faults.

00:04:13

The microgrid controller also handles powerflow regulation through the PCC.

00:04:18

By sending power references to the grid-formingDER, the active and reactive power flowing

00:04:23

through the PCC can be zeroed, allowing forsmooth intentional islanding.

00:04:27

In microgrids, the microgrid controller oftencommunicates with DERs using communication

00:04:33

protocols, for example IEC 61850, DNP3, orModbus.

00:04:40

All DERs can be commanded through the DERcontrol signal coming from the microgrid controller,

00:04:45

but only the ESS and the diesel genset haveextra inputs/outputs.

00:04:49

Since they are the only two DERs not basedon an intermittent energy source, they can

00:04:53

be selectively engaged by the microgrid controlleras a grid-forming source.

00:04:58

They provide information about power to themicrogrid controller and receive power references

00:05:02

in return.

00:05:03

The microgrid controller is fully implementedusing the signal processing toolbox.

00:05:09

At its core, the microgrid controller logicis built around state machines implemented

00:05:13

using C Function components.

00:05:16

These two state machines are SM and SM2.

00:05:19

These state machines issue commands to thecircuit breaker inside of the PCC monitor

00:05:23

subsystem and to the grid-forming DERs, withthe support of PI Controllers, Signal Routing,

00:05:29

and Rate Transition components.

00:05:34

Inside of the PCC monitor subsystem, you cansee that the PCC monitor oversees the power

00:05:39

flow through the PCC and keeps the microgridcontroller informed of the main breaker status.

00:05:44

The breaker status signal serves as a triggerfor the microgrid controller to start controlling

00:05:49

the power flow by managing the DERs.

00:05:52

Using this mechanism, the PCC monitor canperform synchronization, control, and protection

00:05:57

including over and under voltage and overand under frequency protection.

00:06:02

As you can see, it is possible to use theHIL device as a controller or rapid control

00:06:09

prototyping platform for real microgrid controllerdevelopment.

00:06:13

Microgrid RCP applications are further supportedby the wide selection of connectivity options

00:06:18

and communication protocols inside of thecommunication protocols toolbox.

00:06:28

Connectivity and communication protocols areaddressed in greater detail in the Communication

00:06:32

protocols module.

00:06:34

Typhoon HIL also supports C code export functionalityallowing you to export the controller model

00:06:39

from Typhoon HIL to another controller developmentenvironment.

00:06:43

Let's compile and load the model.

00:06:45

As mentioned previously, we will use a fourthgeneration HIL606 device.

00:06:51

Let's open the panel file found in model directoryand run the simulation.

00:07:00

If you are using a Virtual HIL device, youwill likely notice that the simulation is

00:07:04

very slow compared to the real-time simulation.

00:07:08

This is another important benefit of usinga HIL device.

00:07:11

Large power electronics models like thesedemonstrate the added value of using HIL devices

00:07:16

not only to test controllers but also to allowteaching naturally and conveniently, in real

00:07:22

time.

00:07:24

Let's begin with the scenario where all DERsare enabled and connected to the main grid.

00:07:29

In this configuration, all DERs operate ingrid-following mode.

00:07:33

The microgrid operator may choose to issuea command to change the operation mode from

00:07:37

"Grid Tied" to "Islanded."

00:07:39

The microgrid operator can also decide whichgrid forming capable DER will be used as the

00:07:44

primary DER.

00:07:45

Here the Battery Inverter is chosen.

00:07:50

As you can see in the PCC monitor group, themicrogrid is consuming around 900 kW of active

00:07:56

power and 216 kVA of reactive power.

00:08:00

Statuses of the PCC circuit braker, microgriddead bus, Utility nominal voltage, microgrid

00:08:07

nominal voltage, and utility nominal frequencyare indicated by LEDs.

00:08:12

You can also see plots of active and reactivepower as well as a synch check phasor graph.

00:08:18

First, let's run the Battery ESS.

00:08:22

The ESS is injecting 200 kW of active power.

00:08:25

As you can see, the power supplied from utilityto the microgrid has been reduced.

00:08:30

Let's run the other three DERs the same way.

00:08:48

With the other DERs enabled and connected,the net power that flows through the PCC has

00:08:53

become negative.

00:08:54

This means that the microgrid is supplyingpower back to the utility.

00:08:59

Now, let's test an intentional islanding scenario.

00:09:04

Do this by changing the Operation mode combobox from Grid Tied to Islanded.

00:09:09

The active power offset and reactive poweroffset graphs provide information on the active

00:09:14

and reactive power which needs to be eithersupplied or absorbed by the grid-forming DER

00:09:18

in order to reach net zero flow through thePCC.

00:09:27

The microgrid is now in islanded mode, disconnectedfrom the utility with the Battery ESS forming

00:09:32

the grid.

00:09:33

This means the Battery ESS is setting thenominal voltage and nominal frequency in the

00:09:37

microgrid.

00:09:39

Any power that is injected into the grid byother DERs now charges the battery.

00:09:44

Similarly, any power absorbed from the gridis now supplied by the Battery ESS.

00:09:48

The process of intentional islanding usingthe Battery ESS happens rather quickly.

00:09:53

It's important to note, however, that differentelements in a microgrid have different dynamics.

00:09:59

This can be illustrated by conducting thesame intentional islanding experiment using

00:10:03

the diesel genset as the grid forming DER.

00:10:05

Let's switch back to grid tied mode in theoperation modes combo box.

00:10:10

The microgrid controller, with help of thePCC monitor sync check, will provide new voltage

00:10:15

and frequency references to the ESS in orderto synchronize with the utility.

00:10:19

When the microgrid and utility are synchronized,the circuit breaker in the PCC can be closed.

00:10:25

Once connected to the main grid, the ESS willswitch to grid following mode as it did before

00:10:30

islanding.

00:10:31

Once again, you can see this process happenedquickly with the battery ESS in charge of

00:10:36

grid synchronization.

00:10:38

The PCC circuit breaker is now closed, meaningthe microgrid is back in grid tied mode.

00:10:43

To make the Diesel Genset the grid formingDER, select Diesel Genset in the grid-forming

00:10:48

DER combo box.

00:10:52

Now run the intentional islanding scenarioagain to see the Diesel Genset's dynamic response.

00:11:00

The graphs in the microgrid controller groupshows the active/reactive power offset commands

00:11:04

sent by the microgrid controller to the genset.

00:11:07

Due to the inertia of the genset and the differentdynamics of the genset controller, the response

00:11:12

is slower compared to battery.

00:11:15

You can find more information about this microgridin the application note provided in the materials

00:11:19

tab.

00:11:20

Thank you for your attention.

Please Wait!

Please wait... it will take a second!