Professional Documents
Culture Documents
Chapter 1 Introduction To PLC
Chapter 1 Introduction To PLC
Chapter 1 Introduction To PLC
Chapter 1
INTRODUCTION TO PLC
Program
Outputs
Inputs
PLC
2
1.2 Inputs and Outputs
Fig 2: An Opto-Isolator
The PLC outputs are connected directly or indirectly (e.g.
through a relay) to actuator controls. Examples include solenoids on
directional control valves, motors, motor contactors, alarms and
warning lights.
Relay (volt-free): The signal from the PLC operates a relay within the
output module connecting the control voltage to the output port and
hence to the actuator.
Internal relay
Contact
Common
Port
Output Port
Control
Voltage (+)
Solenoid
Fig 3 PLC Relay Output
Transistor: A transistor is used to switch on the output. This is faster
than a relay output but is only suitable for low power direct current
applications.
Triac: This solid state device is used for switching alternating current
devices. It requires some form of over current protection.
4
The Programmable Logic Controller (PLC) was conceived by Dick
Morley on January 1, 1968. Mr. Morley's PLC, which at the time was
called a PC for Programmable Controller and later, after the
introduction of the Personal Computer (PC) changed the name to PLC,
was produced by his company called Modicon. Modicon stands for
MOdular Digital CONtroller.
The first PLC was designed to meet the specifications layed out by the
Hydramatics Division of General Motors (GM). The primary goal of the
design was to eliminate the extremely high cost involved with
electromechancial relay switching circuits and the lack of flexiblity
associated with these 'hardwired' circuits. Anyone who is old enough
to remember American cars during the 1950's and 1960's knows that
the styles and options of the cars during this era changed with every
model
year.
manufacturers
These
had
changes
to
retool
meant
their
that
every
factories
and
year
the
make
car
major
5
2. The system had to have the flexibility of a computer system.
3. Controllers had to be capable of surviving an industrial
environment.
4. Programming had to be easy and be able to be maintained by
plant electricians.
5. The system had to be reusable.
6. Pricing had to be competitive with relay control systems.
7. Input and Output (I/O) interfaces had to be easily replaceable.
8. A modular design had to be used so that subassemblies could
be easily removed, replaced and repaired.
9. Manufacturing data needs to be collected and passed on to a
central computing system.
10.
The first PLC was installed at General Motors Oldsmobile plant and
at the Lanids Company in Landis, Pennsylvania in 1970.
6
counter. Industry is always concerned with reliability and had the
PLC been marketed as a computer industry would have been very
reluctant to incorporate them. Presently, the PLC industry is and
has been attempting to move away from relay ladder logic
programming, but it is finding it difficult to do so as a result of this
early marketing strategy.
Since the first PLC was installed in the early '70s they have become
much more than simply a relay replacer. Applications for PLCs has
extended to a very broad range of manufacturers of all types of
products. Users are demanding more features to be added such as:
7
One problem with adding these new functions and features is that
PLC manufacturers have always had proprietary designs with
proprietary networks making it next to impossible to communicate
with equipment manufactured by various vendors and because the
networks were proprietary, PLCs from different vendors could not talk
to each other.
The 1980's saw a shift away from the proprietary systems and PLCs,
PCs and other equipment started to be capable of working together as
a single unit. GM was again a leader in standardization and developed
a
communications
standard
called
Manufacturing
Automation
Protocol (MAP). The industry was also reducing the size of PLCs and
today some of them are the size of a cigarette pack.
A continuation toward standardization was seen in the 1990s when
the International Electrical Commission standard IEC 1131-3 was
established to standardize the programming languages. The standard
was later changed to IEC 61131. Also during this decade subnetworks such as ControlNet, DeviceNet and Foundation Fieldbus
were introduced that further extended the distributive control features
and allowed for different vendors to coexist on the same sub-network.
It is difficult to predict the future of PLCs, but with the advent of
Programmable Automation Controllers (PACs) in the 21st century it is
8
easy to imagine that PLC/PACs will be approaching PCs in short
order. PACs can be programmed using a variety of languages from
relay ladder logic, sequential function chart, block diagram and
structured text to C++ and Java or a mixture of all. Internet is fast
becoming the network of choice and the Internet/IP protocol is already
a standard. Many of the networks are becoming wireless and selfhealing. The future is without bound and PLC/PACs development will
surely move forward at an ever increasing rate.
1.4 Todays Programmable Controllers:Many technological advances in the programmable controller industry
continue today. And these have led to many hardware (physical
components) and software (control program) upgrades.
The following list describes some recent hardware and software
enhancements: Faster scan times are being achieved using new, advanced
microprocessor and electronic technology.
Small, low-cost PLCs, which can replace four to ten relays, now have
more power than their Predecessor, the simple relay replacer.
Mechanical design improvements have included rugged input/output
enclosure and input/output systems that have made the terminal an
integral unit.
9
High-density input/output (I/O) systems provide space-efficient
interfaces at low cost.
Figure 4 PLC system with high density I/O (64 point nodules)
10
High-level languages, such as BASIC and C, have been implemented
in some controllers modules to provide greater programming flexibility
when communicating with peripheral devices and manipulating data.
Advanced functional block instructions have been implemented for
ladder diagram instruction sets to provide enhanced software
capability using simple programming commands.
Diagnostics and fault detection have been expanded from simple
system diagnostics, which diagnose controller malfunctions, to include
machine diagnostics, which diagnose failures or malfunctions of the
controlled machine or process.
Floating-point math has made it possible to perform complex
calculations in control applications that require gauging, balancing,
and statistical computation.
11
A. LITERATURE REVIEW
12
possible when a PLC is used. The main aim in this process is to apply
PLC to design Automation system and all objectives in this project
were successfully done as planned. Finally, the basic control system
and logic design application can be used as a reference to design other
applications of automation system, and can also be used as a teaching
material for the Industrial Control subject. Besides using PLC as a
controller, the other controller that can be used in future work is
microcontroller. However, many factors must be considered like cost,
feasibility and others.
3.
Maha
M.
Lashin:
PLC
has
the
ability
to
arrange
the
13
hydropower simulation system based on all paths searching algorithm
is proposed in this paper. LD is widely used as a programming
language for PLC (Programmable Logic Controller), but it doesnt be
executed automatically in the hydropower simulation system which is
a software system, and there is no compiler or interpretation for LD in
it. A method to design an interface for LD is presented with typical
class diagrams and the graphical interface, then an algorithm is
proposed
to
implement
the
control
function
of
LD
through
14
From all the above review it can be stated that Ladder logic is used in
various industrial applications and it is one of the most preferable
PLC programming language as it is user friendly. In this project I had
used the Ladder logic to programme industrial applications like
Continuous bottling system, Elevators etc
Chapter 2
PLC PROGRAMMMING
15
computing power for single operations performed by the instruction
itself.
In addition to new programming instructions, the development of
powerful I/O modules has also changed existing instructions. These
changes include the ability to send data to and obtain data from
modules by addressing the modules locations. For example, PLCs can
now read and write data to and from analog modules. All of these
advances, in conjunction with projected industry needs, have created
a demand for more powerful instructions that allow easier, more
compact, function-oriented PLC programs.
The three types of programming languages used in PLCs are: Ladder
Boolean
Grafcet
The ladder and Boolean languages essentially implement operations in
the same way, but they differ in the way their instructions are
represented and how they are entered into the PLC. The Grafcet
language implements control instructions in a different manner, based
on steps and actions in a graphic oriented program.
16
2.1 PLC Ladder Programming
A very commonly used method of programming PLCs is based on the
use of ladder diagrams. Writing a program is then equivalent to
drawing a switching circuit. The ladder diagram consists of two
vertical lines representing the power rails. Circuits are connected as
horizontal lines, i.e., the rungs of the ladder, between these two
verticals.
In drawing a ladder diagram, certain conventions are adopted:
1. The vertical lines of the diagram represent the power rails
process.
3. A ladder diagram is read from left to right and from top to
17
Power flow
Right power rail
Rung 1
Rung 2
Rung 3
Rung 4
END
End rung
with at least one output. The term input is used for a control
action, such as closing the contacts of a switch, used as an
input to the PLC. The term output is used for a device
connected to the output of a PLC, e.g., a motor.
18
5. Electrical devices are shown in their normal condition. Thus a
19
closed. The input is thus the switch and the output the motor. Figure
2.3a shows the ladder diagram.
Starting with the input, we have the normally open symbol jj for the
input contacts. There are no other input devices and the line
terminates with the output, denoted by the symbol ( ). When the
switch is closed, i.e., there is an input, the output of the motor is
activated. Only while there is an input to the contacts is there an
output. If there had been a normally closed switch j/j with the output
(Figure 2.3b), then there would have been an output until that switch
was opened. Only while there is no input to the contacts is there an
output.
Semi-graphic form
form
full graphic
20
Output coil: if the power flow to it is on then the
coil state is on
Fig 6 Basic symbols
Input
Output
Input
Output
(a)
Input
Output
Input
Output
(b)
Input Output
X400
Y430
Input Output
I0.0
Q2.0
21
(a)
Input
(b)
Output
Inpu
Output
O0,0
I0,0
I:001/01
O:010/01
(c)
(d)
22
might be used, followed by its address. To indicate the start of a
junction:
The terminal then translates the program drawn on the screen into
machine language.
Computers can be used to draw up a ladder program. These involve
loading the computer with the relevant software, e.g., RSLogix from
Rockwell Automation Inc. for Allen-Bradley PLCs, MELSOFT GX
Developer for Mitsubishi PLCs, STEP 7 Micro/WIN V4 for Siemens
PLCs. The software operates on the Windows operating system and
involves selecting items, in the usual Windows manner, from pulldown menus on the screen.
23
Chapter 3
24
appropriate position and get it filled by any desired liquid and also
after getting filled the queued bottle gets chance to be filled. If this
whole process is carried out manually it will really take a long time
and also the quantities will be quite lesser. So PLC becomes
requisite controller for these types of industry.
Here also just a small demonstration of the process was
performed with the help of PLC where a ladder diagram was
created to control the process and the ladder diagram was run the
PLC trainer kit to see its justification.
Objective
We will implement a control program that detects the position of a
bottle via a limit switch then waits for 0.5 secs, and then fills the
bottle until a photodetector detects the filled condition of the bottle.
After the bottle is filled ,the buzzer sounds and
program
the control
will again wait for 0.7 secs. before moving to the next
bottle .Until the limit switch signals ,the feed motor,M1 runs while
there are fixed rollers which carries the filled bottles. Motor,M2
keeps running after the process has been started.
25
Inputs
address
Outputs
address
Start
I0:15
Feed motor(M1)
O0:15
Stop
I1:15
Outfeed motor(M2)
O1:15
Limit
I2:15
Solenoid valve(S1)
O2:15
Light(L1)
O3:15
Buzzer(B1)
O4:15
switch(LS)
Photo
I3:15
detector(PE)
26
Observation
Once the start button is pressed the green light (L1) turns ON
and remains ON until stop button is pressed. As light turns ON
out feed motor(M2) starts running. After M2 runs and if either
limit switch (LS) has not signaled or filled bottle condition is
fulfilled motor(M1) starts. After limit switch has signalled
timer,T1 gets activated. After T1 gives done (DN) signal and
photo eye detector (PE) is disabled, solenoid valve gets in
operation. As PE signals solenoid stops and buzzer (B1) sounds
after which timer,T2 gets enabled which stops the process for
27
0.7 seconds. Once the filled bottle condition is activated the
cycle starts again.
The ladder diagram was successfully checked in the PLC
simulator and all the prescribed conditions were observed
completely.
28
3.2. Batch mixing system
29
30
31
Fig 12 Ladder diagram for batch mixing system
Observation
When start button is pressed water is filled up to L2 and it ends as
L2 is closed. First of all as start is pressed output O: 0/15 turns
ON and remains ON until tank is emptied. Rung 2 closes normally
open drain valve, before timer T: 4 activates. Rung 3 energises
solenoid a until L2 doesnt signal, once it signals solenoid a gets deenergised. Then motor is turned ON and mix it for 3 mins.
Similarly acid is filled upto L3 by solenoid b.as level gets detected by
L3 solenoid b de-energises .And then mixer gets started and it runs
for 3 minutes. After time delay of 3 mins solenoid c opens and the
blend gets drained out .Once the blend gets out completely, the
process cycle restarts.
The ladder diagram was successfully checked in the PLC simulator
and all the prescribed conditions were observed completely.
32
33
Objective
There are two motors compressors in the system. One is of low
horsepower and other one is of high horsepower rating. These
motors are designated as C1 and C2 in the case. The system is
installed in a hall to maintain the temperature between 20 0C-240C
depending on the number of viewers in the hall and the
atmospheric temperature.
The motors of C1 and C2 are run on three conditions of the
thermostats. The three conditions described below are also the
control requirements of the air conditioning system:1. Compressor 1 and compressor 2 should turn on when the
temp of the hall is above 280C.
2. Only compressor 2 should turned on when the temp of the
hall is above 240C and below 280C.
3. Only compressor 1 is turned on when the temp. is above 20 0C
and below 240C.
A pre- condition for running any compressor is that chilling water flow
switch FS1 should be closed. Chilling water flow necessary to take
away heat from the compressed cooling water.
34
Three thermostat with different settings are used for the control of
compressor motor running in three different stages described
above. The three thermostats T1, T2, T3, are set at temp 20 0C, 240C
and 280C respectively.
The control of three stages with three the thermostats and Flow
switch (FS1) of air conditioning system can be understood from the
control circuit shown in fig.4.5.
The start push button, stop push button and overload contacts for
compressor motor have not been shown in the circuit for sake of
simplicity.
Working of the control circuit:(1) When chilled water flow is maintained, flow switch FS1 will
actuate and close its contacts. Closing of contact FS1 causes
application of high logic signal to terminal 2 of all gates.
35
to
both
OR1
and
OR2,as
each
terminal
of
36
respective amplifiers. Thus compressor 1 and 2 will run when
temp in the hall will above 280C.
(4) When the hall temp. is below 28 0C and above 240C, contact
37
or1 which then gives a high output to energise contactor
C1.thus one compressor will run when temp. Is below 24 0C
but above 200C. When temp. Falls below 200C, contact of
thermostat T1 also opens and terminal 1 of AND1 goes low
and it is switched off .Thus Compressor 1 also stops when
temp. Falls below 200C.
(6) Compressor 1 continues to run if temp. In the hall remains
38
Ladder diagram:-
39
Chapter 4
CONCLUSION
The implementation of the PLC was carried out effectively for various
industrial applications. It proves to be one of the important controller
in industries for its simplicity and robustness and is used all over the
world. For any control design approach understandings of the desired
control system and how to use the ladder diagram to translate the
machine sequence of operation are the most important parts, because
it has direct effect on the system performance.
PLCs are very good for controlling outputs based on the inputs. They
are amazingly robust and are able to withstand all sorts of difficult
conditions such as extreme temperature or dust in the air. They even
last for a very long period. They dont have contacts that wear out, like
relays do. They also can switch fairly quickly without much heating in
40
direct contrast to relays. For any application we need not to change
the whole structure only different program has to be embedded as like
any other programmable devices. Compared to relays PLCs are almost
always a better choice.
On the downside it could be observed that PLCs are not very good at
handling large amount of data, or complex data. Computers are better
for those tasks.PLCs are also not very good with databases or
displaying data. Lack of standardization is also one of the major
disadvantage of the PLC. This causes much confusion if the PLC used
for an application is replaced by one from a different manufacturer, or
if a PLC programmer is replaced by a person with a different
understanding of PLC programming.
In the bottle filling system, only one limit switch was used to detect
the position of the bottle. This process has become quite obsolete,
instead IR sensor can be used. It is better to add more sensors in this
system like a flow sensor to detect water flow or use level sensor to
detect water level. Thus, the system will be more sensitive as there will
be more sensing points Besides using PLC as controller, the other
controller can be used in this future work is like Microcontroller.
However, many factors must be considered like cost, practically and
others. Talking about the control of dc motor, it is important for the
machine designer to be very familiar with various methods of
41
controlling ac and dc motor. These range from the simple motor
starter to the sophisticated pulse width modulated (PWM) dc motor
controls. The pulse width modulator (PWM) system is capable of
efficiently controlling the speed of a dc motor by controlling the
average armature voltage of the motor.
REFERENCES
[1] Ho JM, Juang FC, A practical PWM inverter control circuitry for
induction heating and studying of the performances under load
variations, Industrial Electronics Proceedings, IEEE International
Symposium on ,-10 Jul 1998.
42
[2] Kwon Y, Yoo S, Hyun D, Half-bridge series resonant inverter for
induction
heating
applications
with
load-adaptive
PFM
control
Logic
Controllers
(PLCs)."
2002
Keyence
Corporation.
http://world.keyence.com/products/programmable_logic_controllers/
plc.html.
[5]S. K. Bhattacharya and Brijinder Singh,Control of electrical
machines
[6.]M. H. Rashid, Power Electronics: Circuits, Devices and Applications.
2"" Ed, Prentice-Halllnc., 1993.
[7.]W. Bolton, Programmable Logic Controllers, Fourth Edition,
ISBN-10: 0-7506-8112-8, Elsevier Newnes, 2006.
43
[8.]Espi JM, Navarro AE, Maicas J, Ejea J, Casans S, Control circuit
design of the L-LC resonant inverter for induction heating, IEEE
Power Electronics Specialists Conference, 2000, 3: 1430-5
[9].Programmable
Logic
applications-Prentice Hall
Controllers
Programming
methods
and