> 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/67zdoc-directional.md).

# 67ZDOC - Directional

## Description <a href="#description" id="description"></a>

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

The **67ZDOC - Directional** block, located in the **Control Protection Relays** library, detects the direction of the input current using impedance and torque computed by directional elements. It supports the following elements: Positive-sequence voltage polarized phase directional (DIRP), negative-sequence voltage polarized directional (DIRQ) and its ground variant (DIRQG), zero-sequence voltage polarized ground current directional (DIRV), zero-sequence current polarized neutral current directional (DIRI), and zero-sequence voltage polarized neutral current directional (DIRN). The last four elements determine ground current direction. The relay is typically used with overcurrent relays (5051, or 50, 51) to block or permit their trip signal, depending on the application. Its outputs indicate current direction for the elements above.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-3e669b76b59bf91e1c4fa0d5b6d4a5df2cd4977c%2Fimage%20(569).png?alt=media" alt=""><figcaption><p>Concept of how the relay operates</p></figcaption></figure>

The main sources used to design this relay are SEL manuals: SEL-351R \[2], SEL-351-5-6-7 \[3], SEL-751 \[4].

This section summarizes each element and the direction-routing logic.

### Positive-sequence voltage polarized phase directional element (DIRP) <a href="#positive-sequence-voltage-polarized-phase-directional-element-dirp" id="positive-sequence-voltage-polarized-phase-directional-element-dirp"></a>

DIRP determines direction using positive-sequence impedance $Z\_1$ computed from $V\_1 / I\_1$. It is used for three‑phase faults. When the angle $$Z\_1=(V\_1/I\_1)$$ lies within ±90 degrees of Z1ANG (line characteristic angle), the relay declares forward direction. Line-to-line currents must exceed pickup 50P32P to enable the element. The positive-sequence voltage must be above 0.5; if it drops, the value from 3 cycles earlier is used. The negative-sequence element (DIRQ) has priority and disables DIRP when strong negative-sequence current is present \[2].

Element outputs: **FDIRP** (forward) and **RDIRP** (reverse). These are combined with **FDIRQ** and **RDIRQ** to yield phase direction outputs **DIRPF** and **DIRPR**.

* Positive sequence impedance: $$Z\_1=V\_1/I\_1$$
* Forward condition: $$\left\[ 90 + Z1ANG \right] > Z\_1 > \left\[ -90 + Z1ANG \right]$$
* Pickup condition: $$I\_{LL} > 50p32p\times \sqrt(3)$$

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-ac3a0a9d583d770ec76d0e913bade9cf37873026%2Fimage%20(1043).png?alt=media" alt="" width="297"><figcaption><p>Forward and reverse areas in X-R plane based on Z1ANG</p></figcaption></figure>

### Negative-sequence voltage polarized ground and phase directional elements (DIRQ, DIRQG)

DIRQ/DIRQG use negative-sequence impedance Z2, derived from negative-sequence voltage and current, to detect unbalanced faults and control negative-sequence overcurrent elements. With positive-sequence voltage polarized logic, DIRQ governs the phase direction; with zero-sequence ground or neutral currents, DIRQG governs ground or neutral direction. DIRQ has priority over DIRP and disables it when active.

Direction outputs: **FDIRQ**, **RDIRQ**, **FDIRQG**, **RDIRQG**.

* To use DIRQG, set the ground directional option to **DIRQG**.
* Enable condition: $$3 \times I\_2 >50QFP,50QRP$$ (applies to both phase and ground direction).
* Restraints for security: $$I\_2 > a\_2$$ and $$I\_2 > k\_2 \times I\_0$$
* Z2 calculation (shifted by Z1ANG): $$Z\_2 = \frac{\operatorname{Re} \big\[ V\_2 \ast ( I\_2 \ast 1 \angle Z1ANG )^{\ast} \big]}{| I\_2 |^2}$$ (\* denotes complex conjugate).
* Direction decision:
  * Forward if Z2 is lower than the forward threshold (from Z2F) ⇒ **FDIRQ**, **FDIRQG**.
  * Reverse if Z2 is higher than the reverse threshold (from Z2R) ⇒ **RDIRQ**, **RDIRQG**.

Threshold calculations:

$$\text{if } Z2F \leq 0 \Rightarrow \text{Forward threshold} = 0.75 \times Z2F - 0.25 \times \mid V\_2/I\_2 \mid$$

$$\text{if } Z2F > 0 \Rightarrow \text{Forward threshold} = 1.25 \times Z2F - 0.25 \times \mid V\_2/I\_2 \mid$$

$$\text{if } Z2R \geq 0 \Rightarrow \text{Reverse threshold} = 0.75 \times Z2R - 0.25 \times \mid V\_2/I\_2 \mid$$

$$\text{if } Z2R < 0 \Rightarrow \text{Reverse threshold} = 1.25 \times Z2R - 0.25 \times \mid V\_2/I\_2 \mid$$

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-6a4169b4b8cfb587d02f52691ebc6fb08c94caf5%2Fimage%20(994).png?alt=media" alt="" width="366"><figcaption><p>The operating areas based on Z2 and the thresholds</p></figcaption></figure>

**FDIRQG** and **RDIRQG** are routed with other elements to determine ground (DIRGF/DIRGR) and neutral (DIRN) directions.

### Zero-sequence voltage polarized ground current directional element (DIRV)

DIRV computes $Z\_0$ from zero-sequence voltage and residual ground current $I\_G$, shifted by Z0ANG, for unbalanced and ground faults. Residual current is:

$$I\_G=3 \times I\_0=I\_A +I\_B + I\_C$$

When ground directional is set to **DIRV** and enabled, outputs are **FDIRV** (forward) and **RDIRV** (reverse). These feed the ground direction result **DIRG** with other elements (DIRI, DIRQG).

* Enable conditions: $$I\_G > 50GFP,50GRP$$
* Positive-sequence restraint: $$I\_0=I\_G /3 > a\_0 \times I\_1$$
* Z<sub>0</sub> calculation (shifted by Z0ANG):\
  $$Z\_0 = \frac{Re \big\[ 3 V\_0 \times ( I\_G \times 1 \angle Z0ANG )^{\ast} \big]}{| I\_G |^2}$$
* Direction decision:
  * Forward if Z<sub>0</sub> is lower than the forward threshold (from Z0F) ⇒ **FDIRV**.
  * Reverse if Z<sub>0</sub> is higher than the reverse threshold (from Z0R) ⇒ **RDIRV**.

Threshold calculations:

$$\text{if } Z0F \leq 0 \Rightarrow \text{Forward threshold} = 0.75 \times Z0F - 0.25 \times \mid V\_0/I\_0 \mid$$

$$\text{if } Z0F > 0 \Rightarrow \text{Forward threshold} = 1.25 \times Z0F - 0.25 \times \mid V\_0/I\_0 \mid$$

$$\text{if } Z0R \geq 0 \Rightarrow \text{Reverse threshold} = 0.75 \times Z0R - 0.25 \times \mid V\_0/I\_0 \mid$$

$$\text{if } Z0R < 0 \Rightarrow \text{Reverse threshold} = 1.25 \times Z0R - 0.25 \times \mid V\_0/I\_0 \mid$$

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-ceb1017703bcb076175df3e44d46f38a4f4fba3f%2Fimage%20(995).png?alt=media" alt="" width="405"><figcaption><p>The operating areas of Z0 based on the threshold</p></figcaption></figure>

### Zero-sequence current polarized neutral current directional element (DIRI) <a href="#zero-sequence-current-polarized-neutral-current-directional-element-diri" id="zero-sequence-current-polarized-neutral-current-directional-element-diri"></a>

DIRI determines direction using torque computed from neutral current IN and residual ground current IG, with angle shifted by INMTA.

Enable conditions mirror DIRV with additional checks. Nominal neutral and phase currents (1 or 5 A) are used to derive thresholds. Outputs are **FDIRI** (forward) and **RDIRI** (reverse), which feed the ground direction result (DIRG).

* Ground directional set to DIRN.
* Enable conditions:
  * Ground current and positive-sequence restraint as in DIRV (50GFP/50GRP and a0 condition).
  * Neutral restraint: $I\_G > I\_N \times KGN$
  * Neutral current threshold: $I\_N > I\_{Nominal} \times 0.05$ (I<sub>N</sub> nominal can be set to 1 A or 5 A).
* Torque calculation (INMTA is maximum torque angle): $$T=Re \big\[ I\_G \times 1 \angle NMTA )^{\ast} \big]$$
* Decision:
  * Forward if T exceeds the forward threshold ⇒ **FDIRI**.
  * Reverse if T is negative and below the reverse threshold ⇒ **RDIRI**.

Thresholds:

$Forward \ threshold=(Channel \ I\_N \ nominal \ current) \times (Phase \ nominal \ current)\times 0.05^2$

$Reverse \ threshold=-1 \times(Channel \ I\_N \ nominal \ current) \times (Phase \ nominal \ current)\times 0.05^2$

### Zero-sequence voltage neutral current directional element (DIRN)

DIRN, similar to DIRV, calculates Z0 using zero-sequence voltage and the neutral current IN (shifted by Z0ANG). It is used to detect ground faults.

* Ground directional set to DIRN.
* Enable condition (more sensitive): $I\_G > \frac{50GFP}{10},\frac{50GRP}{10}$
* Z<sub>0</sub> calculation:

  $$Z\_0 = \frac{Re \big\[ 3 V\_0 \times ( I\_N \times 1 \angle Z0ANG )^{\ast} \big]}{| I\_N |^2}$$
* Direction decision:
  * Forward if Z<sub>0</sub> is lower than the forward threshold (from Z0F) ⇒ **FDIRN**.
  * Reverse if Z<sub>0</sub> is higher than the reverse threshold (from Z0R) ⇒ **RDIRN**.

Threshold calculations:

$\text{if } Z0F \leq 0 \Rightarrow \text{Forward threshold} = 0.75 \times Z0F - 0.25 \times \mid 3V\_0/I\_0 \mid$

$\text{if } Z0F > 0 \Rightarrow \text{Forward threshold} = 1.25 \times Z0F - 0.25 \times \mid 3V\_0/I\_0 \mid$

$\text{if } Z0R \geq 0 \Rightarrow \text{Reverse threshold} = 0.75 \times Z0R - 0.25 \times \mid 3V\_0/I\_0 \mid$

$\text{if } Z0R < 0 \Rightarrow \text{Reverse threshold} = 1.25 \times Z0R - 0.25 \times \mid 3V\_0/I\_0 \mid$

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-5b983ed915287f5357f80f85956f3e55e8c51744%2Fimage%20(529).png?alt=media" alt="" width="409"><figcaption><p>The operating areas of Z0 based on the thresholds</p></figcaption></figure>

### Direction routing and relay output <a href="#direction-routing-and-relay-output" id="direction-routing-and-relay-output"></a>

The relay provides four directional results:

* Phase direction: **DIRPF** (forward), **DIRPR** (reverse). These are derived from **FDIRP**/**RDIRP** and **FDIRQ**/**RDIRQ**.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-f270af3179af67920c206b2f8eadc4475185fbf6%2Fimage%20(530).png?alt=media" alt=""><figcaption><p>Directions are based on the forward and reverse directions<br>for the phase and negative sequence element</p></figcaption></figure>

* Negative-sequence direction: **DIRQF** (forward), **DIRQR** (reverse), identical to **FDIRQ**/**RDIRQ**.\
  These directions are the same as the directions from the negative sequence current element itself.
* Ground direction: **DIRGF** (forward), **DIRGR** (reverse), derived from **DIRV**, **DIRQG**, and **DIRI**.<br>

  <figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-ce3ac719a0086bfbbe61670d50c1f30997db2b4a%2Fimage%20(531).png?alt=media" alt=""><figcaption><p>Direction of the ground current and are the result<br>of the following logic between directions from DIRV, DIRQG, DIRI</p></figcaption></figure>
* Neutral direction: **DIRNF** (forward), **DIRNR** (reverse), derived from **DIRV**, **DIRI**, **DIRN**, and **DIRQG**.<br>

  <figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-8fc91c49b99c86c8b0d3212d4e5bd110fab878b7%2Fimage%20(532).png?alt=media" alt=""><figcaption><p>Direction of the neutral fault current and are the result<br>of the following logic between directions from DIRV, DIRI, DIRN, and DIRQG</p></figcaption></figure>

## Mask parameters <a href="#mask-parameters" id="mask-parameters"></a>

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

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

<table><thead><tr><th width="201">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Current base</strong></td><td>Base current used to compute secondary current (A)<br>If the input is already at nominal secondary (1 A or 5 A), set to 1.</td></tr><tr><td><strong>Voltage base</strong></td><td>Base voltage (V)</td></tr><tr><td><strong>Enable directional</strong></td><td><p>Enables directional elements and selects settings mode:</p><ul><li>0: Disable directional elements</li><li>1: Enable with manual settings</li><li>2: Enable with automatic settings</li></ul></td></tr><tr><td><strong>Ground directional elements</strong></td><td><p>Selects the element used for ground direction detection:</p><ul><li>1: Negative-sequence voltage polarized ground current directional (DIRQG)</li><li>2: Zero-sequence voltage polarized ground current directional (DIRV)</li><li>Zero-sequence current polarized neutral current directional (DIRI)</li><li>Zero-sequence voltage polarized neutral current directional (DIRN)</li></ul></td></tr><tr><td><strong>Nominal phase current</strong></td><td>Nominal phase current (select 1 A or 5 A) (A)</td></tr><tr><td><strong>Nominal neutral current</strong></td><td>Nominal neutral current (select 1 A or 5 A) (A)</td></tr></tbody></table>
{% endtab %}

{% tab title="Directional settings" %}

<table><thead><tr><th width="200.20001220703125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>50P32P</strong></td><td>Three-phase current (A) pickup for phase directional (DIRP) , sec</td></tr><tr><td><strong>Z1ANG</strong></td><td>Positive-sequence impedance angle (deg). Applies to DIRP, DIRQ, DIRQG.</td></tr><tr><td><strong>Z1MAG</strong></td><td>Positive-sequence impedance magnitude (Ohm). Applies to DIRQ, DIRQG, sec</td></tr><tr><td><strong>50QRP</strong></td><td>Reverse-direction negative-sequence current pickup (A). Applies to DIRQ, DIRQG, sec.<br>Preset when Enable directional = Auto</td></tr><tr><td><strong>50QFP</strong></td><td>Forward-direction negative-sequence current pickup (A). Applies to DIRQ, DIRQG, sec<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>Z2F</strong></td><td>Forward-direction threshold for Z2 (Ohm). Applies to DIRQ, DIRQG, sec.<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>Z2R</strong></td><td>Reverse-direction threshold for Z2 (Ohm). Applies to DIRQ, DIRQG, sec.<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>a2</strong></td><td>Positive-sequence restraint factor, I2/I1. Applies to DIRQ, DIRQG. Preset when Enable directional = Auto.</td></tr><tr><td><strong>k2</strong></td><td>Zero-sequence restraint factor, I2/I0. Applies to DIRQ, DIRQG. Preset when Enable directional = Auto.</td></tr><tr><td><strong>Z0ANG</strong></td><td>Zero-sequence impedance angle (deg). Applies to DIRV, DIRN.</td></tr><tr><td><strong>Z0MAG</strong></td><td>Zero-sequence impedance magnitude (Ohm). Applies to DIRV, DIRN,sec</td></tr><tr><td><strong>50GFP</strong></td><td>Forward-direction ground current pickup (A). In DIRN logic, the value is divided by 10. Applies to DIRV, DIRN, sec<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>50GRP</strong></td><td>Reverse-direction ground current pickup (A). In DIRN logic, the value is divided by 10. Applies to DIRV, DIRN, sec<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>Z0F</strong></td><td>Forward-direction threshold for Z0 (Ohm). Applies to DIRV, DIRN, sec.<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>Z0R</strong></td><td>Reverse-direction threshold for Z0 (Ohm). Applies to DIRV, DIRN, sec.<br>Preset when Enable directional = Auto.</td></tr><tr><td><strong>a0</strong></td><td>Positive-sequence restraint factor, I0/I1. Applies to DIRV, DIRI. Preset when Enable directional = Auto.</td></tr><tr><td><strong>INMTA</strong></td><td>Neutral current maximum torque angle (deg).<br>Adjusts the IN angle to better define forward and reverse areas. Applies to DIRI.</td></tr><tr><td><strong>KGN</strong></td><td>Neutral restraint factor, IG/IN. Applies to DIRI.</td></tr></tbody></table>

{% hint style="danger" %}
**NOTE**: “sec” denotes values on the secondary side of the instrument transformer (after ratio).
{% endhint %}
{% endtab %}
{% endtabs %}

## Inputs <a href="#inputs" id="inputs"></a>

<table><thead><tr><th width="200.4000244140625">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>IN</strong></td><td>Neutral current from the CT neutral point</td></tr><tr><td><strong>Reset</strong></td><td>Relay reset signal; the relay resets when this signal is 1</td></tr><tr><td><strong>V</strong><sub><strong>abc</strong></sub></td><td>Three-phase voltages</td></tr><tr><td><strong>VN</strong></td><td>Neutral voltage from the VT neutral point</td></tr></tbody></table>

## Outputs <a href="#outputs" id="outputs"></a>

<table><thead><tr><th width="199.60003662109375" valign="top">Output</th><th>Description</th></tr></thead><tbody><tr><td valign="top"><strong>DIR67</strong></td><td>Directional results for fault currents: DIRQF, DIRQR, DIRPF, DIRPR, DIRGF, DIRGR, DIRNF, DIRNR</td></tr><tr><td valign="top"><strong>M</strong></td><td><p>Signals avaible for monitoring:<br>DIR67 — Current direction</p><p>FDIRQ — Forward direction for negative‑sequence voltage polarized element</p><p>RDIRQ — Reverse direction for negative‑sequence voltage polarized element</p><p>FDIRP — Forward direction for positive‑sequence voltage polarized phase element</p><p>RDIRP — Reverse direction for positive‑sequence voltage polarized phase element</p><p>FDIRV — Forward direction for zero‑sequence voltage polarized ground current element</p><p>RDIRV — Reverse direction for zero‑sequence voltage polarized ground current element</p><p>FDIRQG — Forward direction for negative‑sequence voltage polarized ground current element</p><p>RDIRQG — Reverse direction for negative‑sequence voltage polarized ground current element</p><p>FDIRI — Forward direction for zero‑sequence current polarized neutral current element</p><p>RDIRI — Reverse direction for zero‑sequence current polarized neutral current element</p><p>FDIRN — Forward direction for zero‑sequence voltage polarized neutral current element</p><p>RDIRN — Reverse direction for zero‑sequence voltage polarized neutral current element</p></td></tr></tbody></table>

## References <a href="#references" id="references"></a>

\[1] Fundamentals and Improvements for Directional Relays, Karl Zimmerman and David Costello, *Schweitzer Engineering Laboratories, Inc.*, October 2010

\[2] SEL-351R-4 Recloser Control Instruction Manual, *Schweitzer Engineering Laboratories Inc,* 2016

\[3] SEL-351-5-6-7 Protection System Instruction Manual, *Schweitzer Engineering Laboratories Inc,* 2020

\[4] SEL-751 Feeder Protection Relay Instruction Manual, *Schweitzer Engineering Laboratories Inc*, 2021


---

# 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/67zdoc-directional.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.
