> 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-smart-inverters/frequency-protection.md).

# Frequency Protection

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-5fff27fdb69384373a14b5be85515d156f08aded%2FCSI_frequency_protection_block.png?alt=media" alt="" width="264"><figcaption></figcaption></figure>

The **Frequency Protection** block, located in the **Control Smart Inverters library**, detects abnormal grid-frequency conditions based on user-defined over- and under-frequency regions and a Rate of Change of Frequency (ROCOF) threshold. Up to eight regions can be defined for over-frequency and eight for under-frequency events. The block also trips when the average ROCOF exceeds a specified threshold.

{% hint style="danger" %}
This block requires a valid license on both the simulator and the workstation with the feature SMART INVERTER enabled.
{% endhint %}

## Mask parameters

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

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

| Parameter             | Description                       | Variable & Constraints |
| --------------------- | --------------------------------- | ---------------------- |
| **Nominal Frequency** | Nominal operating frequency (Hz). | Fnom unconstrained     |
| {% endtab %}          |                                   |                        |

{% tab title="Over-frequency range" %}

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-7d07ac592bb66624ec381464075a5ec0b56652ea%2FCSI_frequency_protection_mask_OverFreqRangeTab.png?alt=media" alt=""><figcaption></figcaption></figure>

| Parameter                                 | Description                                                                            | Variable & Constraints           |
| ----------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------- |
| **Number of Over-Frequency Points**       | Number of over-frequency regions delimited by a set of frequency points.               | N ∈ \[1, 8]                      |
| **Frequency Points \[Point1, …, Point8]** | Limit frequency values (Hz) before reaching the respective over-frequency trip region. | \[FH1, ..., FH8] unconstrained   |
| **Time Points \[Point1, …, Point8]**      | Time (s) the converter must operate in a frequency region before tripping.             | \[tFH1, ..., tFH8] unconstrained |
| {% endtab %}                              |                                                                                        |                                  |

{% tab title="Under-frequency range" %}

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-0b09dd98a11e0f0c4b610deb8e7cc45c09559a48%2FCSI_frequency_protection_mask_UnderFreqRangeTab.png?alt=media" alt=""><figcaption></figcaption></figure>

| Parameter                                 | Description                                                                             | Variable & Constraints           |
| ----------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------- |
| **Number of Under-Frequency Points**      | Number of under-frequency regions delimited by a set of frequency points.               | N ∈ \[1, 8]                      |
| **Frequency Points \[Point1, …, Point8]** | Limit frequency values (Hz) before reaching the respective under-frequency trip region. | \[FL1, ..., FL8] unconstrained   |
| **Time Points \[Point1, …, Point8]**      | Time (s) the converter must operate in a frequency region before tripping.              | \[tFL1, ..., tFL8] unconstrained |
| {% endtab %}                              |                                                                                         |                                  |

{% tab title="ROCOF" %}

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

| Parameter                 | Description                                                                    | Variable & Constraints  |
| ------------------------- | ------------------------------------------------------------------------------ | ----------------------- |
| **ROCOF Threshold**       | Maximum allowed ROCOF (Hz/s) before activating the trip signal.                | Rf unconstrained        |
| **Averaging Time Window** | Time constant (s) of the first-order average filter used for ROCOF estimation. | dt\_rocof unconstrained |
| {% endtab %}              |                                                                                |                         |
| {% endtabs %}             |                                                                                |                         |

## Inputs

| Input    | Description          |
| -------- | -------------------- |
| **Freq** | Grid frequency (Hz). |

## Outputs

| Output    | Description                                      |
| --------- | ------------------------------------------------ |
| **U/O F** | Trip signal for under- or over-frequency events. |
| **ROCOF** | Trip signal for ROCOF events.                    |

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

## References

\[1] IEEE, "IEEE Standard for Interconnection and Interoperability of Distributed Energy Resources with Associated Electric Power Systems Interfaces," IEEE Std 1547-2018 (Revision of IEEE Std 1547-2003), no. doi: 10.1109/IEEESTD.2018.8332112, pp. 1-138, 2018. \[2] IEEE, "IEEE Standard Conformance Test Procedures for Equipment Interconnecting Distributed Energy Resources with Electric Power Systems and Associated Interfaces," IEEE Std 1547.1-2020, pp. 1-282, 2020.

## Intellectual Property and Acknowledgements

{% hint style="danger" %}

## **Intellectual Property Disclaimer**

Natural Resources Canada owns all intellectual property rights in the Smart Inverter Modelling Toolbox software and related products.
{% endhint %}

{% hint style="info" %}

## Acknowledgements <a href="#acknowledgements" id="acknowledgements"></a>

The development of the <code class="expression">page.vars.block\_name</code> block in the Smart Inverter Control Library is a contribution of CanmetENERGY at Natural Resource Canada.
{% endhint %}


---

# 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-smart-inverters/frequency-protection.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.
