PLC Ladder Logic Tutorial: 5 Powerful Industrial Automation Examples

What is PLC Ladder Logic?

This PLC ladder logic tutorial explains how engineers design ladder diagrams for real industrial machines.

PLC ladder logic tutorial guides beginners and automation engineers through the fundamentals of ladder diagram programming used in industrial control systems. PLC ladder logic is the most widely used programming language for programmable logic controllers in industrial automation systems. It represents control logic using graphical symbols that resemble electrical relay circuits. Because of this similarity, electricians and technicians can easily understand ladder logic programs even without advanced programming knowledge.

In a ladder logic diagram, the program is arranged in horizontal lines called rungs. Each rung represents a control logic statement that evaluates input conditions and activates outputs. The logic is executed continuously during the PLC scan cycle, allowing the controller to monitor sensors and control machines in real time.

This PLC ladder logic tutorial explains how ladder diagrams are used to program industrial automation systems and control machines in real factories.

Most modern PLC systems follow international programming standards defined by IEC 61131-3.

Before writing ladder logic programs, engineers must understand PLC inputs and outputs and how field devices connect to the controller.

This PLC ladder logic tutorial focuses on helping beginners understand how ladder diagrams represent real industrial control circuits.

What You Will Learn in This PLC Ladder Logic Tutorial

  • Basic PLC ladder logic symbols
  • How ladder diagrams control motors and sensors
  • Practical timer and conveyor control examples
  • Common mistakes in ladder logic programming
  • Real industrial automation applications

Basic PLC Ladder Logic Symbols

Ladder logic uses standardized symbols that represent electrical contacts, coils, and functions. These symbols allow engineers to create control programs in a visual format that resembles traditional relay logic circuits.

Understanding these basic symbols is essential before writing PLC ladder programs.

Normally Open Contact

A normally closed (NC) contact represents an input condition that is true when the signal is OFF.

In ladder logic, the normally closed contact allows current flow until the input signal becomes active. When the input turns ON, the contact opens and interrupts the circuit.

Normally closed contacts are typically used for:

  • Stop push buttons
  • Safety interlocks
  • Emergency stop circuits
  • Alarm reset conditions

Normally Closed Contact

A normally closed (NC) contact represents an input condition that is true when the signal is OFF.

In ladder logic, the normally closed contact allows current flow until the input signal becomes active. When the input turns ON, the contact opens and interrupts the circuit.

Normally closed contacts are typically used for:

  • Stop push buttons
  • Safety interlocks
  • Emergency stop circuits
  • Alarm reset conditions

Output Coil

An output coil represents a device that is controlled by the PLC program.

When the logic conditions before the coil become true, the PLC energizes the output coil and activates the associated device. Output coils are used to control equipment such as motors, valves, and indicator lights.

Typical examples of devices controlled by output coils include:

  • Motor starters
  • Solenoid valves
  • Alarm buzzers
  • Indicator lamps

Timer

A PLC timer is used to introduce a time delay in ladder logic programs. Timers allow engineers to control when certain actions occur within an automation sequence.

For example, a timer can delay the start of a motor, keep a conveyor running for a specific time, or activate an alarm after a delay.

Common timer types used in PLC programming include:

  • TON (On Delay Timer)
  • TOF (Off Delay Timer)
  • RTO (Retentive Timer)

Timers are essential in automation systems where events must occur after specific time intervals.

Counter

A PLC counter counts the number of events or pulses detected by the PLC program. Counters are often used in production systems to track the number of products, parts, or cycles.

For example, a counter may be used to count bottles on a conveyor or track the number of machine operations in a production line.

Typical types of counters include:

  • Up counters
  • Down counters
  • Up/Down counters

Counters help automation systems monitor production quantities and trigger actions when a preset value is reached.

Simple Motor Start Example

PLC ladder logic tutorial motor start example
Example ladder logic diagram showing a motor start and stop control circuit.

The ladder logic diagram above shows a simple motor start and stop circuit using a normally open start button and a normally closed stop button controlling the motor output coil.

One of the most common examples used to explain ladder logic is a motor start and stop circuit.

In this example, a motor is controlled using two push buttons:

  • Start push button
  • Stop push button

When the start button is pressed, the PLC program energizes the motor output coil. This activates the motor contactor and starts the motor.

When the stop button is pressed, the ladder logic interrupts the circuit and de-energizes the motor output coil, stopping the motor.

To maintain motor operation after the start button is released, a holding contact is often used. This contact keeps the output energized until the stop button is pressed.

This simple control circuit is widely used in industrial automation systems for starting and stopping motors.

This example is one of the most common demonstrations used in a PLC ladder logic tutorial for beginners learning industrial automation programming.

PLC Ladder Logic Timer Example

PLC Timer Example
PLC Timer Example

Timers are frequently used in automation systems to create delays between events.

For example, consider a system where a motor should start five seconds after pressing a start button. This can be implemented using a TON (On Delay Timer).

In this ladder logic program:

  1. The start push button activates the timer.
  2. The timer begins counting the preset time.
  3. After the timer reaches five seconds, the motor output coil is energized.

Timers are useful in many industrial processes, such as:

  • Delaying motor start sequences
  • Controlling heating cycles
  • Activating alarms after delays
  • Synchronizing machine operations

Using timers allows engineers to precisely control the timing of automation processes.

In this PLC ladder logic tutorial, we will use these symbols to build simple but practical industrial automation examples.

PLC Ladder Logic Conveyor Control Example

Ladder logic is often used to control conveyor systems in industrial automation.

Consider a conveyor that transports products between two stations. The system includes:

  • A photoelectric sensor to detect products
  • A conveyor motor
  • A limit switch at the end of the conveyor

When the sensor detects a product, the PLC activates the motor output and starts the conveyor. The conveyor continues running until the product reaches the end limit switch.

When the limit switch is triggered, the PLC stops the motor and prepares the system for the next product.

This type of control logic is widely used in manufacturing, packaging, and material handling systems.

During automation system design, engineers typically perform PLC IO calculation to estimate the number of input and output signals required for the controller.

Industrial Applications of PLC Ladder Logic

PLC ladder logic programming is widely used across many industrial automation applications because it provides reliable control for machines and processes.

Common industrial applications include:

Motor control systems
Factories use ladder logic to start, stop, and protect motors used in conveyors, pumps, and compressors.

Material handling systems
Automation engineers program ladder logic to control conveyors, robotic arms, and sorting machines in warehouses and production lines.

Packaging machines
Packaging equipment uses ladder logic to synchronize sensors, actuators, and motors for accurate product handling.

Process control systems
Industrial processes such as water treatment plants and chemical systems rely on ladder logic to monitor sensors and operate valves and pumps.

Safety interlock systems
Ladder logic programs often include safety conditions that prevent machines from operating when unsafe conditions are detected.

Because of its reliability and simplicity, ladder logic remains one of the most widely used programming methods in industrial automation.

Advantages of PLC Ladder Logic Programming

Ladder logic remains the most popular PLC programming language because it offers several advantages.

Easy to understand

The graphical format resembles electrical circuits, making it easier for technicians and electricians to interpret.

Widely supported

Almost all PLC manufacturers support ladder logic programming.

Simple troubleshooting

Engineers can quickly identify logic conditions and diagnose problems in the program.

Ideal for industrial control

Ladder logic works well for discrete control applications such as motor control, conveyor systems, and machine automation.

Engineers learning PLC programming often begin with ladder logic because it is one of the most widely supported PLC programming languages used in industrial automation.

Major PLC manufacturers such as Siemens, Allen-Bradley, and Mitsubishi support ladder logic programming for industrial automation applications.

Common Ladder Logic Programming Mistakes

Even experienced automation engineers can make mistakes when designing ladder logic programs.

Incorrect contact logic

Using normally open and normally closed contacts incorrectly can cause unexpected program behavior.

Missing safety interlocks

Automation programs should include safety conditions to prevent dangerous machine operation.

Improper timer settings

Incorrect timer presets can cause delays or sequencing errors in machine operations.

Lack of documentation

Programs should include comments and descriptions so other engineers can understand the control logic.

Avoiding these mistakes helps ensure reliable PLC programs in industrial automation systems.

PLC Ladder Logic vs Other PLC Programming Languages

Although ladder logic is the most common PLC programming language, modern PLC systems support several other programming methods.

Ladder Logic (LD)
Ladder logic uses graphical symbols that resemble electrical circuits, making it easy for electricians and technicians to understand.

Function Block Diagram (FBD)
Function block diagrams represent logic using interconnected blocks that perform specific functions such as timers or mathematical operations.

Structured Text (ST)
Structured text is a high-level programming language similar to traditional programming languages like Pascal or C.

Sequential Function Chart (SFC)
Sequential function charts are used to control processes that follow a sequence of steps, such as batch production or machine cycles.

Each programming language has advantages depending on the complexity of the automation system, but ladder logic remains the most widely used for machine control.

PLC Ladder Logic FAQs

What is ladder logic in PLC?

Ladder logic is a graphical programming language used to program programmable logic controllers. It represents control logic using symbols similar to electrical relay circuits.

Why is ladder logic widely used in automation?

Ladder logic is widely used because it is easy to understand, visually represents electrical control circuits, and is supported by almost all PLC manufacturers.

Is ladder logic difficult to learn?

Ladder logic is considered one of the easiest PLC programming languages to learn, especially for electricians and technicians familiar with electrical control circuits.

In this PLC ladder logic tutorial, we explored basic ladder symbols and practical automation examples.

This PLC ladder logic tutorial demonstrated how ladder diagrams are used in real industrial automation systems.

By following this PLC ladder logic tutorial, beginners can quickly understand how PLC programs control motors, sensors, and automation equipment.

Conclusion

In this PLC ladder logic tutorial, we explored the fundamentals of ladder logic programming used in industrial automation systems. Ladder diagrams help engineers design control logic for motors, sensors, timers, and production equipment in factories. By understanding ladder logic symbols and programming concepts, beginners can quickly start building PLC programs for real automation projects. Learning ladder logic remains one of the most important skills for automation engineers and control system professionals.

If you want to learn how to estimate PLC hardware requirements, read our step-by-step guide on PLC IO calculation for industrial machines.

Scroll to Top