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: Siemens PLC Project: Automatic Parking with Vehicle Counter
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 > Siemens PLC Project: Automatic Parking with Vehicle Counter

Siemens PLC Project: Automatic Parking with Vehicle Counter

Learn how to build an automatic parking system with real-time vehicle counter using Siemens PLC and TIA Portal project.

Last updated: July 7, 2025 4:55 pm
Editorial Staff
PLC Tutorials
No Comments
Share
10 Min Read
SHARE

This article discusses an Automatic Parking System equipped with a vehicle counting function using Siemens TIA-Portal. The system is designed to efficiently manage parking areas with two operational modes: automatic and manual. In manual mode, the operator can Open or Close the parking gate using the control buttons. The system can detect vehicles entering and exiting, record the number of vehicles in real-time, and ensure that the parking capacity is not exceeded. Additionally, the system is equipped with indicators to display the parking condition, whether it is full or when empty slots are available.

Contents
Program ObjectiveProgram Inputs and OutputsAutomatic Parking with Vehicle Counter

Program Objective

Siemens PLC Project Automatic Parking with Vehicle Counter

Parking System Steps:

  1. System Initialization:
    • The system is configured with an initial parking capacity of 30 slots.
    • The system is in Standby mode and ready to operate.
  2. Vehicle Entry Process:
    • A vehicle approaches the Entry Gate, and the automatic sensor detects its presence.
    • If parking slots are available, the Green indicator Lamp will turn On, the gate will Open automatically, the vehicle is allowed to enter, and the system will add (+1) to the vehicle Counter.
    • If the parking area is full, the Red indicator Lamp will turn On, and the gate will remain closed.
  3. Vehicle Exit Process:
    • A vehicle approaches the Exit Gate, and the automatic sensor detects its presence.
    • The gate will open automatically, the vehicle exits, and the system will subtract (-1) from the vehicle Counter.
  4. Parking Capacity Management:
    • The system ensures that the number of vehicles inside the parking area does not exceed the maximum capacity.
    • If the parking area is full, the Entry Gate will not Open until a vehicle exits.
  5. Manual Mode:
    • The system can be operated manually using the UP/Down buttons to Open or Close the gate.
  6. Alarm and Indicators:
    • The Green indicator Lamp will turn On if parking slots are available.
    • The Red indicator Lamp will turn On if the parking area is full.

Program Inputs and Outputs

S.No.CommentInput (I)Output(Q)Memory BitMemory Word
1PB_STARTI0.0   
2PB_STOPI0.1   
3AUTO/MANUALI0.2   
4PB_UPI0.3   
5LS_HIGHI0.4   
6PB_DOWNI0.5   
7LS_LOWI0.6   
8SENS_CAR_1I0.7   
9SENS_CAR_2I1.0   
10RESET_COUNTERI1.1   
11GATE_UP Q0.0  
12GATE_DOWN Q0.1  
13LAMP_GREEN Q0.2  
14LAMP_RED Q0.3  
15CAR_COUNT   MW0
16SYSTEM_ON  M2.0 
17GATE_UP_MANUAL  M2.1 
18GATE_DOWN_MANUAL  M2.2 
19GATE_UP_AUTO_IN  M2.3 
20GATE_DOWN_AUTO_IN  M2.4 
21GATE_UP_AUTO_OUT  M2.5 
22GATE_DOWN_AUTO_OUT  M2.6 
23INTERLOCK_CAR_IN  M2.7 
24INTERLOCK_CAR_OUT  M3.0 
25IR1_SENS_CAR_1  M3.1 
26IR2_SENS_CAR_1  M3.2 
27IR1_SENS_CAR_2  M3.3 
28IR2_SENS_CAR_2  M3.4 

Automatic Parking with Vehicle Counter

Siemens PLC parking system project

NETWORK 1 (SYSTEM_ON)

In this network, when the PB_START (I0.0) button is Pressed, the memory bit SYSTEM_ON (M2.0) will be in the HIGH state. The memory bit SYSTEM_ON (M2.0) will remain in the HIGH state even though the PB_START (I0.0) button has been Released. Because it uses Latching.

If the PB_STOP (I0.1) button is Pressed, the memory bit SYSTEM_ON (M2.0) will be in the LOW state.

NETWORK 2 (MANUAL MODE)

In this Network, when the NO contact of the memory bit SYSTEM_ON (M2.0) and the AUTO/MANUAL (I0.2) selector switch are in the HIGH state, and the PB_UP (I0.3) button has been Pressed, the memory bit GATE_UP_MANUAL (M2.1) will be in the HIGH state.

When the limit switch LS_HIGH (I0.4) is in the HIGH state, the memory bit GATE_UP_MANUAL (M2.1) will be in the LOW state.

When the NO contact of the memory bit SYSTEM_ON (M2.0) and AUTO/MANUAL (I0.2) selector switch is in the HIGH state and the PB_DOWN (I0.5) button has been Pressed, the memory bit GATE_DOWN_MANUAL (M2.2) will be in the HIGH state.

When the limit switch LS_LOW (I0.6) is in the HIGH state, the memory bit GATE_DOWN_MANUAL (M2.2) will be in the LOW state.

Real-time vehicle counter with Siemens PLC

NETWORK 3 (CAR IN AUTO)

In this network, when the NO contact of the memory bit SYSTEM_ON (M2.0) and the SENS_CAR_1 (I0.7) sensor in the HIGH state and the value of the memory word CAR_COUNT (MW0) is Less Than Or Equal To “30”, then the memory bit GATE_UP_AUTO_IN (M2.3) and INTERLOCK_CAR_IN(M2.7) will be in the HIGH state.

If the NO contact of the limit switch LS_HIGH (I0.4) is in the HIGH state, then the memory bit GATE_UP_AUTO_IN (M2.3) will be in the LOW state.

When the NO contact of the memory bit SYSTEM_ON (M2.0) and the sensor SENS_CAR_2 (I1.0) are in the HIGH state and the value of the memory word CAR_COUNT (MW0) is Less Than Or Equal To “30”, then the memory bit GATE_DOWN_AUTO_IN (M2.4) will be in the HIGH state.

If the NO contact of the limit switch LS_LOW (I0.6) is in the HIGH state, then the memory bit GATE_DOWN_AUTO_IN (M2.4) will be in the LOW state.

When the NO contact of the SENS_CAR_2 (I1.0) sensor changes to the LOW state, the memory bit INTERLOCK_CAR_IN (M2.7) will become LOW state.

Siemens PLC car parking gate automation

NETWORK 4 (CAR OUT AUTO)

In this network, when the NO contact of the memory bit SYSTEM_ON (M2.0) and the SENS_CAR_2 (I1.0) sensor are in the HIGH state, then the memory bit GATE_UP_AUTO_OUT (M2.5) and INTERLOCK_CAR_OUT (M3.0) will be in the HIGH state. state.

If the NO contact of the limit switch LS_HIGH (I0.4) is in the HIGH state, then the memory bit GATE_UP_AUTO_OUT (M2.5) will be in the LOW state.

When the NO contact of the memory bit SYSTEM_ON (M2.0) and the SENS_CAR_1 (I0.7) sensor are in the HIGH state, the memory bit GATE_DOWN_AUTO_OUT (M2.6) will be in the HIGH state.

If the NO contact of the limit switch LS_LOW (I0.6) is in the HIGH state, then the memory bit GATE_DOWN_AUTO_OUT (M2.6) will be in the LOW state.

When the NO contact of the SENS_CAR_1 (I0.7) sensor changes to the LOW state, the memory bit INTERLOCK_CAR_OUT (M3.0) will become LOW state.

Automation project for parking control

NETWORK 5 (COUNTER)

In this network, the value in the memory word CAR_COUNT (MW0) will increase (+1) if the NO contact of the memory bits SYSTEM_ON (M2.0) and GATE_UP_AUTO_IN (M2.3) are in the HIGH state.

And the value in the memory word CAR_COUNT (MW0) will decrease (-1) if the NO contact of the memory bit SYSTEM_ON (M2.0) and GATE_UP_AUTO_OUT (M2.5) is in the HIGH state.

The value in the memory word CAR_COUNT (MW0) will be reset to the zero value “0” when the NO contact of the memory bit SYSTEM_ON (M2.0) in the HIGH state and the RESET_COUNTER (I1.1) button is Pressed.

Vehicle detection using Siemens PLC

NETWORK 6 (GATE UP)

In this Network, the GATE_UP (Q0.0) output will be ON when the NO contact of the memory bits GATE_UP_MANUAL (M2.1) or GATE_UP_AUTO_IN (M2.3), or GATE_UP_AUTO_OUT (M2.5) is in the HIGH state.

NETWORK 7 (GATE DOWN)

In this Network, the GATE_DOWN (Q0.1) output will be ON when the NO contact of the memory bits GATE_DOWN_MANUAL (M2.2) or GATE_DOWN_AUTO_IN (M2.4), or GATE_DOWN_AUTO_OUT (M2.6) is in the HIGH state.

Siemens TIA Portal vehicle counting logic

NETWORK 8 (LAMP INDICATOR)

In this network, when the NO contact of the memory bit SYSTEM_ON (M2.0) and the value of the memory word CAR_COUNT (MW0) is Less Than “30”, then the output LAMP_GREEN (Q0.2) will be ON.

When the NO contact of the memory bit SYSTEM_ON (M2.0) and the value of the memory word CAR_COUNT (MW0) is Equal To “30”, then the output LAMP_RED (Q0.3) will be ON.

Download PLC Project

Read Next:

  • Schneider PLC Manual Sequential Machine
  • PLC Bottle’s Capping with Rotating Mechanism
  • Parking Garage Indicator Automation System
  • PLC Interlock Logic with First Input Priority
  • Complex Car Parking Logic in LS Electric PLC
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

3 to 8 Line Decoder PLC Ladder Diagram
What is an RTU? – Remote Terminal Unit
What is a Retro-Reflective Sensor? – Principle, Applications
Real-Time Clock in Omron PLC? – CX Programmer
Types of Script in Intouch Scada
Siemens PLC Organization Blocks (OB)
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

T Flip Flop PLC Ladder Diagram
Applications of SCADA
Structured Text PLC Program for Measuring Event Duration
How-to do Security of SCADA Systems?
Working Principle of Single Phase Preventer Relay
Schneider PLC Programming Example for Beginners
Programmable Logic Controller Practice Tests
Scaling with Parameters (SCP) Instruction in PLC

Keep Learning

Automation Engineer Troubleshooting Tips

Best Way to Build Troubleshooting Mindset for Automation Engineer

PLC Program for Controlling Sequence of Conveyors with Interlocking

PLC Program for Controlling Sequence of Conveyors with Interlock

Example Program Logic in Allen Bradley PLC

PLC Programming Examples on Industrial Automation

Select Security type Intouch

How to Add Security in InTouch SCADA?

How to program a running hours meter in PLC

Allen Bradley Studio 5000: Motor Running Hours PLC Program

Programmable Logic Controller Boiler Logic

PLC Ladder Logic for Start-up Control of Boilers

21 CFR in SCADA and HMI Systems

What is 21 CFR in SCADA and HMI Systems?

Contextual HMI

What is Contextual HMI? – HMI Screens on a Mobile or Tablet

Learn More

Types of Fire Detectors

Types of Fire Detectors

How Does a Touch Sensor Work

How Does a Touch Sensor Work?

FactoryTalk View Studio Site Edition Pop-Up Confirm Action

How to Automatically Close Pop-up in FactoryTalk View Studio?

Electrical and Instrument Engineers Job Profile

Instrumentation and Electrical Teams Interactions (Detail Design Engineering)

Filtering and Dynamic Compensation Objective Questions

Filtering and Dynamic Compensation Objective Questions

Faceplates

What are Faceplates? How to Create a Faceplate? HMI Visualization

Online Analyzers Questions & Answers

Online Analyzers Questions & Answers

Power Electronics Objective Questions

Single-Phase Half Wave AC-DC Converter Quiz

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?