Академический Документы
Профессиональный Документы
Культура Документы
• Introduction to Automation
1
Content of the chapter
2
Objectives
At the end of this course the trainee will be able to:
Compare the performance of manual, hardwired,
electronics and PLC methods of control and automation
List application of PLC
3
Automation
Automation or automatic control, is the use of
various control systems for operating equipment
such as machinery, processes in factories, boilers
and heat treating ovens, switching in telephone
networks, steering and stabilization of ships,
aircraft and other applications with minimal or
reduced human intervention.
4
Advantages of automation:
Higher productivity
Superior quality of end product
Efficient usage of energy and raw material
Improved safety in working conditions
Time saving
5
History Automation
6
Conventional /Hard wired Control System
7
Contd.
8
a) Power Circuit b) Control Circuit
Reversing the direction of three-phase induction motor
13
Advantages of PLCs
Reduced space
PLCs are fully solid state and hence extremely
compact as compared to hard-wired controller
wherein electromechanical devices are used
Energy saving
Average power consumption is just 1l10th of power
consumed by an equivalent relay logic control
Ease of maintenance
Modular replacement
Ease troubleshooting
Error diagnostics with programming unit
Economical
Considering one time investment; PLC is
most economical system
Cost of PLC recovers within a short
period(Low pay back period)
Greater life and reliability
Static device hence lesser number of moving
parts, reduced wear and tear
15
Tremendous flexibility
To implement changes in control logic no
wiring is required so considerable time is
saved
PLC can carry out complex functions such as
generation of timers delays, counting,
comparing, arithmetic operation etc
“On-Line”(i.e without disturbing the process)
as well as “Off-Line” programming is possible
High processing speed and great flexibility in
the processing of both analog and digital
signals
Suitability for closed loop tasks with several
loop and high sampling frequencies 16
Shorter project time
•The hard wired control system can be constructed
only after the task is fully defined. In the PLC,
however, the construction of the controller and
wiring are independent of control program
definition. This means that the total hardwired is
standard and desired control is achieved though
program
17
Easier storage Archiving and documentation
•This is due to its compatibility with hard copy
•Pen drive, CD, DVD , and Hard disk
18
Summery
• Ease of programming
• Ease of maintenance
• Designed forindustrial
environment
• Quick installation
• Adaptable tochange
Other Advantages of PLC
•Reduced costs
•Expandability
•Computing capabilities
22
Contd.
b) PLC based system
23
Eg.2 Sorting Machine. PLC ladder program control circuit
24
Wiring circuit of PLC for sorting machine
25
PLC Origin
27
Programmable Controller Development
1968 Programmable concept developed
1969 Hardware CPU controller, with logic
instructions, 1 K of memory and 128 I/O
points
1974 Use of several (multi) processors within a
PLC - timers and counters; arithmetic
operations; 12 K of memory
and 1024 I/O points
1976 Remote input/output systems introduced
1977 Microprocessors - based PLC introduced
28
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.
29
Programmable Logic Controllers
( Definition according to NEMA standard ICS3-1978)
A digitally operating electronic apparatus which
uses a programming memory for the internal
storage of instructions for implementing specific
functions such as logic, sequencing, timing,
counting and arithmetic to control through digital
or analog modules, various types of machines or
process.
30
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
31
Leading Brands Of PLC
JAPANESE 1. Toshiba
2. Omron
3. Fanuc
4. Mitsubishi
32
Application of PLC
• Examples of industries where PLC’s are used for control
and automation purpose:
Tyre industry
Galvanized plant
Dairy automation
Aviation industry
Etc
33
Sizing of PLC
35
Contd.
36
Contd.
37
Contd.
38
Contd.
39
Application: Tank Used to Mix Two Liquids
MOTOR
A
FS FLOAT SWITCH
SOLENOIDS B
C SOLENOID
TIMER
1 -MINUTE
40
Tank Used to Mix Two Liquids
A tank is used to mix two liquids. The control circuit operates
as follows:
42
Building block of PLC system
• The PLC is basically a programmed interface
between the field input elements like limit
switches, sensors, transducers, push buttons etc
and the final control elements like actuators,
solenoids valves, damper, drivers, LEDs,
hooters etc
• This interface is called PLC consisting:
1. Input modules
2. CPU with processor and program memory
3. Output modules
4. Bus system 43
5. Power supply
Major Components of a Common PLC
POWER
SUPPLY
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
44
Inside a PLC Communications
C C
I i O i
n r u r
p c Central t c
u u
i
Processor p u
i
t u
t t t CR
s s
High High
Voltag Isolation
Voltag
e Isolation MEMORY Barrie
r e
Barrie
r program data
Low Voltage
AC Power Supply External
85-264 or DC Power Supply
50/60Hz
VAC,
46
Major Components of a Common PLC
POWER SUPPLY
Provides the voltage needed to run the primary PLC
components
I/O MODULES
Provides signal conversion and isolation between the
internal logic- level signals inside the PLC and the field’s
high level signal.
47
Contd.
PROCESSOR
Provides intelligence to command and govern the activities
of the entire PLC systems.
PROGRAMMING DEVICE
used to enter the desired program that will determine the
sequence of operation and control of process equipment or
driven machine.
48
PLC illustrated with relay
49
Relay Logic vs. PLC & Ladder Logic
PB1 LS1 SOL2 Inputs Outputs
Programmable
Logic
Controller
LS1 PB2 CR3
C
R
LS3
Electric )
Programming Panel ( Gould Modicon )
Programmer ( Square D )
MPI Adaptor(Siemens)
51
Programming Device
Types:
52
Input/output Module
• The I/O interface section of a PLC connects it to
external field devices.
• The main purpose of the I/O interface is to condition the
various signals received from or sent to the external input
and output devices.
• Input modules converts signals from discrete or analog
input devices to logic levels acceptable to PLC’s processor.
• Output modules converts signal from the processor to
levels capable of driving the connected discrete or analog
output devices.
53
Input Modules
• The input module acts as an interface between
the field control inputs and the CPU
• The voltage or the current signals generated by
the sensors, transducers, limit switches, push
buttons etc are applied to the terminals of the
input module
• It converts the field signal into a standard control
signal for processing by the PLC. The standard
control signal delivered by input module could be
5V or 9V whereas the field signal received by it, 54
could be 24V DC, 230V AC or 115V AC.
Contd.
• If required, it isolates the field signal from the
CPU
• It sends one input at a time to CPU by
multiplexing action
• Depending upon the nature of the input signal
coming from the field the input module could be:
Analog input module
Digital input module
• The typical analog current input modules are 4 to
± 20mA, 0 to ± 20mA & analog voltage input
modules are 0 to ± 50mV, 0 to ± 500mV & 0 to
± 10V 55
Current Buffer,
FROM Limiting Filter,
OPTO- TO
INPUT Resistor ISOLATOR hysteresis
PROCESSOR
DEVICE Circuits
56
AC DIGITAL INPUT MODULE
IS NEEDED TO:
CONVERTS THE AC Prevent voltage
INPUT TO DC AND transients
DROPS THE from damaging
VOLTAGE TO LOGIC the processor.
LEVEL Helps reduce
the effects of
electrical noise
Rectifier, Buffer,
FROM Resistor Filter,
OPTO- TO
INPUT Network ISOLATOR Hysteresi
PROCESSOR
DEVICE s Circuits
57
58
59
PLC input circuit
60
Some of the input devices
61
Contd. • Pushbuttons
• Selector
Switches
• Limit Switches
• Level Switches
• Photoelectric
Sensors
• Proximity
Sensors
• Motor Starter
Contacts
• Relay Contacts 62
• Thumbwheel
63
Input Wiring: PLC input is the load in the circuit,
sensing if voltage is present
Terminal Isolation
Blo Barrie
ck r
Input Devices
1
2
3
L1 4
5
P
L1 6 L
7
8 C
9
10
L2 COM
WIRING OF POWER SUPPLY WITH INPUT CARD
65
Central Processing Unit
• CPU consists of the following blocks:
Arithmetic Logic Unit(ALU)
Program Memory
Internal timers and counters
Flags
The heart of CPU is microprocessor chip
The working of CP is fully controlled by the
instructions/program stored in “user program memory”
The user program directs and controls the CPU’s
working
The program is prepared by the user based on the 66
control logic required for the control and automation task
Arithmetic Logic Unit(ALU)
• It organizes the input of external signals and data
• It performs logical operation with the data
• It performs calculations
• It takes account of the value of internal timers and
counters
• It takes account of the signal states stored in the
flags
• It stores the signal states of the input in the
“process input image”(internal memory of CPU)
during the program scan
67
• It organizes the output of the result
OUTPUT MODULES
Amplifier
FROM RELAY
TTL OPTO- TO
PROCESSOR ISOLATOR TRIAC
Circuits OUTPUT
X’SISTOR
DEVICE
70
Output circuitry of a PLC
71
72
Output Wiring: PLC output is the switch,
controlling current flow to load
Isolation Terminal
Barrie Blo
r ck Output Devices
OUT 1 L1
CR
OUT 1 L
OUT 2 2
OUT 2
P OUT 3 L1
L2
L OUT 3
OUT 4
C OUT 4
OUT 5
OUT 5
OUT 6
OUT 6
Wiring of Output field devices with output card
74
Some of the output devices
75
Contd.
• Valves
• Motor
Starters
• Solenoid
s
• Control
Relays
• Alarms 76
• Lights
• Fans
Bus system
• Bus system is a path for the transmission of
signals. In PLC it is responsible for the signal
exchange between processor and I/O modules
77
PLC Hardware Types
Most Basic of PLC Systems
In the most basic of PLC systems, a self contained
(shoe box) PLC has 2 terminal blocks, one for
Inputs and one for Outputs
Today, most PLC’s in this category are know as
Micros. Typically they provide front panel
LED status indication of I/O and Processor
states
Inputs Outputs
Programmable Controller
C
R
Modular Chassis Based PLC’s
The vast majority of PLC’s installed today are
modular chassis based systems
consisting of:
1. Processor
Module (CPU)
2. Input & Output
Modules
3. Chassis
4. Power Supply
Modular Chassis-less PLC Systems
Also available from many vendors are “Chassis less”
but still Modular PLC systems. These
systems still require a Processor, I/O
Modules, and Power Supply, but in place of a
chassis these components mount directly
onto a panel, din rail, and many use a tongue
and grove system to allow easy insertion and
removal
The configuration of PLC refers to the packaging of the
components.
RACK
MICRO
SHOE BOX (UNITARY)
PLC Application Considerations
• Inputs/Outputs
– Type,
• Functions required
• AC, DC, sourcing, • Instruction set
sinking, etc. • Messaging
– Number of • PID
• PTO, PWM
• 10, 16, 20, 32, 156
• Arithmetic
• Memory
– Type • Communications
• DeviceNet, Ethernet
• Flash or Battery backed
• Remote I/O, DH+
– Size
• Report generation
• 1k, 6k, 12k, 16k, 64k
SOURCING vs. SINKING
SOURCING SINKING
(PNP) (NPN)
+VDC
Field
Device IN1 +
DC DC
+ DC Power
Input
DC Input Supply
Power Modul
Modul
Supply
e
- e
Field
- DC COM Device IN1
RULES
APPLICATION
•The application memory is divided into the data table area
•Data Table and user program area.
•The data table stores any data associated with the user’s
•User Program 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.
88
Memory
VOLATILE.
A volatile memory is one that loses its stored
information when power is removed.
90
Memory
Several Types of RAM Memory:
1.MOS
2.HMOS
3.CMOS
91
Contd.
92
Memory
NON-VOLATILE
Has the ability to retain stored information when power is
removed, accidentally or intentionally. These memories
do not require battery back-up.
93
Memory
Other Types of Non-Volatile Memory
96
PLC Operation
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.
97
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
98
The scan time is the total time the PLC takes to
complete the program and I/O update scans
99
100
PHASE 1 – Input Status scan
A PLC scan cycle begins with the CPU reading the
status of its inputs(from sensors).
PHASE 2– Logic Solve/Program Execution
The application program is executed using the status
of the inputs
PHASE 3– Logic Solve/Program Execution
Once the program is executed, the CPU performs
diagnostics and communication tasks
101
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.
102
As soon as Phase 4 are completed, the entire cycle begins
again with Phase 1 input scan.
103
The program scan time generally depends on two
factors:
1. the amount of memory taken by the control
program
2. the type of instructions used in the program
(which affects the time needed to execute the
instructions)
The time required to make a single scan can vary
from a few tenths of a millisecond to 100 104
milliseconds.
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
105
PLC Communications
Serial Communications
Common Standards
RS 232
RS 422 / RS 485
108
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
109
Specifications
OUTPUT-PORT POWER RATINGS
SCAN TIME
110
Specifications
MEMORY CAPACITY
111
Selecting a PLC
Criteria
115
PLC Status Indicators
•Power On
•Run Mode
•Programming Mode
•Fault
Troubleshooting
119
List of items required when working with PLCs:
123
condition of PLC Inputs.
Different PLC’s support different languages, but
the most popular PLC language is know as
“Ladder Logic”.
PLC Ladder Logic purposely resembles Relay
Logic
OUTPUTS
INPUTS MOTOR
CONTACTOR
124
LAMP
PUSHBUTTONS
PLC
Allen-Bradley 1746-1A16
L1 L2 I= Input
Module
I:2 slot # in rack
125
P. B SWITCH 0 Module
Terminal #
Address I:2.0/0
LADDER PROGRAM
INPUT
MODULE
WIRING DIAGRAM
CONTACTOR
L2 L1 N.
O
MOTOR
L2
C •SOLENOID
L1 •VALVES
FIELD •LAMP
•BUZZER
126
WIRING
OUTPUT MODULE
WIRING
L1 O:4 L2
CONTACTOR 0
LADDER PROGRAM
TYPES OF PLC PROGRAMMING
-LADDER PROGRAMMING
127
-FBD PROGRAMMING
-STL PROGRAMMING
LADDER AND FBD
-A very commonly used method of programming
PLCs is based on the use of ladder diagram.
-Write a program is then equivalent to drawing a
128
control circ
uit
Ways of drawing the same electric circuits
Contd.
129
-Each rung on the ladder defines one operation in the control
process
-A ladder diagram is read from left to right and from top to
bottom
-each rung must start from input or inputs and must end with at
least one output
- a particular device can appear in more than one rung of a ladder
-The input and outputs are all identified by their address, the
notation used depending on the PLC manufacturer.
1. Bit logic instruction
a. Normally open contact
b. Normally closed contact
c. Output coil
130
Logic function
1. AND
131
Ladder for AND
Contd.
AND using FBD language
132
Contd.
2. OR
133
Ladder for OR
Contd.
• OR using FBD
134
Contd.
Example
135
Change FBD to ladder
Contd.
3. NOT
136
Not using ladder
Contd.
4. NAND
137
Ladder fro NAND
Contd.
5. NOR
138
Ladder for NOR
Contd.
6. XOR
139
Ladder for XOR
Contd.
7. Latching circuit
140