Simple PLC Ladder Diagram Examples with Solutions: Easy Guide

Philip Jun 27, 2026

Programmable Logic Controllers (PLCs) form the backbone of modern industrial automation, executing logic based on input signals to control machinery and processes. The Ladder Diagram (LD) language remains the most intuitive and widely used programming method due to its visual resemblance to traditional relay circuits.

Three way Traffic Light Control using PLC - Automation Community
Three way Traffic Light Control using PLC - Automation Community

Understanding the Fundamentals of Ladder Logic

Basics of PLC Ladder Diagram
Basics of PLC Ladder Diagram

At its core, a Ladder Diagram consists of horizontal rungs arranged vertically between two vertical rails representing the power supply. Each rung typically contains at least one rung, which evaluates to either TRUE or FALSE based on the status of input contacts to control output coils. Understanding this basic scan cycle—where the PLC reads inputs, executes logic, and updates outputs—is essential for troubleshooting and designing efficient control systems. The left vertical rail is conventionally known as the hot or positive side, while the right rail serves as the return path.

Example 1: Simple Start-Stop Control Circuit

Count and Pack Objects from Conveyor using PLC Ladder Logic
Count and Pack Objects from Conveyor using PLC Ladder Logic

A foundational example involves creating a motor control circuit using a start button, a stop button, and a holding coil. The goal is to energize the motor when the start button is pressed and keep it running until the stop button is pressed, even after the start button is released. This requires the output coil to latch or seal in its own state through a parallel branch.

Ladder Logic Diagram

Ladder Diagrams Explained | PLC Ladder Logic Basics for Beginners
Ladder Diagrams Explained | PLC Ladder Logic Basics for Beginners
Input/OutputAddressDescription
I0.0Start Button (Normally Open)NO Push Button
I0.1Stop Button (Normally Closed)NC Push Button
Q0.0Motor CoilOutput to Drive Motor

In the logic, the start button (I0.0) is placed in series with the output coil to provide initial activation, while the stop button (I0.1) is wired in series as a normally closed contact to allow interruption. Most importantly, the output coil (Q0.0) is paralleled with the start button to create the latching mechanism. When the start button is pressed, power flows through the stop contact and the output contact itself, maintaining the circuit energized until the stop button breaks the path.

Solution and Verification

PLC Ladder Logic Example | PLC Example Ladder Programs
PLC Ladder Logic Example | PLC Example Ladder Programs

The solution to this common problem is the use of a parallel feedback loop. PLC programmers must ensure that the stop button is wired as a normally closed contact in the ladder logic, allowing it to interrupt the current flow when activated. This specific configuration is often referred to as "seal-in" logic and is a standard practice for motor control applications.

Example 2: Interlocking Logic for Safety

Moving beyond basic control, safety and process sequencing often require interlocks. Consider a system where a pump should only run if a tank level sensor indicates that the tank is not empty. This prevents dry running and potential damage to the equipment. The logic must ensure that both conditions—the level sensor being active and the enable command being on—are met for the pump to operate.

Controlling Water Level in the PLC Ladder Logic Program Explained
Controlling Water Level in the PLC Ladder Logic Program Explained

Ladder Logic Diagram

Input/OutputAddressDescription
I0.0Enable ButtonStart Command
I0.1Tank Level SensorHigh Level = TRUE
Q0.0Pump MotorOutput Control
DIAGRAMA LADDER Ejemplos | Ejercicios | Ladder Logic PLC
DIAGRAMA LADDER Ejemplos | Ejercicios | Ladder Logic PLC
PLC Car Parking Ladder Programming | PLC Tutorials & Programs
PLC Car Parking Ladder Programming | PLC Tutorials & Programs
DIAGRAMA LADDER EJEMPLOS | Ejercicios Básicos KOP | LADDER LOGIC PLC
DIAGRAMA LADDER EJEMPLOS | Ejercicios Básicos KOP | LADDER LOGIC PLC
Ladder Logic in Action
Ladder Logic in Action
Advantages of programmable logic controllers - PLC Basics
Advantages of programmable logic controllers - PLC Basics
Reverse - Forward Motor Control Circuit Using Omron CP2E PLC
Reverse - Forward Motor Control Circuit Using Omron CP2E PLC
Bottle Filling and Capping Project using PLC Ladder Logic - The Engineering Projects
Bottle Filling and Capping Project using PLC Ladder Logic - The Engineering Projects
the circuit diagram is shown in this manual
the circuit diagram is shown in this manual
an automatic car washing process with instructions
an automatic car washing process with instructions
Basics of Ladder Diagram in PLC Programming | PLC Videos
Basics of Ladder Diagram in PLC Programming | PLC Videos
PLC
PLC
Introduction to PLC Ladder Program: NO and NC Contacts Explained | Automation and PLC Series Part 4
Introduction to PLC Ladder Program: NO and NC Contacts Explained | Automation and PLC Series Part 4
PLC Training - Introduction to PLC Ladder Logic, Part 1
PLC Training - Introduction to PLC Ladder Logic, Part 1
Mis-conceptions of PLC Ladder Logic | PLC Tutorials for beginners
Mis-conceptions of PLC Ladder Logic | PLC Tutorials for beginners
PLC Example with Switches | PLC Ladder Logic Examples
PLC Example with Switches | PLC Ladder Logic Examples
an electrical wiring diagram for a three way switch
an electrical wiring diagram for a three way switch
PLC Program for Water filling and Discharging Process
PLC Program for Water filling and Discharging Process
Ladder Logic Examples and PLC Programming Examples
Ladder Logic Examples and PLC Programming Examples
PLC Ladder Logic Programming Tutorial (Basics) | PLC Academy
PLC Ladder Logic Programming Tutorial (Basics) | PLC Academy
the wiring diagram for an invertor and control system, with instructions on how to wire
the wiring diagram for an invertor and control system, with instructions on how to wire

This example utilizes a logical AND operation. In ladder logic, this is achieved by placing the two conditions— the enable command (I0.0) and the level sensor (I0.1)—on the same rung. Power can only flow to the output coil (Q0.0) if both contacts are closed simultaneously. If the tank level drops and I0.1 opens, the circuit breaks immediately, turning off the pump regardless of the status of the enable button.

Solution and Verification

The solution here is the series connection of the two inputs. This ensures that the output is inactive if either condition is false. When implementing this, technicians must verify that the sensor provides a TRUE signal when the condition is "safe" or "ready," as this dictates the wiring of the contacts in the logic.

Example 3: Timed Operation with Delayed Start

Many processes require timing functions that cannot be achieved with simple contacts. For instance, a conveyor system might need to wait for a product to reach a certain point before activating a sorting mechanism. A timer instruction allows the logic to wait for a specific duration before changing an output state.

Ladder Logic Diagram

Input/OutputAddressDescription
I0.0Product SensorDetects Product Presence
T37: DNTimer Done BitTRUE when timing Complete
Q0.0Sorter ActuatorOutput to Move Product

The logic flow begins when the product sensor (I0.0) detects an item. This closes a rung that starts a timer (e.g., T37). The output coil (Q0.0) for the sorter is connected to the timer's done bit (T37.DN). This means the actuator will not activate immediately; instead, it waits until the timer has completed its preset duration. This ensures that the product is correctly positioned before the sorter engages.

Solution and Verification

The solution involves utilizing a timer instruction such as a TON (On-Delay Timer). The key to solving this is configuring the timer's preset value (PT) to the required delay in milliseconds. Once the sensor triggers the timer, the output remains off until the elapsed time matches the preset, at which point the done bit sets and activates the actuator.

Example 4: Sequential Batch Processing

Industrial applications often involve repeating a sequence of operations. A filling station, for example, might require a valve to open, wait for a weight to reach a target, and then close before moving to the next stage. This requires maintaining the state of the process, which can be achieved using internal memory bits (M Bits) to track the current step.

Ladder Logic Diagram

StepLogic DescriptionOutputs
Step 1: IdleWait for Start ButtonValve_Closed
Step 2: FillTimer T0 ON, Valve OpenValve_Open, Weight_OK
Step 3: WaitWait for Timer T0 DoneValve_Closed
Step 4: CompleteReset to Step 1System Ready

In this sequential logic, a bit such as M0.0 is set to TRUE when the fill cycle is active, locking the program into that step until a condition (like a timer done bit) resets the bit and moves the system to the next stage. This method, often called "step sequencing," provides a clear structure for complex operations.

Solution and Verification

The solution requires mapping out the entire process flow and assigning a memory bit to each distinct state. The transitions between steps are controlled by conditions that reset the current bit and set the next bit. Verifying this logic involves simulating the timer and sensor inputs to ensure the sequence progresses and resets correctly without getting stuck in a step.

Best Practices for PLC Ladder Diagram Design

Writing efficient and maintainable ladder logic goes beyond simply making the circuit work. Adhering to industry standards ensures that the code is readable for other engineers and reduces the risk of errors during maintenance. Consistent placement of contacts, logical grouping of related functions, and clear labeling are non-negotiable aspects of professional PLC programming.

Furthermore, testing the logic in a simulator before downloading it to a physical PLC can save significant time and resources. Always prioritize safety by including emergency stop circuits and proper interlocking. Following these guidelines ensures that the control system is not only functional but also robust and reliable in a demanding industrial environment.