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: Functional Block Diagram PLC Example for Traffic Light System
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 > Functional Block Diagram PLC Example for Traffic Light System

Functional Block Diagram PLC Example for Traffic Light System

Learn about the traffic light system in PLC programming using a functional block diagram (FBD) with this example program.

Last updated: October 7, 2024 11:34 am
Viral Nagda
PLC Tutorials
1 Comment
Share
5 Min Read
SHARE

In PLC programming, as there are five programming languages, one of the most preferred and best ones out of them is a functional block diagram. Due to it’s block diagram representation, troubleshooting and viewing becomes very easy.

Contents
Traffic Light SystemFunctional Block Diagram PLC Example

Traffic Light System

One of the most common pieces of logic that every newcomer faces in his career is traffic light signal logic. The logic is taught to new PLC programmers as it uses a good amount of logic, and is not that simple. In this post, we will see traffic light logic in a functional block diagram.

First, let us see the test bench criteria and condition of the logic. As soon as the start button is pressed, the red light will turn on first for a set time of 10 seconds. After that time, the red light will turn off and the yellow light will turn on for a set time of 10 seconds.

After that time, the yellow light will turn off and the green light will turn on for a set time of 10 seconds. After that time, the green light will turn off and the red light will turn on again for a set time of 10 seconds.

The cycle repeats as long as the stop button is not pressed. If in any sequence, the stop button is pressed, then the whole logic will reset and all lamps will turn off. The cycle will start again from scratch once the start button is pressed again.

Functional Block Diagram PLC Example

Now that we have seen the question, let us come up with an answer using a functional block diagram. Refer to the below image for the logic written.

We have used two inputs – start and stop push buttons, three outputs – red, yellow, and green lamps, three timers – on timer for each lamp, and one internal variable – showing logic running or not.

Functional Block Diagram PLC Example for Traffic Light System

Now, let us start developing the logic. As per the first condition, when we press start, the red light turns on for a set time. So, we have set the light as shown with the S symbol in the image. At the same time, we set the internal variable of the running bit.

Now, we use the red lamp to turn on the red lamp timer for 10 seconds. The output bit of the timer is used to set the yellow lamp first and then reset the red lamp, shown as the R symbol. After this, the red lamp timer turns off.

Now, we use the yellow lamp to turn on the yellow lamp timer for 10 seconds. The output bit of the timer is used to set the green lamp first and then reset the yellow lamp. After this, the yellow lamp timer turns off.

Now, we use the green lamp to turn on the green lamp timer for 10 seconds. The output bit of the timer is used to set the red lamp first and then reset the green lamp. After this, the green lamp timer turns off and the cycle repeats.

We set the bit first, because if we reset first, then the timer too will turn off and the next bit will not set due to PLC scan time. So, in any logic, if we want to continue something, then first start the next one and then stop the preceding one.

As per the last condition of the question, by pressing the stop button, everything should reset. So, on this input, we have reset all the bits used in logic, to enable it to restart once again.

In this way, we have seen the traffic light logic using a functional block diagram.

Read Next:

  • Difference Between PLC and CNC Machine
  • Ladder Logic Test Questions and Answers
  • Traffic Light Control using PLC Ladder Logic
  • Traffic Lights Ladder Diagram using Timers
  • 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

Conveyor Sorting Machine PLC Program with Calculation Function
PLC Program to Drain Same Products from Two Tanks
How to do Scaling for Analog Input in RSLogix 500?
What are Functions in PLC Programming? (FCs)
PLC Program for Washing Machine
ON and OFF a Group of Outputs by One Push button PLC Logic
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • KRISHNA BALI says:
    January 20, 2025 at 3:20 pm

    Good education for training.

    Reply

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

XG5000 PLC Programming for Automatic Exhaust Fan
Speed Control of Pneumatic Cylinder (Explanation with PLC)
Timer in Studio 5000 – TON, TOF, RTO
What is Masking in PLC?
PLC Programming Example for Motor Forward and Reverse Control
Wood Sawing and Blower System: PLC Control Design
Best Practices of PLC Wiring – Programmable Logic Controller
Statement List (STL) to Find Highest Value

Keep Learning

PLC Conveyor Forward and Reverse Logic

Advanced PLC Conveyor Control: Forward and Reverse Rotation

Siemens TIA Portal Free Version Download

Siemens TIA Portal Free Version Download

PLC Control for Baking Machines Logic

PLC Programming for Baking with Auto and Manual Modes

Connect PLC with SCADA System via OPC UA

How to Connect PLC with SCADA System via OPC UA?

PLC Technique for IO Mapping

PLC Techniques for I/O Mapping

Things to Take Care of When Designing SCADA System

Things to Take Care of When Designing SCADA System

FIFO and LIFO Sequences in PLC

What are FIFO and LIFO Sequences in PLC?

Group of Induction Motors

How to Operate a Group of Induction Motors using PLC Logic?

Learn More

Hydraulic Actuator

Types of Valve Actuators

Power Electronics objective questions and answers

Top 50 Power Electronics Quiz

What is Loop Checking

What is Loop Checking?

Industry 4.0 Explained

Industry 4.0 Explained – Industrial Internet of Things

advantages-disadvantages-of-ac-and-dc-power-transmission

Advantages & Disadvantages of AC and DC Power Transmission

Forward Reverse Motor Control with Repeat Cycle Using PLC

Electric Motor Forward Reverse with Repeat Cycle PLC Logic

Centrifugal Compressor outage reduced

Centrifugal Compressor Outage Reduced – Root Cause Analysis

burner management system P&ID

Solenoid Valves Questions & Answers – 1

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?