A relay logic circuit uses electromechanical relays to perform logical operations. Electromechanical relays are devices that use an electromagnetic coil to control one or more switches (contacts). When the coil is energized, the contacts change their state (from normally open to closed or vice versa), allowing or interrupting the flow of current in the circuit.
In a relay logic circuit, logical operations are achieved by arranging and connecting relays in specific ways to implement various logic gates and combinations. The fundamental logic gates used in relay logic are AND, OR, NOT, and sometimes XOR gates.
Here's how these basic logic gates are implemented using electromechanical relays:
NOT Gate (Inverter):
A NOT gate inverts the input signal. If the input is ON (current flowing through the coil), the output will be OFF (contacts open), and vice versa.
Implementation: A relay is used with normally closed (NC) contacts. When there is no current through the coil (input OFF), the contacts are closed, allowing current to flow and making the output ON. When current flows through the coil (input ON), the contacts open, interrupting the current flow, and making the output OFF.
AND Gate:
An AND gate requires all inputs to be ON for the output to be ON.
Implementation: Two or more relays are connected in series. The coil of each relay is controlled by a separate input signal. When all input signals are present (current flowing through all the coils), all relay contacts will close, allowing current to flow through the output coil, turning ON the output.
OR Gate:
An OR gate requires at least one input to be ON for the output to be ON.
Implementation: Two or more relays are connected in parallel. The coil of each relay is controlled by a separate input signal. When any of the input signals is present (current flowing through any of the coils), the corresponding relay contacts will close, allowing current to flow through the output coil, turning ON the output.
XOR Gate (Exclusive OR):
An XOR gate produces an output when the number of active inputs is odd.
Implementation: Multiple relays are used in a combination of series and parallel connections. The relay contacts are arranged in such a way that the output coil receives current if an odd number of input signals are present, turning ON the output.
By using various combinations of these basic relay logic elements, more complex logical operations and circuits can be constructed, including sequential and timing operations. However, relay logic has limitations in terms of complexity and speed compared to modern electronic digital logic circuits, which use transistors and integrated circuits. Despite its limitations, relay logic was widely used in early industrial automation and control systems and played a crucial role in the development of digital logic principles.