PLC Program for a Car Parking System
PLC Program for a Car Parking System
Problem Description
A parking plot has total capacity of Cars. Number of empty spots are displayed on the display outside the
Parking Plot and which spots are available is to be indicated by LEDs. Implement this in PLC using
Ladder Diagram programming language.
Problem Solution
Counter is used to count the number of empty spots.
Proximity Sensors or IR Sensors are used to detect the presence of car.
Here in this system IR Sensor can be well installed to make this system cost efficient since Proximity
Sensors are costly than IR Sensors.
Value of counter is displayed on the display which is mounted outside the parking plot.
This counter value is converted into decimal.
Display arrangement
PLC Program
Here is PLC program for a Car Parking System, along with program explanation and run time test
cases.
http://www.sanfoundry.com/plc-program-car-parking-system/ 1/3
4/4/2017 PLC Program for a Car Parking System - Sanfoundry
Program Description
Counter Up CTU and Counter Down CTD are used to determine the Exit and Entry of cars
respectively.
Value 5 is already stored in the accumulator since only 5 number of spots are there in this Parking
Plot.
So whenever car enters or exits from the Parking area, the value in the counter is incremented and
decremented accordingly.
Accumulator holds decimal values, this value thus sent to the display through BCD converter which
http://www.sanfoundry.com/plc-program-car-parking-system/ 2/3
converts Decimal digits into equivalent Binary Coded Decimal signals.
4/4/2017 PLC Program for a Car Parking System - Sanfoundry
http://www.sanfoundry.com/plc-program-car-parking-system/ 3/3