Report On PLC & Scada
Report On PLC & Scada
Report On PLC & Scada
RAJMAL MENARIYA
RAJMAL MENARIYA
11/14/2009
PREFACE:
RAJMAL MENARIYA
(Electronics & Comm. Engineer)
Contents
SCADA
1) Introduction
2) Characteristics of SCADA RTU
3)Characteristics of SCADA master
4) HMI/SCADA – SIMPLICITY
5) Benefits HMI/SCADA
6) SCADA RECOMMENDED
Conclusion
PROGRAMMABLE LOGIC CONTROLLERS
1) Introduction:
Input output interface is the communication link between field devices and the
controllers. Through these interfaces the processor can sense and measure physical quantities
regarding a machine or process, such as, proximity, position, motion, level, temperature,
pressure, etc. Based on status sensed, the CPU issues command to output devices such as
valves, motors, alarms, etc. The programmer unit provides the man machine interface. It is used
to enter the application program, which often uses a simple user-friendly logic.
2) PLC History
PLCs were first introduced in the 1960’s. The primary reason for designing such a
device was eliminating the large cost involved in replacing the complicated relay based
machine control systems. Bedford Associates (Bedford, MA) proposed something called
a Modular Digital Controller (MODICON) to a major US car manufacturer. The
MODICON 084 brought the world's first PLC into commercial production.
When production requirements changed so did the control system. This becomes
very expensive when the change is frequent. Since relays are mechanical devices they also have
a limited lifetime because of the multitude of moving parts. This also required strict adhesion to
maintenance schedules. Troubleshooting was also quite tedious when so many relays are
involved. Now picture a machine control panel that included many, possibly hundreds or the
outstands, of individual relays. The size could be mind boggling not to mention the complicated
initial wiring of so many individual devices. These relays would be individually wired together in a
manner that would yield the desired outcome. The problems for maintenance and installation
were horrendous.
The 1990’s saw a gradual reduction in the introduction of new protocols, and the
modernization of the physical layers of some of the more popular protocols that survived
the 1980's. PLCs can now be programmable in function block diagrams, instruction lists,
C and structured text all at the same time. PC's are also being used to replace PLCs in
some applications. The original company who commissioned the MODICON 084 has
now switched to a PC based control system.
In Figure 1 you can see a large number of electrical wires, relays, timers and other elements of
automation typical for that period. The pictured control panel is not one of the more complicated
ones, so you can imagine what complex ones looked like.
4) Components
The PLC mainly consists of a CPU, memory areas, and appropriate circuits to
receive input/output data. We can actually consider the PLC to be a box full of hundreds
or thousands of separate relays, counters, timers and data storage locations. They don't
physically exist but rather they are simulated and can be considered software counters,
timers, etc. Each component of a PLC has a specific function:
· Input Relays (contacts) - These are connected to the outside world. They
physically exist and receive signals from switches, sensors, etc. Typically they are
not relays but rather they are transistors.
· Internal Utility Relays - These do not receive signals from the outside world nor
do they physically exist. They are simulated relays and are what enables a PLC to
eliminate external relays. There are also some special relays that are dedicated to
performing only one task. Some are always on while some are always off. Some
are on only once during power-on and are typically used for initializing data that
was stored.
· Counters - These are simulated counters and they can be programmed to count
pulses. Typically these counters can count up, down or both up and down. Since
they are simulated they are limited in their counting speed. Some manufacturers
also include high-speed counters that are hardware based. We can think of these as
physically existing.
· Timers - These come in many varieties and increments. The most common type is
an on-delay type. Others include off-delay and both retentive and non-retentive
types. Increments vary from 1 millisecond through 1 second.
· Output Relays (coils) - These are connected to the outside world. They physically
exist and send on/off signals to solenoids, lights, etc. They can be transistors,
relays, or triacs depending upon the model chosen.
· Data Storage - Typically there are registers assigned to simply store data. They are
usually used as temporary storage for math or data manipulation. They can also
typically be used to store data when power is removed from the PLC. Upon
power-up they will still have the same contents as before power was removed.
A counter is a simple device intended to do one simple thing - count. Using them
can sometimes be a challenge however because every manufacturer seems to use them a
different way. There are several different types of counters. There are up-counters called CTU
CNT, or CTR that only count up, such as 1, 2, and 3. There are also down counters called CTD
that only count down, such as 9, 8, 7, etc. In addition to these two, there are up-down counters,
typically called UDC (up-down counter). These count up and/or down (1,2,3,4,3,2,3,4,5,...).
A timer is an instruction that waits a set amount of time before doing something. As
usual in industry, different types of timers are available with different manufacturers. The most
common type of timer is an On-Delay Timer. This type of timer simply delays turning on its
respective output. In other words, after our sensor (input) turns on we wait “x” number of seconds
before activating a solenoid valve (output). This is the most common timer. It is often called TON
(timer on-delay), TIM (timer) or TMR (timer). Another type of timer is an Off-Delay Timer. This
type of timer is the opposite of the ondelay timer listed above. This timer delays turning off its
respective output. After a sensor (input) sees a target we turn on a solenoid (output). When the
sensor no longer sees the target we hold the solenoid on for x number of seconds before turning
it off. It is called a TOF (timer off-delay) and is less common than the on-delay type listed above.
Very few manufacturers include this type of timer, although it can be quite useful. The last type of
timer is a Retentive or Accumulating timer. This type of timer needs 2 inputs. One input starts the
timing event (i.e. the clock starts ticking) and the other resets it. The on/off delay timers above
would be reset if the input sensor wasn't on/off for the complete timer duration. This timer
however holds or retains the current elapsed time when the sensor turns off in mid-stream. For
example, we want to know how long a sensor is on for during a 1 hour period. If we use one of
the above timers they will keep resetting when the sensor turns off/on. This timer however, will
give us a total or accumulated time. It is often called an RTO (retentive timer) or TMRA
(accumulating timer).
A PLC works by continually scanning a program. We can think of this scan cycle
as consisting of 3 important steps. There are typically more than 3 but we can focus on
the important parts and not worry about the others. Typically the others are checking the
system and updating the current internal counter and timer values. The first type of
scanning, as shown in the diagram below, is not as common as the type that will be
discussed second.
PLC SCAN DIAGRAM
The first step is to check the input status. This step is therefore generally referred
to as the “Check Input Status” stage. First the PLC takes a look at each input to determine if it is
on or off. In other words, is the sensor connected to the first input on? How about the second
input? How about the third? This goes on and on through the entire program. It records this data
into its memory to be used during the next step.
Next the PLC executes your program one instruction at a time, called the
“Execute Program” stage. For example, if your program said that if the first input was on
then it should turn on the first output. Since it already knows which inputs are on/off from the
previous step it will be able to decide whether the first output should be turned on based on the
state of the first input. It will store the execution results for use later
during the next step.
Finally the PLC updates the status of the outputs. It updates the outputs based on
which inputs were on during the first step and the results of executing your program
during the second step. Based on the example in step 2 it would now turn on the first
output because the first input was on and your program said to turn on the first output
when this condition is true. A new style of scanning has been implemented in the more recent
years, called “rung scanning”. This type basically scans each ladder rung individually in the entire
ladder logic program, updating the outputs on that rung after scanning through the inputs. This
changes the type of programming that will be used as well. If an output is in a rung above the
inputs it depends on, you will not get the output updated until the next scan, as the program will
keep scanning down until the last rung, then start over. This style is very advantageous in certain
situations. If you want your outputs updated at the soonest possible moment, this is the style of
scanning that you want to use.
PLCs consist of input modules or points, a Central Processing Unit (CPU), and output modules or
points. An input accepts a variety of digital or analog signals from various field devices (sensors)
and converts them into a logic signal that can be used by the CPU. The CPU makes decisions
and executes control instructions based on program instructions in memory. Output modules
convert control instructions from the CPU into a digital or analog signal that can be used to
control various field devices (actuators). A programming device is used to input the desired
instructions. These instructions determine what the PLC will do for a specific input. An operator
interface device allows process information to be displayed and new control parameters to be
entered.
6) Terminology:
The language of PLCs consists of a commonly used set of terms; many of which are unique to
PLCs. In order to understand the ideas and concepts of PLCs, an understanding of these terms
is necessary.
a) Sensor : A sensor is a device that converts a physical condition into an electrical signal
for use by the PLC. Sensors are connected to the input of a PLC. A pushbutton is one
example of a sensor that is connected to the PLC input. An electrical signal is sent from
the pushbutton to the PLC indicating the condition (open/closed) of the pushbutton
contacts.
b) Actuator: Actuators convert an electrical signal from the PLC into a physical condition.
Actuators are connected to the PLC output .A motor starter is one example of an actuator
that is connected
to the PLC output. Depending on the output PLC signal the motor starter will either start or stop
the motor.
c) Discrete Input: A discrete input, also referred to as a digital input, is an input that
is either in an ON or OFF condition. Pushbuttons, toggle switches, limit switches,
proximity switches, and contact closures are examples of discrete sensors which are
connected to the PLCs discrete or digital inputs. In the ON condition a discrete input may
be referred to as a logic 1 or a logic high. In the OFF condition a discrete input may be
referred to as a logic 0 or a logic low.
d) Analog Inputs : An analog input is an input signal that has a continuous signal.
Typical analog inputs may vary from 0 to 20 milliamps, 4 to 20 milliamps, or 0 to 10 volts.
In the following example, a level transmitter monitors the level of liquid in a tank.
Depending on the level transmitter, the signal to the PLC can either increase or decrease
as the level increases or decreases.
f) Analog Outputs : An analog output is an output signal that has a continuous signal.
The output may be as simple as a 0-10 VDC level that drives an analog meter. Examples
of analog meter outputs are speed, weight, and temperature. The output signal may also
be used on more complex applications such as a current-to pneumatic transducer that
controls an air-operated flow-control valve.
g) CPU : The central processor unit (CPU) is a microprocessor system that contains the
system memory and is the PLC decision making unit. The CPU monitors the inputs and
makes decisions based on instructions held in the program memory. The CPU performs
relay, counting, timing, data comparison, and sequential operations.
7) Programming of PLC
A program consists of one or more instructions that accomplish a task. Programming a PLC is
simply constructing a set of instructions. There are several ways to look at a program such as
ladder logic, statement lists, or function block diagrams.
a) Ladder Logic
Definition
Ladder logic is one form of drawing electrical logic schematics, and is a graphical language very
popular for programming Programmable Logic Controllers. Ladder logic
was originally invented to describe logic made from relays. The name is based on the
observation that programs in this language resemble ladders, with two vertical "rails" and
a series of horizontal "rungs" between them. Figure 5 below is a very basic example of
ladder logic used in a programmable logic controls program.
Comparison to Relay Logic
The program used in a controls schematic, called a ladder diagram, is similar to a
schematic for a set of relay circuits. An argument that aided the initial adoption of ladder
logic was that a wide variety of engineers and technicians would be able to understand
and use it without much additional training, because of the resemblance to familiar
hardware systems. This argument has become less relevant lately given that most ladder
logic programmers have a software background in more conventional programming
languages, and in practice implementations of ladder logic have characteristics such as
sequential execution that make the analogy to hardware somewhat imperfect. Electricians and
data cabling or control technicians still argue that this is the best graphical interface as they
generally do not have any computer science or digital systems background, and are therefore
taught with this interface in sequence with relay logic.
Figure 9 below adds four more components to the system. Two of them are just
coils from the motor apparatus that are used as inputs and the other two are a red and
green light to be utilized as output/motor status indicators for the user
This circuit adds 6 additional wires to the original circuit in Figure 7. If both of
the additions from Figure 8 and 9 were added to the original circuit, this would add 5
components and 9 additional wires. This illustrates how using a programmable logic controller is
advantageous in that adding any number of relays takes much less effort. It
doesn’t seem like a large amount of work to connect just 9 additional wires, but in a real
world situation, the motor in question may be on top of a grain silo, and the start/stop
station may be a few hundred feet away in a control booth. Pulling all these control wires
would take hours instead of a few minutes sitting in front of a programming terminal.
Programmable logic controllers coupled with ladder logic can make some of the most
labor intensive tasks become easy, enjoyable projects.
Ladder logic is the most widely used program for programmable logic controllers
where sequential control of a process or manufacturing operation is required. Ladder
logic is useful for simple but critical control systems, or for reworking old hardwired
relay circuits. As programmable logic controllers became more sophisticated it has also
been used in very complex automation systems. Figure 10 above shows a much more
complicated ladder logic diagram than the one shown in Figure 5. It is relatable to the
relay circuits in Figures 7, 8, and 9 as well in that some of the outputs are motors and
status lights. In addition there are holding/latching contacts included, but they are not a
piece of hardware. In fact, they are just the address of the respective output being
referenced, which will be discussed in greater detail later. This is still not a very large
program. Ladder logic programs can easily grow to more than 500 “rungs” to finish some
functions.
Figure 11 shows a simplified ladder logic circuit with one input and one output.
The logic of the rung above is such:
· If Input1 is ON (or true) - power (logic) completes the circuit from the left rail to
the right rail - and Output1 turns ON (or true).
· If Input1 is OFF (or false) - then the circuit is not completed and logic does not
flow to the right - and Output 1 is OFF (or false).
There are many logic symbols available in Ladder Logic - including timers,
counters, math, and data moves such that any logical condition or control loop can be
represented in ladder logic. With just a handful of basic symbols such as a normally open
contact, normally closed contact, normally open coil, normally closed coil, timer and
counter most logical conditions can be represented.
This can be used to represent any input to the control logic such as a switch or
sensor, a contact from an output, or an internal output. When solved the referenced input
is examined for a true (logical 1) condition. If it is true, the contact will close and allow
logic to flow from left to right. If the status is FALSE (logical 0), the contact is open and
logic will NOT flow from left to right.
This can be used to represent any discrete output from the control logic. When
"solved" if the logic to the left of the coil is TRUE, the referenced output is TRUE
(logical 1).
When solved the referenced input is examined for an OFF condition. If the status
is OFF (logical 0) power (logic) will flow from left to right. If the status is ON, power
will not flow.
Normally Closed Coil
When "solved" if the coil is a logical 0, power will be turned on to the device. If
the device is logical 1, power will be OFF.
In order for Light1 to turn TRUE, Switch1 must be TRUE, AND Switch2 must be
TRUE. If Switch1 is FALSE, logic (not power) flows from the left rail, but stops at
Switch1. Light1 will be TRUE regardless of the state of Switch2. If Switch1 is TRUE,
logic makes it to Switch2. If Switch2 is TRUE, power cannot flow any further to the
right, and Light1 is FALSE. If Switch1 is TRUE, AND Switch2 is TRUE - logic flows to
Light1 solving its state to TRUE.
A counter simply counts the number of events that occur on an input. There are
two basic types of counters called up counters and down counters. As its name implies,
whenever a triggering event occurs, an up counter increments the counter, while a down
counter decrements the counter whenever a triggering event occurs. Figure 15 shows the typical
graphical representation of an Up Counter.
Figure 17 above shows the same circuit as in Figure 16 with the overload
removed. The overload is needed in relay logic because you have to have an overload
device on any circuit; therefore it needs to be in the wiring diagram. This way, if you
push too much current to the motor, the overload device will interrupt the circuit.
Overloads are included internally in most any device anymore, but you will still see this
in diagrams. There is still an overload device in a plc ladder logic circuit, but ladder logic
shows only those components that have an input or output address, so you do not see it.
In Figure 17, you can see that the start and stop buttons along with the motor relay will
all be turned to inputs in the plc diagram and the motor, signified by a circle with an ‘M’
in the middle will be an output. The motor relay will not be a physical entity in the plc
ladder diagram as it is in this relay logic. It will simply be an input that uses the same I/O
address as the motor output. The stop button input can be located on either side of the
start button/relay gate, as long as it is still in series with it.
Figure 18 above shows the addition of a ‘Jog Function” to the relay circuit. The
jog function is generally added to any circuit for troubleshooting purposes only. Most jog
functions are set up so that the only time the motor will run with the help of the jog
function is when the ‘Jog Button’ is pushed. In Figure 18 above, you can see this with the
relay logic. As the circuit looks right now, when the Start Button is pressed, the motor
will start, energizing the relay, and going across the Jog Button’s normally closed
contacts. The motor will stay running this way until the Stop Button is pressed. If instead
the Jog Button is pressed, the current will travel across the normally open Jog contacts
that are now closed. The motor will stay running until the Jog Button is no longer
pressed.
Figure 19 above shows that same circuit with Status Indicators added. These are
used in control rooms to inform users of the status of their motors or other moving parts.
Green is the generally accepted color for a motor going, while red is stopped. The green
light is energized when the normally open contact is energized by the moving motor,
closing it. The red light is energized whenever a normally closed relay is closed, so it will
turn off whenever the motor starts to run. From Figure 16 to Figure 19, one can see that
with every component added, many wires need to be connected as well. Depending on
how far away these components are away from each other, this can be very difficult and
time consuming.
Figure 20 above was converted from the relay logic in Figure 19 to the PLC
ladder logic seen here. If the PLC logic here was used in Figures 16-Figures 19, adding
the various component would’ve taken much less time than physically wiring each
component. PLC ladder logic can differ from relay logic in that different components are
used as well. In the relay diagrams, a single button double pole switch was used so that it could
perform two different functions. In PLC ladder logic, just a single pole button is
needed, because the computer can be asked to look for a on or off state. For the status
lights, instead of running wires to the motor relays the PLC diagram just looks for a true
or false state of the motor output.
System scale
1.A small PLC will have a fixed number of connections built in for inputs and outputs.
Typically, expansions are available if the base model has insufficient I/O.
2.Modular PLCs have a chassis (also called a rack) into which are placed modules
with different functions. The processor and selection of I/O modules is customised for
the particular application. Several racks can be administered by a single processor,
and may have thousands of inputs and outputs. A special high speed serial I/O link is
used so that racks can be distributed away from the processor, reducing the wiring
costs for large plants.
8) Advantages of PLCs
SCADA
1) Introduction:
SCADA is not a specific technology, but a type of application- “SCADA
stands for Supervisory Control And Data Acquisition- any application that gets data
about a system in order to control that system is a SCADA application”..It is
a purely software package that is positioned on top of hardware to which it is interfaced , in
general via Programmable Logic Controllers (PLCs), or other commercial hardware modules.
A SCADA application has two elements:
2. A network of intelligent devices that interfaces with the first system through
sensors and control outputs. This network, which is the SCADA system, gives you the
ability to measure and control specific elements of the first system.
Data Acquisition:
Real-life SCADA system needs to monitor hundreds or thousands of sensors. Some
sensors measure inputs into the system (for example, water flowing into a reservoir),
and some sensors measure outputs (like valve pressure as water is released from the
reservoir). Some of those sensors measure simple events that can be detected by a
straightforward on/off switch, called a discrete input (or digital input). For example, in
our simple model of the widget fabricator, the switch that turns on the light would be
a discrete input. In real life, discrete inputs are used to measure simple states, like
whether equipment is on or off, or tripwire alarms, like a power failure at a critical
facility.
Some sensors measure more complex situations where exact measurement is
important. These are analog sensors, which can detect continuous changes in a
voltage or current input. Analog sensors are used to track fluid levels in tanks,
voltage levels in batteries, temperature and other factors that can be measured in a
continuous range of input.
For most analog factors, there is a normal range defined by a bottom and top level.
For example, you may want the temperature in a server room to stay between 60
and 85 degrees Fahrenheit. If the temperature goes above or below this range, it will
trigger a threshold alarm. In more advanced systems, there are four threshold alarms
for analog sensors, defining Major Under, Minor Under, Minor Over and Major Over
alarms.
Data Communication: Real SCADA systems don’t communicate with just
simple electrical signals, either. SCADA data is encoded in protocol format. Older
SCADA systems depended on closed proprietary protocols, but today the trend is to
open, standard protocols and protocol mediation. Sensors and control relays are very
simple electric devices that can’t generate or interpret protocol communication on
their own. Therefore the remote telemetry unit (RTU) is needed to provide an
interface between the sensors and the SCADA network. The RTU encodes sensor
inputs into protocol format and forwards them to the SCADA master; in turn, the RTU
receives control commands in protocol format from the master and transmits
electrical signals to the appropriate control relays.
Control:
SCADA systems automatically regulate all kinds of industrial processes. For example,
if too much pressure is building up in a gas pipeline, the SCADA system can
automatically open a release valve. Electricity production can be adjusted to meet
demands on the power grid. Even these real-world examples are simplified; a full-
scale SCADA system can adjust the managed system in response to multiple inputs.
Watchdog timer to ensure that the RTU restarts after a power failure.
4) HMI/SCADA – SIMPLICITY
Simplicity HMI supports redundancy at several levels to minimize the effect of any
failure. These include backup Simplicity HMI Servers and network redundancy.
Options
5) Benefits HMI/SCADA :
Powerful Monitoring and Control Over Your Production
Ease of Use for New and Experienced Users.
Robust Connectivity to Other Software, Systems and Devices.
True Client / Server Architecture for Easy Scalability.
Powerful Thin Client Technologies.
Sophisticated Alarming & Trending.
6) SCADA RECOMMENDED
LAN / WAN Support.
Import from multiple PLC types
Support for low bandwidth operation.
Secure & Flexible.
Low CPU and Memory requirements.
Drivers work on RS232, 422, 485, TCP/IP.
Unlimited number of tags (tags support 80 char).
Graphics(Transparent color support, Advanced animations without coding, Import
graphics Windows Bitmap -Auto Cad, Fax Image )
Conclusion
This report has discussed the role that programmable logic controllers have in the
efficient design and control of mechanical processes. Also discussed was the
understanding SCADA and the programming involved with it. Finally, the report
has discussed relay logic and the evolution that ladder logic made from it.
1. Programmable Logic History: This section discussed the history and advancement
of controls technology, with a comparison of programmable logic controllers and
hard-wired relays.
2. PLC components: This section defined what programmable logic is and described
all hardware associated with it.
Some PLC:
984 – 785 E:
1. 984 – 785 E can support 16 RI / O drops with each drop having 1K in / 1K out (I /
O bits ). It can also support 31 RI / O drops with each drop having a maximum of
512 in / 512 out ( I / O bits ).
3. 984 – 785 E has a memory fixture that contains both RAM and NAVRAM is
attached to the CPU mother board and is not accessible to users.
4. 984 – 785 E has two Modbus ports and one Modbus Plus port.
QUANTUM 43412A
1. The Quantum 140 CPU 434 12A is equipped with two nine-pin RS-232C
connectors that support Modicon’s proprietary Modbus communication protocol.
2. The 140 CPU 434 12A supports up to six network modules (i.e., Modbus
Plus,Ethernet, and Multi-Axis Motion option modules) using the option module
interface technique. However, only two Modbus Plus modules can have full
functionality, including Quantum DIO support.
Electric power generation, transmission and Distribution .
Manufacturing Industries.
Mass transit & Water Management Systems.
Traffic signals.
Cement and Petrochemical industries.
Automobile Industries.