Unit 5
Unit 5
Programmable Logic
Controllers
1
Click
Courseto Content
edit Master title style
• Introduction to Controllers
• Architecture of PLC
• Selection of PLC
2 2
Introduction to
ClickControllers
to edit Master title style
3 3
Supervisory Control and Data Acquisition
Click to edit Master title style
“
Distributed Control System
Relay Logic
Microcontroller
Microprocessor
4 4
Introduction
Click to editto PLC
Master title style
5 5
Advantages
Click to editofMaster
PLC title style
• Increased Flexibility
• Fast response
• Easy programming and installation
• High control speed
• Network compatibility
• Troubleshooting and testing convenience
• High reliability
• Low Cost.
6 6
Click to edit Master
The Comparison title style
Table
7 7
Click to edit Master title style
“
Richard E Dick Morley, An American
Mechanical Engineer considered as
the father of PLC.
8 8
Click to edit Master title style
Architecture of PLC
GNB
9 9
Definition
Click of PLC
to edit Master title style
10
10
Architecture of
Click to edit Master title style
PLC
11
11
Architecture of
Click to edit Master title style
PLC
12
12
Architecture of
Click to edit Master title style
PLC
13
13
Size
Click toofedit
PLCMaster title style
14
14
Memory
Click of PLC
to edit Master title style
• Memory is the part of a PLC that stores data, instructions, and the control program. Memory size is usually
expressed in K values: 1 K, 6 K, 12 K, and so on(1 K means 1024).
• PLC that uses 8-bit words has 49,152 bits of storage with 6 K word capacity(8 x 6 x 1024 = 49,152).
• PLC using 32-bit words has 196,608 bits of storage with the 6 K memory(32 x 6 x 1024 = 1,96,608).
• Factors affecting the memory size needed for a particular PLC installation include:
1. Number of I/O points used
3. Data-collecting requirements
5. Future expansion
15
15
Click to edit Master title style
16
16
I/Oto
Click ofedit
PLC Master title style
17
17
I/Oto
Click of edit
PLC Master title style
18
18
I/Oto
Click of edit
PLC Master title style
20
20
c rete Input
Dis
Click to
Secedit
tion Master title style
• The input circuit is composed of two basic sections: the power section and the logic section.
• An optical isolator is used to provide electrical isolation between the field wiring and the PLC
backplane internal circuitry.
21
21
c rete Input
Dis
Click to
Secedit
tion Master title style
22
22
r ete O utput
Disc
Click to
Secedit
tion Master title style
23
23
r ete O utput
Disc
Click to
Secedit
tion Master title style
24
24
I/O Section
te edit Master title style
Discreto
Click
25
25
I/O Section
g edit Master title style
Analoto
Click
26
26
I/O Modules
Specia
Click l edit Master title style
to
• High Speed Counter Module
• Thumbwheel Module
• TTL Module
• Encoder Counter Module
• BASIC or ASCII Module
• Stepper Motor Module
• BCD Output Module
• PID Module
• Motion and Position Control Module
• Communication Module
27
27
e I/O Specs I/O Specs
et edit Master title style Analog
Discrto
Click
30
30
og ram m ing
M emory Pr
Click to edit Master title style Device
• Memory is the element that stores • A programming terminal device is
information, programs, and data in a needed to enter, modify, and
PLC. troubleshoot the PLC program.
• Data are stored in memory locations • The most popular method of PLC
by a process called writing. programming is to use a personal
computer (PC) in conjunction with the
• Data are retrieved from memory by
manufacturer’s programming software.
what is referred to as reading.
• The functions of programming device is
• The complexity of the program
to change, monitor and enter the user
determines the amount of memory
program.
required.
• A closed contact would have a binary 1
stored in its respective location in the
input table, whereas an open contact
would have a 0 stored.
• Memory Types : Volatile & Non-Volatile
31
31
tures of PLC
Feato edit Master title style
Click
32
32
Click to edit Master title style
Switches Relays
GNB
33
33
Click to edit Master title style
Switches
34
34
Click to edit Master title style
Switches
35
35
Click
Relaysto edit Master title style
36
36
Click to edit Master title style
Programming Languages
in PLC
GNB
37
37
Click to edit Master
Programming title style
Languages in PLC
38
38
Click
Ladderto Diagram
edit Master title style
• Ladder diagram is the universal
programming language of PLC. It has a
short abbreviation as LD and also known as
Ladder Logic. And it is one of the oldest
programming languages for PLC.
• Most popular all over the world. This
language is easy to learn by using a logic
gate and some important programming
rules.
• This looks like relay racks, each device in
the relay rack would be represented by a
symbol on the ladder diagram.
• The name ladder diagram is based on the
programming language pattern similar to a
ladder, with two vertical rails that shows
electrical connection among a series of
horizontal rungs between them.
• Ladder Logic consists of virtual
relaycontacts and coils
39
39
Click to edit
Function Master
Block title style
Diagram
• Function block diagram (FBD) is a popular
and easy way to write a program like a
Ladder Diagram.
• FBD is represented like box which consists
of a number of lines of code for putting
different programming functions.
• It is a graphical language for programming
logic controller. So, it makes easy to
describe a system.
• In Function Block Diagram inputs and
outputs are connected in blocks by
connection lines.
• Function blocks are mainly used to do
repetitive tasks like starters, closed-loop
control, PID loops, etc.
40
40
Click to editText
Structured Master title style
41
41
Click to editList
Instruction Master title style
• Instruction List (IL) is another type of PLC
programming language which uses the
mnemonic code.
• So the syntax of this programming language
is easy to remember.
• In general, AB PLC brand works on the
Instruction List (IL) programming language.
• Instruction List(IL) is one of the PLC
programming languages which is like an
assembly programming language.
• The mnemonic codes like LD, AND, OR, A,
etc. are used in this PLC programming
language.
• Sometimes it is easy to remember the code
while using this programming language.
42
42
Click to editFunction
Sequential Master title
Chartstyle
43
43
Click to edit Master title style
TIMERS &
COUNTERS
GNB
44
44
Click
TIMERSto edit Master title style
• Timers are used to provide delay for energizing or de-energizing the output.
• A good application of timed interrupt is PID function block
• There are three types of Timers available in PLC.
1. ON Delay Timer
2. OFF Delay Timer
3. Retentive Timer
• There are few properties associated with timer. They are:
1. Time Base
2. Preset Value
3. Accumulated Value
4. Timer Name
5. Enable Bit
6. Done Bit
45
45
Click to edit
On Delay Master title style
Timer
• ON delay Timer is used to provide delay function only after the particular rung becomes true.
46
46
Click to edit
On Delay Master title style
Timer
47
47
Click to edit
Off Delay Master title style
Timer
• The off-delay timer (TOF) operation will keep the output energized for a time period after the rung
containing the timer has gone false.
48
48
Click to edit
Off Delay Master title style
Timer
49
49
Click to edit
Retentive Master title style
Timer
50
50
Click to edit Master title style
Counters
• Electronic counters can count up, count down, or be combined to count up and down.
• Although the majority of counters used in industry are up-counters, numerous applications
require the implementation of down-counters or of combination up/down-counters.
• The attributes used for Counters are:
1. Counter Type
2. Counter Address
3. Counter Preset Value
4. Counter Accumulated Value
5. Counter Enable Bit
6. Done Bit
• Counters are classified into 3 types:
1. Up Counter
2. Down Counter
3. Up/Down Counter
4. High Speed Counter
51
51
Click to edit Master title style
Up Counter
52
52
Click
Downto edit Master title style
Counter
• The down-counter instruction will count down or decrement by 1 each time the counted event occurs.
• Each time the down-count event occurs, the accumulated value is decremented.
53
53
Click to edit Master title style
Thank You
54