> 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/50-51-overcurrent.md).

# 50/51 - Overcurrent

## Description

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

The **50/51 - Overcurrent** block, located in the **Control Protection Relays** library, provides instantaneous or definite-time phase and neutral overcurrent protection (50P, 50N) and inverse-time phase and neutral overcurrent protection (51P, 51N). The model supports 50 Hz and 60 Hz systems.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-c7535f0e0a938230c64b41da4ef684ce92135275%2Fimage%20(570).png?alt=media" alt="" width="563"><figcaption><p>Tripping logic of the relay</p></figcaption></figure>

For 50P and 50N, a time delay of zero configures instantaneous operation; any non‑zero time delay configures definite‑time operation. The relay asserts a trip when the measured current exceeds the pickup value for longer than the configured delay; otherwise, the internal timer resets.

The 50P and 51P functions use the phase current as their operating quantity, whereas 50N and 51N use the zero-sequence current, computed as follows: $$I\_0=\frac{1}{3}(I\_a+I\_b+I\_c)$$.

### Inverse Time Overcurrent Curves Based on IEC and US Standards <a href="#id-50-51-overcurrentrelay-inversetimeovercurrentcurvesbasedoniecandusstandards" id="id-50-51-overcurrentrelay-inversetimeovercurrentcurvesbasedoniecandusstandards"></a>

The 51P and 51N elements use the same timing and reset mechanism, with trip time determined either by standardized inverse-time curves (IEC or US) or by a user-defined custom curve. The relay trips if any of 50P (per phase), 50N, 51P (per phase), or 51N asserts a trip.

51P/51N standardized curves follow the IEEE C37.112‑2018 formulation for US curves (as used by SEL relays) and IEC 60255 for IEC curves. Trip time T is computed with the selected curve coefficients (a, b, c) and the time dial multiplier (TD).

$$
T = TD \times \left\[ a + \frac{b}{\left( \left( \frac{I}{I\_{\text{pickup}}} \right)^c - 1 \right)} \right]
$$

Setting TD to 0 produces instantaneous operation.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-c03316cff19c4ef65a18b7e61e5593f91f752978%2Fimage%20(571).png?alt=media" alt="" width="563"><figcaption><p>U series Inverss curves (US curves)<br>C series inverse curves (IEC curves)</p></figcaption></figure>

<details>

<summary>Parameter values a, b, and c depending on the selected curve</summary>

| Curve name | Curve shape        | a       | b       | c    |
| ---------- | ------------------ | ------- | ------- | ---- |
| US (U1)    | Moderately Inverse | 0.0226  | 0.0104  | 0.02 |
| US (U2)    | Inverse            | 0.180   | 5.95    | 2    |
| US (U3)    | Very Inverse       | 0.0963  | 3.88    | 2    |
| US (U4)    | Extremely Inverse  | 0.0352  | 5.67    | 2    |
| US (U5)    | Short-time Inverse | 0.00262 | 0.00342 | 0.02 |
| IEC (C1)   | Standard Inverse   | 0       | 0.14    | 0.02 |
| IEC (C2)   | Very Inverse       | 0       | 13.5    | 1    |
| IEC (C3)   | Extremely Inverse  | 0       | 80      | 2    |
| IEC (C4)   | Long-time Inverse  | 0       | 120     | 1    |
| IEC (C5)   | Short-time Inverse | 0       | 0.05    | 0.04 |

</details>

Custom inverse-time curves for 51P/51N are defined by five data points (Level 1 to Level 5). Pickup currents and delays are linearly interpolated between adjacent levels to determine the trip time for any current between two defined pickups.

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

## Mask parameters

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

{% tabs %}
{% tab title="General parameters" %}

<table><thead><tr><th width="201.800048828125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Frequency</strong></td><td>System frequency (Hz) Freq_param = {50, 60}.</td></tr><tr><td><strong>Base current</strong></td><td>Base current value (A) Ibase_param = [1, 1e5].</td></tr></tbody></table>
{% endtab %}

{% tab title="Phase overcurrent" %}

<table><thead><tr><th width="220.199951171875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Pickup current 50P</strong></td><td>50P pickup current (pu) pickup50P_param = [0, 30].</td></tr><tr><td><strong>Time delay 50P</strong></td><td>50P time delay (s) delay50P_param = [0, 600].</td></tr><tr><td><strong>Pickup current 51P</strong></td><td>51P pickup current (pu) Ipck_51P_param = [0, 30].</td></tr><tr><td><strong>Time Dial</strong></td><td>Time dial multiplier for 51P TD51P_param = [0, 600].</td></tr><tr><td><strong>Curve types (51P)</strong></td><td>IEC or US inverse-time curve selection.<br>U1: U.S. Moderately Inverse; U2: U.S. Inverse ; U3: U.S. Very Inverse ; U4: U.S. Extremely Inverse ; U5: U.S. Short-time Inverse<br>C1: IEC Class A Standard Inverse ; C2: IEC Class B Very Inverse ; C3: IEC Class C Extremely Inverse ; C4: IEC Long-time Inverse ; C5: IEC Short-time Inverse</td></tr><tr><td><strong>Use custom curves 51P</strong></td><td>Enable custom curve instead of standardized curve for 51P. cust51P_param = {0, 1}.</td></tr><tr><td><strong>Level 1, 51P</strong></td><td>51P Level 1 pickup current (pu) level1_51_param = [0, 30].</td></tr><tr><td><strong>Level 2, 51P</strong></td><td>51P Level 2 pickup current (pu) level2_51_param = [0, 30].</td></tr><tr><td><strong>Level 3, 51P</strong></td><td>51P Level 3 pickup current (pu) level3_51_param = [0, 30].</td></tr><tr><td><strong>Level 4, 51P</strong></td><td>51P Level 4 pickup current (pu) level4_51_param = [0, 30].</td></tr><tr><td><strong>Level 5, 51P</strong></td><td>51P Level 5 pickup current (pu) level5_51_param = [0, 30].</td></tr><tr><td><strong>Time for level 1, 51P</strong></td><td>51P Level 1 time delay (s) time1_51_param = [0, 600].</td></tr><tr><td><strong>Time for level 2, 51P</strong></td><td>51P Level 2 time delay (s) time2_51_param = [0, 600].</td></tr><tr><td><strong>Time for level 3, 51P</strong></td><td>51P Level 3 time delay (s) time3_51_param = [0, 600].</td></tr><tr><td><strong>Time for level 4, 51P</strong></td><td>51P Level 4 time delay (s) time4_51_param = [0, 600].</td></tr><tr><td><strong>Time for level 5, 51P</strong></td><td>51P Level 5 time delay (s) time5_51_param = [0, 600].</td></tr></tbody></table>
{% endtab %}

{% tab title="Neutral overcurrent" %}

<table><thead><tr><th width="240.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable neutral overcurrent</strong></td><td>Enable 50N/51N elements</td></tr><tr><td><strong>Pickup current 50N</strong></td><td>50N pickup current (pu) pickup50N_param = [0, 30].</td></tr><tr><td><strong>Time delay 50N</strong></td><td>50N time delay (s) delay50N_param = [0, 600].</td></tr><tr><td><strong>Pickup current 51N</strong></td><td>51N pickup current (pu) Ipck_51N_param = [0, 30].</td></tr><tr><td><strong>Time Dial</strong></td><td>Time dial multiplier for 51N TD51N_param = [0, 600].</td></tr><tr><td><strong>Curve types (51N)</strong></td><td><p>IEC or US inverse-time curve selection.<br>U1: U.S. Moderately Inverse ; U2: U.S. Inverse - U3: U.S. Very Inverse ; U4: U.S. Extremely Inverse ; U5: U.S. Short-time Inverse</p><p>C1: IEC Class A Standard Inverse ; C2: IEC Class B Very Inverse ; C3: IEC Class C Extremely Inverse ; C4: IEC Long-time Inverse ; C5: IEC Short-time Inverse</p></td></tr><tr><td><strong>Use custom curves 51N</strong></td><td>Enable custom curve instead of standardized curve for 51N</td></tr><tr><td><strong>Level 1, 51N</strong></td><td>51N Level 1 pickup current (pu) level1_neutral_param = [0, 30].</td></tr><tr><td><strong>Level 2, 51N</strong></td><td>51N Level 2 pickup current (pu) level2_neutral_param = [0, 30].</td></tr><tr><td><strong>Level 3, 51N</strong></td><td>51N Level 3 pickup current (pu) level3_neutral_param = [0, 30].</td></tr><tr><td><strong>Level 4, 51N</strong></td><td>51N Level 4 pickup current (pu) llevel4_neutral_param = [0, 30].</td></tr><tr><td><strong>Level 5, 51N</strong></td><td>51N Level 5 pickup current (pu) level5_neutral_param = [0, 30].</td></tr><tr><td><strong>Time for level 1, 51N</strong></td><td>51N Level 1 time delay (s) time1_neutral_param = [0, 600].</td></tr><tr><td><strong>Time for level 2, 51N</strong></td><td>51N Level 2 time delay (s) time2_neutral_param = [0, 600].</td></tr><tr><td><strong>Time for level 3, 51N</strong></td><td>51N Level 3 time delay (s) time3_neutral_param = [0, 600].</td></tr><tr><td><strong>Time for level 4, 51N</strong></td><td>51N Level 4 time delay (s) time4_neutral_param = [0, 600].</td></tr><tr><td><strong>Time for level 5, 51N</strong></td><td>51N Level 5 time delay (s) time5_neutral_param = [0, 600].</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Inputs

<table><thead><tr><th width="219.5999755859375">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>I</strong><sub><strong>abc</strong></sub></td><td>Three-phase currents.</td></tr><tr><td><strong>Reset</strong></td><td>Set to 1 to reset the relay.</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="220.39996337890625">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Q</strong></td><td>Overcurrent relay output. Defaults to 0; becomes 1 when overcurrent is detected.</td></tr><tr><td><strong>Q_h</strong></td><td>Complementary of Q.</td></tr><tr><td><strong>m</strong></td><td><strong>S_50P(A,B,C):</strong> Outputs of three-phase overcurrent 50P.<br><strong>S_50N:</strong> Output of neutral overcurrent 50N.<br><strong>S_51P(A,B,C):</strong> Outputs of three-phase inverse overcurrent 51P.<br><strong>S_51N:</strong> Output of neutral inverse overcurrent 5N.</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/50-51-overcurrent.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.
