Table of Contents
This example shows the essential elements of a possible control implementation for a grid-tied three-phase nine-level Modular Multilevel Converter consisting of 24 submodules (Figure 1). The control is meant to be implemented with three B-Box RCP units, using the automated code generation process (ACG). The selected control approach is inspired from , which is one of the simplest possible control approaches including the complete closed-loop control of all state variables.
The related Simulink files contain not only the control implementation but also a model of the plant. Hence, these files can be simultaneously used for simulation and automated code generation purposes. The utilized parameters correspond to the Lite MMC bundle (Figure 2). As such, this example is also meant to serve as a ready-made template for any control developments intended on this hardware.
The complete simulation and control files are contained in:
The init.m file is automatically called at the beginning of the simulation or code generation process (using the Init callback of the *.slx file).
All Simulink sheets are commented on so that their operation can be easily understood.
- Imperix ACG SDK 220.127.116.11 or newer.
- MATLAB Simulink R2017b or newer.
- Plexim PLECS VIEWER 4.4.2 or newer (free).
Operation principles of the Modular Multilevel Converter
The control implementation is largely inspired by , which is a key reference regarding the control of Modular Multilevel Converter with carrier-based modulation. Two minor differences are however present – and somewhat recommended – between  and this example:
- The arm-level vertical energy balancing is not achieved indirectly through the so-called averaging control, but instead is done explicitly by an associated controller, acting on the circulating current of each leg in such a way that the total DC current is unchanged. A recommended reference on this topic is .
- The DC-side dynamics are improved by feed-forwarding the AC-side active power into the DC-side current control. This facilitates the control of the total embedded energy, i.e. overall average capacitor voltage. More subtle approaches can be used, which are typically relevant in case of operation under unbalanced grid conditions, or single-phase systems.
Hardware and software configuration
The configuration of all analog inputs for all B-Boxes is entirely contained within the ADC subsystem (Fig. 4), where all the ADC configuration blocks are conveniently grouped.
Similarly, for each phase, the associated subsystem (Fig. 5) contains the carrier-based modulators linked to each submodule, which are phase-shifted according to the desired modulation pattern. Each modulator is here directly fed by a local voltage controller, responsible for maintaining the appropriate charge level inside the submodule capacitors(s).
- Several controllers are sharing the same parameters (Kp, Ki). These parameters are implemented in the top level of the control scheme and they are shared with Goto and From blocks. This translates into so-called Simulink global signals, which are visible throughout a Simulink model. More subtle approaches are possible.
- There is no start-up/shut-down procedure implemented in the Simulink files. When needed, such mechanisms can be implemented, for instance using Stateflow. However, for complex projects, a control implementation using C/C++ may be preferable.
- It is strongly advised to use Simulink’s sample time highlighting options to control the exact execution rate of each block. These options are conveniently available from the menu Display >> Sample Time >> Colors. Indeed, inappropriate execution rates are a common source of mismatch between simulation and the actual real-time control implementation.
Illustrative simulation results of the Modular Multilevel Converter
Figure 6 shows some simulation results from the presented example:
Figures 7, 8, and 9 show the experimental results. The grid currents are slightly unperfect, due to the distortion induces by the deadtime and the forwarding voltage of the diodes which are not simulated.
 M. Hagiwara, H. Akagi, “Control and Experiment of Pulsewidth-Modulated Modular Multilevel Converters,” in IEEE Transactions on Power Electronics, Vol.24, July 2009.
 P. Münch, D. Görges, M. Izák and S. Liu, “Integrated current control, energy control and energy balancing of Modular Converters,” in Proc. IECON Conference, Phoenix, 2010.