PLC Training
PLC Training
INDUSTRIAL
AUTOMATION ENGINEER
TRAINING
PLC
(PROGRAMMABLE LOGIC CONTROLLER)
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 1
Contents
Enriching Skills
• Introduction of PLC
• Block Diagram of PLC and Role of each module
• Types of I/O Modules
• I/O configuration types
• Scan Cycle of PLC
• PLC Wiring
• PLC Programming Software Introduction
• Basic Instructions
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 2
Enriching Skills
Introduction of PLC
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 3
COMPARISON Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 5
Transition from Relays to Bits
Application of Relay to a circuit Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 6
Transition from Relays to Bits
Application of Relay Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 7
Transition from Relays to Bits
Application of Relay Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 8
Transition from Relays to Bits
Illustration of relay Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 9
Transition from Relays to Bits
NC contact & NO contacts: True or False Enriching Skills
Coil: On or Off
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 10
Transition from Relays to Bits
Bar Type Contact Relay Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 11
PROGRAMMABLE LOGIC Enriching Skills
CONTROLLER
• A PLC is a microprocessor based, mini-computer
specifically tailored specifically for certain control
tasks
• It uses programmable memory to store instructions
and specific functions that include On/Off control,
timing, counting, sequencing, arithmetic and data
handling to control machines and processes
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 12
•
Enriching Skills
V2-01/05/2015 © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 13
PROGRAMMABLE LOGIC Enriching Skills
CONTROLLER
• Extensive use of PLCs because of:
Flexible
Faster Response time
Less and simpler wiring
Modular design – easy to repair and troubleshoot
Rugged – can withstand harsh industrial
surroundings
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 14
HISTORY OF PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 15
HISTORY OF PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 16
GENERAL FEATURES OF A
PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 17
TYPICAL PLC APPLICATION Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 18
TYPICAL PLC APPLICATION Enriching Skills
We can also see devices that can create actions to the batch of beer,
such as the motor, that can turn on and mix the beer, or the valves
that can open or close, to either allow beer ingredients to fill the tank,
or to allow the batch of beer out of the tank to the next stage of the
system. We call these devices “Output Devices”.
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 19
TYPICAL PLC APPLICATION Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 20
ADVANTAGES OF PLCs Enriching Skills
FLEXIBILITY
It is easier to create and change a
program in a PLC than to wire and
rewire a circuit.
The program can be modified by
the end-user on field.
Moreover, one model of a PLC can
be used to run numerous
machines with distinct program
for each machine.
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 21
ADVANTAGES OF PLCs Enriching Skills
LOWER COST
With day-by-day improving
technology, it is possible to
get more functions (relays,
timers, counters, sequencers)
into smaller and less
expensive packages.
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 22
ADVANTAGES OF PLCs Enriching Skills
CAPABILITY OF
COMMUNICATION
PLCs can be communicated to
perform functions such as:
supervisory control, data
gathering, monitoring devices
and process parameters, and
downloading and uploading of
programs.
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 23
ADVANTAGES OF PLCs Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 24
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 25
COMPONENTS OF PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 26
COMPONENTS OF PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 27
PROCESSOR, Enriching Skills
CONTROLLER, OR CPU
• Stores the control program and
data in its memory
• Reads the status of connected
input devices
• Executes the control program
• Commands connected outputs to
change state based on program
execution
For example: Turn a light on,
start a fan, adjust a speed, or
temperature
• Comes in various physical forms
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 28
PROCESSOR, Enriching Skills
CONTROLLER, OR CPU
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 29
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 30
I/O MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 31
I/O MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 32
TYPES OF I/O MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 33
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 34
I/O CONFIGURATION:
TYPES
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 35
LOCAL I/O Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 36
INPUT MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 37
INPUT MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 38
OUTPUT MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 39
OUTPUT MODULES Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 40
EXTENDED-LOCAL I/O Enriching Skills
V2-01/05/2015 © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 41
REMOTE I/O Enriching Skills
V2-01/05/2015 © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 42
REMOTE I/O Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 43
Enriching Skills
CHASSIS/BACKPLANE
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 44
CHASSIS/BACKPLANE Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 45
CHASSIS AND BACKPLANE Enriching Skills
EXAMPLES
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 46
Enriching Skills
POWER SUPPLY
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 47
POWER SUPPLY Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 48
FORMS OF POWER
SUPPLIES
Enriching Skills
V2-01/05/2015 © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 49
AREAS OF APPLICATION Enriching Skills
Manufacturing / Machining
Food / Beverage
Metals
Power
Mining
Petrochemical / Chemical
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 50
CONTACTOR
Enriching Skills
OUTPUTS
INPUTS MOTOR
CONTACTOR
LAMP
PUSHBUTTONS
PLC
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 51
APPLICATION OF
PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 52
TYPES OF PLC Enriching Skills
PLC
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 53
TYPES OF SIGNALS Enriching Skills
S/G
DIGITAL ANALOG
24V DC C-4ma to20ma
0V DC V-0v to 10v
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 54
DIGITAL INPUTS
Enriching Skills
Pushbuttons
Toggle Switch
Proximity Sensor
ON/OFF Switch
Relay
Level Switch
Pressure Switch
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 55 55
DIGITAL OUTPUTS
Enriching Skills
Contactor
Solenoid Valve
LED
Motor
Bulb
Indicators
Relay
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 56
ANALOG IN/OUTs
Enriching Skills
Temp Sensor
Flow Sensor
Level Sensor
Pressure Sensor
Speedometer
Control Valve
Drive
Encoder
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P.
57
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 58
SCAN CYCLE OF PLC – PLC
OPERATION
Enriching Skills
The Scan Time, the time required for one full cycle, provides a
measure of the speed of response of the PLC.
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 59
BASIC TERMINOLOGY
• Scan Time: The time required for the controller to read all inputs, Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 60
SCAN RATE/SCAN TIME Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 61
VARIOUS BRANDS OF PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 62
PROGRAMMING
LANGUAGES IN PLC
Enriching Skills
Instruction List ( IL )
Types of Plc.
Types of I/Os.
Number of I/Os.
Scan Time.
Number of communication port.
Sinking and Sourcing Concepts.
Memory Size.
Bit Resolution of plc for analog.
Types of Protocols
Baud rate of plc.
User friendly
Compact in size
Cost Effective
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 64
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 65
Available PLCs of Allen Bradley
Enriching Skills
PICO
Micrologix
SLC
PLC
Compact logix
Flex logix
Control logix
Drive logix
Soft logix
Guard logix
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 66
CONFIGURATION OF PLC
ALLEN BRADLEY Enriching Skills
MICROLOGIX 1000 IK 32
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 68
Allen Bradley : Micrologix Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 69
Allen Bradley : SLC
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 70
Allen Bradley : PLC
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 71
Allen Bradley : Compact Logix
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 72
Allen Bradley : FlexLogix
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 73
Allen Bradley : Control Logix
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 74
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 75
SINKING / SOURCING Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 76
Wiring of plc
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 77
SINKING(PNP) Enriching Skills
PNP
Direction of
PLC
current is
inward to the PLC
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 78
SINKING(NPN) Enriching Skills
NPN
NO NC Direction of
PLC
current is
inward to the PLC
common
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 79
SOURCING(NPN) Enriching Skills
NPN
Direction of
current is
PLC
Outward from the PLC
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 80
SOURCING(PNP) Enriching Skills
PNP
NO
NC Direction of
PLC
current is
Outward from the PLC
common
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 81
Opto -coupler
Enriching Skills
Stop
Opto coupler
S/W
Com
Diode transistor pair is called optical isolation (produces 1.5kv
isolation).
In case one diode is parallel to another diode in
opposite polarity. It can act as source or sink both
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 82
Input wiring of plc as
sinking input Enriching Skills
Opto-coupler
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 83
Input wiring of plc as
sourcing input Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 84
output wiring of plc as
sourcing output Enriching Skills
Ac mains
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 85
output wiring of plc as
sinking output Enriching Skills
Ac mains
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 86
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 87
RSLogix 500 Overview
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 88
RSLogix 500 Overview Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 89
Difference B/W RS Logix
Series
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 90
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 91
CATELOGUE OF MICROLOGIX
PLC Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 92
DATA FILES IN MICROLOGIX Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 93
Data files in AllenBradely
Enriching Skills
Input File I
Status File S2
Binary File B3
Timer File T4
Counter File C5
Control File R6
Integer File N7
Float File F8
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 94
I/O Addressing
Enriching Skills
File name I
Slot No. 0
Word No. 0
Bit No. 2
So, The address of this bit will be
I:0.0/2
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 95
RSLinx Overview Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 96
Enriching Skills
Basic Instructions
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 97
BASIC INSTRUCTIONS Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 98
BASIC INSTRUCTIONS Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 99
PLC PROGRAMMING LADDER
LOGIC Enriching Skills
Each line of code is known as a “rung”. In this example there are 4 rungs,
numbered 0, 1 and 2, and the end rung marking the end of the program.
The PLC executes the program 1 rung at a time, starting with the first rung and
then working down.
Ladder logic rungs are basically IF-THEN statements. Each individual rung is
executed from the left to the right
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 100
REALIZATION OF BASIC GATES
USING BASIC Enriching Skills
PLC INSTRUCTIONS
• The logical AND function is constructed by series combinations of
digital (discrete) inputs
– Two (or more) series components
• The logical OR function is constructed by parallel combinations of
digital (discrete) inputs
– Two (or more) parallel components
• The logical NOT function is constructed by referencing the input
signal with a normally closed contact (XIO instruction)
• More complex Boolean expressions can be formulated with various
serial-parallel combinations of XIC and XIO instructions
– NAND, NOR, XOR, XNOR
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 101
EQUIVALENT LADDER LOGIC
DIAGRAM
Enriching Skills
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 102
Enriching Skills
Any Queries?
V2-01/05/2015 BY LALITESH © Sofcon India Pvt. Ltd., C-87, Sector 88, Noida, U.P. 103