Plexim RT Box TSP 2.0.5 User Manual Download Page 3

Modular Multilevel Converter

2.1 Power Circuit

Fig. shows the circuit model of the “Plant”, which comprises an MMC connecting the AC system and
the DC system. The MMC has a configurable number of submodules per arm with a default value of
5. Every submodule is composed of one full-bridge and a DC-link capacitor and each single-phase pair
of converter arms, together with their arm inductors, is then connected to the AC grid. The converter
arms are implemented with the Full Bridges (Series Connected) power module library component.
This component has two configurations: a Switched implementation where ideal switches represent
the semiconductors, and an sub-cycle averaged configuration that uses controlled voltage and current
sources. This model is configured to use the Sub-cycle averaged implementation of the power module
components which is suitable for offline and real-time simulation.

The implementation of both the power module and the PWM generation is such that the number of
cells can be configured with a variable

num_sm

in the Model initialization commands without having to

extend the model with additional wiring or components. This concept is called implicit vectorization of
the model structure and is further explained in the tutorial “Implicit Model Vectorization” available in
the tutorials section of the Plexim website.

Swa

PWM

Capture

PWMa

PWM

Out

ma

Qa+1

Qa+4

Qa+2

Qa+3

U(I)

Qa-2

Qa-3

Qa-1

Qa-4

Swb

PWM

Capture

PWMb

PWM

Out

mb

Qb+1

Qb+4

Qb+2

Qb+3

Qb-2

Qb-3

Qb-1

Qb-4

Swc

PWM

Capture

PWMc

PWM

Out

mc

Qc+1

Qc+4

Qc+2

Qc+3

Qc-2

Qc-3

Qc-1

Qc-4

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

U(I)

PWMa1

PWM

Out

Swa1

PWM

Capture

PWMb1

PWM

Out

Swb1

PWM

Capture

PWMb2

PWM

Out

Swc1

PWM

Capture

Qa+3

Qa+4

Qa+1

Qa+2

Qa-3

Qa-4

Qa-1

Qa-2

V_3ph

Qb+3

Qb+4

Qb+1

Qb+2

Qb-3

Qb-4

Qb-1

Qb-2

Qc+3

Qc+4

Qc+1

Qc+2

Qc-3

Qc-4

Qc-1

Qc-2

V_dc

Model

Settings

Model

Settings

Model

Settings

Model

Settings

Model

Settings

Model

Settings

Model

Settings

V

Upper Side

Upper Side

Upper Side

Lower Side

Lower Side

Lower Side

Measurements

Figure 2: Schematic of the grid-connected MMC inverter

Tasking modes

In order to distribute the physical model on different CPU cores of the RT Box 2/3, the model has to be
split with the Task frame component from the PLECS library. The tasking mode can be configured in
the Coder Options in the

Scheduling

tab of the

Coder Options

window, as shown in Fig. 3.

Single-tasking

If the

Tasking mode

is configured as

single-tasking

, all task frame components

are ignored and the physical system is executed in a single base task. This configuration is needed for
real-time simulation of the demo model on the RT Box 1.

www.plexim.com

2

Summary of Contents for RT Box TSP 2.0.5

Page 1: ...nse Get the latest RT Box Target Support Package Check the PLECS and RT Box documentation RT Box DEMO MODEL Modular Multilevel Converter Multi tasking simulation of a grid connected modular multilevel con verter on the RT Box 2 3 Last updated in RT Box TSP 2 0 5 ...

Page 2: ...ngle Tasking Average Execution Time Multi Tasking 6 µs 3 7 µs 2 0 µs 1 1 Requirements To run this demo model the following items are needed available at www plexim com One PLECS RT Box 1 2 or 3 and one PLECS Coder license One 37 pin Sub D cable to connect the digital I Os of the box front to front The RT Box Target Support Library Follow the step by step instructions on configuring PLECS and the R...

Page 3: ... explained in the tutorial Implicit Model Vectorization available in the tutorials section of the Plexim website Swa PWM Capture PWMa PWM Out ma Qa 1 Qa 4 Qa 2 Qa 3 U I Qa 2 Qa 3 Qa 1 Qa 4 Swb PWM Capture PWMb PWM Out mb Qb 1 Qb 4 Qb 2 Qb 3 Qb 2 Qb 3 Qb 1 Qb 4 Swc PWM Capture PWMc PWM Out mc Qc 1 Qc 4 Qc 2 Qc 3 Qc 2 Qc 3 Qc 1 Qc 4 U I U I U I U I U I U I U I U I U I U I U I U I U I U I PWMa1 PWM O...

Page 4: ...ysical model has to be split at strategic locations by using a coupling circuit To do so a controlled current source is placed in one part of the model and a con trolled voltage source in the other part Both sources are controlled by the respectively measured volt age current state variables from the other part of the model To avoid state source dependence one measured signal has to be delayed by ...

Page 5: ...asking or multi tasking as the tasking mode and accept your choice Please note that multi tasking mode is only available for RT Box 2 and RT Box 3 Return to the System tab select the Plant and Build it onto the RT Box Once the model is uploaded from the External Mode tab Connect to the RT Box and Activate autotriggering During the real time operation under External Mode the measurements can be obs...

Page 6: ...cribed in this document is furnished under a license agreement The software may be used or copied only under the terms of the license agreement No part of this manual may be photocopied or reproduced in any form without prior written consent from Plexim GmbH PLECS is a registered trademark of Plexim GmbH MATLAB Simulink and Simulink Coder are regis tered trademarks of The MathWorks Inc Other produ...

Reviews: