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

PLC Program for 2 Push buttons to Control 1 Output
FC Function in Siemens PLC
#14 PLC Best Practices – Restrict Third-party Data Interfaces
Difference between Power Cables and Signal Cables
#10 PLC Best Practices – Assign Register Blocks by Function
PLC Automatic Door Control System – Programming Example
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

What is Masking in PLC?
Automatic Sanitizer – Complex Ladder Logic PLC Examples
Examples of SCADA and PLC Configuration Systems
XG5000 Example of Simple Conveyor Control PLC Program
PLC Automatic Pedal Switch for Speed Control
What is a Retro-Reflective Sensor? – Principle, Applications
Drive Multiple Speeds with Different Reference using PLC
Download a Ladder logic program to GE PLC

Keep Learning

Faceplate in WinCC

Siemens HMI Training – Using UDTs with Faceplates

Field Instruments

#11 PLC Best Practices – Instrument for Plausibility Checks

DCS Vs PLC

Difference between DCS & PLC Systems

SCADA System Vulnerabilities

SCADA System Vulnerabilities

PLC Latched Circuit Example

PLC Latching Function

Motor Clock Wise Operation using PLC

CW and CCW Operation of Motor from Same Push button

TON Timer in RSlogix

Why is RTO used in the Place of TON Timer?

Master Control Reset (MCR) ladder logic

How to use Master Control Reset (MCR) Instruction in PLC

Learn More

Advanced Skills Required for a PLC Programmer to Get a Job

Advanced Skills Required for a PLC Programmer to Get a Job

Digital Electronics Multiple Choice Questions

Emitter-Coupled Logic (ECL) Objective Questions

PLC Timer Programming Examples on Coffee Machine

PLC Timer Practice Exercise: Coffee Machine Programming

Jog button in Motor Start Stop Logic using PLC

Jog Function in Motor Start Stop Logic using PLC

thermocouple Transmitter Formula

Calculate Process Temperature using a Thermocouple

Yokogawa DCS Tutorials - Configuration of Analog Input (Transmitter)

Yokogawa DCS Tutorials – Configuration of Analog Input (Transmitter)

PLC Automatic Irrigation System Ladder Logic Project

PLC Automatic Irrigation System

How to Find the Correct Solenoid Valve Size

How to Find the Correct Solenoid Valve Size?

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?