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: PLC Program for Traffic Light Sequence using Functional Blocks
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 > PLC Program for Traffic Light Sequence using Functional Blocks

PLC Program for Traffic Light Sequence using Functional Blocks

Learn how to develop a PLC program for traffic light sequences using a functional block diagram. Improve your efficiency as a PLC programmer.

Last updated: January 7, 2025 2:21 pm
Viral Nagda
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

I have noticed a very common logic for PLC programmers to develop when they are new – a traffic light sequence. They try it in ladder logic and yes, it works. It is true that newcomers must first try to develop PLC programs in ladder logic, as it is easier to learn. But once they become proficient in it, they must try to use new languages which will reduce their task. One such language is a functional block diagram. In this post, we will see how to develop a PLC program for traffic light sequences using a functional block diagram.

PLC Program for Traffic Light Sequence

Let us understand the case first. We have three lights – red, yellow and green. They turn on after every fixed time interval, in the way that we see on streets. As long as the system is running, these lights will turn on and off in a sequence. The logic is simple to look at, but to make it more simpler, we will use a functional block diagram for the same.

We will use Studio 5000 PLC software for the same. Following are the PLC outputs – red lamp, yellow lamp and green lamp. Refer to the below image for the logic written.

PLC Program for Traffic Light Sequence using Functional Blocks

We will first write the PLC logic for the red lamp. Refer to the below image (in blue lines). The logic written is very simple. We are using TONR block, which allows the timer to reset forcefully. This is the main advantage of Studio 5000 software.

When the system is running, the red lamp turns on. It remains on till 5 seconds have not been completed. Once done, the output turns off.

Basic Traffic Light Sequence

We will next write the logic for the yellow lamp. Refer to the below image (in blue lines). The logic written is very simple. We are using TONR block, which allows the timer to reset forcefully.

When the system is running and the red lamp timer has been completed, the yellow lamp turns on. It remains on till 5 seconds have not been completed. Once done, the output turns off.

Traffic light control system using PLC project report

We will next write the logic for the green lamp. Refer to the below image (in blue lines). The logic written is very simple. We are using TONR block, which allows the timer to reset forcefully. When the system is running and the yellow lamp timer has been completed, the green lamp turns on. It remains on till 5 seconds have not been completed. Once done, the output turns off.

After the green lamp timer has been completed, the output of this timer is linked to the reset pins of all the timers. Due to this, the timer will reset and the sequence will start once again. In any case, if the system stops, then all the outputs and timers will become zero. This was solely possible due to TONR blocks, which made it easy to function.

In this way, we saw how to write a PLC program for traffic light sequences using a functional block diagram.

Read Next:

  • Light Sequences Structured Text PLC Program
  • Simple Conveyor Control PLC Program Example
  • Anti-static Wrist Straps in Industrial Automation
  • Basic PLC Conveyor System for Product Handling
  • PLC based 4 Way Traffic Light Control System
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

Bread Oven Control in Auto and Manual Modes PLC Program
UPS Working Principle and Types – Offline and Online UPS Systems
Distributed IO Sharing Between PLC Systems – Technical Insights
Learn about SCADA and HMI Systems
How Engineers Effectively do Problem-solve and Troubleshoot?
PLC Timers Program
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

Which Language is Best for PLC Programming?
Allen Bradley Powerflex VFD
PLC Simulator using Excel
What is PCS 7?
How to Operate a Group of Induction Motors using PLC Logic?
#11 PLC Best Practices – Instrument for Plausibility Checks
Difference between Motion Controller and PLC
Basic Conveyor System for Product Handling in Omron PLC

Keep Learning

Single-Acting Cylinder Control Operation using Proximity Sensor

Single-Acting Cylinder Control using Proximity Sensor

Difference Between PLC and SCADA

Difference Between PLC and SCADA

Run 4 Motors Sequentially from Same Push button PLC Program

Run 4 Motors Sequentially from Same Push button PLC Program

Automating Car Parking with Advanced PLC Logic

Complex Car Parking Logic in XG5000 LS Electric PLC

Redundant system communication cable

What is Interface Module in Siemens PLC?

Two Hand Press PLC

Two Hand Press Safety Control Circuit

PLC Power Supply and Operating Voltages

PLC Power Supply and Operating Voltages

Car Parking System using PLC Programming

Car Parking System using PLC Programming

Learn More

Demo of a SCADA Software – Level Control System

energy-diagrams-for-insulator-semiconductor-and-conductor

Band Gap for Semiconductor Materials

Electrical Resistance Temperature Curves of RTD

Resistance Temperature Detectors (RTD) Construction

Basic Requirements of Sizing the Control Valves

Basic Requirements of Control Valves Sizing

Comparator used in Siemens S7-1200 PLC.

Siemens PLC Comparator Logic

Cut-outs between Platforms or Grating for Field Instruments

Cut-outs between Platforms or Grating for Field Instruments

Capacitive Field Effects on Conductors-4

Capacitive Coupling Effects

Procedure for the Repair of Control Valve

Basic Steps and Procedure for the Repair of Control Valve

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?