Professional Documents
Culture Documents
Basic PLC Training PDF
Basic PLC Training PDF
By Himanshu Mishra
Good Morning
PLC Workshop
Upon completion:
The student will be familiar with the basic structure, operation, and
optional interfaces of a PLC
Have an understanding of the Central Processing Unit, the structure
of User Memories, Program Protection options, the CPU and I/O
System Scans will also be explained.
The student will be able to :
Describe the Input/Output interface;
Describe the functional operation;
Describe the PLC components.
M1
LS1
INPUTS
LOGIC
OUTPUTS
M1
SOL
M2R
What is a Logic?
Then this Logic scheme is turned into a physical system using the
basic building blocks of the particular technology selected,i.e.
Mechanical, Fluidic, Pneumatic, Electromechanical,
Electronics.
There are three basic system options that are open to a design
engineer.
Relay Logic
It has for many years been the work horse of most electrical installations.
Advantages:
It was simple for small systems, hence cost advantages
due to wide range of available coil voltages.
Disadvantages:
As the number of relays increases, it requires larger
physical area, coupled with costly enclosures, the labour charges, the
schematic and connection diagrams, escalates the final cost.
Wired Logic
Programmable Logic
Improved installation time
eliminate the need for extensive wiring of timers, relays and other components
Improved flexibility
enable control system changes simply by reprogramming
Much more compact than relay control panels, yet enables complex, high-level
control
Improved reliability
1.Programmable Controllers
The most significant development in the
industrial control field in previous half-century
..
What is a PLC?
Programming
Device
Input
Table
User
Program
Output
Table
Data
Storage
Input
Devices
Input/Output
System
Output
Devices
Processor
I/O Interface
Power Supply
Programming Device
+ Electronic Operator Interface
Program Panel
Output Devices
Solenoids
Motor Starters
Alarms
Indicators
D/A
Logic
BCD
Module
Module
Module
Module
Module
Module
Module
Module
Adapter
Input/Output Rack
Input Devices
Limit Switches
Pres. Switches
Prox. Switches
Temp. Switches
Push Buttons
A/D
Logic
BCD
Power Supply
Optional Interfaces
Programming
Device
CRT
Monitor
Modem
Modem
Telephone Modems
Peripheral
Peripheral
Equipment
Equipment
Processor
I/O
Memory
Communications
Port
Radio
Satellites
Input
InputDevices
Devices
Pushbuttons
Pushbuttons
Proximity
ProximitySwitches
Switches
Level
Switches
Level Switches
Photoelectric
PhotoelectricSensors
Sensors
Selector
Switches
Selector Switches
Level
LevelTransmitters
Transmitters
Pressure
PressureTransducers
Transducers
Output
Output
Devices
Devices
Contactors
Contactors
Starters
Starters
Solenoids
Solenoids
Pilot
PilotLights
Lights
Displays
Displays
Ethernet TCP/IP
Other PLCs
Host Computers
Operator Interfaces
Other
OtherPLCs
PLCs
Host
Computers
Host Computers
Color
ColorGraphics
Graphics
Etc.
Etc.
PLC Definition
Reliability
Flexibility
Advanced Functions
Communications
Speed
Diagnostics
PLC Advantages
Ease of programming
Ease of maintenance
Designed for industrial environment
Quick installation
Adaptable to change
1
8
3. History of PLCs
Historically
1978
1967 1958
1971 1969
1970
1979
1975
1963
1977
2
1
Evolution
2
2
Evolution
Manufacturing industries
Food and beverage industries
Power industry
Process industries
Metals industry
Pulp and paper industries
2
3
Evolution
2
4
Evolution
2
5
Evolution
2
6
Evolution
Expansion of capabilities
Operator communication
Analog control
Positioning control
Machine fault detection
Installations expand into minicomputer equivalent
applications
2
7
Evolution
2
8
Evolution
2
9
Evolution
3
0
Evolution
3
1
Evolution
Material handling/tracking
Decentralized process control
3
2
Evolution
PID control
Graphic operator interfaces
3
3
Evolution
3
4
3
5
Networked
Business and
Manufacturing
Systems
Enterprise
ERP
INFORMATION
Networked
Manufacturing
Systems
MRP II
MES/Batch
Plant
Floor
Programmable
Control
MMI/
SCADA
Fixed
Control
Control
System
Machine
CONTROL
19601970 1980 1990
TIME
2005
Devices
Control
Element
Logic capable devices to
improve performance and
reduce costs
Distribution of Control
Control migrating into other devices
Increased Importance of Networking
Im open
& Im OK!
Device
Element
Im open
Information Flow
Information
Remote
Client
Remote
Client
CRM
Remote
Client
Internet
Internet
Remote
Client
ERP
Server
MIS
Client
Terminal
Client
Terminal
Client
Terminal
Client
Terminal
Web Server
&
Firewall
Data Network/Intranet
Client
Terminal
Switch / Router
Thin Client
HMI
Control
HMI/SCADA
Control Network
Control
System
Devices
Fieldbus
Field
Devices
PLC
PLC
Fieldbus
Field
Devices
I/O
I/O
I/O
Field
Devices
Information
Information Flow
Internet
Internet
Webcast
Server
Web Server
&
Firewall
Email
from
PLC-1
Failure
Report
Ethernet TCP/IP
Control
Switch/Router
!
Ethernet TCP/IP
Modbus
ASi
BusX
BusX
Open Communications
Internet
Firewall
Ethernet
SMSTM
SCADA
ERP
Business Layer
Power Monitoring
Software
Symbols
tables
Ethernet
Switch
Switch
Switch
Switch
Switch
1234.5
AMMETER (A)
VOLTMETER, L- L (V)
VOLTMETER, L- N (V)
W ATTMETER (W )
VARMETER (VAr)
VA METER (VA)
POW ER FACTOR METER
FREQUENCY METER (Hz)
DEM AND AMMETER (A)
DEM AND POW ER (W)
DEM AND POW ER (VA)
W ATTHOU R METER
VARHOUR M ETER
THD, CURRENT (%)
THD, VOLTAGE (%)
K-FACTOR
Kilo
Mega
3-PHASE
A(A-B)
B(B-C)
C(C-A)
N
PHASE
SELECT
METER
METERS
MIN
MAX
ALARM
[Setup]
MODE
PowerLogic
CIRCUIT MONITOR
SQUARE D
Ethernet
PLC
PLC
Modbus
Bridge
VFD
Modbus
Bridge
HMI
Power
Meter
Hub
Ethernet
M1E
I/O
I/O
Seriplex
I/O
The driving force behind the development of the Micro PLC was the
demand by OEM for a PLC.
85mm (3.35)
10E/S 16E/S24E/S
TSX Nano
105mm (4.13)
135mm (5.32)
165mm (6.50)
60mm (2.36)
I
n
p
u
t
Optical
Isolation
Barrier
C
i
r
c
u
i
t
s
Central
Processor
MEMORY
program
data
Low Voltage
POWER SUPPLY
O
u
t
p
u
t
C
i
r
c
u
i
t
s
CR???????
Optical
Isolation
Barrier
Input Devices
Pushbuttons
Selector Switches
Limit Switches
Level/Pressure/Temperature Switches
Photoelectric Sensors
Proximity Sensors
Motor Starter Contacts
Relay Contacts
Thumbwheel Switches
Transducers/Transmitters
Encoders/Tachos/Resolvers
120 VAC
24 VDC
Output Devices
Valves
Motor Starters
Solenoids
Control Relays
Alarms
Lights
Fans
Horns
Relays
120 VAC/VDC
240 VAC/VDC
24 VAC/VDC
Triac
120 VAC
MOSFET
24 VDC
MEMORY
DATA
FILES
PROG
RAM
FILES
MEMORY
Bit
Nibble
Byte
Word
Double Word
Long Word
1or 0
4 bits
2 nibbles
2 bytes
2 words
2 D words
Octal
BCD
HEX
Integer (signed)
Unsigned Integer
Floating Point
IEEE
0-7
0-9
0-F (15)
-32767/ +32768
65,535
+/- 3.45x1038
to
+/-1.17x10-38
1.Input
Scan
3. Output
Scan
- -PLC
OPERATING
CYCLE
TYPICALLY
1 to 25 ms.
2. Program
Scan
Power Supplies
PLC Power supplies are typically designed to meet normal operation of +10
to -15%. Fluctuation in voltage.
Converts the incoming voltage to a useable form for the internal electronics
Protects the PLC s components from voltage spikes.For voltage condition
that are unstable insist on a CVT between PLC & primary power source.
Operates either on 120VAC/ 240 VAC/ 24VDC.
PLCs Power Supply is designed to meet short power losses without
affecting the operation of the system. PLC can operate for several ms
without line power before the PS signals the processor that it can no longer
provide adequate DC Power to the system. The CPU executes a controlled
shut down which saves the users program & data in memory
The other factor affecting the function of the PLC is EMI or electrical
noise.Use an isolation transformer, take care of shielding from Drives,
ensure proper earthing & cabling practices.
Personal Computer
Run PLC Programming Software
It creates, edits, document, store and troubleshoot ladder
diagrams, and generates printed reports.
Hand Held Programmer
Mainly a troubleshooting tool.
On factory floor you can modify the program, store the
program and transfer the program to multiple machines.
Operator Interfaces
These are not programming devices but graphic or
alphanumeric displays & control panels that consolidate all
the functions of traditional operator interface devices into a
single panel.
These products communicate with the PLC through a RS232
communication port & thereby I/Os are not sacrificed.
+VDC
+
DC
Power
Supply
DC COM
SOURCING Pushbutton
SINKING Pushbutton
+VDC
+
+
DC
Power
Supply
DC
Power
Supply
DC COM
Field
Device
IN1
DC
Input
Module
DC
Power
Supply
+VDC
DC COM
+
DC
Power
Supply
DC
Input
Module
Field
Device
IN1
+VDC
+VDC
OUT1
DC
Output
Module
Field
Device
DC
Output
Module
+
DC
Power
Supply
DC
Power
Supply
Field
Device
OUT1
DC COM
DC COM
RULES
Field devices on the positive side (+VDC) of the field power supply
are sourcing field devices.
Field devices on the negative side (DC COM) of the field power
supply are sinking field devices.
Programming Language
Electrical Continuity
L1
PB1 Stop
PB2
Start
L2
Motor
M1
Rung
M1
Power
Bus
Auxiliary Holding
Contact
Power
Bus
Rung
Condition Instruction
PB1 Stop
%I1
PB2 Start
%I2
%Q1
Auxiliary Contact
Control Instruction
Motor- M1
%Q1
L2
Condition Instruction
Normally Close
Instruction
Normally Open
Instruction
Normally Open
Instruction
Control Instruction
Output Energize
Instruction
(--I I--)
Input
Terminal
on PLC
% I3
Input
Terminal
on PLC
% I3
Ladder Program
% I3
True
% Q4
True
Ladder Program
% I3
False
Output Status of
Terminal Output
on PLC
ON
% Q4
% Q4
False
Output Status of
Terminal Output
on PLC
OFF
% Q4
(--I\I--)
Input
Device
PB1
Input
Terminal
on PLC
% I4
Input
Terminal
on PLC
% I4
Ladder Program
% I4
True
% Q5
True
Ladder Program
% I4
False
% Q5
False
Terminal Output
on PLC
ON
% Q5
Output Status of
Terminal Output
on PLC
OFF
% Q5
Combining Instructions
Two fundamental logic operations AND and OR provide the rules
for governing how the instructions are combined.
AND Logic
( )
OR Logic
( )
Y
||
%I 5
||
%Q 1
()
%I 5
%Q 1
||
||
Logical Continuity
()
Logical OR Construction
IF input 4 OR input 5 have power
THEN energize output 1
%I 4
||
%I 5
||
%Q 1
()
Logical OR Construction
IF input 1OR input 2 have power THEN energize output 1
%I 1
||
F %I 2
||
%Q1 T
()
Logical Continuity
Logical OR Construction
IF input 1 OR input 2 have power THEN energize output 1
%I 1
%Q1 T
||
F %I 2
()
Logical Continuity
||
%I 1 F
%Q1
||
T
%I 2
||
()
Logical Continuity
( )
X
( )
X
KEY PRESENT
DOME
LIGHT
( )
DOOR B
DOOR C
DOOR D
BELL
( )
Program Execution
I/O
No
Enabled
?
Yes
Input Scan
Run
No
Mode
?
Yes
Logic Solution
I/O
No
Enabled
?
Yes
Output Scan
Programmer
Communications
User Program
Checksum
Calculation
Housekeeping
Data Input
Scan time of PLC
Start of Sweep
Housekeeping
Program
Execution
Data Output
Programmer
Service
Diagnostics
RS-232
RS-422
RS-485
CL-20
Fibre Optic
Modbus
Unitelway
Modbus Plus
FIPIO
Fipway
Ethernet TCP IP
Profibus DP
Interbus
Lon Works
Will your smallest control application require fewer the 20 inputs/ outputs (I/O)?
20 to 40 I/Os?
Will your largest control application require 40 to 120 I/Os?
More than 1000 I/Os?
Do you require only digital I/O capability?
Will your control application require analog I/O capability?
Will your application involve pulse within a confined area, say, within a radius of 100 ft?
Do you plan to include, or add at some future date, reporting or data displaying equipment such as CRT terminals
or line printers?
Is there the possibility the PC will be connected to a control computer in a hierarchical system?
Will the application require programming equipment to diagnose faults, display status, generate documentation, or
handle off-line programming?
Will the controller need to have full range ac/dc capability?
Will you require protection or limited access to information stored in the memory?
Must the control retrofit to an existing machine or operation?
Will you do the engineering installation, programming, and checkout using in-house personnel?
Will you contract some of the work?
Most of the work?
All f the work?
Do you presently have personnel knowledgeable in PC, or who can readily trained?
Do you have service/maintenance personnel familiar with ladder diagram logic?
Do you have any severe environmental conditions which may effect equipment?
Must you produce a cost justification to get the approval of purchase?
Do you have any inherent resistance with in your plant towards the use of PCs such as fear of programming,
maintenance, or losing memory in the event of a power outage?
Timing
Counting
High speed counting
Sequencing
Data acquisition
Data calculations
Example
Use
Counts cars entering garage
Counts cars leaving garage
3.Electrical Requirements
When determining the electrical requirements of a system, consider three items
incoming power(power for the control system)
Input device voltage
Output voltage and current
To decide what type of voltage to use, consider the following:
What type of power is available(e.g. 24Vdc, 120Vor 240V ac)?
How will the machine or process controlled be used?
Will people come in contact with the machine?
What power do the field devices use?
What electrical codes apply?
Device
Push Button
Limit switch
Photoelectric sensor
Photoelectric sensor
Motor overload contact
Proximity sensor
Proximity sensor
Device
Solenoid
Light
Light
Horn
Gear motor forward
Gear motor reverse
Device
To be determined
To be determined
Voltage
24V dc
24V dc
24V dc
24V dc
24V dc
24V dc
24V dc
Voltage
24V dc
24V dc
24V dc
24V dc
120 V ac
120 V ac
Voltage
TBD
TBD
4.Speed of Operation
When determining the speed of operation, consider these points:
How fast does the process occurs or machine operates?
Are there time critical operations or events that must be detected?
In what time frame must the fastest action occur(input device
detection to output device activation)?
Does the control system need to count pulses from an encoder or
flow meter and respond quickly?
The control system selected needs to meet the speed demands of
the process or machine, so knowing these criteria is important.
Operator Interfaces
Communication
The parking control system does not require operator interface beyond the
ticket request push button, the green light and the alarm horn.
However communication capabilities could have provided the benefit, as if
the portion of the garage was being repaired and 50 parking space were
eliminated, it would be advantageous for the garage operator to change the
capacity parameters from 500 to 450.
7.Environment
Application
Characteristics
Required?
Quantity
PLC
SBC
Inputs
Yes
Yes
Yes
Yes
Outputs
Yes
Yes
Yes
Yes
Timers
No
Yes
Yes
Yes
Counters
Yes
1 up/down
Yes
Yes
Yes
No
No
Yes
Yes
Data Calculations?
No
No
Yes
Yes
Data acquisition
No
No
Yes
Yes
Communications
No
No
Yes
Yes
Operator interface
No
No
Yes
No
All the three control methods can accomplish the task, so the control
system cannot be selected on the application requirement alone.
To differentiate between control methods, we need to evaluate the
relative cost impact of each method using the following criteria.
Application Characteristics
Relay
PLC
SBC
Not applicable
Not applicable
****
**/***
*/**
Panel Assembly
***
Panel Space
***
Implementing Logic
***
**
***
Duplicating Application
****
Documenting Logic
****
**
Modifying Logic
****
**
Maintenance
***
*
**
* = Low, ** = Moderate, *** = High, **** = Very High
From the comparison we can see that PLCs are the easiest control system
to support. Assistance for programming and troubleshooting is available
at reasonable costs from many sources.
And if the PLC fails, a replacement PLC can be purchased off the shelf from
the nearest industrial electrical supplier--- there is no need to wait for a
shipment from the factory. Furthermore, the ruggedness of the PLCs
compared to SBCs gives them a definite advantage in harsh environment or
when durability is a primary consideration.
For all the criteria by which the control system are evaluated ---Cost, Size,
Flexibility, and Supportability micro PLC provide the user with distinct,
advantages over other control options for many control applications. Thus, a
micro PLC has been selected to provide the logic for the parking garage.
Defined Specifications
Electrical requirements
Relay Outputs
13 I/O +1I/O = 14 I/O, 14 x 10 Words= 140 estimated words of memory
required. Worksheet
Speed of operation
24 VDC
24 VDC (7 Devices)
120VAC (2 Devices) 24VDC (4 Devices)
Memory requirements
Incoming Power
Input Voltage
Output Voltage
Output circuits
Communication
Operator interfaces
Outputs
Provide Ticket
Raise gate
Lower Gate
Garage Full sign
Green Light
Alarm
Program Development
rung 1
Control Instruction
Condition Instruction
Ticket Request PB
%I1
Garage Full
%I2
Gate is Lowered
L2
Program Development
Control Point:
Conditions:
Rung 2
L1
rung 2
Condition Instruction
Ticket has been
taken Limit Switch
%I1
%Q1
Garage Full
%I2
Control Instruction
Gate is Up
Raise Gate
%Q1
L2
Program Development
Control Point:
Conditions:
Rung 3
L1
Condition Instruction
Vehicle Photo
Sensor (gate)
% I1
%Q1
rung 3
Vehicle clear
of Gate
%I2
Control Instruction
Vehicle present
Latch
%Q1
Program Development
Control Point:
Conditions:
Rung 4
L1
rung 4
Condition Instruction
Vehicle Present Vehicle Photo
Latch
Sensor (gate)
%I1
%I2
Control Instruction
Ticket Request
PB
%I2
Vehicle is Clear of
Gate
%Q1
Program Development
Control Point:
Conditions:
Rung 5
L1
rung 5
Condition Instruction
Gate is
Up
%I1
Vehicle is
clear of Gate
%I2
Lower Gate
Gate is
Gate is
Lowered Obstructed
%I2
%I2
Control Instruction
Lower Gate
%Q1
Program Development
Control Point:
Conditions:
Rung 6
L1
Condition Instruction
Gate is
Up
%I1
rung 6
Control Instruction
Green (GO)
Light
Program Development
Control Point:
Conditions:
Rung 7
L1
rung 7
Condition Instruction
Number of Vehicles
in the Garage
Control Instruction
Lower
Gate
Counter Up Counter
Preset 500
CU
DN
Program Development
Control Point:
Conditions:
Rung 8
L1
rung 8
Condition Instruction
Control Instruction
DN
C5:10
Garage is
full
Program Development
Control Point:
Conditions:
Rung 9
L1
rung 9
Condition Instruction
Number of Vehicles
in the Garage
Control Instruction
Count Down
Preset 500
CU
DN
Program Development
Control Point:
Conditions:
Rung 10
L1
->>Sound Alarm
->>If the gate is obstructed
Condition Instruction
Gate is
obstru
cted
rung 10
Control Instruction
Alarm
Sounded