Introduction To PLC
Introduction To PLC
Programmable Logic
Controllers
(PLC's)
Dr. Eng. Wael Soliman
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 1 of 47
The Need for PLCs
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 2 of 47
The First Programmable Logic Controllers (PLCs)
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 3 of 47
Programmable Logic Controller
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 4 of 47
Advantages of PLC Control Systems
Flexible
Faster response time
Less and simpler wiring
Solid-state - no moving parts
Modular design - easy to repair and expand
Handles much more complicated systems
Sophisticated instruction sets available
Allows for diagnostics “easy to troubleshoot”
Less expensive
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 5 of 47
Advantages of PLC Control Systems
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 6 of 47
Advantages of PLC Control Systems
Increased Reliability:
Once a program has been written and tested it
can be downloaded to other PLCs.
Conversely ......
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 7 of 47
Advantages of PLC Control Systems
More Flexibility:
Original equipment manufacturers (OEMs) can provide system
updates for a process by simply sending out a new program.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 8 of 47
Advantages of PLC Control Systems
Lower Costs:
Originally PLCs were designed to replace relay control logic. The cost
savings using PLCs have been so significant that relay control is
becoming obsolete, except for power applications.
Generally, if an application
requires more than about 6
control relays, it will usually
be less expensive to install
a PLC.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 9 of 47
Advantages of PLC Control Systems
Communications Capability:
A PLC can communicate with other controllers or computer equipment.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 10 of 47
Advantages of PLC Control Systems
Faster Response Time:
PLCs operate in real-time which means that an event taking place in the
field will result in an operation or output taking place.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 11 of 47
Advantages of PLC Control Systems
Easier To Troubleshoot:
PLCs have resident diagnostic and override functions allowing users to
easily trace and correct software and hardware problems.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 12 of 47
PLC Architecture
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 13 of 47
PLC System
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 14 of 47
PLC Architecture
An open architecture design allows the system to be connected easily to
devices and programs made by other manufacturers.
NOTE:
When working with PLC systems that are proprietary in nature you must be sure that any
generic hardware or software you use is compatible with your particular PLC.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 15 of 47
I/O Configurations
Fixed I/O
Is typical of small PLCs
Comes in one package, with no
separate removable units.
The processor and I/O are
packaged together.
Lower in cost – but lacks
flexibility.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 16 of 47
I/O Configurations
Modular I/O
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 17 of 47
I/O Configurations
Modular I/O
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 18 of 47
Power Supply
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 19 of 47
Processor (CPU)
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
I/O Section
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
I/O Section
Input Module
Forms the interface by which input
field devices are connected to the
controller.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
I/O Section
Output Module
Forms the interface by which
output field devices are connected
to the controller.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
Programming Device
PC with appropriate software
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Mixer Process Control Problem
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
Process Control Relay Ladder Diagram
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Output Module Connections
Same output field device
is used and wired to the
output module
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Operating Cycle
During each operating cycle, the
controller examines thestatus of
input devices, executes the user
program, and changes outputs
accordingly
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Operating Cycle
The can be considered to represent a coil that, when energized, will close a set of contacts
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Operating Cycle
Coil O/1 is energized when contacts I/1 and I/2 are closed or when
contact I/3 is closed. Either of these conditions provides a continuous
path from left to right across the rung that includes the coil.
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
Modifying A PLC Program
Same basic
architecture
PC
PLC Capable of executing several
Operates in the industrialenvironment programs simultaneously, in any
Is programmed in relayladder logic order
Has no keyboard, CD drive,monitor, or Some manufacturers have
disk drive software and interface cards
Has communications ports,and available so that a PC can dothe
terminals for input andoutput devices work of a PLC
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PC Based Control Systems
Advantages
Lower initial cost
Less proprietary hardwareand software
required
Straightforward data exchangewith other
systems
Speedy information processing
Easy customization
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PC Based Control Systems
Criteria
Number of inputs and outputs (I/O count)
Cost
Physical size
Nano PLC
Smallest sized PLC
Handles up to 16 I/O points
Micro PLC
Handles up to 32 I/O points
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Size Classification
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
PLC Instruction Set
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47
Typical PLC Instructions
XIC (Examine ON) . . . . . . . Examine a bit for an ON condition
XIO (Examine OFF) . . . . . . Examine a bit for an OFF condition
OTE (Output Energize) . . . . Turn ON a bit (non retentive)
OTL (Output Latch) . . . . . . Latch a bit (retentive)
OTU (Output Unlatch) . . . . Unlatch a bit (retentive)
TOF (Timer Off-Delay) . . . . . Turn an output ON or OFF after its
rung has been OFF a preset timeinterval
TON (Timer On-Delay) . . . . Turn an output ON or OFF after its
rung has been ON for a preset time interval
CTD (Count Down) . . . . . . . Use a software counter to count down
from a specified value
CTU (Count Up) . . . . . . . . . Use a software counter to count up
to a specified value
Dr.Eng. Wael Soliman Lecture – Introduction to PLC’s – MTI Faculty of Engineering – Winter 2021 20 of 47