# Car Parking PLC Program

Write ladder logic for Car parking Program.

Design the ladder program to implement Automation of parking garage system in an apartment where they can park only 10 cars. When 10 cars park, a signal will turn ON signalizing that a garage is full and notifying other drivers not to enter because there is no space available.

This is only a basic logic that counts the number of cars (entry/exit) and displays a lamp indication when parking is full. So you will have two inputs (entry/exit sensors) and one output (lamp).

Refer to the below diagram for additional information.

## Logic Explanation

Entry sensor connected with counter’s CU input which will make a count when Car enters the parking slot.

Preset is set to 10.When MW0 (Memory address used to store accumulator value of the counter) equals 10, parking full indicator will ON.

Exit sensor is connected with CD input of counter which will reduce the accumulator value of the counter when car exits.

Author: Hema

Training Course: Siemens PLC Training

## Overview of Memory Section

The memory refers to the section of the PLC where data and instructions are stored (either temporarily or semi-permanently).

## Basic PLC Instructions

Symbolic representations of contacts and coils are the basic symbols of any ladder logic instructions set used in the PLC programming.

## Timers and Counters

Timers and counters are PLC internal instructions that provide the same functions as timing relays and counters.

## Counters in PLC

A PLC Counter counts the number of events that occur as a result of an input. There are two basic types of counters: Up-Counter and Down-Counter.

## Two Floor Elevator PLC Program

PLC program to execute an elevator system in a two-floor apartment using Allen Bradley PLC ladder logic programming.

#### Responses

1. Thanks
Your solution is simple and more direct unlike using two separate counters,i.e. CU and CD.

2. Wow this was simple and straight forward.

3. Super et merci pour tout

4. Thank you for every explanation.

5. thank you so much mam this course is very useful my job and very very super explanation mam . again thank you so much you and your team members