Frequently Asked Question
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.
Hello and welcome.
This lesson is dedicated to one of the mostcommonly used components in our microgrid
library: battery models.
You will learn more about the different batterycomponents as well as their advantages and
So, let’s start.
When you click on the Microgrid group, youcan see the Energy Storage folder inside of
the Distributed energy resources group ofcomponents.
By expanding the Energy Storage folder, youwill see two types of Battery ESS components:
Legacy and Generic.
Let’s drag and drop each of those componentsinto Schematic Editor.
When it comes to the Legacy group, you cansee two types of components: Switching and Average.
If you double-click on the mask, you can seeseveral tabs which allow you to change some
parameters such as nominal power, nominalvoltage, switching frequency, and others.
There are also a few tabs which provide informationabout some filter parameters, particularly
those connected with control like Kp and Ki.
The parameter set is the same for both typesof components.
The Help button on the bottom corner willredirect you to our online documentation where
you can find more details about the components.
Since Legacy components are unlocked, youare able to modify them in accordance with
For instance, if you would like to expandfunctionality with frequency droop, the output
of your droop equation should be fed to thef_ref tab.
If we look under the mask, you can noticethat battery and inverter are separated, meaning
that you are able to connect battery modelsof any type.
You can find a link to our switching componenttutorial in the Materials tab.
In this lesson module we will be more focusedon the Average battery component.
Let’s open the average model from the Examplelibrary.
Go to examples on the main screen of the TyphoonHIL Control Center, then click microgrid,
energy storage and battery average model.
If we open the model, a very simple exampleopens.
As you can see, the example looks the sameas the switching component in the tutorial.
Let’s see what is the difference.
If we look under the mask, you can noticethat the only difference is that in the average
model, three-phase voltage sources take theplace of the inverter in the switching model.
That difference means that the average modelhas no switching output signals.
A detailed comparison between those componentsis explained in the DER introductory module.
Now let’s return to our original model andreturn to the root view.
As was previously mentioned, legacy componentsare unlocked and open on the DC side, which
means that they can accept battery modelsof any type.
In this example we’ll use a battery componentfrom our core library.
If we double click on the mask of this component,there are two tabs: General and Signal Processing.
In the General tab you can choose which batterytype you want use.
You can use standard technologies like Lithium-Ionor Lead Acid, or you can define a custom battery
type by clicking on user defined type.
You can adjust the default parameters fornominal voltage, initial state of charge,
and Capacity, and preview the SOC curve foreach battery type.
If you need additional parameters, then choosethe "User defined" option.
This enables hidden parameters that allowyou to define the battery's SOC curve in detail,
letting you shape it to your needs.
Some of parameters you are able to defineare: full charge of model, nominal discharge
current, resistance, and capacity.
The signal processing tab contains featuressuch as State of Charge output and Use Signal
If the State of charge output, or SOC, propertyis checked, an additional signal processing
output port on the battery model will be addedwhich outputs the current state of charge.
The Execution rate property determines theexecution rate of the signal processing components.
The Battery component is implemented as acontrolled voltage source and a series resistance.
The voltage source is controlled by a lookuptable that is automatically modified by changing
the battery type.
The number of LUTs is limited per device to 8.
If the Use signal processing Look up tableproperty is checked, the entire battery will
be modeled with a single Signal Processinglookup table.
This is very useful in case there are morethan 8 batteries in the model, since you are
saving 1 LUT resource by spending 1 SignalProcessing resource, of which you have 16 per core.
This is a very good deal if your applicationallows trading between battery model speed and size.
Now that we’ve covered the Legacy components,let’s switch to Generic components.
The main purpose of generic components isto allow you to easily parametrize models
through nominal values which you provide,without the need for you to adjust the details
of the grid filter or the control software.
The Generic Battery model consists of twomain sub-components: the Battery ESS component
which contains a high-level control subsystemand a low-level control subsystem with the
power stage, and the Battery ESS UI componentwhere all inputs and outputs are defined.
The purpose of this component is demonstratebehaviors characteristic of a battery inverter,
considering factors such as different operationmodes, limitations based on the nominal parameters,
and fault detection.
It is capable of operating in isochronous,droop, and grid following modes.
Entering the component properties for thebattery lets you change general parameters
such as nominal active power, nominal apparentpower, and nominal frequency.
There is also a possibility to include a built-intransformer.
The Battery tab provides some informationregarding the battery, such as the nominal
battery voltage and capacity.
It is also possible to set up an absoluteState of Charge range.
Grid codes are one of the most interestingthings when it comes to generic components.
You are able to choose between several built-ingrid support functionalities such as LVRT,
VoltVAR, HzWatt, and VoltWatt.
More details about grid support functionalitiesare available in the materials tab.
Next to the grid codes tab is the ConverterExtras Tab where additional parameters that
are related to the converter can be specified,such as Input filter impedance, DC link voltage
margin, shunt resistance as well as the fasterand slower execution rate.
The Grid Extras component tab is intendedfor setting up additional parameters that
are related to the grid, including valueslike the Grid Short Circuit power and the
Grid inductive power factor.
You can find more details about this componentin the online documentation, which is accessible
by clicking on the help button in the bottomcorner.
Unlike Legacy components, Generic batterycomponents are locked and open only towards
the AC/grid side, which means that the batteryand inverter are both aggregated.
These components each have their own respectiveUI component, which is unlocked.
Inside, you will find all outputs that themicrogrid controller monitors, as well as
all the inputs it receives to control theDER.
You can modify the user interface block byadding a communication protocol from our vast
library of available communication components,such as Modbus or CAN.
That way, you can focus on mapping the communicationlayer without the need to worry that some
function listed in your controller’s Modbusmap is not supported by the DER component.
There is a dedicated example which can helpyou to test all these functionalities.
In order to find it, click on Example explorer,then the microgrid, energy storage group,
the battery ess generic model, and then clickopen model.
You can find more information on how to testthe example by reading the generic battery
application note in the Materials tab.
This component will also be discussed in lessonCreate a microgrid in 10 minutes.
Now we will continue with the other DER components.
See you in the next videos.
Thank you for watching.