Relay logic

Last updated

Relay logic is a method of implementing combinational logic in electrical control circuits by using several electrical relays wired in a particular configuration.

Contents

Ladder logic

Example Ladder Logic Diagram Relay Rack Ladder Diagram.gif
Example Ladder Logic Diagram

The schematic diagrams for relay logic circuits are often called line diagrams, because the inputs and outputs are essentially drawn in a series of lines. A relay logic circuit is an electrical network consisting of lines, or rungs, in which each line or rung must have continuity to enable the output device. A typical circuit consists of a number of rungs, with each rung controlling an output. This output is controlled by a combination of input or output conditions, such as input switches and control relays. The conditions that represent the inputs are connected in series, parallel, or series-parallel to obtain the logic required to drive the output. The relay logic circuit forms an electrical schematic diagram for the control of input and output devices. Relay logic diagrams represent the physical interconnection of devices.

Each rung would have a unique identifying reference number and the individual wires on that rung would have wire numbers as a derivative of the rung number. Thus, if a rung was labelled as 105, the first independent wire would be 1051, the second as 1052, and so forth. A wire would be named for the top most rung to which it connected, even if it branched to lower rungs. When designing a system, it was common practice to skip numbers for the rungs to allow later additions as required.

When the rack was manufactured, as a wire was installed, each end would be marked with wire labels (a.k.a. wire markers). This also applied for pulling wire into the factory through conduit or in trays where each wire would have corresponding numbers. Wire labels were typically pieces of white tape with numbers or letters printed onto them and collected in small, pocket sized booklets. A number strip would be peeled out and wrapped around the wire near the end. Wire numbers were made up of a series of the number strips so wire 1051 would be four strips. There are also pocket sized printers that print onto an adhesive backed label that can be wrapped around the wire.

The basic format for relay logic diagrams is as follows:

1. The two vertical lines that connect all devices on the relay logic diagram are labeled L1 and L2. The space between L1 and L2 represents the voltage of the control circuit.

2. Output devices are always connected to L2. Any electrical overloads that are to be included must be shown between the output device and L2; otherwise, the output device must be the last component before L2.

3. Control devices are always shown between L1 and the output device. Control devices may be connected either in series or in parallel with each other.

4. Devices which perform a STOP function are usually connected in series, while devices that perform a START function are connected in parallel.

5. Electrical devices are shown in their normal conditions. An NC contact would be shown as normally closed, and an NO contact would appear as a normally open device. All contacts associated with a device will change state when the device is energized.

Figure 1 shows a typical relay logic diagram. In this circuit, a STOP/START station is used to control two pilot lights. When the START button is pressed, the control relay energizes and its associated contacts change state. The green pilot light is now ON and the red lamp is OFF. When the STOP button is pressed, the contacts return to their resting state, the red pilot light is ON, and the green switches OFF.

Relay Logic2.jpg

Relay logic design

In many cases, it is possible to design a relay logic diagram directly from the narrative description of a control event sequence. In general, the following suggestions apply to designing a relay logic diagram:

1. Define the process to be controlled.

2. Draw a sketch of the operation process. Make sure all the components of the system are present in the drawing.

3. Determine the sequence of operations to be performed. List the sequence of operational steps in as much detail as possible. Write out the sequence in sentences, or put them in table form.

4. Write the relay logic diagram from the sequence of operations.

Applications

A major application of relay logic is the control of routing and signalling on railways. This safety critical application uses interlocking to ensure conflicting routes can never be selected and helps reduce accidents. Elevators are another common application - large relay logic circuits were employed from the 1930s onward to replace the human elevator operator, but have been progressively superseded with modern solid-state controls in recent years. Relay logic is also used for controlling and automation purposes in electro-hydraulics and electro-pneumatics.

Figure 1 from Vernam's patent. USpatent1310719.fig1.png
Figure 1 from Vernam's patent.

Other kinds of relay logic

Most relay logic diagrams are in "ladder logic" form. Systems using relay logic diagrams in other forms include the Vernam cipher machine, the many 20th century telephone exchanges that controlled their crossbar switches by relays, and the designs for the various electro-mechanical computers including the Harvard Mark II. Design tools for these include Karnaugh maps and Boolean algebra.

See also


Related Research Articles

<span class="mw-page-title-main">Logic gate</span> Device performing a Boolean function

A logic gate is a device that performs a Boolean function, a logical operation performed on one or more binary inputs that produces a single binary output. Depending on the context, the term may refer to an ideal logic gate, one that has, for instance, zero rise time and unlimited fan-out, or it may refer to a non-ideal physical device.

<span class="mw-page-title-main">Programmable logic controller</span> Programmable digital computer used to control machinery

A programmable logic controller (PLC) or programmable controller is an industrial computer that has been ruggedized and adapted for the control of manufacturing processes, such as assembly lines, machines, robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis.

<span class="mw-page-title-main">Relay</span> Electrically-operated switch

A relay is an electrically operated switch. It consists of a set of input terminals for a single or multiple control signals, and a set of operating contact terminals. The switch may have any number of contacts in multiple contact forms, such as make contacts, break contacts, or combinations thereof.

<span class="mw-page-title-main">Multiplexer</span> A device that selects between several analog or digital input signals

In electronics, a multiplexer, also known as a data selector, is a device that selects between several analog or digital input signals and forwards the selected input to a single output line. The selection is directed by a separate set of digital inputs known as select lines. A multiplexer of inputs has select lines, which are used to select which input line to send to the output.

A shift register is a type of digital circuit using a cascade of flip-flops where the output of one flip-flop is connected to the input of the next. They share a single clock signal, which causes the data stored in the system to shift from one location to the next. By connecting the last flip-flop back to the first, the data can cycle within the shifters for extended periods, and in this configuration they were used as computer memory, displacing delay-line memory systems in the late 1960s and early 1970s.

<span class="mw-page-title-main">Crossbar switch</span> Collection of electronic switches arranged in a matrix

In electronics and telecommunications, a crossbar switch is a collection of switches arranged in a matrix configuration. A crossbar switch has multiple input and output lines that form a crossed pattern of interconnecting lines between which a connection may be established by closing a switch located at each intersection, the elements of the matrix. Originally, a crossbar switch consisted literally of crossing metal bars that provided the input and output paths. Later implementations achieved the same switching topology in solid-state electronics. The crossbar switch is one of the principal telephone exchange architectures, together with a rotary switch, memory switch, and a crossover switch.

Ladder logic was originally a written method to document the design and construction of relay racks as used in manufacturing and process control. Each device in the relay rack would be represented by a symbol on the ladder diagram with connections between those devices shown. In addition, other items external to the relay rack such as pumps, heaters, and so forth would also be shown on the ladder diagram.

The Hartley oscillator is an electronic oscillator circuit in which the oscillation frequency is determined by a tuned circuit consisting of capacitors and inductors, that is, an LC oscillator. The circuit was invented in 1915 by American engineer Ralph Hartley. The distinguishing feature of the Hartley oscillator is that the tuned circuit consists of a single capacitor in parallel with two inductors in series, and the feedback signal needed for oscillation is taken from the center connection of the two inductors.

<span class="mw-page-title-main">Circuit diagram</span> Graphical representation of an electrical circuit

A circuit diagram is a graphical representation of an electrical circuit. A pictorial circuit diagram uses simple images of components, while a schematic diagram shows the components and interconnections of the circuit using standardized symbolic representations. The presentation of the interconnections between circuit components in the schematic diagram does not necessarily correspond to the physical arrangements in the finished device.

<span class="mw-page-title-main">Block diagram</span> Graphical system analysis method

A block diagram is a diagram of a system in which the principal parts or functions are represented by blocks connected by lines that show the relationships of the blocks. They are heavily used in engineering in hardware design, electronic design, software design, and process flow diagrams.

<span class="mw-page-title-main">Electronic symbol</span> Pictogram used to represent various electrical and electronic devices or functions

An electronic symbol is a pictogram used to represent various electrical and electronic devices or functions, such as wires, batteries, resistors, and transistors, in a schematic diagram of an electrical or electronic circuit. These symbols are largely standardized internationally today, but may vary from country to country, or engineering discipline, based on traditional conventions.

<span class="mw-page-title-main">Plugboard</span> Control panel using electrical patch cords

A plugboard or control panel is an array of jacks or sockets into which patch cords can be inserted to complete an electrical circuit. Control panels are sometimes used to direct the operation of unit record equipment, cipher machines, and early computers. The array of holes is often contained in a flat removable panel that can be inserted into a machine and pressed against an array of contacts. This allows the machine to be quickly switched between different applications.

In Electrical Power Systems and Industrial Automation, ANSI Device Numbers can be used to identify equipment and devices in a system such as relays, circuit breakers, or instruments. The device numbers are enumerated in ANSI/IEEE Standard C37.2 "Standard for Electrical Power System Device Function Numbers, Acronyms, and Contact Designations".

<span class="mw-page-title-main">Single-ended primary-inductor converter</span> Electrical device

The single-ended primary-inductor converter (SEPIC) is a type of DC/DC converter that allows the electrical potential (voltage) at its output to be greater than, less than, or equal to that at its input. The output of the SEPIC is controlled by the duty cycle of the control switch (S1).

<span class="mw-page-title-main">Solid-state relay</span> High-power solid-state electronic switching device responding to an external control signal

A solid state relay (SSR) is an electronic switching device that switches on or off when an external voltage is applied across its control terminals. They serve the same function as an electromechanical relay, but solid-state electronics contain no moving parts and have a longer operational lifetime. Solid state relays were invented in 1971 by the Crydom Controls division of International Rectifiers.

Quantum dot cellular automata are a proposed improvement on conventional computer design (CMOS), which have been devised in analogy to conventional models of cellular automata introduced by John von Neumann.

A brushed DC electric motor is an internally commutated electric motor designed to be run from a direct current power source and utilizing an electric brush for contact.

<span class="mw-page-title-main">Numerical relay</span> System using algorithmic detection of electrical faults

In utility and industrial electric power transmission and distribution systems, a numerical relay is a computer-based system with software-based protection algorithms for the detection of electrical faults. Such relays are also termed as microprocessor type protective relays. They are functional replacements for electro-mechanical protective relays and may include many protection functions in one unit, as well as providing metering, communication, and self-test functions.

In building wiring, multiway switching is the interconnection of two or more electrical switches to control an electrical load from more than one location. A common application is in lighting, where it allows the control of lamps from multiple locations, for example in a hallway, stairwell, or large room.

Automatic test system switching test equipment allows for high-speed testing of a device or devices in a test situation, where strict sequences and combinations of switching must be observed. By automating the process in this way, the possibility of test errors and inaccuracies is minimized, and only systematic errors would generally be encountered due to such as an incorrect programmed test condition. This eliminates error due to human factors and allows application of a standard test sequence repetitively. The design of a test system’s switching configuration is governed by the test specification, which is derived from the functional tests to be performed.