Beruflich Dokumente
Kultur Dokumente
INTRODUCTION TO PLC
LADDER LOGIC PROGRAMMING
3/21/2011 1
Coverage
PART-1: Introduction to PLC
• What is Programmable Logic Controller?
• Components of PLC
• How does a PLC function?
• Programming methods for PLCs – Ladder, SL,
FB,..
• PLC communications.
• Applications of PLCs
PART-2: Programming the PLC.
3/21/2011 2
1
3/21/2011
WHAT IS PLC?
• Acronym for PROGRAMMABLE LOGIC CONTROLLER.
• Digital computer used in automation of electro-
mechanical processes.
• uses programmable memory for internal storage of
instructions
• implementing specific functions such as logic,
sequencing, timing, counting and arithmetic
• controls through digital or analog inputs and outputs
• A replacement for hard-wired complex relay logic.
• Earliest PLCs: Year 1960
3/21/2011 3
Differences
Wired Logic Panel & PLC Based Panel
2
3/21/2011
Differences
Wired Logic Panel & PLC Based Panel
3/21/2011 5
PLC sizes
SMALL upto 128 IOs, memory upto 2 Kbytes.
Rs:20000 Modicon m340
MEDIUM upto 2048 IOs, memory upto 32 Kbytes.
Rs: Modicon premium
LARGE typically 8192 IOs, memory 750 Kbytes;
can control individual production
processes or entire plant.
Quantum
3/21/2011 6
3
3/21/2011
3/21/2011 7
COMPONENTS OF A PLC
POWER
SUPPLY
I M O M
N O PROCESSOR U O
P D + T D
U U P U
T L Registers / U L
From E T E
SENSORS
Memory To
OUTPUT
Pushbuttons, Solenoids,
contacts, contactors,
limit switches, alarms
etc. etc.
PROGRAMMING
DEVICE
3/21/2011 8
4
3/21/2011
COMPONENTS OF A PLC
• Processor: Provides intelligence to command and govern the
activities of the entire PLC systems.
• Power Supply: Provides the 24V dc voltage needed to run the primary
PLC components or driven machine.
3/21/2011 9
I/O MODULES
Flow rate
Float level
3/21/2011 10
5
3/21/2011
I/O MODULES
DC INPUT MODULE
IS NEEDED TO:
USE TO • Prevent voltage
DROP THE transients from
VOLTAGE damaging the
TO LOGIC processor.
LEVEL •Helps reduce the
effects of electrical
noise
Current Buffer,
FROM Limiting OPTO-
Filter,
TO
INPUT Resistor ISOLATOR hysteresis
PROCESSOR
DEVICE Circuits
3/21/2011 11
I/O MODULES
AC INPUT MODULE
IS NEEDED TO:
CONVERTS THE AC • Prevent voltage
INPUT TO DC AND transients from
DROPS THE VOLTAGE damaging the
TO LOGIC LEVEL processor.
•Helps reduce the
effects of electrical
noise
Rectifier, Buffer,
FROM Resistor OPTO-
Filter,
TO
INPUT Network ISOLATOR Hysteresis
PROCESSOR
DEVICE Circuits
3/21/2011 12
6
3/21/2011
I/O MODULES
pump
valve
3/21/2011 13
I/O MODULES
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
3/21/2011 14
7
3/21/2011
3/21/2011 15
INPUTS OUTPUTS
MOTOR
VFD
LAMP
PUSHBUTTONS
PLC
16
8
3/21/2011
Level Transmitter IN
PLC
Analog
Tank Input
Module
ANALOG OUTPUT
ANALOG INPUT
Electric to pneumatic transducer
OUT
E Supply air
PLC 0 to 10V P
Analog
Output
Module
Pneumatic control valve
3/21/2011 17
IN
OFF PLC
Logic 0
Input OUT
Module
PLC
24 V dc
Lamp
Digital
IN
Output
Module
ON PLC
Logic 1
Input
Module
24 V dc
3/21/2011 18
9
3/21/2011
PROCESSOR
• To analyze data coming from field sensors
through input modules, make decisions based
on the user’s defined control program and
return signal back through output modules to
the field devices.
3/21/2011 19
APPLICATION
(data table + •The application memory is divided into the data table area and
user program ) user program area.
•The data table stores any data associated with the user’s control
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.
3/21/2011 20
10
3/21/2011
PHASE 2
Input scan
PHASE 3
Logic scan
PHASE 4
Output Scan
OPERATION SEQUENCE
• Self test: it will check it's own hardware and
software for faults.
• Input scan: it will copy all the input values
into memory
• Logic scan: based on input , program is
executed .
• Output scan : It copies output values from
memory to output devices
3/21/2011 22
11
3/21/2011
3/21/2011 23
3/21/2011 24
12
3/21/2011
PLC COMMUNICATIONS
3/21/2011 25
RS 232
13
3/21/2011
RS 485
3/21/2011 28
14
3/21/2011
3/21/2011 29
3/21/2011 30
15
3/21/2011
MINI
MICRO
3/21/2011 31
SELECTING A PLC
1. Number of logical inputs and outputs.
2. Memory.
3. Number of special I/O modules.
4. Scan Time.
5. Communications.
6. Software.
3/21/2011 32
16
3/21/2011
EUROPEAN 1. Siemens
2. Klockner & Mouller
3. Festo
4. Telemechanique
3/21/2011 33
JAPANESE 1. Toshiba
2. Omron
3. Fanuc
4. Mitsubishi
3/21/2011 34
17
3/21/2011
AREAS OF APPLICATION
Manufacturing / Machining
Food / Beverage
Metals
Power
Mining
Petrochemical / Chemical
3/21/2011 36
18
3/21/2011
Programming PLCs
3/21/2011 37
IEC61131-3
3/21/2011 38
19
3/21/2011
IEC61131-3
1. Ladder Diagram (LD).
GRAPHICAL
2. Sequential Function Chart (SFC).
3/21/2011 39
FBD
LD
SFC
3/21/2011 40
20
3/21/2011
IL
ST
3/21/2011 41
3/21/2011 42
21
3/21/2011
LADDER PROGRAMMING
Ladder Rung
E
Left Power Rail Right Power Rail
G
Branch
H
I J
S
K
R
3/21/2011 43
OFF 0 1
ON 1 0
BOX
Relay coil
3/21/2011 44
22
3/21/2011
AND OPERATION
A B C
Rung
3/21/2011 45
OR OPERATION
C
A
Rung
3/21/2011 46
23
3/21/2011
NOT OPERATION
A C
Rung
3/21/2011 47
24
3/21/2011
• Initially the tank is empty. Therefore, input 0000 is TRUE and input 0001 is also
TRUE.
• Gradually the tank fills because 500(fill motor) is on.
• After 100 scans the oil level rises above the low level sensor and it becomes open
(i.e. FALSE).
• Notice that even when the low level sensor is false there is still a path of true logic
from left to right. This is why we used an internal relay. Relay 1000 is latching the
output (500) on. It will stay this way until there is no true logic path from left to
right (i.e. when 0001 becomes false).
• After 1000 scans the oil level rises above the high level sensor at it also becomes
open (i.e. false).
• Since there is no more true logic path, output 500 is no longer energized (true) and
therefore the motor turns off.
• After 1050 scans the oil level falls below the high level sensor and it will become
true again.
• Notice that even though the high level sensor became true there still is NO
continuous true logic path and therefore coil 1000 remains false!
• After 2000 scans the oil level falls below the low level sensor and it will also
become true again. At this point the logic will appear the same as SCAN 1 above
and the logic will repeat.
3/21/2011 49
SYMBOL SYMBOL
3/21/2011 50
25
3/21/2011
1. Allen-Bradley – Rockwell
Software RSLogix500
2. Modicon - Modsoft
3. Omron – Syswin
4. GE-Fanuc Series 6 –
LogicMaster6
5. Square D- PowerLogic
6 . Te x a s I n s t r u m e n t s – S i m a t i c
7 . Te l e m e c a n i q u e – M o d i c o n T S X
Micro
3/21/2011 51
3/21/2011 52
26
3/21/2011
REFERENCE
http://www.google.co.in/
http://www.scribd.com/
3/21/2011 53
THANK YOU
3/21/2011 54
27
3/21/2011
PLC PC
Environment The PLC was specifically Common PCs are not
designed for harsh designed for harsh
conditions with electrical environments.
noise, magnetic fields, Industrial PCs are
vibration, extreme available but cost
temperatures or humidity more
PLC PC
PLCs execute a single PCs, by design, are
Speed
program in sequential meant to handle
order. The have better simultaneous tasks.
ability to handle events in They have difficulty
handling real time
real time
events
Reliability A PLC never crashes over A PC locking up and
long periods of time. crashing is frequent.
("Never" may not be the
right word but its close
enough to be true.)
Data Memory is limited in its This is where the PC
management ability to store a lot of excels because of it's
data. hard drive. Any long
term data storage,
history and trending is
best done on a PC.
28