Professional Documents
Culture Documents
Some devices and components that are used in the application system are
discussed in this chapter. This chapter describes the development of the circuit and
selection of its components.
have been programmed into its memory) on these input signals, producing output
signals to drive process equipment or machinery. Standard interfaces built-in to PLC
allow them to be directly connected to process actuators and transducers without the
need for intermediate circuitry or relays [08Dic].
cylinder amongst others. The ladder program is all PLCs follows a template that consists
of 2 bus bars that are connected to one another using rung lines. The 2 bus bars on either
side are connected by Rungs 1, 2 and 3. L1 and L2 are the power sources to the input
and output instructions. Notice how each contact coil on the rungs also has a
respective address mapped to the input and output instructions which is indicated
above the instruction. Bus bars, also known as power rails supply the power from the
PLC to the instructions it contains [05Pet].
The instructions towards to the left bus bar are input instructions which
typically consist of Normally-Open (NO), Normally-Closed (NC) contacts coils
and status bits that are used to control output instructions. These output
instructions are indicated towards the right bus bar which can include external
output instructions, mathematical operations, conversions, timers, counters and
other PLC instructions.
The rung lines that connect the 2 bus bars are on which the instructions are
written which can be written in a single rung or used in a logic connection such as
“OR” or “AND” along with a second rung line. Thus, they are also sometimes
referred to as branching instructions. When an input logic instruction is true,
power flows from the left bus bar to the right bus bar thereby energizing the
output instructions and perform an operation or task. Manipulation of these
instructions and control of input/output instructions allows users to solve control
problems in an efficient manner [05Pet].
20
Input Module
I Source
X0
I Source
XF
24V DC
0V COM
+24V COM
I Sink
X0
I Sink
XF
Programming
Terminal
Power
CPU Memory
Supply
Input Output
Module Module
PLC
Input Output
Devices Devices
PROCESS
22
instructions stored in the memory. CPU itself is usually one of the microcontrollers.
These were 8- bit microcontrollers such as 8051 and now these are 16-bit and 32-bit
microcontrollers. Calculation and control functions. Counter / Timer and sequencer
for users design circuits using Relay Ladder Diagram.
CPU will accept data from a variety of input devices. It then processes the
data and using the program from memory, then sends the appropriate data and valid to
the output device. PLC controllers have complex routines for memory checkup in
order to ensure that PLC memory was not damaged (memory checkup is done for
safety reasons). CPU unit makes a great number of check-ups of the PLC controller
itself so eventual errors would be discovered early [01Dan].
light falls on the strip, the resistance decreases. In the absence of light, the resistance
can be in the order of 10 K ohm to 15K ohm and is called the dark resistance. The
LDR can be applied in light sensitive detector circuits and light activated and dark
activated switching circuit.
Depending on the exposure of light the resistance can fall down to value of
500 ohms. The power ratings are usually smaller and are in the range 50mw to 0.5w.
Though very sensitive to light, the switching time is very high and hence cannot be
used for high frequency applications. They are used in chopper amplifiers. Light
dependent resistors are available as discs 0.5 cm to 2.5 cm. The resistance rises to
several Mega ohms under dark conditions.
The below figure shows that when the torch is turned on, the resistance of the
LDR falls, allowing current to pass through it is shown in Figure 3.6. The basic
construction and symbol for LDR are shown in above figures respectively. The device
consists of a pair of metal film contacts separated by a snakelike track of cadmium
sulphide film, designed to provide the maximum possible contact area with the two
metal films.
The structure is housed in a clear plastic or resin case, to provide free access to
external light. Practical LDR are available in variety of sizes and packages styles, the
most popular size having a face diameter of roughly 10mm, practical LDR and its
characteristic graph is shown in below Figure 3.7 [16Fad].
26
Substrate
Thin Strip of
Photoresistive
Material LDR Symbol
R(cell)
Dark Night Average Bright
Time Sunny Sunlight
10^8 Day
Resistance is
Photocell
Ohm
Resistance
10
Dark Light
0.1 1000
Illumination (Lux)
provides 3v high digital pulse. On the other hand, when no motion is triggered digital
pulse provides low state signal [15Ara].
1 23
+DC
Ground (GND)
Output
voltage
PIR
Uer are using usual 3 pins PIR motion sensor.3 different colored pins are there
in the device. For our PIR motion sensor the red cable is (+Ve) voltage power, black
cable is dedicated for (- Ve) ground power and yellow is for signal out [15Ara].
Output
Input 1 3
2
Ground
1 2 3
Figure 3.10. LM7805 Pin Layout Diagram [10Rak]
7805 ICs have three terminals and are commonly found in the T0220 from
factor, although smaller surface- mount and larger T03 packages are available. 78xx
series ICs do not require additional components to provide a constant, regulated
source of power, making them easy to use, as well as economical and efficient uses of
space. Other voltage regulators may require additional components to set the output
voltage level or to assist in the regulation process [10Rak].
3.9. Transistor
In this thesis, NPN transistor is used. It is a Bipolar Junction Transistor (BJT)
type. The device is used as a switch. The NPN transistor has 3 pins. Pin 1 is emitter,
pin 2 is collector and pin 3 is base. A minimal current flows through base and high
current absorbing current flows through collector to emitter terminal. In this project
NPN transistor is used. It is a BJT type. The device is used as a switch. The NPN
transistor has 3 pins. Pin 1 is emitter, pin 2 is collector and pin 3 is base. A minimal
30
current flows through base and high current absorbing current flows through collector
to emitter terminal. TIP 41C is an NPN bi- polar junction transistor. A transistor stand
for transfer of resistance, is commonly used to amplify current. A small current at its
base controls a larger current at collector and emitter terminals.
C (2)
B (1)
TIP41C
E (3)
Figure 3.11. Pin Diagram and Internal Circuit Diagram of NPN Transistor [15
Ara]
3.10. Resistor
A resistor is a passive two- terminal electrical component that implements
electrical resistance as a circuit element. In electronic circuit, resistors are used to
reduce current flows, adjust signal levels, to divide voltages, bias active elements and
terminate transmission lines, among other uses. High- power resistors that can
dissipate many watts of electrical power as heat, may be used as part of motor
controls, in power distribution systems, or as test loads for generators. Fixed resistors
have resistances that only change slightly with temperature, time or operating voltage.
Variable resistors can be used to adjust circuit elements (such as a volume control or a
lamp dimmer), or as sensing devices for heat, light humidity, force or chemical
activity [16Fad].
31
The current through a resistor is in direct proportion to the voltage across the
resistor’s terminals. This relationship is represented by Ohm’s law:
I =V/R (3.1)
circuit to electrical circuit which works at very high voltage. For example, a relay can
make a 5V DC battery circuit to switch a 230V AC means circuit. Thus, a small
sensor circuit can drive a fan or an electric bulb. A relay switch can be divided into
two parts: input and output. The input section has a coil which generates magnetic
field. When a small voltage from an electronic circuit is applied to it. This voltage is
called the operating voltage. Commonly used relays are available in different
configuration of operating voltages like 6V, 9V, 12V, 24V etc. The output section
consists of contractors which connect or disconnect mechanism. In a basic relay, there
are three contacts: normally open (NO), normally closed (NC) and common (COM).
At no input state, the COM is connected to NO. When the operating voltage is applied
the relay coil gets energized and the COM changes contact to NC. Different relay
configuration are available like SPST,SPDT etc., which have different numbers of
changeover contacts. By using the proper combination of contractors, the electrical
circuit can be switched on and off [15Ara].
relay has 5 terminals. Out of these 2 are coil terminals. A common terminal is
included which connects to either of two others. In DPST, this relay has total 6
terminals. These terminals are divided into two pairs. They act as two SPST‘s which
are actuated by a single coil. Among the 6 terminals, 2 of them are coil terminals. In
DPDT, it has mainly 8 relay terminals. Out of these 2 rows are designed to be change
over terminals. These are designed to act as two SPDT relays which are actuated by a
single coil [16Fad].
From To load
power
supply
Contacts open
Control switch
Control
Iron core
Basically, a relay switch has two parts-input and output. The input part has a
coil which produces magnetic field when a very low voltage from the electronic
circuit is applied to relay. This low voltage range can be varied like 6v, 9v, 12v etc.
and this low voltage is commonly known as operating voltage. When current passes
through the coil it generates a magnetic field that activates the armature. Besides,
movable contacts either make or break a connection with a fixed contact. This
arrangement is totally dependent upon construction. On the other hand, the output part
includes three contactors such as normally open ( NO), normally closed ( NC ) and
common (COM ).When there is no input, the common is connected with normally
34
closed ( NC ). After applying operated voltage the relay coil becomes energized. For
this, COM changes its position and is connected with normally open (NO) [15Afa].
For example, 5 pin relay has a single control circuit but for the switch it has
two separate current paths. One path is that when the relay becomes de-energized
means there is no current flowing into control coil. Another path is that when the relay
becomes energized means there is current flowing into control coil. In this figure
when the device is de-energized, there exists continuity between pins 4 and 5. On the
other hand, when the relay is energized means on and there have continuity between
pins 3 and 5.
supply voltage means that just about everything needs a large amount of current
[15Afa].
3.11.4. Relay in Circuit
In research circuit, relay it is required to operate a high voltage appliance like
220 V light. A relay has capability that can make a 24V DC circuit to switch a 220V
AC mains circuit. That‘s why in our work a relay shield that tagged 24VDC relay is
used. The shield provides some extra advantage. It provides more protection than
usual relay having no shield. This arrangement makes us relief from concerned over
checking relay connections.
3.13. Summary
In this chapter, peripheral components and features of PLC controller used in
the application system were described. Each of these sections was briefly presented.
The PIR sensor is used for detecting of the movement of the road and LDR sensor
which is used to detect the ambient light. The next chapter will express about design
consideration, test and result of the desired system.