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: Automated Garage Gate Control – PLC Ladder Logic
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 > Automated Garage Gate Control – PLC Ladder Logic

Automated Garage Gate Control – PLC Ladder Logic

Automated garage gate control system to open or close the gate whenever car arrives or leaves using sensors and PLC ladder logic.

Last updated: May 14, 2024 3:48 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

Automated garage gate control system to open or close the gate whenever car arrives or leaves using sensors and PLC ladder logic.

Contents
Automated Garage Gate ControlAutomation Training VideosInputs and OutputsPLC Ladder LogicLogic ExplainedSimulation ResultsWhen P-Sensor detects a car or When a car arrivesIf the car leaves within 1 minute and P-Sensor detects a car again When the status is Parking Paid

Note: Please acknowledge that this program is for educational resource for comprehending ladder logic with accessible applications.

Automated Garage Gate Control

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one Sensor & “Parking Paid” status to control the Garage Gate.

When a Car arrives then open the gate for 10 seconds. If the car leaves within 1 minute, then the gate opens automatically.

After 1 minute, the gate will be opened when the status is “parking paid”.

Automation Training Videos

Instrumentation Tools provides you the best automation training videos for you.

This video explains the garage gate application for car parking.

PLC Programming Examples - Garage Gate Timer

Inputs and Outputs

Digital Inputs:

Sensor: I0.0

Parking Paid: I0.1

Digital Outputs:

Garage Gate: Q0.0

PLC Ladder Logic

Automated Garage Gate Control - PLC Ladder Logic

Logic Explained

We have used Normally Open Contacts for P-Sensor(I0.0), Parking Paid (I0.1) 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 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-type 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) to Turn ON Memory Bit 3(M2).
  2. Timer-type TON is used to delay the turning ON time of Memory Bit 3(M2) for some time.

In Rung 3:

  1. Normally Open Contact is used for Memory Bit 2 (M1), Memory Bit 3 (M2), P-Sensor (I0.0), and Parking Paid (I0.1) to Turn ON  the output Garage Gate (Q0.0).
  2. Memory Bit 2 (M1), Memory Bit 3 (M2) + P-Sensor (I0.0), and Parking Paid (I0.1) are connected in parallel, thus implementing OR Logic Gate.
  3. Memory Bit 3 (M2) and P-Sensor (I0.0) are connected in series, thus implementing AND Logic Gate.

Simulation Results

We will see the results of the PLC program simulation. We may show the partial logic code instead of all rungs in the below test cases.

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 car has arrived as Memory bits stores 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.

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

PLC gate control system
Parking gate PLC logic

After 10 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 Garage Gate (Q0.0) will be in True State and will pass the signal to turn ON the output Garage Gate (Q0.0) (Gate Opens).

In Rung1, when Timer Function Block type TP reaches its set time i.e 10 s, Memory Bit 2 (M1) will turn OFF in both Rung1 and Rung3, and when Memory Bit 2 (M1) turns OFF in Rung3, the output Garage Gate (Q0.0) turns OFF (Gate Closes).

If the car leaves within 1 minute and P-Sensor detects a car again

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 60 seconds as Timer Function Block type TON is used to delay the turning ON time of the Memory Bit 3 (M2). The time is set to 60 seconds. 

PLC gate control system
Gate control with sensor

So after 60 seconds, Memory Bit 3 (M2) turns ON.  When Memory Bit 3 ( M2) turns ON in Rung2 or ( Car leaves within 1 minute), Normally Open Contact used for Memory Bit 3 (M2) in Rung3 used to turn ON the output Garage Gate (Q0.0) will be in True State and P-sensor (I0.0) detects a car, the output Garage Gate (Q0.0) will turn ON (Q0.0) (Gate Opens).

Parking gate sensor logic

 When the status is Parking Paid

When Parking Paid (I0.1) is turned ON or (when status parking paid) and P-Sensor is turned ON ( P-Sensor detects a car), the output Garage Gate (Q0.0) will turn ON or ( Gate opens).

Car entry automation

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:

  • Up Down Counter Instruction in PLC Logic
  • Cars Garage Counter From the Same Door
  • PLC Logic Auto Sugar Bag Filling Station
  • SCADA Level Control System Software
  • PLC Programming Two-Hand Control
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

100 Electrical Circuit Breaker Quiz
Instrumentation Engineer in Process Plant Project
PLC Program for Automatic Bottle Rejection System
PLC Programming for Train Detection and Gate Operation
PLC Programming for 3 Motors control in Ladder logic
Siemens S7-300 CPU Suffix Explanation
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

Modbus Communication between PLC and Energy Meter
How to Take Program Backup from Physical PLC? – Siemens PLC
Types of Interlocks
What is Function Module in Siemens PLC?
PLC Program for Motor Starter
Features of SCADA
Ladder Logic Programming Examples
Instrumentation System Architecture

Keep Learning

PID with Practical Example

PID with Practical Example

PLC Programming for Weight-Based Packaging

PLC Programming for Weight-Based Packaging

Communicate between the PLC program and HMI program

Design a Program Using Studio 5000 and FactoryTalk View Studio

Motor Library in Studio 5000 PLC

Create User-Defined Data Types and Function Blocks in Studio 5000

Do’s and Don'ts in PLC

Do’s and Don’ts in PLC

PLC Count values higher than 999

PLC Count values higher than 999

Intrinsic Safety Barriers

Intrinsically Safe Barriers Questions and Answers

Anti-static Wrist Straps

Anti-static Wrist Straps in Industrial Automation

Learn More

Keyphasor Principle

What is Keyphasor ? How does Keyphasor works ?

Allen Bradley PLC ControlLogix Hardware

Allen Bradley PLC ControlLogix Hardware

SCADA backup too has been configured

FactoryTalk Studio and SQL Server for Data Logging

Auto Recloser Circuit Breaker in Power System

Auto Recloser Circuit Breaker in Power System

Conductivity Analyzer Principle

Conductivity Analyzers Interview Questions & Answers

Power Electronics Objective Questions

Power Transistor Objective Questions

Electrical Machines Objective Questions

Electrical Machines MCQ Series 19

Valve Face to Face Dimension

Face to Face Dimension of Control Valve

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?