Search

Premium Membership β™•

Save 50% on all EEP Academy courses with Enterprise Membership Plan and study specialized LV/MV/HV technical articles, guides and courses.

Home / Technical Articles / Six tools you MUST learn before programming numerical protection relays for real

Programming of microprocessor relays

Developing basic setting specifications for numerical relays is a boring process for most electrical engineers, but not for the protection engineers! It requires significant input data but, for the most part, is exciting and relatively straightforward.

6 tools you MUST learn before programming numerical protection relays for real
6 tools you MUST learn before programming numerical protection relays for real (photo credit: Lucy Electric)

A basic understanding of Boolean expressions and methodologies is helpful in developing the required programing to obtain the desired logic and for effectively using the full power that is designed into numerical relays.

The capabilities and power that are built into microprocessor relay designs are continually expanding. In addition to providing an array of protective functions, capability to fulfill most of the control and data acquisition requirements at substations is provided.

Many modern numerical relays possess the power to replace other digital devices that are required within substation control and data acquisition systems such as PLCs, RTUs, meters, and control switches.

An obstacle to the practical use of the expanded power that is made available in microprocessor-based protective devices is the complexity of the programing that is required to use this power.

Protection engineers are not necessarily proficient in programing techniques and, as such, they may be hesitant to apply numerical relays such that their full capability is used.


Programming tools

An understanding of programing techniques is required to effectively use the many features and flexibility that are designed into modern microprocessor-based relays.

Programing tools available for programing modern numerical relays include:

  1. Boolean Algebra
    1. Example
  2. Control Equation Elements
  3. Binary Elements
  4. Analog Quantities
  5. Math operators
  6. Relay settings

Also, let’s mention the enhancements achieved by numerical relays in distribution and transmission system with mentioning of some most typical examples:

  1. Protection Enhancements
    1. Distribution Protection Systems
    2. Transmission protection Systems

1. Boolean Algebra

Knowledge of Boolean algebra and its relationship to logic created by electrical circuits is important to facilitate the task of programing numerical relays.

It is advisable for protection engineers to obtain a degree of fluency in this subject.

Many good texts and courses are available for obtaining knowledge of this subject area. A brief overview of some basic fundamentals follows.

Expressions for Boolean addition β€” "OR" gate
Figure 1 – Expressions for Boolean addition – “OR” gate

In Boolean arithmetic, terms can only have two statesβ€”they can be either a 1 or a 0. Rules for Boolean addition are illustrated in the following equations:

0 + 0 = 0, 0 + 1 = 1,
1 + 0 = 1, 1 + 1 = 1

It does not matter how many terms are added, the sum cannot be any larger than 1 since, as noted earlier, only 1 and 0 can exist:

0 + 1 + 1 = 1,
1 + 1 + 1 + 0 = 1,
1 + 1 + 0 + 1 + 1 + 0 = 1

Boolean addition corresponds to the logical function of an β€˜β€˜OR’’ gate and is representative of parallel contacts in an electric circuit.Β The basic equations for Boolean addition along with its logical β€˜β€˜OR’’ gate and electric circuit representation are illustrated in Figure 1 above.

Following are the equations that represent the rules for Boolean multiplication:

0 Γ— 0 = 0,
0 Γ— 1 = 0,
1 Γ— 0 = 0,
1 Γ— 1 = 1

Boolean multiplication corresponds to the logical function of an β€˜β€˜AND’’ gate and is representative of series contacts in an electric circuit.

Expressions for Boolean multiplication - β€˜β€˜AND’’ gate
Figure 2 – Expressions for Boolean multiplication – β€˜β€˜AND’’ gate

Figure 2 illustrates expressions for Boolean multiplication. Boolean algebraic variables are denoted by capital letters.

Boolean variable can only have one of two values – a 1 or a 0. Every variable has a complement – the opposite of its value. If a variable A has a value of 1, then its complement has a value of 0. The symbol used for the complement of a variable is denoted by a bar over the associated capital letter.

A complement is referred to as a logical inversion and corresponds to the logical function of a β€˜β€˜NOT’’ gate.

Expressions for Boolean complementation - β€˜β€˜NOT’’ gate
Figure 3 – Expressions for Boolean complementation – β€˜β€˜NOT’’ gate

Electrically, a logical inversion is equivalent to a normally closed contact. Expressions for Boolean complementation are illustrated in Figure 3.

As in mathematics, identities also exist in Boolean algebra. These identities are derived from the unique bi-variable nature of Boolean variables.

Basic Boolean additive and multiplicative identities are illustrated in Figure 4 below.

Basic Boolean identities
Figure 4 – Basic Boolean identities

Boolean algebra also contains cumulative and associative properties.

  • Cumulative property of addition:Β A + B = B + A
  • Cumulative property of multiplication: AB = BA
  • Associative property of addition: A + (B + C) = (A + B) + C
  • Associative property of multiplication: A(BC) = (AB)C
  • Distributive property: A(B + C) = AB + AC

Some other operators used in Boolean expressions include comparisons (<, >, = , etc.), parentheses, and rising and falling edge triggers. Numerical relays often use symbols to represent Boolean operators (i.e., + = OR,* = AND, ! = NOT).

Truth tables are often used as a first step in the programing process to illustrate exactly what the logic circuit must perform. Truth tables provide a systematic manner for setting up the associated Boolean expressions.

To promote programing efficiency, the initial expressions developed from the truth table should be reduced, using the laws of Boolean algebra, to a simplified form. The required logic circuit can then be developed from the simplified expression.

Figure 5 illustrates truth tables for a variety of logic gates used in logic diagrams.

Logic gates and associated truth tables
Figure 5 – Logic gates and associated truth tables

Go back to contents ↑


Example

The following example illustrates the process of developing logic for control circuits:

Three pilot relaying systems are applied on a very important transmission line. In order to enhance security of the line it is desired that trip outputs from two out of the three pilot systems must be present for a trip of the line to be initiated.

Membership Upgrade Required

This content is not available in your premium membership plan. Please upgrade your plan in order to access this content. You can choose an annually based Basic, Pro, or Enterprise membership plan. Subscribe and enjoy studying specialized technical articles, online video courses, electrical engineering guides, and papers.

With EEP’s premium membership, you get additional essence that enhances your knowledge and experience in low- medium- and high-voltage engineering fields.

Good to know πŸ’‘Save 50% on all courses with Enterprise membership plan.

Upgrade

Already a member? Log in here

Copyright Notice

This technical article is protected by U.S. and international copyright laws. Reproduction and distribution of PDF version of this technical article to websites such as Linkedin, Scribd, Facebook and others without written permission of the sponsor is illegal and strictly prohibited.

Β© EEP-Electrical Engineering Portal.

Premium Membership

Get access to premium HV/MV/LV technical articles, electrical engineering guides, research studies and much more! It helps you to shape up your technical skills in your everyday life as an electrical engineer.
More Information
Edvard Csanyi - Author at EEP-Electrical Engineering Portal

Edvard Csanyi

Hi, I'm an electrical engineer, programmer and founder of EEP - Electrical Engineering Portal. I worked twelve years at Schneider Electric in the position of technical support for low- and medium-voltage projects and the design of busbar trunking systems.

I'm highly specialized in the design of LV/MV switchgear and low-voltage, high-power busbar trunking (<6300A) in substations, commercial buildings and industry facilities. I'm also a professional in AutoCAD programming.

Profile: Edvard Csanyi

Leave a Comment

Tell us what you're thinking. We care about your opinion! Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let's have a professional and meaningful conversation instead. Thanks for dropping by!

three  ×    =  15

Learn How to Design Power Systems

Learn to design LV/MV/HV power systems through professional video courses. Lifetime access. Enjoy learning!

EEP Hand-Crafted Video Courses

Check more than a hundred hand-crafted video courses and learn from experienced engineers. Lifetime access included.
Experience matters. Premium membership gives you an opportunity to study specialized technical articles, online video courses, electrical engineering guides, and papers written by experienced electrical engineers.