Basics of PLC
Basics of PLC
Course Contents
History of Programmable Controllers
Relay Ladder Logic
Central Processing Unit
Input/Output System
Programming and Peripheral Devices
Programming Concepts
Applications
Troubleshooting and Maintenance
2
INTRODUCTION TO PLCS
Advantages of PLCs
• Less wiring.
• Wiring between devices and relay contacts are done in
the PLC program.
• Easier and faster to make changes.
• Trouble shooting aids make programming easier and
reduce downtime.
• Reliable components make these likely to operate for
years before failure.
PLC Origin
5
Programmable Controller Development
1980 Intelligent I/O modules developed
Enhanced communications facilities
Enhanced software features
(e.g. documentation)
Use of personal microcomputers as
programming aids
1983 Low - cost small PLC’s introduced
1985 on Networking of all levels of PLC, computer
and machine using SCADA software.
6
Programmable Logic Controllers
( Definition according to NEMA standard ICS3-1978)
7
Leading Brands Of PLC
AMERICAN 1. Allen Bradley
2. Gould Modicon
3. Texas Instruments
4. General Electric
5. Westinghouse
6. Cutter Hammer
7. Square D
EUROPEAN 1. Siemens
2. Klockner & Mouller
3. Festo
4. Telemechanique
8
Leading Brands Of PLC
JAPANESE 1. Toshiba
2. Omron
3. Fanuc
4. Mitsubishi
9
Areas of Application
Manufacturing / Machining
Food / Beverage
Metals
Power
Mining
Petrochemical / Chemical
10
PLC Size
1. SMALL - it covers units with up to 128 I/O’s and
memories up to 2 Kbytes.
- these PLC’s are capable of providing
simple to advance levels or machine
controls.
2. MEDIUM - have up to 2048 I/O’s and memories up
to 32 Kbytes.
3. LARGE - the most sophisticated units of the PLC
family. They have up to 8192 I/O’s and
memories up to 750 Kbytes.
- can control individual production
processes or entire plant.
11
Major sections of a PLC
I M O M
N O
P D U O
U U PROCESSOR T D
T L P U
From E U L
To
SENSORS T E
OUTPUT
Pushbuttons, Solenoids,
contacts, contactors,
limit switches, alarms
etc. etc.
PROGRAMMING
DEVICE
13
Major Components of a Common PLC
POWER SUPPLY
I/O MODULES
14
Major Components of a Common PLC
PROCESSOR
PROGRAMMING DEVICE
15
Programming Device
Also known as:
Industrial Terminal ( Allen Bradley )
Program Development Terminal ( General Electric )
Programming Panel ( Gould Modicon )
Programmer ( Square D )
Program Loader ( Idec-Izumi )
Programming Console ( Keyence / Omron )
16
Programming Device
Types:
Hand held unit with LED / LCD display
Desktop type with a CRT display
Compatible computer terminal
17
I/O Module
• The I/O interface section of a PLC connects it to
external field devices.
18
I/O Modules
The Input module performs four tasks electronically
• First it senses the presence or absence of an
input signal at each of its input terminals. The
input terminal tells what switch , sensor, or
other signal is on or off in the process being
controlled.
• Second it converts the input signal for high, or
on, to a DC level usable by the modules
electronic circuit. For low, or off , input signal ,
no signal is converted, indicating off.
19
• Third the input module carries out electronic
isolation by electronically isolating the input
module output from its input.
20
I/O Module
DC INPUT MODULE
IS NEEDED TO:
Prevent voltage
USE TO
DROP THE transients from
VOLTAGE damaging the
TO LOGIC processor.
Helps reduce the
LEVEL
effects of electrical
noise
Current Buffer,
FROM Limiting Filter,
OPTO- TO
INPUT Resistor ISOLATOR hysteresis
PROCESSOR
DEVICE Circuits
21
I/O Module
AC INPUT MODULE
IS NEEDED TO:
CONVERTS THE AC Prevent voltage
INPUT TO DC AND transients from
DROPS THE damaging the
VOLTAGE TO LOGIC processor.
LEVEL Helps reduce the
effects of electrical
noise
Rectifier, Buffer,
FROM Resistor Filter,
OPTO- TO
INPUT Network ISOLATOR Hysteresis
PROCESSOR
DEVICE Circuits
22
23
24
25
I/O Module
DC / AC OUTPUT MODULE
IS NEEDED TO:
Prevent voltage
transients from
damaging the
processor.
Helps reduce the
effects of electrical
noise
Amplifier
FROM RELAY
TTL OPTO- TO
PROCESSOR ISOLATOR TRIAC
Circuits OUTPUT
X’SISTOR
DEVICE
26
27
I/O Circuits
DIFFERENT TYPES OF I/O CIRCUITS
28
I/O Circuits
2. General - Purpose Outputs
These are usually low- voltage and low-current and are used
to drive indicating lights and other non-inductive loads. Noise
suppression may or may not be included on this types of
modules.
3. Discrete Inputs
Circuits of this type are used to sense the status of limit
switches, push buttons, and other discrete sensors. Noise
suppression is of great importance in preventing false
indication of inputs turning on or off because of noise.
29
I/O Circuits
4. Analog I/O
30
I/O Circuits
5. Special - Purpose I/O
31
OUTPUTS
INPUTS MOTOR
CONTACTOR
LAMP
PUSHBUTTONS
PLC
32
Allen-Bradley 1746-1A16
L1 L2 I= Input
Module
I:2 slot # in rack
P. B SWITCH 0 Module
Terminal #
Address I:2.0/0
LADDER PROGRAM
INPUT MODULE
WIRING DIAGRAM
33
CONTACTOR
L2 L1 N.O
MOTOR
L2
C •SOLENOID
L1 •VALVES
FIELD WIRING •LAMP
•BUZZER
OUTPUT MODULE
WIRING
L1 O:4 L2
CONTACTOR 0
LADDER PROGRAM
34
Discrete Input
A discrete input also referred as digital input is an input that is
either ON or OFF are connected to the PLC digital input. In the
ON condition it is referred to as logic 1 or a logic high and in the
OFF condition maybe referred to as logic o or logic low.
OFF PLC
Logic 0
Input
Module
24 V dc
IN
OFF PLC
Logic 1
Input
Module
24 V dc
36
Analog Input
An analog input is an input signal that has a continuous
signal. Typical inputs may vary from 0 to 20mA, 4 to 20mA
(Mostly used) or 0 to10V. Below, a level transmitter monitors
the level of
liquid in the tank. Depending on the level Tx, the signal to the
PLC can either increase or decrease as the level increases
or decreases.
Level Transmitter IN
PLC
Analog
Tank Input
Module
37
Why 4 to 20mA is standard?
4-20mA has an inherent ‘live zero’. Zero engineering
units is 4.0mA, not 0.0mA. 0.0mA indicates an open
circuit, a failure or a fault mode like cut wires or a dead
transmitter. 0.0mA is not a valid reading of zero
engineering units and a wake-up call that there’s
something seriously wrong in the loop.
(electrical current level below about 3.6mA is
absolutely necessary because it is used to drive the
electronics of loop powered devices).
38
If 4-20mA current output is fed to the input card of any
controller, we use 250 Ohm resistor in path to convert
this current signal into voltage signal of range 1-5V.
•As a standard, the ADC of the controller only
process voltage signals that are in the range of 1-5V.
It is another reason to use current signal in the range
of 4-20mA.
•Hence, it is best practice to use 4-20mA current signal
instead of 0-20mA. Not only, this range help us in
detecting open circuit faults, but also, it becomes easy
to covert this signal into 1-5VDC voltage signal which
will be processed by the input card of mostly
controllers. 39
4-20 mA can be designed for Intrinsically Safe
approval for use in hazardous areas, which allows
troubleshooting the circuit while it’s ‘live’ and
powered.
PLC
Lamp
Digital
Output
Module
41
Analog Output
OUT
E Supply air
PLC 0 to 10V P
Analog
Output
Module
Pneumatic control valve
42
Processor
The processor module contains the PLC’s microprocessor,
its supporting circuitry, and its memory system.
APPLICATION
•The application memory is divided into the data table area and
•Data Table user program area.
•The data table stores any data associated with the user’s control
•User Program program, such as system input and output status data, and any
stored constants, variables, or preset values. The data table is
where data is monitored, manipulated, and changed for control
purposes.
•The user program area is where the programmed instructions
entered by the user are stored as an application control program.
44
Memory Designs
VOLATILE.
A volatile memory is one that loses its stored information
when power is removed.
45
Memory Designs
46
Memory Designs
Several Types of RAM Memory:
1.MOS
2.HMOS
3.CMOS
47
Memory Designs
NON-VOLATILE
Has the ability to retain stored information when power is
removed, accidentally or intentionally. These memories do not
require battery back-up.
48
Memory Designs
Other Types of Non-Volatile Memory
49
Memory Designs
EPROM, Erasable Programmable Read Only Memory
50
Memory Designs
EEPROM, Electrically Erasable Programmable Read
Only Memory
51
PLC Operation
Basic Function of a Typical PLC
Read all field input devices via the input interfaces, execute
the user program stored in application memory, then, based
on whatever control scheme has been programmed by the
user, turn the field output devices on or off, or perform
whatever control is necessary for the process application.
52
While the PLC is running, the scanning process includes the
following four phases, which are repeated continuously as
individual cycles of operation:
PHASE 1
Read Inputs
Scan
PHASE 2
Program
Execution
PHASE 3
Diagnostics/
Comm
PHASE 4
Output
Scan
53
PHASE 1 – Input Status scan
A PLC scan cycle begins with the CPU reading the status
of its inputs.
PHASE 2– Logic Solve/Program Execution
54
PHASE 4 - Output Status Scan
•An output status scan is then performed, whereby the
stored output values are sent to actuators and other field
output devices. The cycle ends by updating the outputs.
55
As soon as Phase 4 are completed, the entire cycle begins
again with Phase 1 input scan.
56
PLC Communications
Common Uses of PLC Communications Ports
Changing resident PLC programs - uploading/downloading
from a supervisory controller (Laptop or desktop computer).
Forcing I/O points and memory elements from a remote
terminal.
Linking a PLC into a control hierarchy containing several
sizes of PLC and computer.
Monitoring data and alarms, etc. via printers or Operator
Interface Units (OIUs).
57
PLC Communications
Serial Communications
Common Standards
RS 232
Used in short-distance computer communications, with the
majority of computer hardware and peripherals.
Has a maximum effective distance of approx. 30 m at 9600
baud.
58
PLC Communications
Local Area Network (LAN)
Used for longer-distance links, often between several PCs
in a distributed system. RS 485 can have a maximum
distance of about 1000 meters.
60
Specifications
Several factors are used for evaluating the quality and
performance of programmable controllers when selecting a
unit for a particular application. These are listed below.
NUMBER OF I /O PORTS
61
The digital signal that is generally compatible
with the microprocessor in the PLC is 5 V d.c.
Sinking 69
Selecting a PLC
Criteria
SCAN TIME
71
Specifications
MEMORY CAPACITY
72
A Detailed Design Process
78
Coils
79
Boxes
80
AND OPERATION
A B C
Rung
81
OR OPERATION
A C
Rung
82
NOT OPERATION
A C
Rung
83