Lab Matlab
Lab Matlab
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
SUPPLY
I M O M
N O U O
P D T D
U U PROCESSOR P U
T L U L
From E T E To
SENSORS OUTPUT
Pushbuttons, Solenoids,
contacts, 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 scan
3) Logic solve/scan: Using inputs, the ladder
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 memory.
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 Gate NAND 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:
Starting of Motor:
Continuous Running of motor when Start Button is
released:
To Stop the Motor :
Reliability.
Flexibility in programming and reprogramming.
Cost effective for controlling complex systems.
Small physical size, shorter project time.
High speed of operation.
Ability to communicate with computer systems inthe
plant.
Ease of maintenance /troubleshooting.
Reduced space.
Energy saving.
Disadvantages of PLCs