This project mentions to program a simple car parking barrier using Codesys Software for Industrial Automation.There are two inputs(Sensors) which are Entry sensor and Exit sensor.Also four outputs those are Entry barrier,Exit barrier and two indicating lights.One light indicates available space and other light indicates about unavailable space.
Step 1: Programmable Logic Controller (PLC) and Codesys Software
A programmable logic controller (PLC), or programmable controller is an industrial digital computer which has been adapted for the control of manufacturing processes, such as assembly lines, or robotic devices, or any activity that requires high reliability control and ease of programming and process fault diagnosis.
ABB full form is ASEA Brown Bveri.
CODESYS is a development environment for programming controller applications according to the international industrial standard.
Step 2: Introduction About Inputs & Outputs in Visualization
SWITCH :- Use to System ON/OFF.
ENTRY SENSOR :- Detecting the Car at the Entry gate.
EXIT SENSOR :- Detecting the Car at the Exit gate.
FULL :- Indicating Light that no space
SPACE :- Indicating Light that is space
Barrier is opening
Barrier is opened
Barrier is closing
Bellow steps are explained about process of the program.
Step 3: Barrier Is Opening
According to the my program,
When switch ON, system will start.Already SPACE light will glow.
If Entry sensor active,entry barrier motor will rotate clockwise direction two seconds.It is mentioned in blue color indicator('Barrier is opening').
I used eight timers for each functions.
Step 4: Barrier Is Opened
Next step is,
Gate is opened five seconds.It is indicating with pink color('Barrier is opened').And green color arrow.
Step 5: Barrier Is Closing
After five second entry barrier motor will rotate anticlockwise two seconds to close the barrier.
Step 6: Park Is Full
Counting the number of cars.When reached maximum number, SPACE indicator light will get off and FULL light will get indicate.
I used Up Down Counter for this function.
Step 7: Exit Barrier
Step 8: Codes and Testing
I uploaded Codesys file and XPS file here.