Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
i. Title Page
(i)
ii. Acknowledgement
(ii)
(iii)
1. Introduction
01
02
2.1 Overview
02
02
02
03
2.2.3
03
Electronic Control
2.3 Advantages
3. Parts of PLC
3.1 Function of various blocks
04
06
06
06
07
07
08
09
09
10
4. Working of PLC
11
11
11
12
13
14
5. Programming of PLC
15
16
17
17
18
6. PLC Software
21
21
22
22
7. PLC Communication
23
8. A Level Application
25
27
10. References
28
11. Glossary
29
INTRODUCTION
Project report-I, which I submitted, covered basically the first half of our practice schoolI that is orientation session at HINDALCO, Renukoot. In project report-II I have tried to
cover what I have learnt in the second half of my stay at HINDALCO. After the
orientation session, I was very keen to know how the company is able to control such a
large factory with very high accuracy. I tried to enquired about it from some engineers
and then I got my answer in a short form i.e. PLC. 1 I also came to know about its
efficiency and importance in process industry. Then I decided that I would do a project
related to PLC. The objectives of preparing this report are to know general PLC issues
and understand the operation of a PLC.
Control engineering has evolved over time. In the past, humans were the main methods
for controlling the system. More recently electricity has been used for control and early
electrical control was based on relays. These relays allows power to be switched on and
off without a mechanical switch. It is common to use relays to make simple logical
control decisions. The development of low cost computer has brought the most recent
revolution, the Programmable Logic Controller (PLC). The advent of PLC began in the
1970s and has become the most common choice for manufacturing controls.
PLCs have been gaining popularity on the factory floor and will probably remain
predominant for some time to come. Most of this is because of advantages they offer. For
example it is cost effective for controlling complex systems, flexible and can be reapplied
to control other systems quickly and easily etc..
I was given brief and effective introduction of PLC, its parts and its functioning by staff
in the electrical department. I was also taken to see the PLCs hardware and how it is
controlled. A short class of PLC was also held with other trainees to clear the doubts
related to PLC. Interaction with other trainees resulted in exchange of ideas, which have
helped, a lot in making the report. A book written by Hugh Jack on PLC provided by
department was a great help in understanding of the topic and preparing the report.
1
Early programmable controllers were conceived as just replacement for the relays.
As they were capable of on/off control only, their application was limited to
machine and required interlocking and sequencing application.
There are chances of human errors and its effect on final quality of product.
Manual control has its own limitation with regard to mass production technique
and hence cannot provide the customer with quality goods at an affordable price.
Safety and efficient use of raw material and energy are all subject to correctness
and accuracy of human action.
Here the contactor and relays together with timers and counters were used in
achieving the desired level of automation.
Limitations:
The designing be started only when task was completely defined. This leads to
longer project time.
With the advance of electronics, the logic gates and further the microprocessors
started replacing the relays and auxiliary contactor in the control circuits.
3
2.3 Advantages
Advantage of PLC over conventional Relay Logic Control:
Relay logic is bulky needs more space while PLC logic system is quite compact.
Relay Logic needs a lot of hardwire and their maintenance while in PLC logic
hardwire flags replaced by software flags.
Any change in Relay logic needs allots of jobs e.g. cable pulling, drilling, relay
fixing, wiring etc. it can only accomplish during shutdown of machine, which
tends production loss, or unavailability of machine. While in PLC during machine
running condition we can carry out any changing jobs in online editing mode.
In Relay logic manual mistakes occurs while in PLC logic it has less chances.
Wear and tear occurs in Relay logic, which is not encountered in PLCs.
Timers, Counters are software configurable and have a wide range, which is in
built in PLC software while these things in relay logic needs as extra module and
have extra expanses.
Easier storage, archiving and documentation; this is due to its capability with PC
AT, Printer, Floppy etc.
2. PLC can carry out complex function such as generation of time delays,
Counting, comparing, arithmetic operations etc.
3. Online as well as offline programming is possible without disturbing the
process.
4
4. High processing speed and great flexibility in the processing of both
analog and digital signals.
5. Suitable for close loop task with several loops.
Shorter Project Time: - The hardwired 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 hardware is standard and desired control is achieved through
program
PARTS OF PLC
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, Solenoid valves, dampers, drives, LEDs, hooters etc..
The input module acts as an interface between the field control inputs and the
CPU.
6
Depending upon the nature of 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 +-20 mA and analog voltage
input modules are 0 to +- 50 mV, 0 to +- 500 mV and 0 to +- 10 V.
The typical digital input modules are 24V DC, 120V AC and 230V AC.
The user based on the control logic required for the control and automation task
prepares this program.
It performs calculations.
It stores the result of the logic operation in the Process Output Image (internal
Memory of CPU) during the program scan.
The output module acts as a link between the CPU and the output devices located
in the field. The field devices known as actuators could be relays, contactors,
lamps, motorised potentiometers, actuators, solenoid valves, dampers etc. These
devices actually control the process.
The output module converts the output signal delivered by CPU into an
appropriate voltage level suitable for the output field device. The voltage signal
provided by CPU could be 5V or 9V, but the output module converts this voltage
level into say 24VDC, 120VAC or 230VAC.
Thus the output module on receiving signal from the processor switches voltage
to the respective output terminals. This makes the actuators (i.e. contactors, relays
etc) or indicating lights etc connected to the terminal to turn ON or OFF.
The selection is based on the voltage rating of the field output devices. If the
output device is analog then analog output module is required and if its digital like
contactor coil or a lamp then digital output module is required.
8
Data bus, which carries the data from modules to processor and vice versa.
Control bus, which transfers control and timing signals for the synchronization of
the CPUs activities within the programmable controller.
9
3.1.7 Additional Modules: In addition to the above listed modules, the other frequently used modules in a PLC
system are Interface Module, Communication Processor Module and Function Module or
Intelligent Periphery Module.
Power Supply
Input Module
CPU
Program
Memory
Field
Inputs
Control
Elements
Process / Machine
PLC
Output
Module
10
WORKING OF PLC
4.1 Bringing Input Signal Status To The Internal Memory Of CPU
The field signals are connected to input module. At the output of input module the
field status is converted into a voltage level that is required by the CPU.
At the beginning of each cycle the CPU brings in all the field input signals from
the input module and stores into its internal memory as process image of the input
signal. This internal memory of CPU is called as PII, meaning Process Image
Input.
The programmable controller operates cyclically meaning when complete
program has been scanned, it starts again at the beginning of the program.
Field
Signal
Input
Module
CPU
PII
PIQ
program the CPU performs logical and arithmetic operations on the data from PII.
It also processes timers and counts as well as flag states based on the instruction
11
written in the program. The program is generally written in structure logic (STL)
at the side of operator.
The results of the user program scan i.e. decisions are then stored in the internal
memory of CPU. This internal memory is called Process Image Output or PIQ.
Internal
Timers
Internal
Counters
CPU
Flags /
Bit Memory
User Program
Memory
PII
PIQ
Optical isolation separates module logic and backplane circuits from the field
signal.
CPU
Output
Module
PII
PIQ
Field
Output
Devices
the input circuit of your brain. The input circuit of your brain takes a certain amount of
time to realize that your eyes saw something. Eventually your brain realizes that the eyes
13
have seen something and it processes the data. It then sends an output signal to your
mouth. Your mouth receives this data and begins to respond to it. Eventually your mouth
utters the words "Gee, that's a really ugly picture!.
4.5 Selecting I/O module: 1. How much I/O is required to control process?
2. What type of I/O is required to control process (es)?
3. What is required voltage range for each I/O module?
4. What is back plane current requirement for each I/O module?
5. What are the noise and distance limitation for each I/O module?
6. What isolation is required for each I/O module?
14
PROGRAMMING OF PLC
How the PLC should work or say control the machine or process is decided by the
user through User Program .
Depending upon the process control requirement the user prepares the program,
meaning writes the instructions . These instructions are then stored in the
User Memory or Program Memory of CPU in the form of machine code.
The CPU sequentially reads these instructions and operates the control elements
taking into consideration the input status and the program instructions. In this
manner the PLC controls the process.
The next information that one needs is about the Programming Language. One thing
which I would like to tell you about Programming language of PLC is that every PLC
manufacturing company uses its own language for example, the programming language
used in the programming of SIEMENS make PLC is called Step-5 for SIMATIC S5
family PLC or Step-7 for SIMATIC S7 family of PLCs.
With STEP-5 / STEP-7 language the user can communicate with SIEMENS make PLC,
respectively SIMATIC S5 and SIMATIC S7-300 / 400. The STEP5 / STEP7 are
considered to be the most user friendly, simple to understand and application oriented
programming language.
For programming we need a Programming Unit (PG). There are different types / models
of programming units available for programming of PLC. It is also possible to use a
general purpose PC as a programming unit by loading it with STEP5 / STEP7 software
and using a converter / adapter.
15
The programming can be done either on line or offline:
Initial keying-in of program is normally done in the off-line mode (i.e. programming unit
is not connected to the programmable controller), and after checking and verifying, the
program is transferred to CPU. After the commissioning the program is transferred to the
EPROM memory module as a backup and the controller can now operate independent of
the programming unit.
One of the important features of STEP 5 / STEP 7 programming language is its
flexibility. WE can write the user program in any one of the following forms:
1. Statement List (STL)
2. Control System Flowchart (CSF) or Function Block Diagram (FBD)
3.
&
Q 1.6
I 4.1
The symbols used are in accordance with DIN standard ref: 40 700/DIN.
This method is preferred by those users who are familiar with the logic symbols / logical
machine and process sequence.
5.3 Ladder Diagram (LAD)
The Ladder Diagram method (LAD) uses relay logic symbols to formulate the control
task. This arrangement gives the LAD method the appearance of the schematic circuit
diagram of a hard-wired control.
17
I 2.3
I 4.1
Q 4.6
Basically the individual formats i.e. STL or CSF / FBD or LAD can be converted into
each of the other formats using the programmer i.e. program written in say LAD can be
converted into CSF / FBD or STL etc. However there are some limitations and also
certain care needs to be taken in programming if conversion is desired
Initially the tank is empty. Therefore, input 0000 is TRUE and input 0001 is also TRUE.
18
Scan 1
Scan 2-100
Scan 101-1000
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)
19
1001
Scan 1002
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.
Scan 1050
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 as illustrated above.
20
PLC SOFTWARE
Since PLC is a Programmable device it means its program can modify. As we know a set
of instruction is known as program. Each programmable device only recognized its
instructions. Therefore a Package needed for PLC programming. This package
(programming software comes with PLC. The software has many features i.e. for
programming instruction palate, input/output module details inbuilt help etc.. There are
three methods of writing program: 1. Ladder Logic
2. Sequential flow chart
3. Structured text
6.1 Ladder Logic: -Program using a language that is reprehensive of relay logic. This
language become very easy if:
More familiars with ladder/relay logic than with programming language such as
basic.
Performing diagnostics.
|------[/]-----[/]--------( U )--|
21
6.2 Sequential flow Chart:-It is useful to control and display
the state of a sequential control process. In this language
Logic is divided into steps and transition. A step
Correspondence to a control task and a transition is
Correspondence to a condition that must occur before the
Programmable controller can perform the next control task.
The displays of these steps and transition lets you see,
what state the machine process is in at a given time via
a flowchart form.
SFCs are best for defining the order of events
in a sequential process.
6.3 Structured text: - It is programming method similar to BASIC
Structured text is beneficial if:
More familiar with programming languages such as BASIC than with ladder
logic.
IF
I: 5/10 = 1
THEN SET O: 5/10=1
ELSE O: 5/10=0
22
PLC COMMUNICATION
PLC can communicate between: PLC to PLC. PLC is Programmable logic controller.
PLC to HMI (MMI) HMI stand for Human Machine Interface MMI is Man
Machine Interface
PLC to Terminal (PC) PC is Personal computer
PLC to RIO. RIO stands for remote Input output.
PLCs CPU module has two types of communication ports one is serial communication
port (RS232) and another is Parallel communication port. Each and every intelligent
device, which is connected to PLC, has a unique node number. Every device connects on
their assigned number. For Proper Communication Baud rate must properly specified.
There are special types of communication cable, which are developed by different PLC
Company. There is cable length limit, which is different for different cables.
PC (Node 3o)
PLC to PLC
PLC to HMI
PLC to PC
PLC to RIO
Node: - A junction point is termed as node from where active devices connected.
RIO:-Remote Input Output is an adapter module which supports few Input output
module. It resides in a remote area from which a communication cable comes to CPU
processor (in case of SLC it comes to Adapter module.) All inputs and outputs devices
situated in remote area connected to RIO I/O module. Adapter module has Input and
output image allocation in memory. This information is sanded to PLC CPU module via
communication cable. All design making process held in PLC CPU module according to
pre-written program.
23
A typical PLC network
0 1 2
P C . .
Communication cable
S P
P Adapter . .
S Module
Field Devices of Remote
unit
A LEVEL APPLICATION
Now that we've seen how registers work, let's process a program like PLCs do to enhance
our understanding of how the program gets scanned. Lets consider the following
application:
We are controlling lubricating oil being dispensed from a tank. This is possible by using
two sensors. We put one near the bottom and one near the top, as shown in the picture
below.
Here, we want the fill motor to pump lubricating oil into the tank until the high level
sensor turns on. At that point we want to turn off the motor until the level falls below the
low level sensor. Then we should turn on the fill motor and repeat the process. Here we
have a need for 3 I/O (i.e. Inputs/Outputs). 2 are inputs (the sensors) and 1 is an output
(the fill motor). Both of our inputs will be NC (normally closed) fiber-optic level
sensors. When they are NOT immersed in liquid they will be ON. When they are
immersed in liquid they will be OFF. We will give each input and output device an
address. This lets the plc know where they are physically connected. The addresses are
shown in the following tables:
Inputs
Low
High
Address
0000
0001
Output
Motor
Address
0500
25
Below is what the ladder diagram will actually look like. Notice that we are using an
internal utility relay in this example. You can use the contacts of these relays as many
times as required. Here they are used twice to simulate a relay with 2 sets of contacts.
Remember, these relays DO NOT physically exist in the plc but rather they are bits in a
register that you can use to SIMULATE a relay.
We should always remember that the most common reason for using PLCs in our
applications is for replacing real-world relays. The internal utility relays make this action
possible. It's impossible to indicate how many internal relays are included with each
brand of plc. Some include 100's while other include 1000's while still others include 10's
of 1000's! Typically, plc size (not physical size but rather I/O size) is the deciding factor.
If we are using a micro-plc with a few I/O we don't need many internal relays. If
however, we are using a large plc with 100's or 1000's of I/O we'll certainly need many
more internal relays.
26
CONCLUSION
Originally PLCs were conceived as a replacement for hard-wired logic control. However
with technological development the PLCs very rapidly evolved far beyond that and are
used today in a diverse range of industrial and process control application. Under real
time conditions they can control production sequences, handle data communication task
and enable convenient monitoring and controlled manipulation of process. Increased
intelligence combined with ease of programming and compact design has made PLCs
become indispensable mainstay of todays decentralized automation system.
Today the demands from industry / market are to consistently high quality of the final
products, minimization of costs, an extensive communication system to allow exchange
of information both between various automation systems and from man to machine and
vice versa. PLCs meet all these requirements and hence, today the PLC constitutes the
basic building block of an Automation System. I would also like to point out that in the
near future company can prefer to use fuzzy logic controller because it is much easier to
use as other controllers because it is based on linguistic details and will be much more
faster. Finally I would like to say that PLCs have been a boon for the process industry
like HINDALCO.
27
REFERENCES
1. Jack, Hugh. , Automating Manufacturing Systems with PLCs,5th edition,
Boston ; Free Software Foundation,2002.
2. Ganesh, M.,Introduction to Fuzzy Sets and Fuzzy Logic,1 st edition, New Delhi;
Prentice-Hall of India Private Limited, 2006, p.169-179.
3. http://www.hindalco.com
4. http://www.plcs.net/
5. Material provided by staff.
28
GLOSSARY
A
Address: - a code that specifies a location in the computers memory.
Actuator: -a device when activated will result in a mechanical motion
Algorithm: -a software procedure to solve a particular problem.
Analog signal: -a signal that has continuous values, typically voltage.
B
BASIC: -Beginners all purpose symbolic instruction code (a high level language used for
programming.
Baud: -Maximum no. Of bits that can be transmitted through a serial line in one second
C
Contactor: - A high current relay.
Communication: - transfer of data between two units such as computer, humans.
CPU: - Main computer element that examines machine code instructions and executes
them.
D
DC: - Current that flows in one direction (the alternative is AC).
F
Flag: - A single binary bit that represent event has/has not happened.
H
HMI: -Human Machine Interface.
I
Instruction set: - list of all commands that is available in a programming system.
29
RS232: - A serial communication standard for low speed voltage based signals, that is
very common on most computers. But it has a low noise immunity that suggests other
standards in harsh environments.
RS-422: - a current loop based serial communication that works well in noisy
environment.
RS-485: - Uses two current loop for serial communications.
S
Solenoid: - An actuator that uses a magnetic coil. When energized it will cause linear
motion.
T
Transducer: - A device that will convert energy from one form to other.
TRAIC: - A semiconductor switch suited to AC Power.
V
Valve: - A system component for opening and closing mass/energy flow paths.
31