Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

In this article we explore how a basic ladder diagram can represent fundamental digital logic operations. By arranging contacts in series, parallel, and using normally‑closed (NC) contacts, we can implement OR, AND, NOT, NAND, NOR, and even XOR functions with a simple lamp as the output device.

Creating an OR Function

Using two normally‑open (NO) contacts in parallel, the lamp lights when either switch A or switch B is closed. The truth table is shown below:

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

This is a classic OR gate: a single path from wire L1 to the lamp suffices.

Building an AND Function

Placing the same contacts in series yields an AND gate. The lamp energizes only when both contacts are closed, creating a continuous path from L1 to the lamp.

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

Implementing NOT with Normally‑Closed Contacts

By replacing an NO contact with an NC contact, the lamp reacts to the inverse state: it lights when the contact is open and de‑energizes when the contact closes.

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

Deriving NAND and NOR via De Morgan’s Theorem

Inverting the inputs of an OR gate (using NC contacts) produces a NAND gate. The lamp illuminates if either input is unactuated and turns off only when both are actuated.

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

Similarly, inverting the inputs of an AND gate yields a NOR gate.

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

Mapping Ladder Contacts to Logic Gates

Constructing an Exclusive‑OR (XOR) Function

An XOR gate can be built by combining AND, OR, and NOT gates. The ladder diagram below demonstrates this construction:

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

The top rung (NC A in series with NO B) implements a NOT/AND combination, while the bottom rung (NO A in series with NC B) does the same with reversed inputs. Parallel connection of these rungs (wire 2) provides the OR operation that powers the lamp.

Designing the XOR Circuit

Each input requires two contacts: one direct and one inverted. The contacts share a common label (e.g., “A”) to indicate they are actuated by the same switch or relay. If more detailed distinction is needed, compound labels such as “A‑1” and “A‑2” can be used.

When the output of any logic function needs to be inverted, a relay with an NC contact is employed. For example, to drive a lamp based on the NOT of a normally‑open contact, we can use the following ladder:

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

Here, the coil of CR1 energizes the lamp, and its NC contact opens when CR1 is energized, providing the inversion.

Applying this strategy to a NAND function transforms it into an AND function, as illustrated below:

Understanding Digital Logic Functions: OR, AND, NOT, and Beyond

Review Summary

Related Worksheets

Industrial Technology

  1. Why Tungsten Contacts Power Reliable Electrical Appliances
  2. Designing Reliable Switch Contacts: Materials, Types, and Protection Strategies
  3. Eliminating Contact Bounce in Mechanical Switches
  4. Combinational Logic Functions: Fundamentals & Practical Applications
  5. Digital Logic with Feedback: From Deterministic Gates to Multivibrators
  6. Optimizing Ohmic Contacts on p‑GaAs Nanowires for Low‑Resistance, High‑Reliability Devices
  7. Digital Logic Board Kit: Components & Setup Guide
  8. Key Factors in Designing Contactor Contacts
  9. Digital Logic Gates Explained: Types, Functions & Applications
  10. Digital Integrated Circuits: Types & Applications