Unit 3 PLC (Programmable Logic Controller)
Unit 3 PLC (Programmable Logic Controller)
Unit 3 PLC (Programmable Logic Controller)
Unit 3
PLC (Programmable Logic Controller )
Basic PLC
Objectives
Evolution of PLC.
Introduction to PLC.
Comparison with RLC.
Describe the major components of a common PLC.
I/O addressing.
Specifications of PLCs.
2
Basic PLC
3
Basic PLC
PLC Origin
4
Basic PLC
Historical Background
The Hydramatic Division of the General Motors Corporation
specified the design criteria for the first programmable controller in 1968.
Their primary goal was to eliminate the high costs associated with
inflexible, relay-controlled systems.
Evolution of PLC
6
Basic PLC
Evolution of PLC
7
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Basic PLC
Advantages of PLCs
1. Less wiring.
2. Wiring between devices and relay contacts are done
in the PLC program.
3. Easier and faster to make changes.
4. Trouble shooting aids make programming easier and
reduce downtime.
5. Reliable components make these likely to operate for
years before failure.
21
Basic PLC
Basic PLC
PLC: functions
• Communication
• Human interface
24
Basic PLC
Control PLC
large
COM1
COM 2
Station
COM1
PLC
COM 2
COM1
CPU
gateway
CPU
CPU
I/O
PLCs with Field Bus
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
COM
COM
COM
COM
CPU
CPU
CPU
direct I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
Field Stations FB
small PLC gateway Field Devices
data concentrators,
not programmable,
but configurable Sensor Bus (e.g. ASI)
25
Basic PLC
Why 24V / 48 V supply ?
26
Basic PLC
EUROPEAN 1. Siemens
2. Bosch
3. Festo
4. Telemechanique
27
Basic PLC
JAPANESE 1. Toshiba
2. Omron
3. Fanuc
4. Mitsubishi
28
Basic PLC
Areas of Application
Manufacturing / Machining
Food / Beverage
Metals
Power
Mining
Petrochemical / Chemical
29
Basic PLC
Types of PLC: Based on Structure
(1) Compact (Micro PLC)
Monolithic construction
Monoprocessor
Fieldbus connection
Fixed casing
Fixed number of I/O (most of them binary)
No process computer capabilities (no MMC)
Typical product: Mitsubishi MELSEC F, ABB AC31, SIMATIC S7
(2) Modular PLC
Modular construction (backplane)
One- or multiprocessor system
Fieldbus and LAN connection
3U or 6U rack, sometimes DIN-rail
Large variety of input/output boards
Connection to serial bus
Small MMC function possible
Typical products: SIMATIC S5-115, Hitachi H-Series, ABB AC110, Bosch L20 DP
(3) Soft-PLC
Windows NT or CE-based automation products
Direct use of CPU or co-processors
30
Basic PLC
33
Basic PLC
Medium/ Large Modular PLC
CPU1
PLC in a cabinet CPU2
serial connections
redundant
field bus inputs/outputs
connection
34
Basic PLC
I/O modules
35
Basic PLC
PLC evolution
Binary World Analog World
relay controls, Pneumatic and electromechanical
Relay control controllers
pneumatic sequencer
I1
A
B
C
P1
P2
(1+Ts)
x F(s) = y
(1+T1s + T2 s )2 time
the principal task of the control system for a continuous plant is its regulation.
Basic PLC
Discrete Plant
b
init c+d
2 3 4
a e
Examples: Elevators, c + ¬d
traffic signaling, e
1
warehouses, etc.
7 6 5
Discrete plants are normally reversible, but not monotone, i.e. negating the event
which caused a transition will not revert the plant to the previous state.
Example: an elevator doesn't return to the previous floor when the button is released.
Discrete plants are described e.g. by finite state machines or Petri nets.
the main task of a control system with discrete plants is its sequential control.
Basic PLC
SOLENOIDS B
SOLENOID
C
TIMER
1 -MINUTE
39
Basic PLC
2. When the tank is filled, the float switch trips. This de-
energizes solenoids A and B and starts the motor used to
mix the liquids together.
40
Basic PLC
41
Basic PLC
POWER
SUPPLY
I M PROCESSOR O M
N O CPU
P D ALU U O
From U U Memory T D
SENSORS T L P U To
E U L OUTPUT
Pushbuttons, T E Solenoids,
contacts, contactors,
limit switches, alarms
PROGRAMMING
etc. etc.
DEVICE
42
Basic PLC
43
Basic PLC
2) Parallel I/O
PROGRAMMING DEVICE
External device used to enter the desired program that will determine
the sequence of operation and control of process equipment or
driven machine. Different types of programming devices used with
PLC are:
4. Hand held terminals
5. Dedicated terminals
6. Microcomputer (PC) 46
Basic PLC
Programming Device
Also known as:
Programmer ( Square D )
Programming Device
1. Hand held unit with LED / LCD display : It is a small self contained
unit in which the ladder diagram is displayed one rung at a time in a
special liquid crystal display. The user can enter a program, perform
diagnostic tests, run the program through the programmable
controller and perform editing of the installed program. The installed
program is stored in a temporary memory that will be lost without ac
power or battery back up. The program can be permanently burned
into a ROM for final installation.
48
Basic PLC
2. Dedicated terminals: These are used with only one type and make
of PLC and is used when programming has to be done in mass for
the same type of the controller.
49
Basic PLC
Discrete Input Module
Most common input interface used with PLCs.
Current Signal
FROM Limiting Conditioning
OPTO- TO
INPUT Resistor ISOLATOR Buffer, Filter,
PROCESSOR
DEVICE hysteresis
Circuits
50
Basic PLC
IS NEEDED TO:
CONVERTS THE AC · Prevent voltage
INPUT TO DC AND transients
DROPS THE VOLTAGE from damaging
TO LOGIC LEVEL the processor.
· Helps reduce
the effects of
electrical noise
Rectifier, Signal
FROM Resistor Conditioning
OPTO- TO
INPUT Network ISOLATOR Buffer, Filter,
hysteresis PROCESSOR
DEVICE
Circuits
51
Basic PLC
52
Basic PLC
53
Basic PLC
54
Basic PLC
55
Basic PLC
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
56
Basic PLC
ADC
Analog
Filtering Optical (Analog to
Input CPU
and Scaling Isolation Digital
Signal
Conversion)
57
Basic PLC
Analog Output Module
It accepts a 16 bit output status word which they convert into an analog
value through digital to analog converter.
Analog output modules are selected to send out either a varying current
or voltage signal.
For Ex: If the speed of the DC motor is to be varied over a range of say
1000-3000 rpm, the voltage of an output module of range 0 – 1 V DC will
represent a specific speed over the range.
DAC
(Digital to Optical Field
CPU Amplifier
Analog Isolation Devices
Conversion)
58
Basic PLC
59
Basic PLC
General PLC architecture
RS 232 Ethernet
1
processing
binary transistor
binary
variable filtering sampling or
variable
(e.g. 0..24V) 0001111 relay
non-volatile
counter memory
y
time
Basic PLC
Signal chain in a protection device
Anti
Input aliasing Sample and hold Digital Protection Output
transformer filter A/D conversion filter algorithm driver
U/I
A/D
Trip
CPU
reaction < 10 ms
Selecting a PLC
Criteria
OUTPUTS
INPUTS MOTOR
CONTACTOR
LAMP
PUSHBUTTONS
PLC
Basic PLC
I/O Addressing
L1 L2 I= Input
Module slot no. in
rack /Byte no. in
%IX0.0 Input Table
Module
P. B SWITCH Terminal no./ Bit
no. in Input Table
Address %IX0.0
LADDER PROGRAM
INPUT MODULE
WIRING DIAGRAM
Basic PLC
CONTACTOR
L2 L1 N.O
MOTOR
L2
C • SOLENOI
L1 D
FIELD WIRING • VALVES
• LAMP
• BUZZER
Module slot no. in
OUTPUT MODULE rack / Byte no. in
WIRING Output Table
L1 %QX0.0 L2
Module
Terminal no./ Bit
Q= Output no. in Output Table
LADDER PROGRAM
I/O Addressing