Programmable Logic Controler (PLC)
Programmable Logic Controler (PLC)
Programmable Logic Controler (PLC)
(PLC)
Introduction
What is a PLC?
Is a specialized computer that uses a programmable
memory to store instructions and to implement functions
such as logic sequencing, timing, counting in order to
control machines and processes.
4
Advantages of PLCs
• Softwiring makes changes in the control system easy and cheap.
If you want a device in a PLC system to behave differently or to
control a different process element, all you have to do is change
the control program. In a traditional system, making this type of
change would involve physically changing the wiring between the
devices.
• Flexibility: Software based system
• Compact: Replace hundreds of relays, timers and counters
a) Input module
b) Output module
c) CPU
d) Power supply
e) Programming
device
Schematic representation of PLC
6
The input and output (I/O) modules
Input on Output on
CPU
8
There are two basic types of input and output devices:
• Discrete • Analog
Discrete devices are inputs and outputs that have only two
states: on and off.
1 means that the device is on and 0 means that the device is
off.
9
CPU - Central Processing Unit
It consists of a microprocessor for
implementing the logic, and
controlling the communications
among the modules. This is the
‘brain’ of the PLC, while I/O
modules acts as arms and legs
11
PLC PROGRAMMING LANGUAGE
There are three basic language methods by which user
communicates information with PLC.
• Ladder diagram
• Boolean, and
• Function chart
Boolean
Function chart
Ladder diagram 12
Ladder diagram Language
It is primary and still popular programming language of PLC,
developed from electromechanical relay system-wiring
diagram.
To understand ladder logic programming start by simple
switch circuits and convert to relay logic and then to PLC
ladder logic.
Network symbol
X1 ● X2=Y
Boolean equation
Hardwired logic circuit Truth Table
14
OR Gate (Parallel connection)
Gives outputs value of 1 if either of the inputs have a value of
1, and 0 otherwise.
X1 +X2=Y
15
NOT Gate
Has a single input and a single output too gives output 1 if
input is 0 and vice versa.
16
NAND Gate
Combine an AND and NOT gate in sequence
NOR Gate
Combining an OR gate and NOT gate
17
Basic Ladder Logic Contact Symbols
18
Examples 1.
For process control, it is desired to have the process start (by
turning on a motor) after a part touches a limit switch, and
an emergency switch will stop the process any time when it
is pushed. Write the ladder program for this process
LS PB Motor
Relay circuit →
Relay logic circuit 19
Ladder Diagram Language Representation
20
Example 2.
For the following logic instructions; The output Y is on when
(A is on and B is on and C is off) or D is on or E is off.
Draw;
a. Logic diagram
b. Relay logic diagram
c. Ladder diagram , and
d. Develop Boolean logic equation
Solution
a) Logic diagram
21
b) Relay logic diagram
Determine the type of contact status at normal condition
before turning ON the output Y
A→ Normally opened (NO)
B→ NO
C→ Normally closed (NC)
D→ NO
E→ NC
23
Relay logic in PLC
p u sh b u to n s
p o w er
su p p ly
+ 2 4 V
co m .
PLC
in p u ts
adl d er
lo g ci
A B C
o u tp u ts
n eu t.
24
Program Scan
During each operating cycle, the processor reads all inputs,
takes these values, and energizes or de-energizes the outputs
according to the user program. This process is known as scan
Because the input can change at any time, the PLC must
carry on this process continuously 25
Scan Process
26
Data Flow Overview
27
Thanks