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

Difference Between FC and FB in Tia Portal
Learn PLC in Hindi
PLC Program for Water Level Control Logic
How to Take Program Backup from Physical PLC? – Siemens PLC
Difference between DCS, PLC, and RTU ?
Programmable Logic Controller Practice Tests
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

STL Programming – SET, RESET, ASSIGN
PLC Programming for Loss in Weight Liquid Systems
How to Download EcoStruxure Machine Expert? Schneider PLC Software
MODBUS ASCII Communication Protocol Explained
Understanding Braking Theory in VFD
PLC Analog Input Scaling
OPC in Old PLC Systems
Smart Spray System using Wecon PLC

Keep Learning

Yokogawa DCS

Yokogawa DCS and SIS System Architecture

Types of Interrupts Organization Blocks in Tia Portal

Types of Interrupt OB in Siemens Tia Portal

PLC Math instructions

PLC Math instructions

PLC program for VFD Drive Multiple Speeds

Drive Multiple Speeds with Different Reference using PLC

Siemens SIMATIC S7 PLC GSD File

How to import GSD files into the TIA Portal? – Siemens PLC

High-Speed and Fast Counters in PLC

What are High-Speed Counters and Fast Counters in PLC?

Introduction to Schneider PLC

Different Types of Schneider PLC

Trolley and hoist PLC control

PLC Crane Movement Control with Limit Switches

Learn More

Hydraulic Motor Forward and Reverse Control with Simulation

Hydraulic Motor Forward and Reverse Control with Simulation

Difference Between Squirrel Cage and Slip Ring Motors

Circulating Pump

What is a Circulating Pump?

What is an Automated Guided Vehicle

What is an Automated Guided Vehicle?

mass spectrometer sample system

Mass Spectrometer Working Principle

Ground Detector Lamp Method Principle

Ground Detector Principle

DP type Flow Transmitter Calibration

DP type Flow Transmitter Preventive Maintenance and Calibration

How to program a running hours meter in PLC

Allen Bradley Studio 5000: Motor Running Hours PLC Program

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?