> 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/rt-lab/simulink-blocks-reference/mmc-library/mmcvalvesparam.md).

# MMCValvesParam

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-19a81831eca116a0c241450c6232bbb7d6da908a%2FMMC_valve_param_block.png?alt=media" alt="" width="192"><figcaption></figcaption></figure>

The **MMC Valves Parameter** block, located in the **MMC/MMC blocks** library, sets parameters for the [**MMCValves**](https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalves.md) block and the [**MMCValvesLowLvlCtrl**](https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalveslowlvlctrl.md) block.

One block can configure up to 12 valves. It supports three model types: CPU-based Average Model (AVM), CPU-based Switching Function Model (SFM), and FPGA-based Switching Function Model. Place this block in the Console subsystem to change supported parameters online while the simulation runs.

## Mask parameters

### Model Type = CPU

<table><thead><tr><th width="142">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Model Type</strong></td><td>Selects the implementation location (CPU or FPGA). Must match the configuration of the <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalves.md"><strong>MMCValves</strong></a> and <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalveslowlvlctrl.md"><strong>MMCValvesLowLvlCtrl</strong></a> blocks.</td></tr><tr><td><strong>Number of Valves</strong></td><td>Number of valves in the associated <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalves.md"><strong>MMCValves</strong></a> block.</td></tr></tbody></table>

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-fec6fb13777dee807de5a38f385c2c4efd7333ea%2FMMC_valve_param_mask.png?alt=media" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Model" %}

<table><thead><tr><th width="247">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>CPU Model Type</strong></td><td>Selects the CPU model: Average Model (AVM) or Switching Function Model (SFM). Must match the value set in the corresponding <strong>MMCValves</strong> block.</td></tr><tr><td><strong>SM capacitance [Farads]</strong></td><td>Capacitance of each SM capacitor. In CPU mode, the same value applies to all SMs in the <strong>MMCValves</strong> block.</td></tr><tr><td><strong>SM discharge resistance [Ohms]</strong></td><td>Parallel discharge resistance of each SM capacitor.</td></tr><tr><td><strong>SM Type</strong></td><td>Available only if <strong>CPU Model Type = SFM</strong>. Sets the SM type for all SMs in the associated <strong>MMCValves</strong> block.</td></tr><tr><td><strong>Number of SMs per Valve</strong></td><td>Available only if <em>CPU Model Type</em> = SFM. Sets the SM count per valve. Must match the number of SM capacitors in the <strong>MMCValves</strong> block. Must be greater than zero and smaller than 50.</td></tr><tr><td><strong>Number of SMs per Valve HB-SM</strong></td><td>Available only if <strong>CPU Model Type = AVM</strong>. Number of Half-Bridge SMs per valve.</td></tr><tr><td><strong>Number of SMs per Valve FB-SM</strong></td><td>Available only if <strong>CPU Model Type = AVM</strong>. Number of Full-Bridge SMs per valve.</td></tr><tr><td><strong>Number of SMs per Valve CD-SM</strong></td><td>Available only if <strong>CPU Model Type = AVM</strong>. Number of Clamp Double SMs per valve.</td></tr></tbody></table>
{% endtab %}

{% tab title="Operation" %}

<table><thead><tr><th width="171">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable Pulses</strong></td><td><strong>Checked:</strong> Enables the pulses in the corresponding <strong>MMCValvesLowLvlCtrl</strong> block.<br><strong>Unchecked:</strong> Low Level Control keeps all IGBTs OFF.</td></tr><tr><td><strong>Vcap mode</strong></td><td><p>Sets the behavior of SM capacitors. Options:</p><ul><li>0: Normal operation (charge/discharge per current and control)</li><li>1: Vcap reset to 0 (forces 0 V regardless of current/control)</li><li>2: Vcap use average value (ΣVc/Nsm per valve)</li><li>3: Vcap reset to fix value (forces a fixed voltage)</li></ul></td></tr><tr><td><strong>Vcap fix value [Volts]</strong></td><td>Available only if <strong>Vcap mode = 3</strong>. Sets the fixed capacitor voltage.</td></tr><tr><td><strong>CD-SM Options: G5 ON/OFF</strong></td><td>For Clamp Double SM.<br><strong>Checked:</strong> Enables the gating signal for S5.<br><strong>Unchecked:</strong> Turns gating for S5 signal OFF.</td></tr><tr><td><strong>Behavior after SM fault: Keep Cell short-circuit upon error</strong></td><td><strong>Checked:</strong> When a short circuit occurs in an SM, the capacitor is considered damaged and its voltage is kept at 0.<br><strong>Unchecked:</strong> When a short circuit occurs in an SM, the capacitor voltage is not forced to 0 and continues to follow the internal model behavior.</td></tr></tbody></table>
{% endtab %}

{% tab title="Control" %}
This tab is available only when **CPU Model Type = SFM**.

<table><thead><tr><th width="182">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Modulation PWM or NLC</strong></td><td>Selects the Low Level Control modulation in the <strong>MMCValvesLowLvlCtrl</strong> block.<br><strong>Checked:</strong> PWM.<br><strong>Unchecked:</strong> NLC.</td></tr><tr><td><strong>VBC mode</strong></td><td><p>Vcap balancing algorithm in the <strong>MMCValvesLowLvlCtrl</strong> block:</p><ul><li>mode 1: switch SM with maximum/minimum Vc</li><li>mode 2: sorting method</li></ul></td></tr><tr><td><strong>VBC error (only for mode 1)</strong></td><td>Maximum allowed deviation of SM capacitor voltages (p.u.).</td></tr><tr><td><strong>IGBT dead-time (p.u. of Ts, [0,1))</strong></td><td>Dead-time used by the <strong>MMCValvesLowLvlCtrl</strong> block to generate complementary gating signals. Expressed as a fraction of the time step.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Model Type = FPGA

<table><thead><tr><th width="142">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Model Type</strong></td><td>Selects the implementation location (CPU or FPGA). Must match the configuration of the <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalves.md"><strong>MMCValves</strong></a> and <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalveslowlvlctrl.md"><strong>MMCValvesLowLvlCtrl</strong></a> blocks.</td></tr><tr><td><strong>Number of Valves</strong></td><td>Number of valves in the associated <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalves.md"><strong>MMCValves</strong></a> block.</td></tr></tbody></table>

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-fb8f544ef5cd507abe46dd9f1feb2ebd03daa2ec%2FMMC_valve_param_mask2.png?alt=media" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Model" %}

<table><thead><tr><th width="189">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>SM capacitance [Farads]</strong></td><td>Nominal capacitance for each SM capacitor. Same value for all SMs in the associated <strong>MMCValves</strong> block. Variations can be applied via discrepancies (see CR discrepancy tab).</td></tr><tr><td><strong>SM normal and fast discharge resistance [Ohms]</strong></td><td>Vector [Rnormal, Rfast]. Rfast is used only when <strong>Fast discharge</strong> is enabled (Operation tab). Same values apply to all SMs unless discrepancies are configured (see CR discrepancy tab).</td></tr><tr><td><strong>Switch Ron [Ohms]</strong></td><td>Equivalent ON-state resistance for each semiconductor switch in each SM.</td></tr><tr><td><strong>SM Capacitor voltage base [Volts]</strong></td><td>Base (per-unit) reference for SM capacitor voltage.</td></tr><tr><td><strong>Gating signal dead-time [µs]</strong></td><td>Dead-time used by the embedded Low Level Control to generate complementary gating signals. Admissible range: [0, 50].</td></tr><tr><td><strong>SM groups — SM Type</strong></td><td>Each valve can include up to three SM groups. Sets the SM type for the group. Options: {0: Half Bridge (HB-SM), 1: Full Bridge (FB-SM), 2: Clamped-Double (CD-SM), 3: T-type (T-SM)}.</td></tr><tr><td><strong>SM groups — Number of SMs</strong></td><td>Number of SMs in the group. Admissible values depend on the FPGA license.</td></tr></tbody></table>
{% endtab %}

{% tab title="Operation" %}

<table><thead><tr><th width="231">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable pulses</strong></td><td><strong>Checked:</strong> Enables the gating pulses.<br><strong>Unchecked:</strong> Low Level Control keeps all IGBTs OFF.<br>Enables the gating pulses.</td></tr><tr><td><strong>Fast discharge</strong></td><td><strong>Checked:</strong> Enables the fast discharge resistor in the SM.<br><strong>Unchecked:</strong> Fast discharge disabled.</td></tr><tr><td><strong>MMC gating signal routing</strong></td><td>Source of the SM gating signal: {0: internal (from the embedded Low Level Control), 1: external from SFP}.</td></tr><tr><td><strong>For MMC, measurement message interval [µs]</strong></td><td>Interval of measurement packets (e.g., Vcap, valve current) sent from SM models to the controller. Admissible range: [0, 10].</td></tr><tr><td><strong>Capacitor debugging — Vcap mode</strong></td><td><p>Sets SM capacitor behavior:</p><ul><li>0: Normal operation</li><li>1: Vcap reset to 0</li><li>2: Vcap use average value (ΣVc/Nsm per valve)</li><li>3: Vcap reset to fix value</li></ul></td></tr><tr><td><strong>Capacitor debugging — Vcap fix value [p.u.]</strong></td><td>Available only if <strong>Vcap mode = 3</strong>. Fixed capacitor voltage in per-unit of the base. Admissible range: [0, 4].</td></tr><tr><td><strong>Capacitor debugging — Force cap charge current to zero</strong></td><td><strong>Checked:</strong> Forces capacitor current to zero (no charge/discharge regardless of control).<br><strong>Unchecked:</strong> Capacitor current follows the standard model equations and can charge or discharge according to the control inputs</td></tr><tr><td><strong>CD-SM options — g5</strong></td><td>Controls S5 in Clamped Double SMs. Options: {0: disable, 1: enable, 2: by protection signal}.</td></tr><tr><td><strong>FB-SM options — force bit for FB-SM</strong></td><td><strong>Checked:</strong> Forces S3 OFF and S4 ON so FB-SMs behave as HB-SMs.<br><strong>Unchecked:</strong> S3 and S4 operate normally according to the FB‑SM control logic.</td></tr></tbody></table>
{% endtab %}

{% tab title="Control" %}

<table><thead><tr><th width="204">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable protocol port</strong></td><td><strong>Checked:</strong> Enables sending control and measurement signals inside the FPGA through protocol.<br><strong>Unchecked:</strong> Disables sending control and measurement signals inside the FPGA through protocol</td></tr><tr><td><strong>Gating signal from</strong></td><td>Source of controller output gating: {0: gate signal from CPU, 1: embedded VBC in FPGA}.</td></tr><tr><td><strong>Show external SM gate set port</strong></td><td><strong>Checked:</strong> Shows an external port to set SM gating signals directly from the Console.<br><strong>Unchecked:</strong> No external port.</td></tr><tr><td><strong>CPU gating signal mode</strong></td><td><p>Determines which gating signals are sent from the CPU. <strong>Checked</strong> (Related mode): only g1 for HB-SM, and g1 and g3 for FB-SM, CD-SM, and T-SM are sent; the rest are derived as:</p><ul><li>HB-SM: g2 = NOT(g1)</li><li>FB-SM and CD-SM: g2 = NOT(g1), g3 = NOT(g4)</li><li>T-SM: g2 = NOR(g1, g3), g4 = g3</li></ul><p><strong>Unchecked</strong> (Full mode): all gating signals are sent.</p></td></tr><tr><td><strong>In controller, measurement from</strong></td><td>Measurement source for the embedded controller.<br><strong>Checked:</strong> Measurement from protocol.<br><strong>Unchecked:</strong> Measurement from SM computation.</td></tr><tr><td><strong>Carrier frequency [Hz]</strong></td><td>PWM carrier frequency of the embedded controller. Admissible range: (0, 3000].</td></tr><tr><td><strong>Command packet interval by controller [µs]</strong></td><td>Interval of controller command packets (e.g., gating) sent to SMs. Admissible range: [0, 10].</td></tr><tr><td><strong>Inverse current direction at protocol</strong></td><td><strong>Checked:</strong> Positive current discharges the SM capacitor.<br><strong>Unchecked:</strong> Positive current charges the SM capacitor in measurement packets.</td></tr></tbody></table>
{% endtab %}

{% tab title="Protection" %}

<table><thead><tr><th width="209">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Overvoltage Protection — Level 1 enabled</strong></td><td><p><strong>Checked:</strong> Enables Level 1 overvoltage detection for SM capacitor voltages.</p><p><strong>Unchecked:</strong> Disables Level 1 overvoltage detection for SM capacitor voltages</p></td></tr><tr><td><strong>Overvoltage Protection — Threshold Level 1 [p.u.]</strong></td><td>Available only if Level 1 is enabled. Threshold above which Level 1 overvoltage is detected. Admissible range: [0, 4].</td></tr><tr><td><strong>Overvoltage Protection — Level 1 latch</strong></td><td><p>Available only when Level 1 is enabled.<br><strong>Checked:</strong> Latches the Level 1 overvoltage signal once it is triggered.</p><p><strong>Unchecked:</strong> The Level 1 overvoltage signal is not latched and clears normally according to the control logic.</p></td></tr><tr><td><strong>Overvoltage Protection — Level 2 enabled</strong></td><td><p><strong>Checked:</strong> Enables Level 2 overvoltage detection for SM capacitor voltages.</p><p><strong>Unchecked:</strong> Disables Level 2 overvoltage detection for SM capacitor voltages.</p></td></tr><tr><td><strong>Overvoltage Protection — Threshold Level 2 [p.u.]</strong></td><td>Available only if Level 2 is enabled. Threshold above which Level 2 overvoltage is detected. Admissible range: [0, 4].</td></tr><tr><td><strong>Overvoltage Protection — Level 2 latch</strong></td><td><p>Available only if Level 2 is enabled.</p><p><strong>Checked:</strong> Latches the Level 2 overvoltage signal once it is triggered.</p><p><strong>Unchecked:</strong> The Level 2 overvoltage signal is not latched and clears according to the normal control logic.</p></td></tr><tr><td><strong>Undervoltage protection — Protection enabled</strong></td><td><p><strong>Checked:</strong> Enables undervoltage detection for SM capacitor voltages.</p><p><strong>Unchecked:</strong> Disables undervoltage detection for SM capacitor voltages.</p></td></tr><tr><td><strong>Undervoltage protection — Threshold [p.u.]</strong></td><td>Available only if undervoltage protection is enabled. Threshold below which undervoltage is detected. Admissible range: [0, 4].</td></tr><tr><td><strong>Undervoltage protection — Latch</strong></td><td><p>Available only if undervoltage protection is enabled.</p><p><strong>Checked:</strong> Latches the undervoltage signal once it is triggered.</p><p><strong>Unchecked:</strong> The undervoltage signal is not latched and clears according to the normal control logic.</p></td></tr></tbody></table>
{% endtab %}

{% tab title="Scope" %}

<table><thead><tr><th width="182">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Receiving packet interval [µs]</strong></td><td><p><strong>Checked:</strong> Measures the time interval between SM and controller packets instantaneously.<br><strong>Unchecked:</strong> Uses the maximum latched time‑interval value instead of the instantaneous measurement.</p><p>Resolution: 0.16 µs. Maximum range: 163.7 µs</p></td></tr><tr><td><strong>Vcap measuring point</strong></td><td><p><strong>Checked:</strong> Measures Vcap directly at the submodules (SMs) for monitoring.</p><p><strong>Unchecked:</strong> Uses the Vcap measurement from the embedded controller for monitoring.</p></td></tr><tr><td><strong>Number of SMs to display</strong></td><td>Number of SMs to monitor per valve. Sends 2N SM capacitor voltages (and optionally 2N SM states) per valve. Admissible range: [0, 50].</td></tr><tr><td><strong>SM offset</strong></td><td>Index of the first SM to display. The first displayed SM is 2 × offset. Example: if <strong>Number of SMs to display</strong> = 5 and <strong>SM offset</strong> = 2, SM4 to SM14 are displayed. Admissible range: [0, Number of SMs in the valve].</td></tr><tr><td><strong>Display individual SM state</strong></td><td><p><strong>Checked:</strong> Enables sending individual SM states from the FPGA to the CPU.</p><p><strong>Unchecked:</strong> Disables sending individual SM states from the FPGA to the CPU.</p></td></tr><tr><td><strong>...on</strong></td><td>Selects the valve from which SM states are monitored (Valve 0 to Valve 11, depending on the <strong>Number of Valves</strong>).</td></tr><tr><td><strong>Valve info showing</strong></td><td><p>Sets which valve-level data to monitor:</p><ul><li>Vcap max min values</li><li>Total SM number that</li><li>Valve state and...</li><li>Reserved</li></ul></td></tr><tr><td><strong>Instant / MaxMin value of...</strong></td><td><p>Available only if <strong>Valve info showing</strong> = “Total SM number that”.</p><p><strong>Checked:</strong> Sends instantaneous values.</p><p><strong>Unchecked:</strong> Sends latched maximum or minimum values instead of instantaneous values.</p></td></tr><tr><td><strong>Total SM number that</strong></td><td>Available only if <strong>Valve info showing</strong> = “Total SM number that”. Condition to count SMs: {g1 is ON, g2 is ON, g3 is ON, g4 is ON}.</td></tr><tr><td><strong>Total SM number with</strong></td><td><p>Available only if <strong>Valve info showing</strong> = “Valve state and...”. Condition to count SMs:</p><ul><li>0: g1 open circuit fault</li><li>1: g1 short circuit fault</li><li>2: g2 open circuit fault</li><li>3: g2 short circuit fault</li><li>4: g3 open circuit fault</li><li>5: g3 short circuit fault</li><li>6: g4 open circuit fault</li><li>7: g4 short circuit fault</li><li>8: bypass breaker being closed</li><li>9: SM deactivated</li><li>10: Vcap overvoltage level_1</li><li>11: Vcap overvoltage level_1</li><li>12: Vcap undervoltage</li><li>13: capacitor short circuit fault</li><li>14: reserved</li><li>15: reserved</li><li>16: any of above-mentioned conditions</li></ul></td></tr></tbody></table>
{% endtab %}

{% tab title="Fault" %}

<table><thead><tr><th width="207">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Clear temporary fault</strong></td><td><p><strong>Checked:</strong> Clears all currently non‑active fault signals; faults are not latched.</p><p><strong>Unchecked:</strong> SM faults are latched and remain active until explicitly cleared.</p></td></tr><tr><td><strong>Show fault set port</strong></td><td><p><strong>Checked:</strong> Shows the <em>SetFault</em> input port on the block to receive external fault patterns.</p><p><strong>Unchecked:</strong> Hides the <em>SetFault</em> input port; external fault patterns are not received.</p></td></tr><tr><td><strong>Set Fault</strong></td><td><p>Assignment of incoming fault patterns:</p><ul><li>0: No fault</li><li>1: fault on valve 0 only</li><li>2: identical fault on all valves</li><li>3: fault on different valves (see Valve 0 ... Valve 11)</li></ul></td></tr><tr><td><strong>Valve 0 ... Valve 11 — Fault 0</strong></td><td><p><strong>Checked:</strong> Enables the “Fault 0” assignment for each valve.</p><p><strong>Unchecked:</strong> Disables the “Fault 0” assignment for each valve.</p></td></tr><tr><td><strong>Valve 0 ... Valve 11 — Fault 1</strong></td><td><p><strong>Checked:</strong> Enables the “Fault 1” assignment for each valve.</p><p><strong>Unchecked:</strong> Disables the “Fault 1” assignment for each valve.</p></td></tr><tr><td><strong>Valve 0 ... Valve 11 — Fault 2</strong></td><td><p><strong>Checked:</strong> Enables the “Fault 2” assignment for each valve.</p><p><strong>Unchecked:</strong> Disables the “Fault 2” assignment for each valve.</p></td></tr></tbody></table>
{% endtab %}

{% tab title="CR discrepency" %}

<table><thead><tr><th width="160">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Parameter discrepancy range</strong></td><td><p>Sets range and resolution of SM-to-SM discrepancies within a valve:</p><ul><li>0: No discrepancy</li><li>1: max error ±1 p.u., resolution 0.78%</li><li>2: max error ±0.5 p.u., resolution 0.39%</li><li>3: max error ±0.25 p.u., resolution 0.2%</li></ul><p>Values taken from <strong>Parameter discrepancy data</strong> are rounded to the nearest value according to the selected resolution and maximum error.</p></td></tr><tr><td><strong>Parameter discrepancy data</strong></td><td><p>Defines the discrepancies data that can be applied to the SMs. This is a matrix of <em>depth_paradisc</em> columns and <em>dimen_paradisc</em> rows. The number of columns (<em>depth_paradisc</em>) must be less than 12, and the number of rows (<em>dimen_paradisc)</em> could be as maximum equal to the number of SMs per valve.</p><p>Each of the columns represent a pattern of differences between SMs that can be applied to each valve. Each of the rows indicates the individual value for each SM. The values are defined as a discrepancy between the nominal value and the real value of the parameter in the SM.<br>Each element in the matrix is defined as:<br><span class="math">\mathrm{disc}_i = X_d / X_i - 1</span></p><p>Where <span class="math">\mathrm{disc}_i</span> is the discrepancy value for a i-th SM<em>,</em> <span class="math">X_d</span> is the nominal value of the SM (<strong>SM capacitance</strong> and <strong>SM normal and fast discharge resistance</strong> parameters), and <span class="math">X_i</span> is the actual value applied to the SM.</p></td></tr><tr><td><strong>Discrepancy pattern for SM capacitance / resistance — Pattern in valve 0 ... valve 11</strong></td><td>Applies a selected pattern (column) from <strong>Parameter discrepancy data</strong> to each valve. If the selected pattern index exceeds the matrix column count, no discrepancy is applied. The pattern applies to the first <em>n</em> SMs (number of matrix rows); remaining SMs use nominal values. Options: {0: no discrepancy, 1–12: parameter discrepancy pattern1–pattern12}.</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Inputs

The block has two optional inputs that are **visible only when Model Type = FPGA** and the corresponding options are enabled.

<table><thead><tr><th width="148">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>FaultSet</strong></td><td>Visible only if <strong>Show fault set port</strong> is checked. Receives SM fault patterns to apply in the FPGA.</td></tr><tr><td><strong>SMgSet</strong></td><td>Visible only if <strong>Show external SM gate set port</strong> is checked. Receives SM gating signals from the Console to send to the FPGA.</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="144">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>MMCPara</strong></td><td>Bus containing parameters for MMC valves. Connect this output directly to the corresponding <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalves.md"><strong>MMCValves</strong></a> and <a href="https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/mmc-library/mmcvalveslowlvlctrl.md"><strong>MMCValvesLowLvlCtrl</strong></a> blocks in the model.</td></tr></tbody></table>

## Characteristics and limitations

<table><thead><tr><th width="245">Characteristic</th><th>Value</th></tr></thead><tbody><tr><td>Maximum number of valves configured per block</td><td>The number of valves per <strong>MMCValvesParam</strong> block is limited to 12. Multiple <strong>MMCValvesParam</strong> blocks can be used for larger systems. The number of valves per FPGA is limited to 12 in current firmware versions.</td></tr><tr><td>Runtime parameter changes</td><td>Some parameters can be changed online when used in the Console subsystem</td></tr><tr><td>Model type change at runtime</td><td>Not supported; changing Model Type requires recompilation</td></tr></tbody></table>


---

# 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/rt-lab/simulink-blocks-reference/mmc-library/mmcvalvesparam.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.
