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.

Combinational logic type of digital logic which is implemented by boolean circuits

In digital circuit theory, combinational logic is a type of digital logic which is implemented by Boolean circuits, where the output is a pure function of the present input only. This is in contrast to sequential logic, in which the output depends not only on the present input but also on the history of the input. In other words, sequential logic has memory while combinational logic does not.

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.

Electrical network interconnection of electrical components or a model of such an interconnection, consisting of electrical elements

An electrical network is an interconnection of electrical components or a model of such an interconnection, consisting of electrical elements. An electrical circuit is a network consisting of a closed loop, giving a return path for the current. Linear electrical networks, a special type consisting only of sources, linear lumped elements, and linear distributed elements, have the property that signals are linearly superimposable. They are thus more easily analyzed, using powerful frequency domain methods such as Laplace transforms, to determine DC response, AC response, and transient response.

In electrical engineering, a switch is an electrical component that can "make" or "break" an electrical circuit, interrupting the current or diverting it from one conductor to another. The mechanism of a switch removes or restores the conducting path in a circuit when it is operated. It may be operated manually, for example, a light switch or a keyboard button, may be operated by a moving object such as a door, or may be operated by some sensing element for pressure, temperature or flow. A switch will have one or more sets of contacts, which may operate simultaneously, sequentially, or alternately. Switches in high-powered circuits must operate rapidly to prevent destructive arcing, and may include special features to assist in rapidly interrupting a heavy current. Multiple forms of actuators are used for operation by hand or to sense position, level, temperature or flow. Special types are used, for example, for control of machinery, to reverse electric motors, or to sense liquid level. Many specialized forms exist. A common use is control of lighting, where multiple switches may be wired into one circuit to allow convenient control of light fixtures.

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.

In an electric power system, overcurrent or excess current is a situation where a larger than intended electric current exists through a conductor, leading to excessive generation of heat, and the risk of fire or damage to equipment. Possible causes for overcurrent include short circuits, excessive load, incorrect design, or a ground fault. Fuses, circuit breakers, lifersensors and current limiters are commonly used overcurrent protection (OCP) mechanisms to control the risks.

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.

Pilot light

A pilot light is a small gas flame, usually natural gas or liquefied petroleum gas, which serves as an ignition source for a more powerful gas burner. Originally, a pilot light was kept permanently alight; however, this is wasteful of gas. Now it is more common to light a burner electrically, but gas pilot lights are still used when a high energy ignition source is necessary, as in when lighting a large burner.

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.

Sketch (drawing) quickly executed freehand drawing

A sketch is a rapidly executed freehand drawing that is not usually intended as a finished work. A sketch may serve a number of purposes: it might record something that the artist sees, it might record or develop an idea for later use or it might be used as a quick way of graphically demonstrating an image, idea or principle.

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

In electronics, a logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a logical operation on one or more binary inputs and 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.

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

Relay electrical switch

A relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate a switch, but other operating principles are also used, such as solid-state relays. Relays are used where it is necessary to control a circuit by a separate low-power signal, or where several circuits must be controlled by one signal. The first relays were used in long distance telegraph circuits as amplifiers: they repeated the signal coming in from one circuit and re-transmitted it on another circuit. Relays were used extensively in telephone exchanges and early computers to perform logical operations.

Multiplexer electronic circuit that selects one of its several input signals and forwards it into a single output line

In electronics, a multiplexer is a device that selects between several analog or digital input signals and forwards it to a single output line. A multiplexer of inputs has select lines, which are used to select which input line to send to the output. Multiplexers are mainly used to increase the amount of data that can be sent over the network within a certain amount of time and bandwidth. A multiplexer is also called a data selector. Multiplexers can also be used to implement Boolean functions of multiple variables.

Digital electronics Electronic circuits that utilize digital signals

Digital electronics or digital (electronic) circuits are electronics that operate on digital signals. In contrast, analog circuits manipulate analog signals whose performance is more subject to manufacturing tolerance, signal attenuation and noise. Digital techniques are helpful because it is a lot easier to get an electronic device to switch into one of a number of known states than to accurately reproduce a continuous range of values.

In digital circuits, a shift register is a cascade of flip flops, sharing the same clock, in which the output of each flip-flop is connected to the "data" input of the next flip-flop in the chain, resulting in a circuit that shifts by one position the "bit array" stored in it, "shifting in" the data present at its input and 'shifting out' the last bit in the array, at each transition of the clock input.

In electronics, 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 semiconductor chips. The cross-point switch is one of the principal switch architectures, together with a rotary switch, memory switch, and a crossover switch.

CMOS technology for constructing integrated circuits

Complementary metal–oxide–semiconductor (CMOS) is a technology for constructing integrated circuits. CMOS technology is used in microprocessors, microcontrollers, static RAM, and other digital logic circuits. CMOS technology is also used for several analog circuits such as image sensors, data converters, and highly integrated transceivers for many types of communication. Frank Wanlass invented CMOS in 1963 while at Fairchild Semiconductor and was granted US patent 3,356,858 in 1967.

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.

Circuit diagram 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.

Block diagram 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

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.

Plugboard

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 were used to direct the operation of some unit record equipment. Plugboards were used on some cipher machines, and some early computers.

Open collector

An open collector is a common type of output found on many integrated circuits (IC), which behaves like a switch that is either connected to ground or disconnected.

The Layout Versus Schematic (LVS) is the class of electronic design automation (EDA) verification software that determines whether a particular integrated circuit layout corresponds to the original schematic or circuit diagram of the design.

In the design of electrical power systems, the ANSI standard device numbers identifies the features of a protective device such as a relay or circuit breaker. These types of devices protect electrical systems and components from damage when an unwanted event occurs, such as an electrical fault. Device numbers are used to identify the functions of devices shown on a schematic diagram. Function descriptions are given in the standard.

Solid-state relay

A solid-state relay (SSR) is an electronic switching device that switches on or off when a small external voltage is applied across its control terminals. SSRs consist of a sensor which responds to an appropriate input, a solid-state electronic switching device which switches power to the load circuitry, and a coupling mechanism to enable the control signal to activate this switch without mechanical parts. The relay may be designed to switch either AC or DC to the load. It serves the same function as an electromechanical relay, but has no moving parts.

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.

Digital protective relay

In utility and industrial electric power transmission and distribution systems, a digital protective 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. For example, this allows lighting in a hallway, stairwell or large room to be controlled from multiple locations. While a "normal" light switch needs to be only a single pole, single throw (SPST) switch, multiway switching requires the use of switches that have one or more additional contacts and two or more wires must be run between the switches. When the load is controlled from only two points, single pole, double throw (SPDT) switches are used. Double pole, double throw (DPDT) switches allow control from three or more locations.

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.