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

MOVE Instruction in PLC – What You Need to Know?
PLC Sequential Operation Example Program
Upgrading and Migration of PLC Systems
PLC Emergency Stop Example Program
Siemens S7 1200 PLC configuration in TIA Portal
Emergency Stop Switch Spurious Trip
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

PLC based Metro Automation Project
Automatic Door Operation PLC Programming and Simulation
PLC Counters Program
SCADA Communication and Protocols
PLC Program for Automatic Liquid Mixing Application
PLC Important Questions and Answers
Check Block Consistency Tools in Simatic Manager
What is Complementary Split Range Control (CSRC)?

Keep Learning

PLC program for VFD Drive Multiple Speeds

Drive Multiple Speeds with Different Reference using PLC

Download Free HMI software – CODESYS

Applications of SCADA

How Weigh Feeder Works

How Weigh Feeder Works ?

PLC Cabinet

PLC Programming Videos

PLC Control for Baking Machines Logic

PLC Programming for Baking with Auto and Manual Modes

Free Siemens PLC Training Course

Free Siemens PLC Training Course

Allen Bradley Powerflex VFD

Allen Bradley Powerflex VFD

Learn More

bus-with-spurs-topology

Different Fieldbus Network Topologies

Automation in the Construction Industry

Automation in the Construction Industry

Displacer Type Density Transmitter

Displacer Type Density Transmitter Question

Humming Sound in Transformer

Why is the Humming Sound Produced in Transformer?

SCADA Run

PLC Based Industrial Conveyor Ladder Logic

pressure-switch-calibration-procedure

Pressure Switch Calibration Procedure

Interface level Measurement

Interface Level Measurement using DP Transmitter

HART Layers vs OSI Layers

HART Communication Tutorial Part 3

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?