> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/power-transmission-and-distribution/mmc-statcom-with-22-power-modules-per-phase.md).

# MMC STATCOM with 22 Power Modules per Phase

This example shows a 12 MVA, 34.5 kV Static Synchronous Compensator using 22 power modules per phase.

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-74ca86e7b9b56734f6bb5abeb6d5976719bdde30%2FMMC_STATCOM_22powermodules_1P.png?alt=media" alt=""><figcaption></figcaption></figure>

## Description

In electrical grids, shunt compensation is often used for reactive power and voltage control. This example models a shunt compensation device that is increasingly used in modern grids: the Modular-Multi-level (MMC) STATCOM. The MMC-STATCOM is built using the Full-Bridge MMC block to represent a power electronics converter of 22 modules per phase. In order to speed-up simulation while keeping simulation fidelity, the Switching Function model is selected.

### Principle of Operation

The STATCOM can absorb or generate reactive power. The reactive power transfer is done through the phase reactance. The converter generates a voltage in phase with the grid voltage. When the amplitude of the converter voltage is lower than that of the grid voltage, the STATCOM acts like an inductance absorbing reactive power. When the amplitude of the converter voltage is higher than that of the bus voltage, the STATCOM acts like a capacitor generating reactive power.

## Simulation

### 1- Dynamic Response

Run the simulation and observe waveforms on Scope1. You can see that the simulation starts in steady state and that the STATCOM operates in inductive mode following its set-point Qref (-5 Mvar ). At 0.1 second, the set-point changes from -5 to +10 Mvar. The STATCOM control system reacts very rapidly to modify the inverter output voltage in order to generate 10 Mvar of reactive power (capacitive mode).

### 2- Low-Level Control - Capacitor Voltage Balancing

In order to analyze the operation of the low-level control (DC voltage balancing) run the simulation with the following changes: 1. Set the simulation time to 2 seconds. 2. Set the initial value of Qref (red Step block) to 10e6. With this modification, the setpoint will not change during the simulation. 3. Set the Switching time of the red Breaker block to 1 second. This will produce a power unbalance at 1s by switching-in a small resistive load on phase C only. 4. Run the simulation and observe some of the capacitor voltages on the Vc's & Vc\_mean Scopes, located inside the green Additional scopes subsystem. You can see that the low-level control system performs well to maintain the capacitor voltages balanced. 5. Double-click on the blue Low-Level Control block and turn-off the Phase Balancing regulator of the DC voltage balancing system. Run the simulation and notice that the STATCOM DC voltages balance between phases is lost when the load is switched-in on phase C. Note: The individual capacitor voltages balancing control generates a small voltage in phase/180 degrees phase-shift with the current flowing into the arm in order to produce/absorb active power from each capacitor. This control system will then not work properly if the current (capacitive or inductive) flowing into the capacitors is too low to produce sufficient active power to charge/discharge them. For this reason, the Qref\_Limits subsystem does not permit Qref values between -0.75 and +0.75 Mvar. See reference \[2] for more details on this control. Other voltage balancing approaches, such as a sorting algorithm, do not have this limitation. This method is used in the example power\_Grid\_STATCOM.

## Command

Example model name: power\_statcom\_22PM

{% code lineNumbers="true" %}

```matlab
open('power_statcom_22PM')
```

{% endcode %}

## References

\[1] M. Pereira, Member, IEEE, D. Retzmann, Member, IEEE, J. Lottes, M. Wiesinger, G. Wong, SVC PLUS: An MMC STATCOM for Network and Grid Access Applications 2011 IEEE Trondheim PowerTech

\[2] Hirofumi Akagi ; Shigenori Inoue ; Tsurugi Yoshii, Control and Performance of a Transformerless Cascade PWM STATCOM with Star Configuration IEEE Transactions on Industry Applications (Volume: 43, Issue: 4 , July-august 2007)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/smart-power-simulation-software-sps/example-models/power-transmission-and-distribution/mmc-statcom-with-22-power-modules-per-phase.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
