Professional Documents
Culture Documents
A REPORT SUBMITTED
BACHELOR OF TECHNOLOGY
IN
BY
.
Sl No. Roll no Name
01 19311A02A6 Mangali Vijaya Laxmi
02 20315A0226 Kammari Swetha
03 20315A0230 Nagireddy Prashanth Reddy
04 20315A0232 J Yashwanth
CERTIFICATE
.
Sl No. Roll no Name
01 19311A02A6 Mangali vijaya laxmi
02 20315A0226 Kammari swetha
03 20315A0230 Nagireddy Prashanth Reddy
04 20315A0232 J Yashwanth
ABSTRACT
The programmable logic controller (PLC) is the central controlling unit in the industry or a
process. The effective operation of the process and safety considerations if programmed
appropriately can meet the required objectives.
At present railway crossing gate control system is being operated manually thus many
accidents are being occurred if it is not done in proper time. So, it is needed to be automated to
reduce accidents. In this work an automatic railway crossing gate control system has been
develop using a PLC(programmable logic controller).The automatic control of railway gate
crossing deals with two aspects, firstly it deals with the reduction of time for which the gate is
being kept closed and secondly, to provide safety to the road users by reducing the accident.
The main aim of using PLC is to remove the manual work completely. It reduces the
errors and time of operation.PLC is used because of the fact that consists of timers which cannot
make the system bulk and complex. Programming is carried out on” SELPRO PLC”
programming software. Signaling light models are implemented using sensors and several output
devices i.e railway gates are operated using DC motors.
ACKNOWLEDGEMENT
We are very thankful to our principal shivaReddy sir and our head of the
department barghava sir and entire electrical department for motivating us to do
internship with NSIC
It is always plesure to remind the fine people in the NATIONAL SMALL
INDUSTRIES CORPORATION for their sincere guidance we had received to
uphold my practical as well as theoretical skills in engineering.
We would like to thank THULASINGAM MUTHUKUMARAN SIR for
encouraging us to learn about PLC and maintaining friendly relation with us and
extending the friendship towards us and making a pleasure training environment in
NSIC.
We would like to thank KAMARAJU SIR for explaining basics of electrical
engineering and also explained components used in PLC and he cleared all doubts
regarding all.
We would like to thank K SAMPATH KUMAR SIR for the positive attitude
towards students .He explained about PLC and basics of PLC. He played a
fantastic role to complete the PLC and also he proposed one project for us
AUTOMATIC RAILWATY GATE CONTROL BY USING PLC
Finally we apologize all other unnamed who helped us in various ways to have a
good training
We thanks to one and all for their direct and indirect help at the various stages of
our project .
CHAPTER 1
1.71 OR Gate
1.8 Counters
1.81 Up counter
1.9 Timers
2. CHAPTER
COMPONENTS USED:
2.0 IR sensor
2.3 Relays
3. CHAPTER
PROPOSED PROJECT
3.0 Introduction
3.1 diagram
4. CHAPTER
PROGRAM:
5. CHAPTER
6. CONCLUSION
1. INTRODUCTION:
POWER SUPPLY
CONCTACTORS
SWITCHES MEMORY
MOTOR
PUSH COMMUNICATION
BUTTON
Upload download
PERSONAL
COMPUTER
1.3 COMPONENTS:
POWER SUPPLY
• 24V DC, 230V AC
• Inbuilt SMPS (Switch Mode Power Supply) PLC 230V
• 230V DC (CPU of PLC)
• 230V AC Personal computer of PLC
• CPU is the heart of PLC. It is mainly useful for uploading and downloading
the application of program.
➢ Uploading is a process of taking a program from PLC to PC.
➢ Downloading is a process of giving program to PLC from PC.
➢ CPU is having communicating ports for communicating with PC and
other devices it some indications like RUN ,STOP ,ERROR ,FORCE,
ON, Force off, system fault ,breakdown fault etc..
MEMORY
COMMUNICATION RS 232
Serial bus
RS 485
I/O Devices:
Analog Digital
Feed back
O/P LOGIC
The process of giving input and scanned total program and getting output from
PLC, It is called one scan cycle.
0 0 0
1 0 0
0 1 0
1 1 1
1.73 NAND GATE
1.8 COUNTERS:
1.81 UP COUNTER: When the output is ON for given counts (ex: 5 counts , 5 times
ON) if the CV and PV are equal output will ON.
IN ENO
R CV
PV
1.82 DOWN COUNTER: initially CV and PV will be equal when the input is high as
per PV value then the CV starts decreasing count by count ( maximum to
minimum)
When count i.e CV becomes zero then the output will be high.
IN ENO
R CV
PV
1.83 UP/ DOWN COUNTER: In up /down counter is a combination of an up
counter and down counter. It can count in both directions increasing as well as
decreasing.
CU ENO
CD QD
R CV
LD
PV
1.9 TIMERS:
ON TIME DELAY: When the input is input is high the output will be high after some
fixed delay.
In between if we OFF the input timer will run from starting (for every ON and OFF
timer is same)
IN ENO
PV CV
T#5S
IN ENO
PV CV
T#5S
2 . COMOPONENTS USED
2.0 IR SENSOR:
Infrared frequencies are influenced by hard articles (for example dividers, entryways), smoke, dust, haze,
daylight and so on Thus it doesn't work through dividers or entryways. Infrared waves at high force can harm
eyes. In screen and control application, it can control just a single gadget at one time.
➨It provides secured communication due to line of sight or point-to-point mode of communication.
➨The battery used in infrared devices last for long duration due to lower power consumption.
➨The sensor does not require any contact with the product to be sensed. The infrared devices are
➨Infrared frequencies are affected by hard objects (e.g. walls, doors) , smoke, dust, fog, sunlight
➨In monitor & control application, it can control only one device at one time. Moreover it is difficult to
control things which are not in LOS (Line of Sight). It requires line of sight between transmitter and
receiver to communication.
2.1 TYPEDS OF SENSORS:
• Push buttons.
• Selector Switch.
• Limit Switches.
• Factors in choosing sensors.
• Two types of sensors: Analog and Discrete.
• Proximity Sensor.
• Inductive Proximity Sensor.
• Capacitive Proximity Sensor.
There are a variety of gear motor types, each with special functions.
• Right-angle geared motors - These are electric motors coupled with a gear reducer. Right-angled
gear motors are commonly used in automation equipment for food services, agriculture, and medicine
because of their compact nature.
• Inline geared motors - Inline geared motors are formed from one body piece, which reduces the
potential for wear and deformation. These are ideal for rugged applications for industries like cement
manufacturing, power, shipping, and more.
• Parallel shaft geared motors - These use high-quality gears to reduce the speed of a machine's
operation. Parallel shaft geared motors are often used in stirring machines that mix large vats of
liquids.
• Planetary Gear Motors - Planetary Gearboxes are used on high precision motion control applications
that require a high torque, high torsional stiffness and low backlash. Ideal for motors whose optimal
efficiency is at higher speeds.
A gear motor is a component of a much larger motor. It's used to adjust the whole mechanism's speed. This is
important for various applications, like controlling conveyor belts or the speed of stirring mechanisms. As such,
it's important to choose a high-quality and durable gear motor.
2.3 RELAYS:
Relay is a type of Switch which can switched ON or OFF with the help of a signal or a pulse of electricity.
For example, if you want to turn ON or OFF and LED using a Microcontroller, you can probably connect
the LED directly to the IO pin of the Microcontroller (with a current limiting resistor) and send a signal to,
well, turn the LED ON or OFF.
But what if you want to turn ON or OFF a 10W mains powered LED Bulb using a Microcontroller? As the
LED is a tiny device with small voltage and current requirements (which are reasonable for the
Microcontroller), it is connected directly to the IO Pin of the Microcontroller.
2.31Types of Relays
There are different types of relays like:
• Electromagnetic Relays
• Latching Relays
• Electronic Relays
• Non-Latching Relays
• Reed Relays
• High-Voltage Relays
• Small Signal Relays
• Time Delay Relays
• Multi-Dimensional Relays
• Thermal Relays
• Differential Relays
• Distance Relays
• Automotive Relays
• Frequency Relays
• Polarized Relays
• Rotary Relays
• Sequence Relays
• Moving Coil Relays
• Buchholz Relays
• Safety Relays
• Supervision relays
• Ground Fault Relays
All these and many other relays are classified based on their function, application type, configuration or
structural features, etc. Now, let us take a look at various types of relays, which are more popularly used
in many applications.
Latching Relays
A Latching Relay is a relay which maintains its state after being actuated. That is why these types of
relays are also called as Impulse Relays or Keep Relays or Stay Relays. In applications, where there is a
need to limit the power consumption and dissipation, a latching relay is best suitable.
There is an internal magnet in a latching relay. When the current is supplied to the coil, it (internal
magnet) holds the contact position and hence it requires no power to maintain its position. So, even after
being actuated, removal of drive current to the coil cannot move the contact position but remains in its last
position. Thus, considerable energy is saved by these relays.
Latching relays can be made with one or two coils and these coils are responsible for the position of the
armature of the relay. Hence, latching relays don’t have any default position as shown in above figure.
In one coil type relay, the armature position is determined by the direction of current flow in the coil,
whereas in case of two coil type, the position of the armature is dependent on the coil in which current
flows. These relays can maintain their position once they are actuated but their reset position depends on
the control circuitry.
3.0 Introduction:
When it involves public and private safety, it is always desirable to improve the signaling system
and the way people are warned about potentially dangerous situations. The existing conventional
signaling system most of the times rely on the oral communication through telephonic and
telegraphic conversation as input for the decision making in track allocation for trains. There is a
large scope for miscommunication of the information or communication gap due to the higher
human interference in the system [1]. This may cause the wrong allocation of the track for trains
that ultimately results in the train collision. The statistics within the developing country showing
that most of worst collisions occurred thus far are because of either human errors or incorrect
decision making through miscommunication in signaling and its implementation. At railway
crossing, the traditional railway system uses the warning lights and human controlled gates to
alert the people about an oncoming train. When the train leaves the station, the station agent
informs the gatekeeper regarding the arrival of the train using the telephone and telegraph. The
gatekeeper closes the gate depending on the timing at which the train arrives. Hence, if the train
is late because of certain reasons, then gate stay closed for an extended time inflicting traffic near
the gates [2]. By victimization, the automatic railway gate control at the railway crossing the
arrival of the train is detected by the sensing element placed on the track at a precise distance
from the gate. This sensing element detects the approaching train and consequently controls the
operation of the gate. When the wheels of the train moving over the track there will be position
switch and it will send the signal to PLC to indicate train arrival. This reduces the time that gate
is closed as compared to the gates operated manually. In addition, this also reduces the human
labor. This sort of automatic railway gate system is employed in associate unmanned gate
crossing where the probabilities of accidents are higher and reliable operation is needed.
For automatic railway gate opening and closing system, PLC takes the reference of train position sensors. If
the train is closer to the level crossing, PLC activates its output and sends the close command through a relay
to gear motors which are coupled to the railway gate assembly.
• PLC
• Gear motor
• Vibration sensor
• Led lights
• Traffic lights
3.3 BLOCK DIAGRAM:
SENSOR MOTOR
PLC
MONITORING AREA
X0- Arriving train input of Sensor 1 for UP track. X1- departure train input of Sensor 2
for UP track. Y0-Operation of motor to closing gate.
Y2-for buzzer sounds.
Y1-Operation of motor for opening gate TMR- Time delay for motor
operation.
M1 to M9-These are memory bits used for avoiding repetition of above instructions.
This is the ladder diagram to control the gate with the help of input signal from the sensor.
This diagram shows the control ladder for unidirectional passage of train.
Ladder Diagram Data types supported: BOOL, SINT,INT, DINT, UINT, USINT,UDINT,
TIME, DATE, TOD, WORD, DWORD, REAL (FLOAT), LREAL(DOUBLE)
Maximum No. of ladder representations that can be made is 5000 Rungs. It also depends
on the product memory capacity.
PROGRAM
Input devices Output devices
Switch-1 Gate-1
Sensor -1 Relay
Sensor -2 Red and green LEDs
Set Reset
Switch-2 Gate-2
Input switches:
• Normally opened
• Normally closed
Outputs:
4.1 WORKING:
• Firstly switched is manually operated.
• Set is automatically sensed by the vibration sensor.
• As soon as the sensor senses the signal then red light is ON.
• Then automatically for certain time gates will be closed.
• When gate closes train will run along the track for certain time
• One more vibration sensor senses the signal then green light is ON then automatically the
red light will OFF.
• After few minutes gates will be opened.
• To continue this process we need to reset the whole process by clicking the resets input
button.
• Then automatically this process will continue when number of train occurs.
5. CHAPTER
5.1 SIMULATION RESULTS:
Circuit diagram without simulation:
Simulation on 1
Simulation 2
Simulation on 3
Simulation on 4
Simulation 5
Simulation OFF:
6. CHAPTER
CONCLUSION:
The accidents are avoided at places where there is no person to manage the railway crossing
gates .Here we use the DC motor to open and close the gates automatically when it rotates
clockwise or anticlockwise direction to operate the gate automatically .When the train arrives
in a particular direction the sensor senses and generates appropriate signal, then at the same
time the PLC provides certain output signal to the DC motor to function. When the signal from
PLC is sent to the Gear motor rotates to function open/closes the gate according to the signal
output from sensor. Nowadays the railway protection system can be done either by manual
process (or) by semi-automatic process using embedded system technology. The intention of the
proposed idea is to provide gate control using single PLC. It will remove the manual work and
makes the whole system fully automated. This system provides a remarkable change in railway
system for protection purpose with affordable cost.