> 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-protection-relays/40q-loss-of-excitation.md).

# 40Q - Loss of Excitation

## Description

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

The **40Q - Loss of Excitation** block, located in the **Control Protection Relays** library, detects loss of field excitation in synchronous generators by monitoring the reactive power absorbed from the connected system. The relay operates when the calculated reactive power exceeds a user-defined threshold and remains above that threshold longer than the definite time setting. This prevents operation during transient conditions. The model supports 50 Hz and 60 Hz systems.

The relay measures three-phase stator voltages and currents and computes reactive power using the positive-sequence components over a one-cycle running window of the fundamental frequency. A fixed one-cycle start time ensures correct reactive power measurement; therefore, the relay does not operate during the first simulation cycle.

## Mask parameters

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

<table><thead><tr><th width="221.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Frequency</strong></td><td>Nominal frequency of the measured signals (Hz).<br>Supports 50 or 60 Hz.</td></tr><tr><td><strong>Q threshold</strong></td><td>Reactive power threshold supplied from the connected system (Var).</td></tr><tr><td><strong>Time delay</strong></td><td>Definite time delay associated with the threshold (s).</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="219.5999755859375">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>Vabc</strong></td><td>Three-phase voltages Va, Vb, Vc (V).</td></tr><tr><td><strong>Iabc</strong></td><td>Three-phase currents Ia, Ib, Ic (A).</td></tr><tr><td><strong>Reset</strong></td><td>Binary reset signal. The relay resets when this signal becomes 1.</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="219.60003662109375">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Q</strong></td><td>Binary output. Default is 0; becomes 1 when a loss-of-excitation scenario is detected.</td></tr><tr><td><strong>Q_n</strong></td><td>Binary output. Complementary value of Q.</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-protection-relays/40q-loss-of-excitation.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.
