Introduction To PLC Programmable Logic Controller: Presented by
Introduction To PLC Programmable Logic Controller: Presented by
PLC
Programmable logic
controller
Presented By
Ghaffar Ahmed
Lab-Engr
Contents
What is PLC?
History of PLC
Major components of PLC
Operational sequence of PLC
Ladder logic
Example of starting and stopping of a
motor
Advantages
Disadvantages
Application
What is PLC?
POWER
SUPPL
Y
I M O M
N O U O
P D T D
U U PROCESSOR P U
T U L
From T E To
SENSORS L OUTPUT
Pushbuttons, Solenoids,
contacts, E
contactors,
limit switches, alarms
etc. etc.
PROGRAMMING
DEVICE
5
Major Components of a Common PLC
POWER SUPPLY
Provides the voltage needed to run the primary PLC components
I/O MODULES
Provides signal conversion and isolation between the internal logic-
level signals inside the PLC and the field’s high level signal.
PROCESSOR
Provides intelligence to command and govern the activities of the entire
PLC systems.
PROGRAMMING DEVICE
Used to enter the desired program that will determine the sequence of
operation and control of process equipment or driven machine.
6
PLC operation sequence
1)Self test: Testing of its own hardware
and software for faults.
2) Input scan: If there are no problems, PLC Self test
will copy all the inputs and copy their values
into memory.
Input
3) Logic solve/scan: Using inputs, the ladder scan
logic program is solved once and outputs are
updated. Logic
scan
4) Output scan: While solving logic the output
values are updated only in memory when Output
ladder scan is done, the outputs will be scan
updated using temporary values in
Programming Languages of PLC
Most common languages encountered in PLC
programming are:
1) Ladder Logic
2) Functional Block Diagram
3) Sequential Function Chart
4)Boolean mnemonics
Ladder Logic
The ladder logic is the oldest
programming language for PLC.
It is well suited to express Combinational
logic.
The main ladder logic symbols represent
the elements :
make contact
break contact
relay coil
AND Gate OR
Gate
A B Logic(Y) A B Logic(Y)
OFF OFF OFF
OFF OFF OFF
OFF ON ON
OFF ON OFF
ON OFF ON
ON OFF OFF
ON ON ON
ON ON ON
Y
A B Y
B
NOR NAND Gate
Gate
A B Logic(Y) A B Logic(Y)
OFF OFF ON OFF OFF ON
OFF ON OFF OFF ON ON
ON OFF OFF ON OFF ON
ON ON OFF ON ON OFF
A B Y Y
B
SYMBOLS
Example
Block diagram of a PLC
Outputs
LEDs
Inputs
Ladder Logic Program for Start/Stop of Motor
:
X1 X2 Y1
Y1
Programming PLC: