Frequently Asked Question

Video: 4.2 Converter Control
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:02

Hello and welcome to the Converter controllesson.

00:00:05

In this lesson, we ll cover the differentways you can control converter models, and

00:00:10

we ll explain how to set up and use the differentcontrol methods.

00:00:15

There are four main control options whichcan be used for converters in our software.

00:00:19

The first one Digital input per switch isavailable for every converter in our converter

00:00:24

library.

00:00:25

The other control options Digital input perleg, Internal modulator, and Model control

00:00:31

are available for most converters.

00:00:35

You can select the control method in the propertieswindow of each converter by changing the Control

00:00:39

property.

00:00:41

When changed, the rest of the properties inthe window will be updated according to the

00:00:45

control option you ve selected.

00:00:46

If a converter can only be controlled by Digitalinput per switch, the Control property will

00:00:51

not be accessible.

00:00:55

Let s start by going through the first convertercontrol option Digital input per switch.

00:01:00

As the name suggests, this control optionrelies on external digital signals, which

00:01:04

are usually provided by a hardware controlleror another external control device.

00:01:11

To use your converter in a Controller-Hardware-in-the-loopconfiguration, you have to connect your hardware

00:01:16

controller to the HIL device.

00:01:18

You can identify the appropriate digital inputson the HIL device by referencing the IO pinout

00:01:23

in the Materials tab.

00:01:26

For each converter, all available switchesare listed under General properties.

00:01:30

Each switch must correspond to the specificdigital input where the gate drive signal

00:01:34

will be sent.

00:01:35

Notice that switches have specific name designations,which can inform you of their position in

00:01:40

the converter topology.

00:01:42

If you are unsure about the position of aswitch in a converter topology, pressing the

00:01:46

Help button for the converter will lead youto that converter s documentation.

00:01:50

There you will find all relevant information,including the topology schematic.

00:01:55

The final part of setting up Gate drive signalsis defining their active state logic meaning

00:02:00

we define whether the switch will be on whenthe gate drive signal is high or when it is

00:02:04

low.

00:02:05

You can set the desired logic for each switchin the drop-down menu on the right side of

00:02:09

the property window.

00:02:11

In addition to gate drive signals, we canconnect an additional digital signal which

00:02:15

will enable or disable the gate control ofthe converter.

00:02:19

The next control option is digital input perleg.

00:02:22

Assuming the gate drive signals of a givenleg are complementary, meaning when the top

00:02:27

switch of the leg is on the bottom is offand vice versa, this pair of switches can

00:02:31

be controlled using only one digital signal.

00:02:33

The advantage of this control method is thatyou can reduce the number of digital signals

00:02:37

required for controlling the converter.

00:02:41

The hardware setup procedure is the same asit is for the digital input per switch control

00:02:46

option.

00:02:47

The difference is that now we only configureone digital input for each leg.

00:02:50

By default, high-switching logic is used.

00:02:53

This means that the active digital input turnson the top switch of the leg while turning

00:02:57

off the bottom switch and vice versa.

00:03:00

In addition, we have to define the dead timeduration.

00:03:03

This ensures that the top and bottom switcheswill not conduct at the same time.

00:03:08

To precisely measure dead time, a PWM Channelis needed.

00:03:11

It s important to consider this when estimatinghow many converters can fit on one device;

00:03:16

when we use this control option, we need tobe aware of PWM Channels utilization in addition

00:03:22

to Power Electronics Converters utilization.

00:03:25

The Switching enabled property is also availablefor this control option, as it is with the

00:03:30

digital input per switch control option.

00:03:32

This allows us to enable or disable the gatedrive control according to a selected digital

00:03:37

input.

00:03:38

The two control options we ve covered so farare used to control converters from external

00:03:42

devices.

00:03:43

The next two control options are typicallyused when developing the entire control algorithm

00:03:48

inside the model, though these can be usedfor external control as well in some specific

00:03:52

applications.

00:03:53

The first control option of this kind is Internalmodulator control.

00:03:57

This control option is primarily used whena converter is controlled from inside the

00:04:02

model.

00:04:03

When you select Internal modulator control,the converter component will display input

00:04:07

ports for the reference signals, as well asan additional input for a signal which will

00:04:11

enable the converter.

00:04:13

The number of inputs for reference signalsdepends on the number of legs of the converter.

00:04:19

Internal modulator control utilizes a HILhardware resource called PWM Channels.

00:04:25

This hardware resource was presented in lesson3.1 Model mapping, where it is explained that

00:04:30

there is a limited number of PWM channelsavailable to us in the model.

00:04:34

The PWM Channels resource is a multi-channelPWM modulator with a dead time generator and

00:04:40

a symmetrical triangular carrier with frequencyranging from 100 Hz to 500 kHz.

00:04:46

It has a dedicated slot on the FPGA, and itoperates at the frequency of the device s

00:04:51

clock, which is 160 MHz for most devices.

00:04:55

For the newest generation of HIL devices theHIL606 and HIL404 the clock frequency is 280

00:05:02

MHz.

00:05:03

There are multiple components that can utilizethe PWM Channels resource.

00:05:08

The first is a converter with the digitalinput per leg control option, as mentioned.

00:05:12

The second is a converter with the internalmodulator control option.

00:05:16

Last is the PWM Modulator component, whichwill be discussed at the end of this lesson.

00:05:22

When we use the internal modulator controloption, reference signals are provided to

00:05:26

the converter, while the carrier signal isgenerated by the PWM Channels resource.

00:05:32

Based on the comparison of the two, the GDSsignals are generated.

00:05:36

[slide 10]When the control option is set to Internal

00:05:40

modulator, general properties of the convertercorrespond to characteristics of the carrier

00:05:44

signal.

00:05:45

As you can see in the properties window, youfirst define whether the carrier signal has

00:05:49

a fixed or variable frequency.

00:05:52

If the carrier frequency is fixed, you canset it directly in the property window.

00:05:57

If the carrier frequency is variable, youcan provide its value externally using the

00:06:01

additional input created on the convertercomponent.

00:06:04

This enables the use of control algorithmthat require the control frequency to change

00:06:09

in real time.

00:06:10

A component with an additional input for thecarrier frequency is shown below the General

00:06:14

properties window.

00:06:16

The generated PWM signals also have a deadtime period that can be configured by adjusting

00:06:21

the Dead time period property.

00:06:23

Other properties are carrier phase offsetand maximum and minimum of the reference signal.

00:06:28

These parameters are visually explained onthe picture below.

00:06:31

The carrier phase offset is an angle of phasedisplacement, in degrees, of the carrier signal.

00:06:38

Maximum and minimum of the reference signalsare the maximum and minimum values of the

00:06:41

carrier signal.

00:06:43

Some converters with the internal modulatorcontrol option, such as the IGBT Leg and Single-Phase

00:06:48

Inverter, can also have variable carrier phaseoffset.

00:06:52

If this option is selected, an additionalinput will appear on the converter for the

00:06:56

phase offset.

00:06:57

This feature is useful when a control techniqueis based on changing phase offset between

00:07:01

carrier signals, such as Phase Shift modulation.

00:07:05

Let s now move on to the last available controloption Model control.

00:07:11

When the control option is set to Model, asignal processing input is created at the

00:07:16

top of the component.

00:07:17

This input receives a vector of control signalsfor all of the converter switches.

00:07:24

This slide shows a Three phase inverter withthe control option set as Model.

00:07:28

Since the converter receives the control signalsin vector form, the individual control signals

00:07:33

for each switch are concatenated using a Busjoin component.

00:07:38

Control signals in the vector must be sortedin the same order as they are presented in

00:07:41

the properties window when the selected controloption is Digital input per switch.

00:07:46

One advantage of this control option is that,in addition to creating your own custom control

00:07:51

algorithm, you can design your own carriersignal.

00:07:54

This functionality is not fully possible whenusing internal modulator control.

00:07:59

In addition, the Model control option is usefulfor control algorithms where you directly

00:08:03

control the states of the converter switches,such as Finite Control Set-Model Predictive

00:08:09

Control.

00:08:10

The primary disadvantage of the Model controloption is that the execution rate of the control

00:08:15

algorithm is limited by the capabilities ofthe CPU.

00:08:17

Depending on complexity, control algorithmsmay not be able to execute at a rate faster

00:08:22

than 20 to 100 ?s.

00:08:25

This also depends on the HIL device used,since the HIL404 and HIL606 have greater CPU

00:08:31

capabilities than devices from previous generations,and can perform signal processing computations

00:08:37

much faster than other devices.

00:08:39

When Pulse-width modulation is used, an executionrate of 20 to 100 ?s may be insufficient to

00:08:45

generate high frequency Carrier signals withadequate resolution.

00:08:49

Therefore, it is highly recommended to usethe Internal modulator control option for

00:08:54

carrier-based modulations such as the Pulsewidth modulation technique, especially for

00:08:59

switching frequencies over 10 kHz.

00:09:02

We have now reviewed every available controloption.

00:09:05

For more information and a more comprehensiveexplanation of the control options, please

00:09:09

refer to the Converters documentation listedin Materials tab.

00:09:14

Now, let s cover some topics that are closelyrelated to the converter control options.

00:09:19

First, let s discuss PWM modulator component.

00:09:23

As mentioned previously in this lesson, thePWM modulator is one of the three components

00:09:28

in the Typhoon software which utilizes thePWM Channels resource.

00:09:33

In most power electronics applications, theHIL device is used to simulate converters.

00:09:38

What may be less obvious is that the HIL devicecan be used as a controller for a real, physical

00:09:43

converter as well.

00:09:45

With this purpose in mind, the PWM modulatorwas made available to Typhoon users as a standalone

00:09:51

component.

00:09:52

It uses the same hardware resources as theInternal Modulator inside converter components,

00:09:56

but it allows access the PWM signals directlyin SCADA and at the HIL device s digital outputs

00:10:02

without expending resources on a convertermodel.

00:10:07

The properties of the PWM Modulator matchthose of a converter with the Internal modulator

00:10:11

control option.

00:10:13

However, when using the PWM Modulator, wecan increase the number of PWM channels up

00:10:18

to 12.

00:10:19

This means that we can have up to 12 carriersignals generated in the PWM Channels component,

00:10:25

all of which can have separate variable frequenciesor phase offsets.

00:10:29

If you are interested in a more comprehensiveexplanation of the PWM Modulator and its properties,

00:10:35

please refer to its documentation, which islinked in the Materials tab.

00:10:41

While Typhoon developers are working on addingthe internal modulator control option to every

00:10:45

converter in the converter library, some convertercomponents don t yet support this.

00:10:50

In these cases, it is possible to use an alternativemethod that consists of looping back control

00:10:55

signals to the converter from the PWM Modulatorcomponent.

00:10:59

A comprehensive explanation of this techniquecan be found on the FAQ article What should

00:11:04

I do if a converter does not have an internalmodulator? , which is linked in the Materials

00:11:09

tab.

00:11:12

Before finishing this lesson, there are twoadditional features worth mentioning.

00:11:16

The first is C code export.

00:11:18

If you have developed a controller model usingsignal processing inside of Typhoon HIL software,

00:11:24

you are able to export the controller modelas C code.

00:11:27

This allows you to deploy the controller codeonto a C-based development environment, like

00:11:31

many microcontroller platforms.

00:11:34

If you are interested in this, please takea look at our tutorial - How to Export Generic

00:11:38

ANSI C Code, listed in the video description.

00:11:42

The second feature is related to the Internalmodulator control option.

00:11:46

Although the Internal modulator control optionis primarily used when controllers are being

00:11:51

developed inside the model, you can also interfacean external, high-level controller this way.

00:11:57

For example, a PLC controller may be runningcontrol loops and outputting analog reference

00:12:02

signals.

00:12:03

These reference signals can be read by themodel using Analog inputs and provided directly

00:12:08

to a converter with Internal modulator controloption.

00:12:13

This concludes the lesson on converter controlmethods and techniques.

00:12:17

The next lesson series will cover additionalfeatures of converter models.

00:12:20

Thank you for your attention.

Please Wait!

Please wait... it will take a second!