Simple car parking PLC ladder diagram in the Siemens TIA Portal

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to another training session in today's session we are going to learn how we can make a program for a parking lot on the entry gate of the car parking lot there is a car sensor I 0.0 to detect the car there is a barrier at the entry gate to stop the passage of cars and this barrier is operated by the PLC output Q 0.0 when the car comes at the entry door and the sensor I 0.0 sends the car the PLC output Q 0.0 turns on for 5 seconds and barrier will stay up for 5 seconds once the 5 seconds are over and car is no longer in front of the sensor I 0.0 the PLC output Q is 0.0 turns off and barrier come down and block the passage again as you can see that each parking space has a sensor and each sensor is connected at the individual PLC input the sensor for the first parking space is connected at I 0.1 input of the PLC and the sensor for the last parking space is connected at I 1.2 input of the PLC there is a display on the top of the parking lot which is showing the remaining empty parking lot species now we have to make a program in the PLC in such a way that it will track each parking lot if there is a car inside the parking space or not and the PLC program should keep track of the empty parking space numbers and we will show the number of the available spaces on the display as the car leaves the parking space the available space number should be updated immediately by the PLC program on the exit door we have installed a car sensor I 1.3 when the car comes in front of the sensor I 1.3 the PLC logic turn on the barrier Q 0.1 for 5 seconds after 5 seconds if there is no longer car in front of the sensor I 1.3 it will turn off the barrier Q 0.1 and the barrier will come again at the down position and block the exit door now let's go to the Tia portal software and see how we can make the ladder Logic for the today's project in the network number one we have a logic for the car entry whenever the car comes in front of the sensor I 1.3 it will hold on the output Q 0.0 through its own normal open contact in parallel it will start the 5 second timer once the 5 seconds are over and there is no car in front of the sensor I 0.0 it will turn on the vitam 1.0 indicate that the car has entered safely into the parking lot the normal close contact of this bit M 1.0 and it will turn off the barrier Q 0.0 next we will go to the network number three it will keep track of the parking lot when the car is parked inside the parking lot number one the sensor I 0.1 turn on and on the rising edge of the sensor the move commands get activated it will move one in the memory word 30 to indicate that there is a car inside the parking lot number one next as the car leaves the parking lot one on the negative edge of the center are 0.1 it will move zero in the memory word 30. to indicate that there is no longer car inside the parking lot number one next when the car is parked inside the parking lot number two the sensor is 0.2 turns on and on the rising edge of the sensor move command gets activated it will move one in the memory Word 32 to indicate that there is a car inside the parking lot number two next as the car leaves the parking lot 2 on the negative edge of the sensor are 0.2 it will move 0 in the memory word 32. to indicate that there is no longer car inside the parking lot number two as you can see that we have written the same logic for all 10 parking spaces if there is a car inside the parking space the sensor on the positive Edge will push one into the corresponding word when the car left the parking space on the negative edge of the sensor the move command will push zero in the corresponding memory word next if we come down to the network number four here we have used the add instruction to sum all data register for the parking lots and save the result in the memory vote 20. this will be the current car count inside the parking lot next in the network number five we have used the subtract instruction to subtract the current car count memory word 20 from 10 as we have 10 parking spaces the result will be the total available empty spaces the result will be stored in the memory word 50. so this is the program for the today's project next we will upload the project in the PLC and monitor the ladder logic as the car comes in front of the sensor I 0.0 installed at the entry gate the entry barrier output Q 0.0 latch on in the parallel 5 second timer also starts and the car is no longer in front of the sensor I 0.0 it will turn on the bit M 1.0 the normal close contact of this bit M 1.0 opens and turn off the entry barrier Q 0.0 output next in the network number three as the car is parked inside the parking lot number one the sensor I 0.1 turns on on the rising edge of the sensor move command moves one in the memory mode 30. meanwhile the second car is also entering the parking lot as this car is parked in the second parking space it turns on the center I 0.1 on the rising Edge move command moves one in the memory Word 32 to indicate the presence of the car in the second parking space meanwhile more cars are coming inside and getting bogged inside the parking spaces if we come down to the network number four here you can see that the ad instruction is adding all the memory words corresponding to the parking spaces and save the result current number of parked car in the memory mode 20. right now four cars are parked so the counter also shows the value of 4 as more cars are being parked inside the parking lot the memory word 20 is also updating continuously and now the parking lot is full all 10 spaces are full and zero parking spaces are available now as the car in the parking lot number six leaves the sensor I 0.6 and on the falling Edge move command moves zero in the memory word 40. if we come down in the network number four you can see that now memory word 40 for the parking space number six is zero and the current counter is nine as this car comes near to the center I 0.3 I 1.3 at the exit barrier output Q 0.1 latch on and it starts five second timer once the timer is over and the car is no longer in front of that zit sensor I 1.3 it turns on the bit M 1.1 and its normal close contact opens and turn off the barrier Q 0.1 and barrier come down again add another car from the parking space number three left the memory word 34 for this parking space becomes zero and the current car counter reduces to 8. now another car from the parking space number eight left the memory word 44 for this parking space becomes zero and the current car counter reduces to 7. as you can see that now the car goes inside the parking and get parked inside the parking space number six the memory word 40 for this parking space updated to one and the current car counter increases to 8. now another car goes inside the parking and get parked inside the parking lot number eight the memory word 44 for the parking space number eight updated to one and the current car counter increases to nine so this is how we can make a program to keep track of the parking lot and I hope you liked today's video do share like And subscribe to my channel and press the Bell icon for more upcoming video tutorials till next time take care and goodbye
Info
Channel: PLC Programming Tutorials Tips and Tricks
Views: 18,433
Rating: undefined out of 5
Keywords: TIA, PORTAL, SIMATIC, MANAGER, PLC
Id: yHIOTO6ae4g
Channel Id: undefined
Length: 9min 54sec (594 seconds)
Published: Sun Mar 05 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.