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
Notification Show More
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

Difference Between PNP and NPN Sensors
Scale and Normalize Instructions in PLC
Free InTouch SCADA Tutorial Course for Beginners
PLC based Automatic Bell System for a School
Communication between Factory IO and Siemens Tia Portal
What is a Wet Contact? – Basics of PLC Wiring
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 based Automatic Packaging System
Door Lock with Delay PLC Exercise Problems
VFD Pros and Cons – Variable Frequency Drives
Laws of Boolean Algebra using Ladder Logic
100 Electrical Circuit Breaker Quiz
PLC Mixing Logic in Liquids on EcoStruxure Machine Expert-Basic
Concept of DCS in Industrial Automation
Industrial Automation Pre-Engineering Design Documents – Project & Process

Keep Learning

Programmable Logic Controller Quiz

Programmable Logic Controller Quiz

OB10 Time of Day Interrupt

Tia Portal – OB10 Time of Day Interrupt Organization Block

Jog button in Motor Start Stop Logic using PLC

What is Motor Jogging ?

PLC Program for Conveyor System

PLC Conveyor Ladder Logic Program

Marshalling Panel

What is Marshalling Cabinet?

PLC Programmer Unknown Do's

Unknown Do’s Need to Know as a PLC Programmer

Redundant Power Supply

How Does Redundant Power Supply Work?

PLC Program for an Alternate output circuit

PLC Program for Alternate Output Circuit with Latched Function

Learn More

Time Response Analysis

State Variable Analysis – Part I

Using Kirchhoff’s Voltage Law to find Current with Multiple Battery Sources

Kirchhoff’s Laws

Electrical and Instrumentation Engineering Documents

Electrical and Instrumentation – Automation Pre-engineering Documents

Top 100 PLC Objective Questions and Answers

Top 100 PLC Objective Questions and Answers

Ball Valve Parts

What is Ball Valve ?

Flanged pipe fittings

What is Flanged Pipe Fittings ?

transformers-questions-answers-part-1

Transformers Questions & Answers Part-1

Power Electronics Objective Questions

PWM Inverters Objective Questions

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?