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

Traffic Barrier Control - PLC Examples Problems and Solutions

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

Allen Bradley Bitwise Logical Operations
Attendance System PLC Program using CX-Programmer
Yokogawa DCS Tutorials – Configuration of Analog Input (Transmitter)
Programmable Logic Controller Maintenance Check Points
Seven Segment Display Programming with Structured Text
PLC Alarm and Trip Documentation
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

Top Automation Vendors from Around the World – An Overview
What is Live Zero in 4-20 mA Current Loop?
PLC Structured Text Program for Light Sequences via Timers
VFD Pros and Cons – Variable Frequency Drives
Difference Between FC and FB in Tia Portal
PLC Program for Blinking Lamp on 5 Seconds Interval
Introduction to PLC Ladder Diagrams
How-to do Security of SCADA Systems?

Keep Learning

PLC Program for Boolean Expression

PLC Program for Boolean Expression

Electrical Circuit Breaker Quiz

100 Electrical Circuit Breaker Quiz

Tanks Draining Control in PLC using Functional Block Diagram

Tanks Draining Control in PLC using Functional Block Diagram

Multi Way Switches using PLC

Making Multi Way Switches using PLC

Data Handling Instructions in PLC Programming

Data Handling Instructions in PLC Programming

How CPU Execute Program in Siemens PLC?

How CPU Execute Program in Siemens PLC?

Do’s and Don'ts in PLC

#18 PLC Best Practices – Store PLC Hard Stop Events from Faults

How to choose between PLC and DCS Systems

How to choose between PLC and DCS Systems ?

Learn More

Two-Conveyor PLC Control System

Basic Conveyor System for Product Handling in Omron PLC

Squirrel Cage Induction Motor vs Slip Ring Induction Motor

Linear to Square Root Extraction

List of 100 Sensors and Transducers Questions

List of 100 Sensors and Transducers Questions

Solenoid Valves Selection Guidelines

Solenoid Valves Selection Guidelines

Instrumentation Engineering Quiz

Instrumentation Engineering Quiz – Set 2

remote seal capillary type dp transmitter

Closed Tank Remote Seal Capillary type DP Transmitter

Data Protection Tips

8 Data Protection Tips For Businesses And Individuals

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?