> 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/hypersim/library-blocks-reference/control-microgrid/active-power-dispatch.md).

# Active Power Dispatch

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-be95cd6bb30ba3740d07b223e1fe1e1e487fa90b%2Fimage%20(814).png?alt=media" alt="" width="374"><figcaption></figcaption></figure>

The **Active Power Control** block, located in the **Control Microgrid** library, regulates active power flow at the Point of Common Coupling (PCC) when the microgrid is connected to an external AC grid, allowing adjustment of active power settings to maintain stability. This block is part of the OP1420 microgrid library and should be used with the other library blocks.

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-6fb44711d49b9fe7234f48d3a7d531eec2e3dd84%2Fimage%20(815).png?alt=media" alt="" width="436"><figcaption></figcaption></figure>

<table><thead><tr><th width="260.4000244140625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Active Power Diesel Min Limit</strong></td><td>Minimum Diesel generation value (pu).</td></tr><tr><td><strong>Active Power Diesel Max Limit</strong></td><td>Maximum Diesel generation value (pu).</td></tr><tr><td><strong>Active Power BESS Min Limit</strong></td><td>Minimum value available for energy storage using BESS (pu).</td></tr><tr><td><strong>Active Power BESS Limit</strong></td><td>Maximum value available for energy storage using BESS (pu).</td></tr><tr><td><strong>State of Charge (SoC) Min Limit</strong></td><td>Minimum State of Charge (pu).</td></tr><tr><td><strong>State of Charge (SoC) Max Limit</strong></td><td>Maximum State of Charge (pu).</td></tr><tr><td><strong>Inner State of Charge (SoC) Min Limit</strong></td><td>Minimum inner State of Charge (pu).</td></tr><tr><td><strong>Inner State of Charge (SoC) Max Limit</strong></td><td>Maximum inner State of Charge (pu).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="261.20001220703125">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>P renewable (PV+WT)</strong></td><td>Renewable active power measured or forecasted (pu).</td></tr><tr><td><strong>P load</strong></td><td>Load active power measured or forecasted (pu).</td></tr><tr><td><strong>SoC</strong></td><td>State of Charge of the BESS (pu).</td></tr><tr><td><strong>P PCC</strong></td><td>Active power reference at the PCC (pu).</td></tr><tr><td><strong>Dispatch mode</strong></td><td>0: Load-Following, 1: Cycle-Charging, 2: Power-Smoothing.</td></tr><tr><td><strong>Islanded</strong></td><td>islanded (0) or grid-connected (1).</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="259.60003662109375">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>DG P ref</strong></td><td>Diesel active power reference (pu).</td></tr><tr><td><strong>Load shed P ref</strong></td><td>Load shed command (pu).</td></tr><tr><td><strong>Curtail P ref</strong></td><td>Renewable active power curtail command (pu).</td></tr><tr><td><strong>BESS P temp ref</strong></td><td>ESS active power reference (pu).</td></tr><tr><td><strong>PCC P ref</strong></td><td>Active power reference for grid.</td></tr><tr><td><strong>P net</strong></td><td>Net active power mismatch.</td></tr><tr><td><strong>Dispatch mode</strong></td><td>0: Load-Following, 1: Cycle-Charging, 2: Power-Smoothing.</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/hypersim/library-blocks-reference/control-microgrid/active-power-dispatch.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.
