Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Traffic Lights Ladder Diagram using Timers
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Traffic Lights Ladder Diagram using Timers

Traffic Lights Ladder Diagram using Timers

Design traffic lights ladder diagram using timers in the PLC programming to control the Red, Yellow, and Green signals.

Last updated: May 2, 2024 3:18 pm
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

Design the traffic lights ladder diagram using timers in the PLC programming to control the Red, Yellow, and Green signals.

Contents
Traffic LightsPLC Tutorial VideosInputs and OutputsLadder Diagram using TimersProgram DescriptionProgram Testing

Note: The content provided in this PLC programming example is for study purposes and is meant to help individuals with ladder logic basics.

Traffic Lights

Problem Statement:

Design a PLC ladder logic for the following application.

This is a basic traffic lights PLC program. We are using one toggle switch to control 3 Lights. Turn ON the following signals in sequence.

  • Green Light for 20 seconds,
  • Yellow Light for 5 seconds and
  • Red Light for 15 seconds.

PLC Tutorial Videos

Learn PLC programming in simple steps. Select the required PLC course on “Instrumentation Tools” YouTube channel and complete the training series.

This video explains the traffic lights PLC logic.

PLC Traffic Lights Ladder Diagram - Learning PLC Programming

Inputs and Outputs

Digital Inputs:

Start Button: I0.0

Digital Outputs:

Green: Q0.0

Yellow: Q0.1

Red: Q0.2

Ladder Diagram using Timers

Traffic Lights Ladder Diagram using Timers

Program Description

We have used Normally Open Contact for the Start Button(I0.0).

In Rung 0:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the output  Green (Q0.0).
  2. Timer TP is used to Turn ON the output Green (Q0.0) for a limited time.

In Rung 1:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the output Yellow (Q0.1).
  2. Timer TON is used to delay the turning ON time of the output Yellow (Q0.1) for some time.
  3. Timer TP is used to Turn ON the output Yellow (Q0.1) for a limited time.

In Rung 2:

  1. Normally Open Contact is used for the Start Button (I0.0) to Turn ON the output Red (Q0.2).
  2. Timer TON is used to delay the turning ON time of the output Red (Q0.2) for some time.
  3. Timer TP is used to Turn ON the output Red (Q0.2) for a limited time.

Program Testing

Let’s do the PLC program testing and observe the outputs status.

Rung 0:

When Start Button (I0.0) is turned ON, the signal will flow through Start Button (I0.0) as Normally Open Contact is used for Start Button (I0.0).

Traffic Signal Control with PLC Ladder Logic Programming

The output Green (Q0.0) turns ON for 20 seconds because Timer Function Block type TP is used to turn ON the output Green (Q0.0) for limited time and time is set to 20 seconds. After 20 seconds, the output Green (Q0.0) will turn OFF.

PLC Ladder Diagrams - Traffic Lights

Rung 1:

Traffic Signal Control with PLC Ladder Logic Programming

When Start Button(I0.0) is turned ON, the output Yellow (Q0.1) will turn ON after 20 s ( i.e immediately when the output Green (Q0.0) gets turned OFF) because Timer Function Block type TON is used to delay the turning ON time of the output Yellow (Q0.1) and the time is set to 20 seconds.

PLC Ladder Diagrams - Traffic Lights

The output Yellow (Q0.1) will remain ON only for 5 seconds as we have used Timer Function Block type TP to turn ON the output Yellow (Q0.1) only for limited time and the time is set to 5 seconds. So after 5 seconds, the output Yellow (Q0.1) will turn OFF.

traffic control using programmable logic

Rung 2:

PLC Ladder Diagrams - Traffic Lights

When Start Button(I0.0) is turned ON, the output Red (Q0.2) will turn ON after 25 seconds ( i.e immediately when the output Yellow (Q0.1) gets turned OFF) because Timer Function Block type TON is used to delay the turning ON time of the output Red (Q0.2) and the time is set to 25 seconds.

traffic control using programmable logic

After 25 seconds, the output Red (Q0.2) will turn ON. The output Red (Q0.2) will remain ON only for 15 seconds as we have used Timer Function Block type TP to turn ON the output Red (Q0.2) only for limited time and the time is set to 15 seconds. So after 15 seconds, the output Red (Q0.2) will turn OFF.

PLC Traffic Light Control System

If you liked this article, please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • 4 Way Traffic Light Control System
  • Siemens S7 CPU LED Status & Errors
  • PLC-to-PLC Communication Project
  • Data Sharing Between PLC Systems
  • One-Shot Rising and Falling Edge
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

How to Get a PLC Programming Job With NO Experience?
Remote Factory Acceptance Test
PLC Programming for Pumping and Draining System
Standard Colors in PLC Automation Systems
What is SCADA System?
Rockwell Automation Allen Bradley PLC for Smaller and Medium Projects
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Program for Alternate Output Circuit with Latched Function
PLC Ladder Logic for Lube Oil Pump Motor
Difference Between Normal Counters and Fast Counters – Learn PLC
PLC based Automatic Bell System for a School
Free SCADA Software Download
Instrumentation Earthing
Design a PLC program for Operational Sequence of Packaging Process
PLC Panel and MCC Panel Interface Signals

Keep Learning

PLC Program to Operate Stamping of Parts

PLC Application for Stamping Operation – Example Programming

MODBUS ASCII Communication Protocol Explained

MODBUS ASCII Communication Protocol Explained

80+ PLC MCQ

80+ PLC MCQ Questions

Multiple Pumps Control using PLC

Multiple Pumps Control using PLC

PLC Programming Best Practices and Tips

PLC Programming Best Practices and Tips

PLC Programming Example on Multi-Motor Control for Beginners

PLC Programming Example on Multi-Motor Control for Beginners

Convert Raw Counts to Engineering Units

Raw Counts to Engineering Units : Conversion Formula

PLC Temperature Control using Pulse Width Modulation

PLC Temperature Control using Pulse Width Modulation (PWM)

Learn More

Ideal Diode Characteristics

Ideal Diode Characteristics

What is an ELV System - Extra Low Voltage

What is an ELV System? – Extra Low Voltage

protective component or system

Safety Instrumented System Probability

Electrical Machines Questions and Answers

Synchronous Motor Power Factor Correction Questions

Control Algorithms in PLC Programming

Control Algorithms in PLC Programming

Leave Operational Logic in the PLC

#3 PLC Best Practices – Leave Operational Logic in the PLC wherever feasible

McLeod Gauge Working Principle

McLeod Gauge Working Principle

Compounded DC Generator

Compound Generators

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?