Chapter Five PLC
Chapter Five PLC
Chapter Five PLC
PROGRAMMABLE LOGIC
CONTROLLERS(PLC)
Objectives
• To define the basic components of a PLC
• To understand about counter ,timer and relay
• To program a PLC
• To implement a PLC control program and
hardware
Introduction to PLC
PLC stands for Programmable Logic Controller.
They are industrial computers used to control
different electro-mechanical processes for use in
manufacturing, plants, or other automation
environments
It continuously monitors the input values from
various input sensing devices (e.g. accelerometer,
potentiometer ….. etc.) and
it produces corresponding output depending on
the nature of production and industry.
Parts of PLC
A typical block diagram of PLC consists of five
parts namely:
1.Rack or chassis
2.Power Supply Module
3.Central Processing Unit (CPU)
4.Input & Output Module
5.Communication Interface Module
1. Rack or chassis
• In all PLC systems, the PLC rack or chassis
forms the most important module and acts as a
backbone to the system.
• PLCs are available in different shapes and sizes.
• When more complex control systems are
involved, it requires larger PLC racks.
• All I/O modules will be residing inside this
rack/chassis.
2.Power Supply Module
• This module is used to provide the required
power to the whole PLC system.
• It converts the available AC power to DC power
which is required by the CPU and I/O module.
• It generally works on a 24V DC supply.
• Few PLC uses an isolated power supply
3. CPU Module and Memory
• CPU is the brain of PLC
• CPU module has a central processor, ROM &
RAM memory.
• ROM memory includes an operating system,
drivers, and application programs.
• RAM memory is used to store programs and
data.
• CPU reads the input data from sensors,
processes it, and finally sends the command to
controlling devices
3. Input and Output Module
• PLC has an exclusive module for interfacing
inputs and output, which is called an input &
output module.
• Input devices can be either start and stop
pushbuttons, switches, etc and output devices can
be an electric heater, valves, relays, etc.
• I/O module helps to interface input and output
devices with a microprocessor.
Continued..
The input module of PLC is explained in the below
figure
CONTINUIED …
Continued..
The operating of the circuit diagram as shown
in above can be explained as
•Input module interface receives the signal from
process devices at 220 V AC
•Then it converts the input signal to 5 V DC
that can be used by PLC
•The isolator block also prevent a PLC from
undergoing fluctuation
•Then the signal is sent to the output
Continued..
There are two main sections in the input module
namely the power section and the logical section.
Both sections are electrically isolated from each
other.
Initially push button is closed. So, 220 V AC
supply is given to the bridge circuit through the
resistors R1 and R2.
A bridge rectifier is used to convert the AC signal
into DC and Zener diode is used to provide a low
voltage supply to LED.
Out put module
SPDT
P1
DPST
P2
Multiple Throw Multiple Pole
Break-before-make Make-before-break
TERM
Throw - number of states S
Pole - number of connecting moving parts (number of individual circuits).
SPDT
DPST
TYPES OF
SWITCHES
1. Basic switch, operated by a mechanical level,
2. Push-button switch,
3. Slide switch,
4. Thumbwheel switch,
5. Limit switch,
6. Proximity switch, and
7. Photoelectric switch.
contact
coil
input
Rail
start emergency stop
PB1 PB2
R1
Rung R1
R1
A
Ladder Representation
LOGIC
STATES
ON : TRUE, contact closure, energize, etc.
OFF: FALSE, contact open , de-energize,
etc.
Do not confuse the internal relay and program with the external
switch and relay. Internal symbols are used for programming.
External devices provide actual interface.
R1 = PB1.AND.PB2
PB1 R1
PB2
OR
COMBINED AND & OR
R1 = PB1 .OR. (PB2 .AND. PB3)
PB1 R1
pb3
PB2
SEQUENCE
repeating operating cyclesR
Sequencers are used with machines or processes involving
which can be segmented into
steps.
Output
Step A B C Dwell time
1 ON OFF OFF 5 sec.
2 ON ON OFF 10 sec.
3 OFF OFF ON 3 sec.
4 OFF ON OFF 9 sec.
Reading Assignment
1. Oil is consumed randomly. The tank needs to be refilled by
turning on a pump. Two hydrostatic switches are used to detect
a high and low level.
Continued..
A .Write a program using ladder diagram
B. Write its working principles
3.Write a ladder logic program for a traffic lighting
Main street
Jefferson street
Cycle time
Main 3 1 4
Jefferson 5 1 2
Continued..
A .Write a program using ladder diagram
B. Write its working principles