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
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

How to Use Encode and Decode Instructions in PLC ?
Automated Test Bench – Complex PLC Programming Examples
Toggle Switch & Sensor: Conveyor and Puncher PLC Program
Basics of Motion Controllers
Configuration of Siemens VFD Using TIA Portal Start drive
FOR DO Statement in SCL Language
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 Counting Moving Objects on Conveyor
Coil Type Timers in Siemens PLC Programming
100 PLC Quiz Questions : True or False
How is Data Stored in Standard Modbus Protocol?
Motor Control Signal Interface
Pause the Timer PLC Ladder Logic
How to Create New Project Using Simatic Manager
Developing PLC Logic for Water Pumping and Chemical Addition

Keep Learning

Connect PLC with SCADA System via OPC UA

How to Connect PLC with SCADA System via OPC UA?

Studio 5000 Logix Emulate

Simulation of Studio 5000 and FactoryTalk View Studio

Batch mixing process automation with Omron PLC

Automate Batch Mixing with Repeated Cycles in Omron PLC

HMI

Learn about SCADA and HMI Systems

Top 100 PLC Projects List

Top 100 PLC Projects List

PLC Emergency Stop Example Program

PLC Emergency Stop Example Program

STL Programming - SET, RESET, ASSIGN

STL Programming – SET, RESET, ASSIGN

What is Profinet and How to Configure in Siemens PLC

What is Profinet and How to Configure in Siemens PLC?

Learn More

pi filter Operation

pi filter Operation

HART Communication Problems

HART Communication Problems

Confined Space

9 Life-Saving Rules for Oil and Gas Industry

Infrastructure Monitoring in Your Business Operations

Infrastructure Monitoring in Your Business Operations

Power Triangle

Apparent Power, True Power, Reactive Power & Total Power

Orifice Specifications

Orifice Flow Meters: Detailed Specifications

Air Circuit Breaker Principle

High Voltage Circuit Breaker Principle

SinkingOutput

Difference Between the Sinking and Sourcing?

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?