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

Difference Between Static and Temp Memory in Siemens PLC TIA Portal
PLC Compressor Control Ladder Logic
Troubleshooting PLC Permissive Inputs
OB1 – Main Cyclic Organization Block in TIA Portal
Design a Program Using Studio 5000 and FactoryTalk View Studio
Electric Motor Forward Reverse with Repeat Cycle PLC Logic
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

Check Block Consistency Tools in Simatic Manager
Concept of DCS in Industrial Automation
Seven Segment Display Programming with Structured Text
Siemens PLC programming: BCD, Integer, Double Integer, Real
Door Lock with Delay PLC Exercise Problems
Studio 5000 Tutorial: PLC Programming for Digital Alarms
Shutter Door Control using Motor and Limit Switches
Ladder Logic Example of Two Motors Interlinked with another Motor

Keep Learning

Water Fountain Control Logic

Water Fountain Control Logic – PLC Exercises and Solutions

S7 Organizational blocks

Siemens PLC Tia Portal – OB100 Start-up Organization Block

PLC FBD Example for Tank Liquid Heating Control by Steam Flow

PLC FBD Example for Tank Liquid Heating Control by Steam Flow

Top PLC Manufacturers

Top PLC Manufacturers

Rack Type PLC

PLC Input Output Modules

Create Ladder Diagram from Boolean Logic

Create Ladder Diagram from Boolean Logic

Simatic Prosave HMI

How to Backup and Restore from Simatic Prosave HMI?

Using Clock Memory Bits in TIA Portal - Siemens PLC

Using Clock Memory Bits in TIA Portal – Siemens PLC

Learn More

Magnetic Flow Meter Corrosion Effects

Magnetic Flow Meter Corrosion Effects

Motor ON OFF Logic in PLC

Motor ON OFF Logic in PLC

Power Electronics Objective Questions

Dual Converters Objective Questions

Transmission and Distribution Objective Questions and Answers

175+ Transmission and Distribution Objective Questions and Answers

GSM Based Projects

GSM Based Projects – Ideas and Topics

How to Solve Cable Tray Sagging

How to Solve Cable Tray Sagging ?

Process-Variable-to-Percentage-Conversion

Formula for Process Variable to Percentage Conversion

Simatic 300 Station Configuration

Monitor and Modify Variables in Simatic Manager

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?