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 Programming for Traffic Barrier Control
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 Programming for Traffic Barrier Control

PLC Programming for Traffic Barrier Control

PLC programming for traffic barrier control to raise or lower the barrier whenever the vehicle arrives or departures.

Last updated: June 10, 2024 2:59 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

PLC programming for traffic barrier control to raise or lower the barrier whenever the vehicle arrives or departures.

Contents
Traffic Barrier ControlIndustrial PLC Training VideoInputs and OutputsPLC ProgrammingProgram DescriptionSimulationWhen P-Sensor detects a car or When a car arrives:If the P-Sensor detects a car again or If the barrier hits during lowering:

Disclaimer: We advise individuals to approach this PLC programming example with the understanding that it is designed for educational purposes and for learning the ladder logic principles through practical exercises.

Traffic Barrier Control

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one toggle switch to control the Barrier.

When a vehicle arrives, raise the barrier for 20 seconds, and after that lower the barrier.

If the barrier hits during lowering, immediately raise the barrier for 5 seconds again.

Industrial PLC Training Video

Industrial PLC training videos help beginners learn different manufacturers’ PLC programming.

Inputs and Outputs

Digital Inputs:

P-Sensor: I0.0

Digital Outputs:

Barrier: Q0.0

PLC Programming

Traffic Barrier Control

Program Description

We have used Normally Open Contacts for P-Sensor(I0.0) and Memory Bits.

In Rung 0:

  1. Normally Open Contact is used for P-Sensor (I0.0) to Turn ON Memory Bit 1 (M0).
  2. Memory Bit 1 (M0) is latched so that when the P-sensor (I0.0) turns OFF, Memory Bit 1 (M0) still remains ON.

In Rung 1:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON Memory Bit 2 (M1).
  2. Timer TP is used to Turn ON Memory Bit 2 (M1) for a limited time.

In Rung 2:

  1. Normally Open Contact is used for Memory Bit 1 (M0) and  P-Sensor(I0.0)  to Turn ON Memory Bit 3(M2).
  2. Timer TON is used to delay the turning ON time of Memory Bit 3(M2) for some time.
  3. Timer TP is used to Turn ON Memory Bit 3(M2) for a limited time.

In Rung 3:

  1. Normally Open Contact is used for Memory Bit 2 (M1) and  Memory Bit 3 (M2)  to Turn ON  the output Barrier (Q0.0).
  2. Memory Bit 2 (M1) and  Memory Bit 3 (M2) are connected in parallel, thus implementing OR Logic Gate.

Simulation

Now we simulate the above PLC program and see its result with different input statuses.

When P-Sensor detects a car or When a car arrives:

When P-Sensor (I0.0) detects a car ( when a car arrives), Memory Bit 1 (M0) turns ON and stores the data that the car has arrived as Memory bits store the data. Memory Bit 1 (M0) is latched so that when the P-sensor (I0.0) turns OFF, Memory Bit 1 (M0) still remains ON.

Vehicle detection barrier control

When Memory Bit 1 (M0) turns ON in Rung0, Normally Open Contact used for Memory Bit 1 (M0) in Rung1 will be in True State and will pass the signal to turn ON Memory Bit 2 (M1) but only for 20 seconds as Timer Function Block type TP is used to turn ON the Memory Bit 2 (M1) for Limited time. The time is set to 20 seconds. After 20 seconds, Memory Bit 2 (M1) will turn OFF.

When Memory Bit 2 ( M1) turns ON in Rung1, Normally Open Contact used for Memory Bit 2 (M1) in Rung3 used to turn ON the output Barrier (Q0.0) will be in True State and will pass the signal to turn ON the output Barrier (Q0.0) (Barrier Raised).

In Rung1, when Timer Function Block type TP reaches its set time i.e 20 seconds, Memory Bit 2 (M1) will turn OFF in both Rung1 & Rung3, and when Memory Bit 2 (M1) turns OFF in Rung3, the output Barrier (Q0.0) turns OFF ( Barrier starts lowering).

If the P-Sensor detects a car again or If the barrier hits during lowering:

When Memory Bit 1 (M0) turns ON in Rung0, Normally Open Contact used for Memory Bit 1 (M0) in Rung2 will be in True State and will pass the signal to turn ON Memory Bit 3 (M2) after 20 seconds ( i.e immediately when Memory Bit 2 (M1) turns OFF in Rung1 as Timer Function Block type TON is used to delay the turning ON time of the Memory Bit 3 (M2) and when P-Sensor detects a car again or ( when barrier hits during lowering).

PLC programming for barrier control

So after 20 seconds when the P-sensor detects a car again or ( barrier hits during lowering), Memory Bit 3 (M2) turns ON for 5 seconds because Timer Function Block type TP is used to turn ON the Memory Bit 3 (M2) for a Limited time. The time is set to 5 seconds. After 5 seconds, Memory Bit 3 (M2) will turn OFF.

Barrier automation with PLC

When Memory Bit 3 ( M2) turns ON in Rung2, Normally Open Contact used for Memory Bit 3 (M2) in Rung3 used to turn ON the output Barrier (Q0.0) will be in True State and will pass the signal to turn ON the output Barrier (Q0.0) (Barrier Raised).

PLC logic for barrier operation and safety

In Rung2, when Timer Function Block type TP reaches its set time i.e 5 seconds, Memory Bit 3 (M2) will turn OFF in both Rung2 & Rung3 and when Memory Bit 3 (M2) turns OFF in Rung3, the output Barrier (Q0.0) turns OFF ( Barrier starts lowering).

If you liked this article, please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • What is a Retro-Reflective Sensor?
  • PLC Examples Industrial Automation
  • PLC Retrofitting Project Importance
  • VFD Interview Questions and Answers
  • Multi-touch Technology Automation
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 Retrieve PLC Project From Memory Card?
Troubleshooting a 4-20mA Current loop
Communication between Wincc and Tia Portal
Program Flow Control Instructions in PLC Programming
MCQ on PLC (Programmable Logic Controller)
PLC Logic GATE 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

How to Create DFB in Schneider PLC? – Derived Function Block
Relay circuits
Difference between Power Cables and Signal Cables
PLC Trainer Demo Download
PLC based Automatic Bell System for a School
Compare Online and Offline PLC Programs
Free Mitsubishi PLC Online Training Course and Tutorials
What are High-Speed Inputs in PLC?

Keep Learning

OpenPLC - PLC Training for Students - Free Tutorials & Courses

OpenPLC – PLC Training for Students – Free Tutorials & Courses

PLC Ladder Logic Chemical Mixing Process

Chemical Mixing Process using PLC

Sticker machine with weighing PLC logic

Product Sticker Machine with Weighing PLC Program

Midline output instruction

What is Midline Instruction in Siemens PLC?

PLC based Auto Manual Operation of Roll down Shutters

PLC based Auto/Manual Operation of Roll down Shutters in Industry

Introduction to SCADA

Structured Text Automatic Gate Logic

Structured Text PLC Programming for Automatic Gate Control

Conveyor Sorting Machine PLC Program

Conveyor Sorting Machine PLC Program with Calculation Function

Learn More

Capacitive Level Switch Principle

Capacitive Level Switch Principle

PLC Program for Sequential Motor Control

PLC Program for Sequential Motor Control

How Much Pressure indicated by Micromanometer

How Much Pressure Indicated by Micromanometer?

Seebeck Effect

Seebeck Effect Theory

Simple High Level Indicator Circuit

Simple High Level Indicator Circuit

Radiometric level Principle

Radiometric level measurement Working Principle

Vacuum Tubes Multiple Choice Questions and Answers

Vacuum Tubes Multiple Choice Questions and Answers

Protection Relays Interview Questions & Answers

Protection Relays Interview Questions & Answers

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?