SCADA
SCADA
SCADA
r- Content·
r
\
........... : · ·., 88
r
\
Unit 8 Basic PLC Programming 157
r
l
r
y
. Introduction to T e l e m e t ry
separated locations for the purpose of monitoring and/or control. Telemetry ranges in
J
complexity from systems with a couple of 1/0 to complicated controlling systems of
The key components in many telemetry systems are the RTU (Remote Terminal Unit),
)
The key components are as follows:
_j
J
The RTU is the· remote device responsible for acquiring the "real" information, typically
from field devices. It queries the data from the field devices and typically formats data
communication network.
J
The RTU may acquire their information through electrical s i g n a l s connected to the RTU
or from other intelligent devices via a serial data connection. RTUs may also perform
local control functions. The RTU functions are often fulfilled by a Programmable Logical J
Units (PLC).
1
The communication protocol is the l a n g u a g e used in the transmitting and receiving of _J
data messages on the physical network. A protocol can describe who sent the
message, which it is going to, the meaning of the data in the message, verification
information to ensure the complete message arrives a n d that it is error free. Both the
J
transmitter and receiver of the data message must use the same protocol in order that
l
J
It provides the physical means for the transfer of information (message data) from an
RTU to a SCADA system, from an RTU to another RTU, and in some architectures
J
between multiple SCADA systems. Choice of communication network is critical to the
._J
r
I the physical communication network (and hence to the RTUs), and an operator
i n t e rf a c e to the data obtained from RTUs. This data may be rebuilt, stored for later
retrieval, analyzed and transferred to other computer systems. A "S CA D A system often
r · provides a control interface for sending data to RTUs. This can happen by operator
commands .a n d automatic sequences based on RTU data can release commands too.
r
i
Commands can be received from other computer systems (eg. leak detection at oil
Communication Technologies
r
\
technologies used in telemetry ate often different than in other communication
computer systems. Hardware needs to be flexible enough -to the eventual common use
cables, phone lines etc). So much the more as in case of systems with increased safety
•!• Radio
r
l
While initial equipment and installation costs can be higher t h a ri in other technologies,
the on-going running costs of a radio system are very economical independently from
·r:
the number of RTUs applied. Expansion does not represent any problem either. Also -
'
'
•!• Landline
r
'
landline systems continue to be used in various renewed forms. The leased lines are
mostly used. Their recurrent costs can be very Care should be taken in assessing
landline o p ti o ns e . g . a point - to - point line with conventional modem s is not suitable for
Furt h e rmore some digital data se rv ices are M aster / Slave and not suitable for more
r+»
; Exp ans io n is not always possible cheaply. S a t ndard dialup modem technolog y is
r+
sy s tems wi th sho rt er communication distances building R S485/ R S422 line s - is also
' po ssi b le . Li nes ca n be or g anized in m aster / sla v e or p eer peer configurations with half
,--
___j
Optic fiber technique g a i n s more and more ground in the future and even nowadays.
Very high data rates are achievable, even Ethernet networks can be established.
Ethernet networks enable connecting fast and high performance devices, comprises the J
use of more advanced communication technologies. ·
·These can be networked via bridges to wide area networks but can be. This is a
J
standards based communication rnedia where compatibility is assured. At protocol level
1
C o m m u n i c a t i o n Techniques
Using communication medium already in use for some years, most telemetry
communication networks will support fairly low bandwidth data only. Larger a m o u n t of
data can only be transferred via most up-to date channels. (eg. Ethernet)
•!• Master/Slave C o m m u n i c a t i o n
This is the simplest but also least flexible of the telemetry communication techniques,
despite of this the mostly used one. It assumes centralized communication control,
communicate at a time and only after a master station has requested the data. This
method provides very low bandwidth effectivity. The Master-Slave data gathering
priorities to be assigned to gather data more quickly from some sites, or s e n di ng data to
bandwidth . .
medium technologies can only be used with this type of communication technique.
'
r
'
There is not a centralized communication controller; instead each remote node on the
r
.Exarnples of this in the computer networking field are Ethernet or Token Ring networks.
devices are much improved over the Master-Sfave case for s i m i l a r sized networks a n d
architectures provide the possibility for remotes. to exchange data independently from a
SCADA system or central controller. This provides enhanced reliability particularly for
· r
{
Note that not all communication medium technologies s u p p o rt peer-to-peer
.
communication architectures.
r
I
•!• E n h a n c i n g Reliability in C o m m u n i c a t i o n s
r
l ;
Some telemetry systems require very high communications reliability. T h i s is achieved
· . The use of Peer-to-Peer techniques opens the way for networking of telemetry systems.
I n its simplest form, communication between two nodes on a single network relies on a .
r
i
pair of device addresses: the source and the destination. ·
More complex communications are possible when more networks are connected, even
wide area telemetry network and provide scenarios where multiple master stations can
be connected on a wide area network, where RTUs can exchange information for
control purposes even though they are not on the same communication c h a n n e l . ·
It should not be understated that the facilities which result from Peer-to-Peer
communications and telemetry networking .are providing major operational and asset
r
(
,.....-,
5 1 Page Indian School of Petroleum & Energy
l
management advantages to Industry, The most network telemetry networks uses
TCP/IP protocols that have the advantage of operating with e q u i p m e n t from various
vendors and provide an overlap with computer network technology. This can be
advantageous for _it is not necessary to build an entirely independent system at SCADA
J
system level but networks and PCs already in use can also be applied.
.J
�J
-.J
J
Data Gathering Techniques
The most common data gathering technique is polling. In its simplest form, a single ' )
._.J
master Station sequentially requests data from each of the remote stations. While
simple, able to operate on virtually all physical communication media. Polling often
. l
results in wasted communication bandwidth, it is slow, with the system expansion data ....J
j
· •:• Polled Report By Exception Techniques
master · spend most of its time requesting event changes from the remotes; If no
changes have occurred, then there will be no event data to return to the master. This is
a much more efficient data gathering technique for remotes which have large amounts J
of data which varies infrequently.
J
The applied communication protocol s u p p o rt s . this solution; SCADA as well as RTU
understand the notions 'events' and static 'data'. Events are often time tagged at the ·
time of their occurrence. This can significantly improve the interpretation of data and J
_J
J
,-
I
r
i
r
i events received at a SCADA system. I n case of standard p o l l i n g the time of occurrence
r
[
, key difference in this architecture is the ability for a remote station to initiate a
process remains only at the extent that background polls verify a central station's data is
r
,
S i m i l a r · to unsolicited report - by exception, the most bandwidth efficient technique is
disadvantages in using this type of network are that a central site does not regularly
,--
check on the state of devices and it may take an extended period to reliably detect the
.
I
[
failure of a remote device.
r Automation
system s h o u l d be:
•!• Flexibility.
r
l
•!• · Able to take each & every decision with minimum assistance from human
intervention.
r
(
r
(
(
r
Manufacturing Execution
Supervision (SCADA)
J
Group cemrer
j
Individual Control
Field
Primary lechnology
B u i l d i n g blocks of Automation
J
Telemetry a n d Control
Local controls often performed with PLCs ( e . g . on site PLC automation) then connected
to telemetry RTUs or adjoin them into telemetry systems directly. The difference
between PLCs a n d RTUs will soon disappear namely not for the reason PLCs are more J
and more similar to RTUs but the possibilities of RTUs are increased by the fact that
they become more and more capable to control tasks, that is they function also like
J
PL Cs.
Very interesting and promising topic is the appearance of IEC 1131 protocols, for it J
makes unification of controlling regardless. of RTU vs PLC . .
J
P i p e l i n e Scada Systems
Pipeline SCADA systems cover a broad range from small to h u g e , relatively simple to
J
very complex, a n d important to extremely critical for both financial and safety reasons. It
assets and the level of performance required to ensure that an appropriate and
J
adequate system is in place and maintained properly for the task at h a n d .
SCADA Basics
J
8 1 Page Indian School of Petroleum &.Energy
J
r
r
(
r
{
centralized control room, to efficiently and effectively monitor and control pipeline
operations in real time. Data is collected from field instrumentation by remote terminal
units (RTUs), flow computers, and/or programmable logic controllers (PLCs) which then
relay the information to the SCADA master station via the field communication network.
· The SCADA master station performs any required data conversions, intermediate
pipeline controller, and stores data for viewing, long-term archiving, a nd for use by
advanced applications. Pipeline controllers interface with the SCADA master station
through the graphical . user interface (GUI) which allows them to view current or
. .
management. Factors such as point count, data acquisition rates, and availability (up
area networks· (LAN), wide area networks (WAN), high-reliability systems, high
! performance systems, and high-level of security for a l l of it, will be quite apparent as we
become aware of the many different components required to provide all necessary
r functionality .
SCADA support staff for the task at h a n d , and keeping them adequately trained as the
The newest area of increasing concern is cyber-security. All other forms of attack.
against pipeline infrastructure require physical proximity to the pipeline assets, but
r�
cyber-attacks against the SCADA system can be conducted from anywhere in the world
!
via the Internet unless the pipeline company exclusively uses its own, completely
SCAD A a n d DCS
r
r
People new to the industry often use the terms SCADA (supervisory control and data
sharp line separating these two categories of control systems, and specific
The most significant factor d i ff e r e n t i a t i n g pipeline SCADA systems from DCS today is ·
the "human in the loop". Traditional differences inelude SCADA's better tolerance of
Today's environment includes greater overlap in SCADA and DCS functionality from a
Pipeline SCADA systems· assume that the pipeline controller will initiate most or all
control actions except for station safety logic, and will respond promptly and properly to
instrumentation data and pre-programmed responses. Table 1 lists some of the major
J
Geographic span Large - cross country Small - single pump station
�J
Moderate ...:.. seconds to Very fast - milliseconds to
minutes seconds
GUI
Full featured Basic·
J
Alarming Subsystem Full featured Basic
Major components
l
,.__j
•!• Field instrumentation - connects the SCADA system to the pipellne measurement
J
r:
I
•!• RTUs, flow computers, and/or PLCs - convert analog data to digital format;
r consolidate data from field instruments, and present data to the master station when
I
requested. ·
·l
•!• Communication network to acquire field data - provides· the data path between the
satellite, frame relay, corporate data network, leased telephone circuits, radio, and
r
l
� Display editor - creates/alters graphical and tabular displays used by controllers
� Database - stores configuration parameters, field data, calculated data, such as:
r
I
a) Analog - continuously variable measurements such as temperature and
pressures
r
{ c) Meter - measure of product passing through a meter
r+:
d) Digital output - control of valves, p u m p s , etc.
l
'
r
( , � Data acquisition - handles the transfer of data from the RTUs/PLCs to the
r
1
� Data processinq ....:: converts data provided by RTUs/PLCs to the format required
at the master station, checks for abnormal conditions, and issues alarm
J
� Security -. ensures that only authorized users are allowed access to the system
and that authorized users can only monitor and control items for which
permission has been granted. Also prevents outsiders from interfering with the J
normal and proper operation of the system. -
J
� Redundancy - the general rule is that there should be no s i n g l e point of failure
that will cause any critical functionality of the system to be unavailable. Critical
of periodic maintenance;
J
J
Care and Feeding
Although most pipeline SCADA systems · are very · robust, they do have their
J
vulnerabilities. The following items are very important to ensure reliable SCADA
performance: .
•!• Protect and periodically validate the integrity of the configuration parameters in t h e ·
database, such as alarm limits and deactivated points, via well-defined change
management procedures.
•!• Implement hardware, software, an d procedures to keep the system secure from
the company.
•!•. Ensure al l parts of the system have adequate computing and network resources to ·
•!• Periodically audit the SCADA system to ensure error logs reflect a well-functioning J
system, and that computing and network resources remain a d e q u a t e . '
J
Life Cycle
J
. . . . . . . . . . . . . . . . . ... . . . . . . . .
J
The life cycle of a . pipeline SCADA system varies considerably among pipeline
r companies, ranging from three years to fifteen years, or more. At the low end of the
(
range, users typically perform more modest hardware upgrades and software
r system size or requirements, while the h i g h end typically involves fairly static operations
r
(
•!• Install new system
r
I
r Advanced applications ·
r
r 1 3 1 Page Indian School of Petroleum & Energy
.
.
Many users of p i p e l i n e SCADA systems choose to enhance the basic monitoring and J
· control capabilities of their SCAOA system by adding related advanced applications.
of the p i p e l i n e .
J
•!• Controller training system . - provides hands-on controller training without
detection. There are several methods available which can be used to identify the
J
presence of a leak, its location, and often an estimate of lost product.
J
•!• Batch tracking and scheduling - monitors batch location, calculates estimated
•!• Open path analysis - ensures product path is not blocked by a closed valve
•!• Historical playback- provides for viewing G U I displays presenting historical data
•!• Intelligent alarm processor - helps identify the root cause of an upset rather than
J
merely reporting a l l of the symptoms.
•!• Gas load forecaster - uses weather forecast and historical usage data to J
estimate the expected gas load for a given period of time.
SCADA Architecture
J
SCADA systems have evolved in parallelwith the growth and sophistication of modern
computing technology. The following sections will provide a description of the followinq
. 1
J
r
I
r
(
M o n o l i t h i c SCADA Systems
•!• When SGADA systems were first developed, the concept of computing in general
r
I centered on "mainframe" systems. Networks were generally non-existent, and
•!• The Wide Area Networks (WANs) that were implemented to communicate with
SCADA Master
� Remote
. ��,JerminalUnit
I
( �
•!• The next generation of SCAQA systems took advantage of developments and
•!• Multiple stations, each with a specific function, were connected to a LAN and
shared information with each other in real-time. These stations were typically of
processors.
- l
..__J
Communications
Server
Operating J
Station
'
J
Operating Operating
Station Station J
Remote
•:• The current generation of SCADA master station architecture is closely related to
J
that of the second generation, with the primary difference being that of open ·
J
•:• There are still multiple networked systems, sharing master station functions.
•:• The utilization of off-the-shelf systems makes it easier for the user to connect
'J
third party peripheral devices (such as monitors, printers, disk drives, tape drives,
J
!
(
'
).
r:
{
L11ia:'° Alnmla
'•1m1111I Un•
One distinguishes two basic layers in a SCADA system: the ''client layer" which caters
for the man machine interaction and the "data server Iayer" which h a n d l e s · most of the
(
I.
The data servers communicate with devices in the field through process controllers.
Process controllers, e.g. RTUs, are connected to the data servers through telecom
Data servers are connected to each. other a n d · to client stations via· an Ethernet LA N .
The data servers and client stations are Unix platforms but for many products the client
following aspects: .
r
(
•!• Architecture
•!• Interfacing
•!• Functionality
J
I
J
Client Client Dedicated
S e rve r -
J
,
Ethernet J
I 1
J
Data • • I! • • • • • • • • Data
..
S e rve r S e :tVe r
' l
-
·
____.l
I �r I
�
.
'
J
Software Architecture J
'
The products are multi-tasking an d are based upon a real-time database (RTDB)
· located in one or more servers. Servers are responsible for data acquisition an d J
h a n d l i n g ( e . q . p o l l i n g controllers, alarm checking, calculations, logging and archiving) on
l
.....)
J.
SCADA Client
3rdP.artv
, � pP li c . , .
r
l
logger, alarm handler. Fig. above shows a SCADA architecture that is generic for the
Communications
r
(
Internal C o m m u n i c a t i o n .
parameter which is owned by a particular server application and only changes to that
Access to Devices
r:
i
servers. Time stamping of the process parameters is typically performed in the RTUs
J
and this time-stamp is taken over by the data server. If the RTU and communication
protocol used support unsolicited data transfer then the products will s u p p o rt this too.
l
._) .
The products provide communication drivers for most of the RTUs and widely used are
IEC and DNP Protocol. In GAS PIPELINE OPERATOR Foxboro SCADA software
works in D N P 3 protocol. J
J
Application Interfaces I Openness
J
Database
The configuration data are stored in a database that is logically centralized but
J
physically distributed and that is generally of a proprietary format.
J
For performance reasons, the RTDB resides in the memory of the servers a n d is also of
proprietary format. .
The archive and l o g g i n g format is u s u a l l y also proprietary for performance reasons, but J
some products do s u p p o rt logging to a Relational Data Base Management System
· Functionality
J
Access Control
Users are allocated to groups, which have defined read/write. access privileges to the
J
process parameters in the system and often also to specific product.functionallty.
J
MMI
J
· · · · · ·
J
The products support multiple screens, which can contain combinations of synoptic
a synoptic diagram. ,
Most of the SCADA products that were evaluated decompose the process in "atomic"
parameters (e.g. a power supply current, its maximum value, its on/off status, etc.) to
i . T r e n d i n g
The products all provide trending facilities and one can s u mmari ze the common
r
I
capabilities as follows:
•:• The parameters to be trended in a specific chart can be predefined or defined on
_ line
r+:
•:• Real-time and historical trending are possible, although generally not in the same
l
chart
Alarm H a n d l i n g
Alarm h a n d l i n g is based on l i m i t and status checking and performed in the data servers.
performed. The alarms are logically handled centrally, i . e . , the information only exists in
r
( one place and al l users see the same status ( e . g . , the acknowledgement), and m u l t i p l e
alarm priority levels (in general many more than 3 such levels) are supported.
i
I t . is generally possible to group alarms and to handle these as an entity (typically
alarms seen on the alarm page orwhen viewing the alarm log is also possible at least
L o g g i n g I Archiving
The terms logging and archiving are often used to describe the same facility. However,
J
logging can be thought of as medium-term storage of data on d i s k , whereas archiving is
Logging is typically performed on a cyclic basis, i. e . , once a certain file size, time period J
or number of points is reached the data is overwritten.
j
Logging of data can be performed at a set frequency, or only initiated if the value
changes or when a specific predefined event occurs. Logged data can be transferred to
l
an archive once the log is full. The logged data is time-stamped and can be filtered __J
Report Generation
J
One can produce reports using SQL type queries to the archive, RTDB or logs.
J
J
The benefits one can expect from adopting a SCADA system for the control of
•!• A rich functionality and extensive development facilities. The amount of effort
•!• The amount of specific development that needs to be performed by the end-user is
•!• Reliability and robustness, These systems are used for mission critical industrial
J
processes .where reliability and performance are paramount. In addition, specific
l
.......)
J
1
�
r
(
r:
i
r-
. .
'
i
'
I
. ,.......--
r
r
(
1'
r
I
r-
r
1
r
(
I.
r+-
r
r-
2 3 1 Page Indian School of Petroleum & Enerzv
I
U N I T 2 : I N S T R U M E N T A T I O N & SCADA J
Introduction
J
SCADA (supervisory control and data acquisition) has been around as long as there
have been control systems. The first 'SCADA' systems utilized data acquisition by
J
means of panels of meters, lights and strip chart recorders. The operator manually
operating various control knobs exercised supervisory control. These devices were and
still are used to do supervisory control and data acquisition on plants, factories and
J
._)
The sensor to panel type of SCADA system has the following advantages:
J
J
•!• The sensors are connected directly to the meters, switches and lights on the
panel
J
•!• It could be (in most circumstances) easy and cheap to add a s i m p l e device like a
l
switch or indicator __)
J
•!• The a m o u n t of wire becomes u n m a n a g e a b l e after the installation of hundreds of
sensors
J
•!• The quantity and type of data are m i n i m a l and rudimentary
J
r
[
•!• Installation of additional sensors becomes progressively harder as the. system
gr.ows
r
!
'
(
•!• Someone has to watch the dials and meters 24 hours a day
In modern manufacturing and industrial processes, mining industries, public and private·
utilities, leisure and security industries telemetry is often needed to connect equipment
and systems separated by large distances. This can range from a few meters to
r encompasses the collecting of the information, transferring it back to the central site,
{
c a r ry i n g out any necessary analysis and control and then displaying that information on
a number of operator screens or · displays. The required control actions are then
In the early days of data acquisition, relay logic was used to control production and plant
systems. With the advent of the CPU and other electronic devices, manufacturers
incorporated digital electronics into relay logic equipment. The PLC or programmable ·
logic controller. is still one of the most widely used control systems in industry.
As need to monitor and control more devices in the plant grew, the PLCs were
distributed and the systems became more intelligent and smaller in size. PLCs and DCS
r=
I
t:
l
.....
I .
2 5 1 Page Indian School of Petroleum· & Enerzv
_.;
',.
__J
PLC
or
OCS, l
� .
___)
Afi�doos
_____)
, ; - - "'W
_J
' ; F ,---- -
�::QL�� ...��!l;l!i,!II·,,.,,
:' '-'
-.__,_,__,__
_J
J
•!• The computer can record a n d store a very large amount of data ·
l
_____)
•!• The data can be displayed in any way the user requires
•!• Thousands of sensors over a wide area can be connected to the system __J
•!• The operator can incorporate real data simulations into the system
J
•!• M a n y types of data can be collected from the RTUs
J
•!• The data can be viewed from anywhere, not just on site
l
•!• The system is more complicated than the sensor to panel type I
•!• Different operating s k i l l s are required, such as system analysts and programmer
l
,.....)
•!• With thousands of sensors there is still a lot of wire to deal with
I
As the requirement for s m a l l e r and smarter systems grew, sensors were designed with
__J
the intelligence of PLCs and DCSs. These devices are known as IEDs (intelligent
l
_____)
_J
J
I
(
r
I
or Foundation Fieldbus to the PC. They include enough intelligence to acquire data,
.---
communicate to other devices, a n d hold their part ofthe overall program·.
. .
Each of these super smart sensors can have more than one sensor on-board. Typically,
i
!
r
i
r+:
A f1eldbus
r
(
Ethernet
"'1=�""""""'""""""'"""'
r+
I
(
•!• The operator can s_ee down to the sensor level
•!• The data received from the device can include· information such as serial
i '
I •!• All devices are plug and play, so installation and replacement is easy
•!• S m a l l e r devices means less physical space for the data acquisition system
r
I
r:
i.
r-s
2 7 1 Page Indian School of Petroleum & Energy
I
•!• Sensor prices are h i g h e r (but this is offset somewhat by the lack of PLCs)
j
r
•!• The I E D s rely more on the communication system
�
SCAD A Hardware
J
A SCADA system consists of a number of remote terminal units (RTUs) collecting field
data and s e n d i n g that data back to a master station, via a communication system. The
l
_)
master station displays the acquired data and allows the operator to perform remote
control tasks.
The accurate and timely data allows for optimization of1he plant operation and process.
Other benefits include more efficient, reliable and most importantly, safer operations.
On a more complex SCADA system there are essentially five levels or hierarchies:
j
__J
j
•!• Communications-system
J
T h e · RTU provides an interface to the field analog a n d digital sensors situated at each
remote site.
J
The communications system provides the pathway for communication between the
master station and the remote sites. This communication system can be wire, fiber
J
optic, radio, telephone line, microwave and possibly even satellite. Specific protocols
a n d error detection philosophies are used for efficient and optimum transfer of data.
J
- -
The master station ( or sub-masters) gather data from the various RTUs and generally
·
,
provide an operator interface for display of information and control of the remote sites.
,.J
In large telemetry systems, sub-master sites gather information from remote sites and
__J
SCADA Software
I
__)
SCADA software can be divided into two types, proprietary or open. Companies
develop proprietary software to communicate to their hardware. These systems are sold
J
.__J
J
,----.
as 'turnkey' solutions. The main problem with this system is the overwhelming reliance
Open software systems have gained popularity because of the interoperability they
equipment on the same system: Citect and Wonder Ware are just two of the open
Some packages are now including asset management integrated within the SCADA
system. The typical components of _a SCADA system are indicated in the next diagram.
Frhlliir'
r-
1
i
l 1l\;;r1d S,;im;r Task ./
R,;;iport Si;nr,;;r T.ask
�-
(
r
i
r
l
•!• Alarms
•!• Trends
•!• Scalability
_J
•!• Database
j
•!• Networking
_J
L a n d l i n e s for SCADA I
__J
Even with the reduced amount of wire when usi ng a PC to I E D system, there is us u a l ly
l
I
a lot of wire in the typical SCADA system. This wire brings its own problems, with the _j
Interference and noise are important factors to consider when d e s i g n i n g and installing a J
data communication system, with particular considerations required to avoid electrical
interference. Noise can be defined as . the random generated undesired signal that
J
corrupts (or interferes with) the original (or desired) s i q n a l .
This noise can get into the cable or wire in m a n y ways. It is up to the designer to .....J
develop a system that will have a minimum of noise from the beginning. Because
SCADA systems typically use small voltage they are inherently susceptible to noise. l
_j
U s i n g good wire coupled with correct installation techniques ensuresthe system will be
J
a s · noise free as possible: Fiber optic cable is g a i n i r:i g popularity because of its noise
immunity. At the moment most installations use glass fibers, but in some industrial
I
�j
areas plastic fibers are increasingly u s e d . ·
_J
l
.
_J
_J
_J
,--.
r Future data communications will be divided up between radio, fiber optic and some
l
infrared systems. Wire will be relegated to supply ing power a nd as power requirements
Local area networks (LAN) are all about sharing information and resources. To enable
a ll the nodes on the SCADA network to share information, they must be connected by
topology. Nodes. need to share this transmission medium in such a way as to allow all
several users, with full connectivity between all stations on the network.
A LAN is usually owned and administered by a private owner and is located within a
localized group of b u i l d i n g s . Ethernet is the most widely use LAN today because it is
cheap and easy to use. Connection of the SCADA network to the LAN a l l o w s · anyone
within the company with the right software and permission, to access the system.
Since the data is held in a database, the user can be limited to reading the information.
l
_J
__J
sru
":' ,
__;
Often in SCADA systems the RTU (remote terminal unit (PLC, DCS or I E D ) ) is .located I
._J
at a remote location. This distance can vary from tens of meters to thousands of
kilometers. One of the most cost-effective ways of communicating with the RTU over
.
With this system the devices needed are a PC, two dialup modems and the RTU
(ass uming that the RTU has a b u i l t in COM port). The modems are put in the auto J
answer mode' and the RTU can dial into the PC or the PC can dial the RTU. The
software to do this is readily available from RTU manufacturers. The modems can be
J
bought off the shelf at the local computer store.
Line modems are used to connect RTUs to a network over a pair of wires. These
systems are us ually fairly short (up to 1 kilometer) and use FSK (frequency shift keying)
to communicate. Line modems are used to communicate to RTUs when RS-232 or RS- I
485 communication systems are not -practical. The bit rates used in this type of system
�J
J
Computer Sites & Trouble Shooting
_J
r
' '
Maintenance tasks could include daily, weekly, monthly or annual checks. When
r
\
•!• The central site
Two main rules that are always followed in repair and maintenance of electronic
systems are:
•!• Do no harm
r
l
Technicians and engineers have caused more problems, than they started with, by
do i ng stupid things like cleaning the e quip me n t because it was slightly dusty. Or trying
to get that one more .01 dB of power out of a radio and blown the amplifier in the
process.
r
33 Page Indian School of Petroleum & Energy
r
I
J
Ri:ui:;
J
RTU Slave Addre,.ss 1
RS-2� :RaJ±.
.,_.._...:..::=.:=------------1Transrrit8T
'Ra:ert'B' •
J
J
SCADA Implementation
J
r
r
r
I When first p l a n n i n g and designing a SCADA system, consideration should be given to
integrating new SCADA systems into existing communication networks in order to avoid
This may be carried out through existing LANs, private telephone systems or existing
radio systems used for mobile vehicle communications. Careful engineering must be
communication network does not degrade or interfere with the existing facilities.
r
\
r
i
r
l
The availability of the communications links an d the reliability of the equipment are
r important considerations when planning performance expectations of systems. All the
\
aforementioned factors will be discussed in detail in the book. They will· then be tied
maintain an effective telemetry and data acquisition system that is .sultable for the
SCADA System
r
(
consisting of a number of remote terminal units (or RTUs) collecting field data J
connected back to a master station via a communications system. The master station
displays the acquired data and also allows the operator to perform remote control tasks.
�J
The accurate and timely data (normally real-time) allows for optimization of the
operation of the plant and process. A further benefit is more efficient, reliable and most
importantly, safer operations. This all results in a lower cost of operation compared to J
earlier non-automated systems.
J
There is a fair degree of confusion between the definition of SCADA systems and
process control system. SCADA has the connotation of remote or distant operation. The
inevitable question is how far 'remote' is - typically this means over a distance such that
the distance between the controlling location and the controlled location is such that
system).
J
software.
J
Today hardware reliability is less of a problem, but the increasing software complexity is
producing new challenges. It should be noted in passing that many operators judge a J
SCADA system not o n l y by the smooth performance of the RTUs, communication li n k s
and the master station (all falling under the u m b r e l l a of SCADA system) but also t h e .
field devices (both transducers and control devices). The field devices however fall
outside the scope .of SCADA in this m a n u a l and .will not be discussed further.
J-
J
l
'
ODerfl.or
$talion .
/�
r , •
.
r
.
l
-e
- •
.
; t
,'
e
r
'
R:TUJ1
I
I
c
r I
•
I
I
,
I r
I s
-
·
r \
I
. La�ine
;
.RTl..1#2
I
' Liri<
r
··----
ftb:lern
RTUi4-
r I
r
I
' .
r On a more complex SCADA system there are essentially five levels or hierarchies:
r
I
•:• The RTU provides an interface to the field analog and digital signals situated at
l
--1
each remote site.
The communications system provides the pathway for communications between the
J
master station and the remote sites. This communication system can be radio,
telephone line, microwave and possibly even satellite. Specific protocols and error
I
..._]
detection p h i l o s o p h i e s are used for efficient and optimum transfer of data.
The master station (and sub masters) gather data from the various RTUs and generally
J
provide an operator interface for display of information and control of the remote sites.
In large telemetry systems, sub master sites gather information from remote sites and
SCADA technology h a s · existed since the early sixties and there are now two other
�]
· competing approaches possible - distributed control system (DCS) and programmable
logic controller (PLC). In addition there has been a growing t r e n d · to use smart
instruments as a key component in a l l these systems. Of course, in the real world, the 1
.......)
designer will mix and match the four approaches to produce , an effective system
l
.__J
J
. . . . . . . . . . . . . . . . . . . . . . . • . . . . . . ,-, -·-
J
r
I
r
l ,
Commercial Pala,
r_ rr��,ng &)mm
l
�hfram1J i;<Qmpihf
r
r
!
� � f:l
a §;:! ' '
, , , -- . . . ----
· - ,
.
Mti$1.�
'
r
r
&'laloo
. ,·
....... .,;,.;;;. � = ;;;;;,;... ... . ...... ..,;,;.: ,..;;;;;; - ..... .-. ....... - �- .;;,;;. .a.;;;. - � ;.;;.;;. - -=... ;;i;ii,11
, � � ·= ,= � -
� ....... = � �- ;......, � ,.;i;;i ;:;:.: ...... � ....-:: - ::.;;..;;
' .
C,:irnm1.mk:?li1iJn
r
l
r
(
!'I .,
,
. ' &ID-master .. ,
.. I .
. ,
�ion
_, e '
,,,,,,,. : - -
· . -- ;;.., ,.
, .•. , +: ." � - - - - -, ,
, · · ,,,,,,, - - ,
, -- �- .,.:;'� �--, s, ,,,,,, 7/ _ - � · - ,' - � - ,,,,,,,."' - - ,, . ,,,,, - - ,,,,,, . -
, ,� · • CiJirm.ini;:;;IKm
FITU's
' ,. � • - • r
' ,
- �· �
w - -- - -- - ---
r+:
RrL! RT'iil ' RfLI i'i'l'lJ ' RW !i:TU : Rill
� U � a � ff I �
i-i��
!
1
..,., - ..,, --- . ..:_ - -: ,.,,, -- t - - - 1 - ..,,, - """ ' - - = ,,,,, .... = i:fe1d 1.,-;... ;;r -
r
(
r
l In a DCS, the data acquisition and control functions .are performed by a number of
the instrument from which data is being gathered. DCS systems have evolved into
r
(
A closely integrated set of operator interfaces (or man machine interfaces) is provided
to allow for easy system configurations and operator control. The data highway is
' l
....J
,Qperail!f:
��,...� Derai�dCiSfl�' Treooing
D�i�y .ti Alea
SlaliOr:iS
J
: o
. ""::I" · · · """
.
D
. >•-:,;. ;,;;:;:: '
· ·
�
o
�
I
._J
l
. J.
. i
> !
> I
R:tlt'Klte
I
; } I
i�m�al!
� 1 ;
.
;
1
;
'
J
LtlilS (liO}
I• I
� ! '
' .
r I I � � I I I
J
@ -f7.+ Bl ®
An�og& .
. D�Hal!LfO J
li&rume"'alion:
J
. Programmable Logic Controller
hardwired relays with a combination.of ladder-logic software and solid state electronic
J
i n p u t a n d output modules. They are often used in the implementation of a SCADA RTU
Advantage of using P L C : J
J
40 I Page Indian School of Petroleum & Energy
J
r
I ,
,---.
Intra-PLC comms Unk
. .1
r
i
r
i
Parts of PLC
r
I
1/0 modules allow the PLC to read sensors arid control actuators. There exists a wide
(
Power Supply Module
'
Power s u p p l y module provides power to the CPU and often provides power to drive
Peripheral Equipments
j
Programming unit to
Communication link to
remote 1/0
Connectors on
J
(interface may be in CPU module)
bus for more
......-1--1-----.
Power CPU
j
supply module
J
Analog
actuators
AC
J
(e�g., motors
in
or motor position
controllers)
J
Digital sensors · Digital actuators
(e.g., limit swit.chas, (e.g., pneumatic valves,
. proximity sen�rs)
J
indicator lamps)
J
Each PLC operational cycle is made u p of three separate parts:
J
•!• Input scan at which input terminals are read and .the input status table is updated,
•!• Program scan at which· data in the input status table is a p p l i e d . to the user J
program, the program is executed and the output status table is executed
•!• Qutput scan at which data associated with the output status table is transferred
to output terminals.
J
Standard PLC scan cycle is:
l
.__;
r
(
�
�
,'
· , ,
r
(
,,
'
...-
Another device that should be mentioned for completeness is the smart instrument
Smart Instrument
(microprocessor based) digital _measuring sensor (such as a flow meter) with digital data
r.
4 3 . 1 Page Indian School of Petroleum & Energy
r
J
J
Modulator I Demodulator Interface
Analog
J
<€r-L-
• CPU
_.Quantily
fl.J
u-....-
·-+-H---_ 4--20_mA_l;------ 0-� - ( e g Flow,
Pressure,
Analog to . Scaling/· ,Digital Digital to Temp).
J
Digital · · Llneanzatton Value Analog
0
Converter Converter
0 J
PLC Smart Instrument
standalone data acquisition and control unit, generally microprocessor based, which
monitors and controls equipment at some remote location from the central station.
Its primary task is to control and acquire data from process e q u i p m e n t at the remote J
location and to transfer this data back to a central station. It generally also has the
facility for having its configuration and control programs dynamically downloaded from
J
some centralstation.
station) to another RTU, which may not be accessible from the central station. j
sized· RTUs have 100 digital and 30 to 40 analog inputs. RTUs, having a capacity J
greater than this can be classified as large.
J
· Indian School of Petroleum & Energy
J
r
r
l
Antenna:
'
r
- - - - -opio�,;I- - - � , � - - ;�ri�I-C���: ;;rt� - - - - - - -- - --- --- --- -----
1,-·-·-·· .. 1 1 : � : (RS-:m· I FZS-4211 RS,.Jta5)
I 1 · l I I 'I t
i .____c__1 I l i
""2:� I
r
{
,,..-t�.S%.-&.U,c't'""%';<,'��NZl$'i.4".-,._ l i1=��:;;hi���l/,;;;i;
Programiiing Tl:l\titlirial · :
r
{
J
Control Processor
J
This is generally microprocessor based (16 or 32 bit) e.g. 68302 or 80386. Total
memory capacity of 256 kByte (expandable to 4 Mbytes) broken into three types:
J
•!• E P R O M ( or battery backed RAM) 256 kByte
J
•!• Interface to operator station
during power off periods. The real-time clock is useful for accurate time stamping of
J
events.
A watchdog timer is also required to provide a check that the RTU program is regularly J
executing. The RTU program regularly resets the watchdog time. If this is not done
within a certain time-out period the watchdog timer flags an error condition (and can
reset the C P U ) J
Analog I n p u t M o d u l e s
J
J
46 I Page Indian School of Petroleum & Energy
J
r
(
r
l
Input
Channel
Sample &
Sample&
Hold for
Hold
ND
r
I
AID Converter
i :J
<O
�
c..
Jp, . \Hr
Start
c:
r Conversion
- -
.9-
"3
�
Gain
End of
Buffer/FIFO
conversion
Channel-Gain Sample
1� Step/Next
___. Channel
Timing System
Ext. Clock
Ext. Trigger
r Status
Control
&
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Ill 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Li es
r:
( .
Multiplexers
A multiplexer is a device that samples several (usually 16) analog inputs in turn and
switches each to the output in sequence. The output generally goes to an AID
converter, eliminating the need for a converter on each input c h a n n e l . This can result in
J
The amount of signal coupled to the output as a percentage of i n p u t s i g n a l s applied to
a l l O F F c h a n n e l s together.
J
I n p u t Leakage Current
The maximum current that flows into or out of an OFF channel i n p u t terminal due to
J
switch leakage.
J
Settling Time
The time that the multiplexer output takes to settle to a certain percentage (sometimes J
90% or sometimes ± 1 LSB of the i n p u t value) when a single i n p u t swings from -FS (full
scale) to FS or from +FS to -FS. Essentially, the output must settle to within a b o u t ± %
J
LSB of the input range, before the A/D converter can obtain an accurate conversion of
· Switching Time
A s i m i l a r parameter to settling time, it specifies how long the multiplexer output takes to
J
settle to the i n p u t voltage when the multiplexer is switched from o n e c h a n n e l to another.
J
T h r o u g h p u t Rate
This relates to the highest rate at which the multiplexer can switch from c h a n n el to J,
channel; it is limited by the settling time or the switching time, whichever is longer.
J
. Transfer Accuracy
Amplifier
J
Where low-level voltages need to be digitized, they must be amplified to match the i nput
range of the board's AID converter. If a low-level signal is fed directly into a board
J
without amplification,· a loss of precision will be the result. Some boards provide
onboard amplification (or g a i n ) , while those with a PGA make it possible to select from
The ideal differential input amplifier o n l y responds to the voltage difference between its
J
two i n p u t terminals regardless of what the voltage common to both terminals is d o i n g .
J
r
l
An important characteristic is the common mode rejection . ratio, CMRR, which is
calculated as follows.
r
i
Where:
Vdiff is the outpui ierror) voltage when Vern is applied to both inputs An ideal value for
C M R R would be 80 dB or greater.
the output (still at zero input) will change over time a n d if the temperature c h a n g e s .
. . .
Time drift and temperature drifts are usually measured in PPM/unit time and PPM/°C,
respectively. For a 1 2 ..: b i t board, 1 _LSB is 1 count in 4096 or 244 PPM. Over an
r
<
r In choosing a component, you need to ensure that the board's time a n d temperature
drift specifications over the entire operating temperature range are compatible with the
precision you require and don't forget that it can get quite warm inside the RTUs
enclosure.
S a m p l e a n d Hold Circult
Most AID converters require a fixed time during which the input signal remains constant
(the aperture time) in order to perform an AID conversion. This is a requirement of the
conversion algorithm used by the AID converter. If the i n p u t were to change d u r i n g this
samples the output s i g n a l from the multiplexer or g a i n amplifier very quickly a n d holds it
r
(
The standard design approach is to place a simple sample-and-hold chip between
AID Converters
r
'
_J
The AID converter is the heart of the m o d u l e . Its function is to measure an i n p u t - a n a l o g
voltage and to output a digital code corresponding to the input voltage. There are two
J
These are used for very low frequency applications (a few h u n d r e d hertz m a x i m u m ) and
may have very high accuracy and precision (e.g. 22 bit). They are found in
J
· thermocouple and RTD modules. Other advantages i n c l u d e very low cost, noise and
mains pickup tend to be reduced by the integrating and dual slope nature of the AID
converter.
J
The AID procedure essentially requires a capacitor to be charged with the input s i g n a l
for a fixed time, a n d then uses a counter to calculate how long it takes for the capacitor J
to discharge. This length of time is proportional to the i n p u t voltage,
J
Successive Approximation AIDS
Successive approximation A/Os allow much h i g h e r sampling rates (up to a few hundred J
kHz with 12 bits is possible) while still being reasonable in cost. The conversion
algorithm is similar to that of a binary search, where the AID starts by comparing the
J
If the i n p u t is in the lower half, the first digit is zero a n d the AID repeats this comparison
u s i n g the lower half of the· i n p u t range. If the voltage had been in the upper half, the first
This dividing of the remaining fraction of the inputrange in half and comparing to the
J
input voltage continues until the specified number of bits of accuracy have been
obtained. It is obviously important that the input signal does not change when the
J
· This value refers to the maximum analog error; it is referenced to the national bureau of
Differential Linearity J
This is the maximum deviation of an actual bit size from its theoretical value for any bit
J
over the full range of the converter. -
J
i
(
The difference in slope between the actual transfer function and the ideal function in
percentage:
U n i p o l a r Offset
The firsttransition should occur % LSB above analog common. The unipolar offset error
is the deviation. of the actual transition point from the ideal first transition point. It is
usually adjustable to zero with calibration software· a n d a trim pot on the board. This
B i p o l a r Offset
Similarly, the transition from FS/2-% LSB to FS/2 (7 FFh to 800 h on a 1 2 - b i t AID)
should occur at % LSB below analog common. The bipolar offset (again, usually
adjustable with a trimpot) and · the temperature coefficient specify the initial deviation
Linearity Errors
With most AID converters g a i n , offset a n d zero errors are not critical as they may be
r
(
calibrated out. Linearity errors, differential non-linearity ( D N L ) and integral non-linearity
Differential Non-Linearity
Is the difference between the actual code width from the ideal width of 1 LSB. If D NL
r
I
· errors are large, the output code widths may represent excessively large a n d s m a l l input
voltage ranges. If the magnitude of a D N L is greater t h a n 1 LSB, then at least one code
Integral Non-Linearity
r
l
Is the deviation of the actual transfer function from the ideal straight l i n e . This line may
r: be drawn through the center of the ideal code widths (center-of-code or CC) or t h r o u g h ·
(
the points where the codes begin to change (low side transition or LST). Most A/Os are
specified by LST I N L . Thus the l i n e is drawn from the p o i n t % LSB on the vertical axis at
r
( zero i n p u t to the point 1 % LSB beyond the last transition at full-scale i n p u t .
Resolution
r
\
This is the smallest change that can be distinguished by an AID converter. For example,
r
(
for a 12-bit AID converter this would be 1/4096 = 0.0244%.
M i s s i n g Code
r
(
· r
Monotonicity
Quantizing Uncertainty
J
Because the AID can o n l y resolve an input voltage to a finite resolution of 1 LSB, the
J
actual real-world voltage may be up to � LSB below the voltage corresponding to the
always ±% L S B . · J
. Relative Accuracy
J
This refers to the input to output error as a fraction of full scale with gain and offset error
adjusted to zero. J
r
(
r
(
1
14
I
314 110 •
�
t
5.l8 101 •
r ff
I
!fransition Point&
. _,,......,.,..
_ ..... 4---:::#!-'"'
,-�-/�'····.,..-. ........-<
r �,..,,,....
_...,
*'
r=
1
�_.,.,.-
l 118 0 0 1 : . ...... �" i
0000--...._--�--�--�----------·�·----��----
o 119 1/4 318 112 S.ts . 314 718 FS
r
(
. �
+�LSS
e
....
r: �
(
c:
s
•
-
•
N
'Z
c:
•
:I
r 0
{ -•.� LSB
r
(
r
(
The bus interface provides the mechanism for transferring the data from the board and
r
( . into the host PCs memory, and for sending any configuration information (for example,
gain/channel information) or other commands to the board. The interface can be 8 - , 16-
or 32-bit.-
r
i
Analog I n p u t Configuration
r
l ,
devices (the signal source); otherwise the introduction of errors and inaccuracies into a
Connection Methods
J
�.
There are two methods of connecting signal sources to the data acquisition board:
J
In the descriptions that follow, these points apply:
J
•!• All signals are measured relative to the board's analog ground point, AGND,
which is O V.
J
•!• HI and LO _refer to the outputs of a signal source, with LO (sometimes called the·
signal return) being the source's reference point and HI being the signal. value.
J
Esn represents the signal values (that is, VHln - VLOn) in the diagrams, where n
J
•!• AMP LO is the reference input of the board's d i ff e r e n t i a l amplifier. It is not the
•!• Because of lead resistance, etc, the remote signal reference point (or ground) is
at a different potential to AGND. This is called the common mode voltage VCM.
J
In the ideal situation VCM would be O V, but in real-world systems VCM is not O
___;
S i n g l e Ended Inputs
J
Boards that accept single-ended inputs have a single input wire for each signal, the
source's HI side. All the LO sides of the sources are communed and. connected to the
analog ground AGND p i n .. This input type suffers from loss of common mode rejection
and is very sensitive to noise. It is not recommended for long leads (longer t h a n % m) or
. for high gains (greater than 5x). The advantage of this method is that it allows the
J
maximum number of inputs, is simple to connect (only one common or ground lead
l
._J
We can see from Figure below that because the amplifier LO (Negative) terminal is
connected to AGND, what is amplified is the difference between Esn + VCM and AGND,
and this introduces the common mode offset as an error into the readings. Some boards
J
do not have an amplifier and the multiplexer output is fed straight to the AI D . Single
J
r
i
r
I
r
i �
External
Cable ,,, " · Host Input Connector
Signals
/
r
(
. /
·.,
Input Ampli.fer
.....
<1.) with G a i n G .
x
{
CH2
�
r Cl.
l
CHz
..... AID
CH4
r
l ..... Digital
:::] O V
CHs
a. Code
c
CH0
G( ESo +Y a.1 }
CH7
ESo +Vc1.1
I I
�..-.-.-..-+-...-.,._�-"'\n�.�, .AGNO
r ' - - - - - - - - - - - - - - - - - - - - - -
i
Differential Inputs
True differential inputs provide the maximum noise immunity. This method must also be
used where the s i g n a l sources have different ground points and cannot be connected
,--,
'
together. Referring to Figure we see that each channel's individual common mode ·
(
voltage is fed to the amplifier negative terminal, the individual VCMn voltages· are thus
Note that two input muitiptexers are needed and for the same number of input terminals
r as single-ended and pseudo-differential inputs, only half the number of input channels is
(
depends on the board's specifications (the book will explain t h e . exact requirements),
but it normally consists of one large resistor connected between each signal's LO side
r and A G N D (at the s i g n a l end of the cable) and sometimes it requires another resistor of
r
I
.
t:
I
r�
l.
· · · · · · · · · · · · , _ , , . . . . · · · · · · · · · · · · · · · · - · · · · , , , __ , ,.,- .
I
External signats Cable Host input connector
J
. CH0 Hi ----1
ES, ':_
f CH Hi _,_____, ... �
J
1
Input amplifer
� �{
with gain G
v . . ��:--:T--...U CH? Hi - �
. �CH.Hi �
. : I ES� +VCM(
AfD
· ; I . CH
0
Lo ---l------r---, J
....
CH. Lo ------1 -�
5.� Digltal l
v-; c a.
__;
- ;:. Code
CH l L
. 0 --t--+---t '5
CH) Lo --t--+---r__....,
J
AGND ------------
Refer�nce ground
A G N D o r OV
Note that VCM and VCMn voltages may be made up of a DC part and possibly a time
varying A C part. This A C part is called noise, but we can see that using differential
)
inputs, the noise part will also tend to be cancelled out (rejected) because it is present __J
Typical .Analog I n p u t M o d u l e s
J
J.
•!• Range of 4-20 mA (o t h e r possibilities are 0-20 m A/ ± 1 0 volts/0-10 volts)
J
•!• Inputs are generally single ended (but also d i ff e r e n t i a l modes provided)
,_J
_...)
r
I
r:
(
r
!
For reasons of cost and minimization of data transferred over a radio link, a common
configuration is eight single ended 8-bit points reading 0 - 1 0 volts with a conversion rate
An important but often neglected issue with analog input boards is the need for
s a m p l i n g of a signal at the correct frequency. The Nyquist criterion· states that a signal
r+-
!
Otherwise filtering must be employed to reduce the input frequency components to an
acceptable level. This issue is often neglected d ue to the increased cost of installing
filtering with erroneous results in the measured values. It should be realized the
r
I
software filtering is not a substitute for an inadequate hardware filtering or s a m p l i n g
rate. This may smooth the s i g n a l but it does not reproduce the analog signal faithfully in
,--
a digital format.
1
Analog Outputs
r
i
Typical a n a l o g u e output m o d u l e
r
i
•:• Typically the a n a l o g u e output m o d u l e has the following features:
r
(
r
I Care has to be taken here on e n s u r i n g the load resistance is not lower than specified
Analog output m o d u l e designs generally prefer to provide voltage outputs rather than
r
I
r
(
_J
J
. .
J
Digital Inputs
\
)
These are used to indicate items such as status and alarm s i g n a l s . Status s i g n a l s from _J
a valve could comprise two limit switches with. contact closed indicating valve - open
status and the other contact closed indicating valve - closed status. When both open
and closed status contacts are closed, this could indicate the valve is in transit. (There
J
would be a problem if both status switches indicate open conditions.) A h i g h level switch
It is important with alarm· logic that the RTU should be able to distinguish the first alarm
l
__J
from the subsequent spurious alarms that will occur. Most digital input boards. provide
groups of 8 , 1 6 or 32 inputs per board. Multiple boards may need to be installed to cope
The standard, normally open or normally closed converter may be used for alarm. In
general, normally closed alarm digital inputs are used where the circuit is to indicate an j
alarm c o n d i t i o n .
_J
The input 'power supply must be appropriately rated for the particular convention used
normally open or normally closed. For the normally open convention, it is possible to
derate the digital input power. s u p p l y . Optical isolation is a good idea to cope with
J
surges induced in the field w i r i n g . A typical circuit a n d its operation are indicated in the
figure below.
· . J
r
[
1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,
• T ::
�-
{ �. Optical· •
1
r
� lsolaUon '
I ! r - - - - '- - , : Field
i I 1 , i WirlnQ! fuse
r=
r ..-
i
L ...1 1 _ I I I 0 I �
· '
i I I t
1
i 1 � 1114 � I.a .. � � J;
r·-
I
!
l
1·
0
�, t
I .
i
I ,f-01gilal
; lnpul2
r etc
r • $
i
.
,
I
r
•., • • • - .. •i •, • • - - .. ·=·· .. . - - - .. ., • • - .. - .. . . ,. - -·
----·-· ·----------------�------------·------·-------··-· ---------·······----------
1 .
I -�--v�-
I .
_.,,,.. ,....
1• •� :i .I"
1
0 1
S'I •• • 1(.1
� ·---.,....,
1
. .,,.......
.--- !� .,
...
$2 /'. :�� !'t
�, -·-,:,_....,..�·=·--·.....
· ·--+-®
I
3 s� . -----4'.,.,* " · I e· 3
I . .
: :
,o:-
· r..-
,
.. ==-�-=-----,i.;
-
, �) �
M �: 6
$1 ,"'....
. ---'-:?.;
1
f $1 - al'-�-
' --,·�@ 7
m
se .. '!-
-. �----� 8
---- ia
s.t,, _____,
I
I�' 9
� ·""= I � 9
I
Sil
i
· ,·, I�) 12
�--'
$tl
! ;>:'., p,
Sl� j '
-:'),' . .;,
: : :
r �H4 ..,.""'...
: ---'·-® !"!· ···\. I @ 14
!HS ./ I® 16 �- I � '15
5 1 1!1 ·:tr'----®!�
,.--.
I
11.;i::,,...-� ..._ _,1-i:.tC:t;im
� . ._.,.tit
1.
r
r---·
I
I
r
1.
J
· •!• ,Digital i n p u t voltages vary from 1 1 0 / 2 4 0 VAC and 12/24/48 VDC
j
•!• Optical isolation provided for each digital i n p u t
There are many applications where a p u l s e - i n p u t module is required - for example from
' )
_J
a metering p a n e l . T h i s can be a contact closure s i g n a l or if the p u l s e frequency is h i g h
_J
P u l s e i n p u t s i g n a l s are normally 'dry contacts' ( i . e . the power is provided from the RTU
._)
The figure below gives the diagram of the counter digital input system. Optical isolation
· is useful to minimize the effect of externally generated noise. The size of the I
_J
accumulator is important when considering the n u m b e r of pulses that will be counted,
_J
For example, a 12-bit register has the capacity for 4096 counts. 16-bit gives 65536
limits are ignored, the classical problem of the accumulator cycling through zero when J
full could occur.
..__)
J
Optical Isolation
Pulse input
r·---
,
-...,_...1 rt: Pulse input 1
accumulator �
Pulse
buffer register
input 1
I \i_
t
. . . . . ··/· . .
. �
� ,, .
-- - - ..
Shield
Ill UJ
Ir- c . ::,
m
I
-
(0
(I!
Ill
Q
Cl:'.'.
,,
l
r>
r
Address and Data Bus
l
Interface Circuitry .
Counter Card
r-,
r
L - - � - - - - - - - - - - - - - - - - - - -
.,....,.
r: •!• The accumulator contents. cqn be transferred to RAM memory at regular intervals
l
where the old and current value difference can be stored in a register.
•!• The second approach is where a detailed and accurate accounting needs to be
location, and resets the accumulator so that counting can be resumed again.
t:
l
�I
•!• 4 counter inputs
•!• Four 16 bit counters (65 536 counts per counter input)
•!• Duty cycle preferably 50% (ratio of mark to space) for the upper count frequency
limits.
J
Note that the duty rating is important, as the counter i n p u t needs a finite time to switch
I
If the on p u l s e is too short, it may be missed· although the count frequency is within the
specified limits. A Schmitt trigger gives the preferred input conditioning although a
resistor capacitor combination across the counter i n p u t can be a cheap way to spread
i
the pulses out. ___J
Digital Output M o d u l e
A digital output module drives an output voltage. at each of the appropriate output
_J
•!• TTL voltage outputs ·
The TRIAC is commonly used for AC switching. A varistor is often connected across the __J
•!• A TRIAC output switching device does not completely switch on and off but has I
__J
low and high resistance values. Hence although the TRIAC is switched off it still
J
•!• Surge currents s h o u l d be of short duration (half a cycle). Any longer will damage
the m o d u l e .
•!• The manufacturer's continuous current rating should be adhered to. This often
\
where all the output channels of the module can be used ·at full rated current
__J
_J
r
\
r
\ capacity. This can exceed the maximum allowable power dissipation for- the
whole m o d u l e .
r •!• 8 d i g i t a l outputs
l
r
•!• Optical isolation or dry relay contact for each output
r
l
Di!)�1)
OiliptJt 1
ii-
'I'
'!'
'Dry' relay contacts (i.e. no voltage applied to the contacts by the output module) are
often provlded, These could be reed relay outputs for example. Ensure that the current
rating is not exceeded for these devices (especially the inductive current). ·
Although each digital output could be rated at 2 A m p s , the module as a whole cannot
r
\
the module of typically 60% of the number of outputs multiplied by the maximum current
per output. If this total current is exceeded there will be overheating of the module and
eventual failure. ·
·····-··-·-·-····--·'"•'"•"""" .
Note also the difference in sinking and sourcing of an 1/0 module . Jf a m o d u l e sinks a
specified current, it means that it draws this current from an external source. If a module J
sources a specific current it drives this current as an output.
\
__;
1 1 Sink I t S o u r c e
I tCurrent I , Current J
I )--1 (,�,
Digital Digital
Output Output I
_J
I.�
I
0-1
I
l J
I
...L
- �-
l
_J
Wheri connecting to inductive loads it is a good suggestion to put a flywheel diode
T h i s minimizes the back E M F effect for DC voltages with the consequent voltage spikes
J
when the devices are switched off.
__J
J
-·····--··-··--·-
_J
r
\
r
l
r
·
' ,
r,
i
....
... lllJlai
'
I __ . . - ._lljl,IJ![llr·
' " " ' l +
C!llgii�al £. - - · ,
0.utpU!I: ;' 11,,t;i�d Q DC V.oltag,e
{;t,annel N t . � - ' -
.... -- ,., ;
Oigttal ou,put
·uod,ule
r
(
i ,J . J =·;;:-·i E) AC Va-e
, : _ I __
. --.-,,,l---"·
....""r..,l«MO.'.. ,.., "' "'(.,f.J l
...
r
I
As many RTUs have only modest requirements, as far as the analog and digital s i g n a l s
a r e concerned, a typical solution would be to use a mixed analog and digital module. ·
Communication Interfaces
such as: \
---1
•!• RS-232/RS-442/RS-485
. l
__J
•!• Microwave/MUX J
•!• Satellite I
'""")
J
•!• Radio via trunked/VHF/UHF/900 M H z
± 10% typically. Batteries that should be provided are lead acid or nickel cadmium.
�J
Typical requirements here are for 2 0 - h o u r standby operation and a recharging time of
12 hours for a fully discharged battery at 25°C. The power supply, battery and
Other important monitoring parameters, which should be transmitted back to the central
Cabinets for batteries are normally rated to I P 52 for internal mounting and I P 56 for
external mounting.
J
J
Typically, the printed circuit boards are plugged into a backplane in the RTU cabinet.
_J
r
l
r�
I
•:• Circulating air fans and filters: This should be installed at the base of the RTU
r be avoided by uniform air circulation. I t · is important to have a heat soak test too.
I
r....... Typical operating temperatures of RTUs are variable when the RM is located outside
i
the building in a weatherproof enclosure. These temperature specifications can be
relaxed if the RTU is situated inside a b u i l d i n g , where the temperature variations are not
,--. .
I . as extreme (provided consideration is given to the situation, where there may be failure
(
r
l Typical humidity ranges are 10-95%. Ensure at the high humidity level that there is no
r
I
Only screening and grounding the affected electronic areas can reduce static voltages.
All maintenance personnel s h o u l d wear a ground strap on the wrist to m i n i m i z e the risk
their RTUs.
,�
! ,
Continuous vibration from vibrating plant and equipment can also have an unfavorable
impact on an RTU, in some cases. Vibration shock mounts should be specified for such
RTUs. Other areas Which should be considered with RTUs are lightning (or protection
of 0 . 1 to 1 0 Hz).
r
(
r
Many manufacturers provide a test box to test the communications between the RTU
and master stations, and also to simulate- a master station or RTU in the system. The
. . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . .
Test
box
�1>t!!r
--- Remote
Terminal
station R.x --+- Tx '
j
- - - Ut\it
_,,J
Tx Rx
Test
bo)(
J
Tx RX
I
.......)
Test
box
J
·
T l,st Box as a11 Eaves,lropper (,,ri..iste11er)
J
The typical functions provided on a test box are:
I
•!• Message switches: The simulated messages that the user wants to send to the .......)
j
•!• · Message indicators: Display of transmit a n d receive data.
•!• Mode of operation: The user selects one of three modes of operation, test box in l
___;
eavesdropping mode between RTU and master station, test box to RTU, test box
to master station.
An additional self-test mode is often provided. There are other features provided such
J
r
r
( ,
In the writing of a specification, the following issues should be considered:
r Hardware
I
r.
(
•!• Robust operation - failure of one module will not affect the p e rf o r m a n c e · of other
modules
. 1
r l
•!• Temperature of -10 to 65°C (operational conditions)
r
•!• Clear indication of diagnostics
r
i •!• Local fault diagnosis possible
O K/ f a i l e d )
•!• Physical interconnection of modules to the bus shall be robust and suitable for use in
harsh environments
r
•!• Ease of module replacement
r
6 9 1 Page · Indian School of Petrolenmee Enerzv
r
•!• Removable screw terminals for disconnection a n d reconnection of wiring
J
Environmental Considerations
. The RTU is normally installed in a . remote location with fairly harsh environmental
•!• Ambient temperature range of O to +60°C (but specifications of -30°C to 60°C are
J
not u n c o m m o n )
J
•!• Storage temperature range of -20°C to + 70°C
•!• Surge withstand capability to withstand power surges typically 2 . 5 kV, 1 MHz for 2
•!• Static discharge test where 1.5 cm sparks are discharged at a distance of 30 cm
J
from the u n i t ·
•!• Other requirements include dust, vibration, rain, salt and fog protection. Software
(and firmware)
available , I
._J
•!• Log kept of a l l errors that occur in the system both from external events a n d internal
faults
J
•!• Remote access of a l l error logs a n d status registers
_J
J
•!• Application program resides in non-volatile RAM
'
J
•!• Application code development/management/operation
__J
Each module should have internal software continuously testing the systems 1/0 and
hardware. Diagnostic LEDs should also be provided to identify any faults or to diagnose
r failure of components. It is important that all these conditions are communicated back to
r
I
.
r
t
r
r Process Instrumentation Symbols
r:
r
7 1 1 Page Indian School of Petroleum & Energy
r
.AG ABOVE GF!Out�D MU MAXIMUM
ATM l, I M O S f' H E R E MIN M l N I M UM
._J
csc C �Fi: . S[P.L CL DSED 0/C OPEN/CLOSE
._J
0($ O I S TR te1Jft'.I) CON'ilROL .SYS.1EM
OSBL OUT$ I DE e,A r t l:P.'f u Pi;!; I TS
H.)
nJRr.l i ssro so s11urna,1N
fC F A IL CLOSED SC . SPEC I F l C G.R.6.V ! T Y
l
fl FA rL [ ND€ rrnu HtUE SIS SAFEH LNSIRU�rmrn S 'f S T E ; tJ
___)
lC LOCK ED Cl OSEO
VAC VACUUM
lO LOCKEO OPEt4 \1'8 VORTEX BREAKER
lP LOW PijE SSUR'E WI W l i H
J
lPT UlW POltU W!fJ W : l I H O ! .H
I
.......)
_J
r .
\
r·
(
r ------
r
PUROE · ·COt�NECT � ON
r c xxxx = Pl�GE f liE S:$UFi£ Atl.J ME(;l lllA l
r
. r-
SA�L E CON\�EC:T [ m�
= l11PE ltnlMBER �
,
'XXlYY
. ·
------
r·
l
r
(
.r
r
r
./
\
!"
I .·
........................ ·····---·····'""""
............. ...... - .....................•.... - - ,, · · · · · · · · · · · · - · · .
_J
. = I
10
, I .
l
' � ___.)
��-
J
1
JEHT �C.61 L J Ql!J I D R lt,I\G
i NL l NE. PUMP VA.CUUM PUM?
J
i
....
}-I
;
\
._j
o
- -1
I
' • ' . .J
Ct)HR lfUCAL
SUMP PIJMP
V E R T l U,L CAN PtlMP J
_)
J
r-·
I
r�
r :
o .
. .
r
I I POS l I r VE D l SPL A.CEMENT BLOW.ER
r
;
r
CENlA[FUGAL BLD-.£.R
r
\
r··
r-
CENTR I F 1 IOA.I.
n COMPliE SSOR
-�.
SCR[W COMPRESSOR
· /
r�
(
. ···- .. ·•·
. - .
t. L E C T R ] C MOTOR
----1(_]-�
\
__1
- '
I
_j
. 1
--.)
_J
_)
-�
J
r�
I
r
l
r
(
r \_.-,,-
__ � --I !i---------.........----11---'.I.
r·
il--''-----!"'--'-----------
r 1
I
l-.----1..-----------.-�.,..-,I
�
r
ij
r TE MA TYPE. Af.L
i
\
'
'·
r
l
I :
r I :
l
l--:i�&-t--------,---�-----1,-,,.--�
·""""'
r I
_
j �
( .
r )
(
J
r
\.
-!I-
. ..---.......-----------'---.-'
r
. . . . . . . . . . . . . . . . .. . . . ···-··-····· .
&
r
- 7 7 1 Page Indian School of Petroleum Energy
(
I
..__.)
___.)
J
A I R OOOLEO E::<CHANGER
(LOUVERS OPl[ONIL)
--1
']
,-
oou& E. p { PE (XCHlJ,NOCR
'J
, _J
S P I R A L EXCHA�mrn
J
J
r"">
r
DOME ROOF 1 ANK
r
( ,
r
O D
{
[NT£RN!l!, FLOATrnc ROOF TMIK
r
SPHrnE
f •••• .,
'
I ....• :,
fURtlACE
-······//
//!··········
r
&
r
· 7 9 1 Page Indian School of Petroleum Energy
r
l
..__.}
._)
I I
·------------ -- ---
I I
PACKED SECHOtt
,·
I I
,
,
I I
"
- --- -- --- .J L---------
I I
-----------1 r-----------
I I I L
I I I I "
r- --- --- --- --1
I I
J
DP.�'tl. Df F
- --- -- --- --- -- --- --1
I
I
-I J
L-----
GE 1\¥£:R 1 C TRA t J
.J
�---1
J
r
l .
t=
!
r
r
r
r-
r
( .
v•,1:
A A · xxxxx
c: .. .
XX)fX.
r
I NSIJL 1.t T f cm 'T'YPE , . 1 NSIJLA T 1 :l)N TH t CKNE.S,S O P T [ Ot�Al.
<
·( NO!lE 2 ) . 0UJM£R JC: 1 . ( IJSER DEF � NEJl�
.:
.................................... _., ,_............. . .
�J
css COOi,, IN(;; !ti'A T E!f;! S,IJPPL Y PR PR(JP·�'L E t•E Fi'E t R I ·CE RAt.l T
FG f l IC' L
< .. [.
'"":Ar:.
11,.i_ . .J SYNTHESJS GAS 1
.__.)
GLR ,.. ij
I..»
.. < , . - , , _ .... < 5 TORtfiA SEWER J
GtS - Cl.YCCl. SUPF'L'i C.. RV
S- e . m f:·E
L.- lfATf-=
. . _ LR_
. I S
J!NT'ERMEI) I A T E PllESSIJP.t Sit AM T E MPE R E D Wt,J[R SUPPLY
l
__)
LNG I"' I OU I f f EO tiJA I!.JRA! GAS Y ltC:IJUM CQNDENSA IE
P i p i n g Line Symbols
J
r
\
r
r
'
Valves
CL(lBt. 4-¥.'AY
C*l
ti1
EUT1tRFLY P l N C f{
I l•d
f}tJ
r �EEillE ANGlt
r
BALL
0
r
6£Nf]HC ROH.RY t 1 /� TOON l
0
r
r
P i p i n g Speciality Items
i
·····- ·-·-····--··-· .
. ···-· ··--- .-.---··--··--··-···. .
. .
. ---····--·· ·
- ----····-··----·---······ •.... ··------- ··-------· ··-·········-····-······ ----------······ ····--- ·------ . -.
--··········-···-----··-------···-·· . .
- -··---·····- ..
- ..
r:
;
J
. I
__)
I-'\!
"�TYrE STFi:ldNER [}<:] [J E C TOR /EDUC TOR
,= ·-
t
*
M'1
\.)
OUF'Lf.X STRAINER C) D:PA��SJON JOUU
.-.J
r,l:\
· o.
"1 .
aASK[T S T R A I N E R czi [IJ!.MPER
J
f i . L i f. R
Q., '
BREATHrn
m {
% %&,11,W
,W,
@4
OE TIJ1r"t�T HJN ,!iRRESTOR
A VENT CD'JER
J
STEAlll TRAP
J
1
l @ I ROT ARY JALV£
J
'.'ENT S J L[NCER f!LIL SJI. T l ON !lAMPHJE Fl:
I
_)
Pipe Fittings
.._.)
J
1
r
r
(
!
IELOED CONNECTiOij
•
r
,
D
"""]
_.,.,. t CCtN r R iC RE DIJCE Fi:
r
(
{
.:
0 SPACER
IBLANI(
.
T
'�
OPEN F ] GI.JRE a BL 1 t..1lCI
I
r
ij
BL
r CL DSED f' I: GURE :B i ND
r
ti PLUG
(
. I
BL 1 ND FLAtfGt
r�
!
i-
r
(
......... . . ,
_ ..,, ,_,,_,,,,,
r
J
1
A, OFF-PLOT CONNECTOR _)
SEIM CE OESCFi I P f1 ON
J
coNNEcrnR NUMBrn--'-1 xxxxx I P&IO NO •
J
8. OFF-PAGE CONNECTOR
! \
.:»
C. UTILITY CONNECTOR
I
,
.__) .
O. T ! E .:. [ N SYMBOL l
_J
J
fJ E - I N NUMSER---@
E. ORA I N CONNECTORS
OESTlNHION DE Si I N4Tt0tl J
L ltlt St RV l CE. CO[)[ L ltiE S�RV I CE CODE
. OtSTltlATION� 0£:ST!NAT!ON� J
L I NE SERY I CE CODE . tlNE SERVICc. COOE .
P&ID Example
J
r
r · ·
r\
r
l .
r
(
I
(
r
i
r
. . . . . . .,, _ ''''"''"'""''''''''''''' ,_,,,,"""''''''''''''''''''' ····-········
r
\
J
U N I T 3 : M A I N T E N A N C E AND C O N D I T I O N M O N I T O R I N G OF T & I
E Q U I P M E N T S & SCADA
J
Introduction
.._J
The equipments installed at compressor stations are h i g h l y capital intensive, therefore
becomes al l the more essential. Instruments are integral to the Pipeline and
compressors Stations. and it is equally vital to operate, and maintain properly, safely to
J
A listing of the Common and major Instruments has been d o n e . General procedure for
basic electrical maintenance activities has been described. A typical Task list has also
J
been i n c l u d e d . Standard abbreviations have been used throughout the chapter.
J
Instrumentation, SCADA Equipments and Systems
irrespective systems for their function, the way nervous system to the human body.
Instrumentation systems measures, indicate, transmit, sense and carry several other l
._J
J
•!• Thermowell
J
•!• Instrumentation panel
l
._..J
•!• Remote Terminal Units (RTU)
Maintenance P h i l o s o p h y
r- under ERP-SYSTEM System for various systems. The endeavor is made that every
system functions smoothly and provide uninterrupted availability of equipments for the
Procedure
Master Data for all Equipments has been described in Equipment Master in ERP
Preventive Maintenance
, ERP-SYSTEM
•!• All preventive maintenance activities shall be carried out in accordance with good
•!• The reference of vendor instructions, as applicable, are given in the checklists I
permits as detailed out in the Work Clearance Management shall be taken from
· Predictive Maintenance
r
I , •!• The basis of carrying out the predictive maintenance is the feedback from the on
line instruments and off-line condition monitoring reports. The feedback is from
••• :••••••••• y
r
(
J
J
Major I Break Down Maintenance
•!• Upon receipt of SYSTEM-mail intimation about a Failure & Mal Function of J
equipment or any other break down, the Maintenance Planner shall issue a
obtaining Maintenance Order the concern Work Center shall c a r ry . out the
J
rectification. Before carrying out any maintenance activity, necessary Notification
For carrying out any maintenance work preventive I breakdown by any department at
J
any of the RR station, the p i p e l i n e department of the respective section & M C R must be
informed. However, for carrying out any control functions I modifications with valve,
I
.,_)
It is mandatory for a l l the maintenance persons to inform MCRat the time of entry & exit
from RR stations.
J
· Maintenance Detail
Tasklist J
Preventive Maintenance work Instructions are listed in the following Task Lists. System·
J
codes are for classification.
,,J
_J
,---
30151142 Y 1 - C A L I B A N D C H E C K I N G OF PT
30151166 Y1DVPLCOMPRESSORS
30151185 Y 1 - C A L I B OF P R E S S U R E SWITCH .
r
\
2. For unplanned Maintenance Notification shall be generated by Control Room by
5. Maintenance Planner shall assign operations from task list to c a r ry · out the
J
maintenance by respective work center.
J
6. Maintenance P l a n n e r s h a l l assign components from BOM of E q u i p m e n t for spares
J
7. Maintenance p l a n n e r s h a l l attach Work Clearance Application to do the work in safe
manner.
J.
8. Control Room shall prepare Work Clearance documents, Safety Officer S h a l l give
approval for Hot Work Permit and Electrical Engineer shall give permission for J
Electrical Lock Out permit, Tagging of Switch Gear Panel and untagging approval
J
1 0 . Material Requisition Slip, Tagged Print, Maintenance Order w i l l get print a n d copy
1 1 . A f t e r completion of work, maintenance engineer shall return the permit & unused
material if any, and fill the actual data in the Maintenance Order I Notification screen.
J
order. J
in the E q u i p m e n t History.
J
Maintenance Plan
J
A Maintenance Plan is devised and approved at the beginning · of the year for each
_)
.......
I
r
1
with safe and environment friendly practices and are documented. A sample index of
plan is as follow.
���Jf�1�;�MN-te,1,�n1�t1i��? i��1;1rt�rfr!��i������at�t���1:MaiJ1}tQnarrc�e;:Prim���:�t�1�1�1r1r��f�it�:t�{��,�r
.7309 APM P L A N � F I L T E R S E P . C I N S T R U M E N T S
r
(
Calibration of Instruments
Task List. Calibration frequency of a l l Instruments is one year except meters used in
History Sheet
· Transaction code YRIR 003 can be used in conjunction with the equipment or
the frequency and the respective Maintenance orders for calibration. are created by the
Calibration Procedure
,---..
I
J
Calibration of the instruments shall be carried out as per the frequency of calibration J
indicated in the format "TASK LIST".
J
Whenever the calibration of the compressor station field instruments is to be carried out,
Work Clearance Document (WCD) shall be obtained from operation group before
starting the j o b . J
pl ans and hence calibration schedule of the Instruments of, their department, which are ·
J
· un der calibration, is implemented properly. They have to plan about the Master .
instruments falling d u e for calibration, considering the lead-time 60 days for calibration.
J
lfcalibration of Master is not carried out as per the Maintenance Plan the e q u i p m e n t
l
. Proving of Turbine Meter: Proving interval for Turbine Meter used at terminals for
J
custody transfer shall not exceed 5 years. This shall be carried out at an accredited
approved facility. ·
J
Proving interval for Master T u r b i n e Meter used in Meter Proving facility s h a l l not exceed
15 years. These meters shall be proved against the Reference Meters (Traveling
' l
_;
Standards. traceable to international standards).
. personnel all the adjustment points affecting the performance of the instruments used in
J
Traceability: Upkeep of · Master Instruments with regard to safety, accuracy &
'
I n some situations, where such facilities are not available or are far off, the calibration of J
Master Instruments will also hold good if the same are calibrated using customer's
S u c h · calibration will hold good for a period not exceeding six months from the date of J
calibration. lncharge-lnstrument Lab shall maintain the record of calibration of Master
Instruments
J
Non-Conforming Instruments
_)
error of Master test equipment is found to be more than permissible limit the same.
· The non-conforming instruments declared as "Rejected" and other scrap will be·
returned to the store from time to time as per the prevailing stores procedure
SCADA Maintenance
r· Functional capabilities of SCADA system are designed to provide the central monitoring
(
a n d control of gas transmission pipeline system so as to achieve safe, reliable, efficient
and economic pipeline operations. For the following section abbreviations are given
once and standard notations apply. This section should be read in conjunction with
r
1. The following are maintained:
(b) A list of measuring and test equipment which are needed for maintenance in
.:
Master Station Equipment Breakdown history and maintenance record shall be
maintained for each type of equipment e . g Host Servers, F E P s , CLSs, MMls, Mimic
All faulty modules, shall be labeled and tagged as per following details for easy
identification.:
Modu le Name:
Equipment N a m e :
Location:
Fault Details:
prior intimation to the P/L department. However during testing of remote control of any J
field device like Valves/CCVTs through SCADA, he must ensure that a Pipeline
J
House Keeping jobs are performed daily at active Master Station logged in "DAILY
HOUSE KEEPING LOG" to check the system health. The jobs involve the following
J
a) RTU availability Whether a n y RTU is unavailable.
Availability unavailable
J
c) Low speed C h a n n e l Whether any Low speed data c h a n n e l is unavailable
availability
J
d) History subsystem Whether History archiving is functioning and free space
e). Disk space in the Checkinq for free d i s k space in each of the Hosts. Free
E q u i p m e n t Breakdown J
The Gas dispatch Operator on duty at MCR will be informed prior to carrying out those
Software Maintenance
.
I
(
Any kind of modification/change in the System hardware/Software and · RTU
Graphic displays and RTU configuration shall be carried out only at active Master .
Station.
Any modification in the Development Database will be carried out o n l y at active Master
of t h e · RR/SV/IP station, the pipeline department of the respective section & active
Master Station must be informed. However, for carrying · out any · control
so as to avoid any breakdown/ shutdown of the system. It is mandatory for all the
maintenance persons to inform MCR at the time of entry & exit from RR stations.
Oualitv records of SACDA Maintenance have been identified as per details given below
BREAKDOWN M A I N T E N A N C E RECORD
3 . DAILY H O U S E K E E P I N G LOG
r 4 SYSTEM M O D I F I C A T I O N LOG
!
5 RTU PATH STATUS REPORT
6 SYSTEM AVAILABILITY R E P O R T
r:
7 C H E C K LIST FOR E M E R G E N C Y MASTER
l
STATION HAZIRA
Major Maintenance Records are to be followed as per typical formats given below.
r
(
r
(
· · · · - · · .•.................
r-
1
I
,
J
,
J
Format No.:
����������- i
_J
.....J
& (1/E) - Previous
E "'. External - when RTU failure is due to any other reason l i k e · power source I )
___J
telecomm failure
J
U N I T 4: CONTROL ROOM LAYOUT
Introduction
The central site computer facilities have to be designed and· installed to ensure the
satisfactory operation of the hardware and software and to ensure that the operators
This chapter discusses the requirements for the central site computer facilities with
• Ergonomic requirements
r
Recommended installation practice ·
Environmental considerations
The environment in which the system is installed must be appropriate to the computer.
system and the associated electronics systems. Typical environmental conditions that
are considered suitable for the standard and the industrial environment are . listed in
Table below.
Obviously, the environment in a control room should not have these extremes; but the
equipment should be rated for these ranges. Typical control room environmental ranges
mounted in a less stringent environment than for the standard air-conditioned control
room.
r
i.
J
Reco1mme.nd!ed Ra.n1 ,e
_J
Temperature
J
J
Relative Humidity 5 t o 95°tc
. · .. • a
RH 5 to 90�/o RH
Should personnel suspect that there could be problems with the environment having J
excessive dust, corrosive vapors, moisture or oil the best approach is to mount the
computer system in an enclosure. This will provide the necessary protection for the
J
processor. Special consideration may have to be given to such issues as vibration and it
Ensure that the enclosure doors can be easily opened and that the heat is allowed to
J
dissipate. Note that hot air rises and there can be b u i l d u p of heat inside the top of the
__J
when the heat is excessive but have intermittent dropouts and suffer long-term d a m a g e . J
The enclosure should be large e n o u g h to allow space to work on the system and to
E a rt h i n g and s h i e l d i n g
J
Ensure that all hardware is securely earthed. The earth electrode is the central point for
all electrical equipment a n d AC power within the facility. Use the maximum size copper
Certain connections require shielded cables to reduce the effects of electrical noise. ·
J
Ensure that only one end of the shield is earthed. E a rt h i n g at both e n d s of a s h i e l d e d
_J
J
Cabling
J
Some points . to emphasize when installing communications cabling between the
different computers and systems in th,e control. room are listed below:
•!• Calculate the actual distance the cable is being run :- i . e . both the horizontal and
vertical distances. Select the shortest possible path away from sources of noise.
•!• Route the 'cables well away from potential sources of electrical interference,
damage.
•!• Ensure that the cable is not put under u n d u e tension (such as h a n g i n g between
two points).
recommended approach. Note that the output devices being controlled should draw
r power from the original source of the voltage unless the secondary of the isolation
transformer (which is supplying the· computers) has been specifically rated for these
additional devices.
Where the AC power source has variations, a constant voltage (CV) transformer can
stabilize the voltage for short periods of time, thus minimizing shutdowns. It is worth
noting here, that CV transformers are very sensitive to variations in m a i n frequency and
For both the constant voltage transformer a n d the isolation transformer the operating
- 1 5 % or 50 H z ± 2 % ) . ·
r
(
r--
(
I"
1.
,...
(
r=:
J
;-----<�O------'-CJ><O----+-----,.-----� L2
J
'-----0-....c>---<:;r;.-<10----i,-.-.----+-'------� L3 )
_j
"
I
����, S tep- d o w n
#"'l<')("X,n,c�, :Transformer
J
· Other
Computer
..----------1--------- Equipment J
- 1
Isolation or : :
1
Constant Voltage ·· · · · 1
J
Transformer :_(!JQQ_OJSJ:
To Compute,
Power S u p p l i e s
l l · J
J
· An isolation transformer
• If the transformer is too small it will clip the peaks off the sine wave (due to saturation)
resulting in a lower rms value of the voltage. The power supply could sense this as a
J
low voltage and shutdown. The transformer may also overheat and burn out.
___J
• Excessively large transformers do not provide as much isolation as a correctly sized
ontacts ontaots
J
l� l�
- J
Coil
R C
·---�-I- J
RC Network Flywheel Diode
........����-·�·t-��----------' J
240 VAC Supply voe supply
J
Su ression Network for AC Su ression Network for DC
_J
__)
r
l .
The main reason for considering ergonomic requirements is to improve the working
environment of control room personnel. In the long run this should improve the
r Design Methodology
r . j Allocate
computer -or
Humantasiks madhine,.based - � - -r;
functions
r:
,--.· -
•!• The . main· reason for considering ergonomic requirement is to improve the
1.
working environment of control room personnel. In the long run this should
r-'
centre can see a l l the screens. Operators· at any of the operators display
( . should be able to view the entire control room's screen without undue
difficulty.
� Areas in. the system that are being monitored should be situated close
,.
I
J
The majority of tasks in a computer control room can be broken down into the following:
J
_J
J
•!• Alarm/emergency procedures
"l
\Entry White Board @ 1 . 2 m alf !1047-·- J
' 'f
r "',,.,
1�-1 �
;Critical/' J
I Coni,1 \.
;!f"·,,,,,b perator\
; · · . .. ...... . /.- · \_ Statio9,..,..,..\
,I
.,.
The horseshoe control room layout is designed so that anyone in th'e center can see all
the screens. Operators at any of the operator displays should be able to view the entire
I
J
Although the focus in a control room is normally on the equipment and computers, the
· amount of space for the operators should also be maximized to avoid congestion
amount of time in front of their consoles and the layout should ensure that the operator ·
can see anyone coming into the control. room and not have 'people peering over t he i r
shoulders.
S i m i l a r areas in the system that are being monitored should be situated close together
to avoid unnecessary movement by the operators to see what is g o i n g on. The voice
possible to the operators and for other persons entering the control room. For the
control room indicated in the diagram at least three internal telephones should be·
provided for easy access (with frequently used numbers programmed into the system).
. . . . .
a n n u a l s and other items to be left on the desk without unnecessary clutter. The printers
for the system are situated in a separate room to isolate the operators from the
l the printer room to view alarms can be minimized by providing on-screen alarm reports.
· A separate meeting room should' be provided to avoid holding meetings in the control
r room which is of no interest to the operator but which disrupt h i s work. The following
Lighting
Tungsten halogen light sources produces warm lighting while the light l i f e of 2000 to
4000 hours is reasonable. They are also not diffused and can produce significant
000_ hours but may have variable color rendering and variable apparent color if the
The l u m i n a r i e s should be fixed overhead and provide direct l i g h t i n g . Desk lighting can
r> be installed to provide localized lighting over the keyboard. A general level of lighting of
[
400 l ux is recommended throughout the control room with a personal level of 200 to 600
S o u n d environment
Ventilation
t=:
(
J
J
. The a i r temperature s h o u l d be between 20°C a n d 26°C with relative h u m i d i t y range of
40 to 60% RH fresh air s h o u l d flow at the rate of 7 liters/sec per person throughout the
control room.
J
Colors of e q u i p m e n t
J
�
also be avoided to m i n i m i z e g l a r e . ·
_J
Where the general l i g h t level is low (less than 300 lux) warm color schemes are more
acceptable than those in which cold colors predominate. A pleasant color. scheme can
J
displays are as easy to read a n d understand as p o s s i b l e . This reduces the decoding
processes of the brain as per F i g u r e below. T h i s ensures that the operator can react
j
quickly and effectively without having to work out where the problem is.
...J
_J'
_J
Typical hardware that is provided i s :
•!� One or more operator displays (which may be of the touch type)
_J
_J
_)
J
•:• Operator panels consisting of highlighted keys to bring up predefined graphic
displays
,--,
I
•:• Alarm buzzers ( or external sirens)
1' (A useful addition although possibly expensive option is a video copier for reproducing
l
the operator screens in color.)
r
rr:
1
.
r=:
Configuration of the operetor screens
1
Displays should appear within one second of the operator pressing the appropriate
d i s p l a y key(s).
The organization of displays should be· d o n e in a clear a n d logical way to allow the
operator to quickly and effectively identify the information of interest. The architecture of
increase in detail as the operator looks for some specific information (and is proceeding
•:• The primary level which is an overview level and which should be reached
. . . . . . . . ... . . . . . . . . . . .
. .
. .
e=:
(
J
•!• The secondary level, which consists of a n u m b e r of displays, associated with that
j
primary level d i s p l a y s .
J
•!• The tertiary level, which gives more details on certain secondary level, displays.
l
_J
_)
I I
I I
J
Indexes - -
- Primary
Displays --
L Function
Key
- (Overviews)
- Selection
J
'" Note: Displays refer to customi zed
group or trend displays. Each
display point has a help screen
I
associated with it.
,
I
� Secondary -
-
L
I
Function
Key J
- Displays
- ·Selection
" j
,.
I J
I Key
t-
Tertiary -
- -- Sequence
1
Displays
- For Selection _J
Display hierarchy
'
_J
With more than three levels, the display becomes u n d u l y complex and this s h o u l d be
avoided unless absolutely necessary. There are various associated displays such as
j
trend displays a n d help screens. Zoom boxes ·are useful features, w h i c h · provide more
_1
1
:iJ?}. t�:1};x>i)it1��r�?)t.:/:;ft0'·;:)1t};/:i\;�· .
. ;}>!.c. Rap1,dly,changing dat_? 1s unreadable '!/ > - · ·
}>,; piffitult to.19cate iqct.i�dual ct°a·t� items it:
Bar charts/analogue Easy to check whefner data is within: M ovement can potenUally dis tract operators.
iin,lti.' ·,'- .. . " . . .
-dlals "
S lo w re ad time .
presented data. ·
operating conditions
· · . ' V ,. . -
, :.·, � ...,_ � · './··,,,.,1- . ,. · , / . , ,,.-,:,...,},,: .. · --:· :�·,:=:· .. " � ·
·J deal
, '
for·showing·
. ·.. · ,
p la nt
.
conncuranons;
. , , , ,
· ,; , ope rator 's rnenia! mo d el of the p lant may
diff er fr om he mim ic:
t ' .
T rend i ays
d spl, Id eal foj p r e s e n ti ng conlinu�usly I naccurate if nu merical v al u e ha s to be
c ha n gi n g i nf ormatio n. d erived.
understood formal ·
' .
This is where the screen format can be created by the users, using whatever layout and
symbols they can create. These are best constructed by the operators (with assistance
from the engineer). They offer the designer complete flexibility in the layout of the
information.
Here a standard set of symbols is used to create displays as required. These provide
These displays occupy part or the entire screen d e p e n d i n g on the configuration. They
J
These log the current alarms for the system. It has been shown that operators consult
and use overview type schematics at least ten times more often than secondary and
J
tertiary schematics. ltis thus imperative that as much effort as possible goes into the
eliminate any part of the display, which does not convey information to the operator.
J
This would mean that equipment outlines a nd flow lines are not put into overview
schematics.
J
Secondary and tertiary displays are consulted less and probably require more
information than that of the live updates. Outlines of e q u i p me n t and text messages J
s h o u l d b e de-emphasized by using low intensity colors.
J
An icon should be designed to, indicate clearly the area associated with a given
schematic or operation. This allows the operator to quickly work out which area the
•!• D e s i g n of screens
J
There are generally two conflicting dema nd s made, on the design of screens:
J
� Reduce the complexity of the· screen
.J
If the s i g n a l (on any display) is defined as the information the operator is looking for and J
noise is information the operator does not require, it is clear that the purpose of a
J
•!• Color and symbols
�I
Color chart g u i d e l i n e s s h o u l d be followed where possible. Composite symbols a nd flags
etc, for a p u m p . Flow lines and tanks should be dark b l u e when inactive and red (for J
example) when active.
J
r
r
\ .
/.,,,,,.,- -··---._,
r
\
Red inverse when Yellow inverse when
1· x ] '··,\ Red CLOSED.
II .. .
"""------/'
r
I
--/--=,,.,,,.-�=
VALVE � Liquid Flow
r
or
Liquid Flow �
r
Green ON
Orange OFF
Patterns should be used where possible to reduce the complexity and clutter of the
operator to comprehend areas larger than this on one screen. H i g h priority areas on t h e
items should be left off the screen. Outlines of equipment items should be simple; a life
r like representation is not needed and may in fact clutter the screen unnecessarily .
. l
amount of exaggeration. Do not fill outlines up unless absolutely necessary (and then
· Alarm processing is an important part of the operator station. Error codes identifying the
faults are normally i n c l u d e d w i t h the description of the failed device. No other part of the
operator display has as much impact on the health of the plant (and that of the
r
(
operator). The alarm function should be viewed as an integral part of the operator
interface and not as a stand-alone feature. Figure below gives a view on the actions that
r
'
r
l
Alarm J
Occurrence
Pt.C l
�
__..j-Buzzer -·! ,.J Silence i.r Buzzer .. !
----1-- r
-
�ounds :_!S!t_J . I auiet I
LOW FUEL I
I Printout I
l
-"j� Rsdo ;
.....J
r Alarm l
Yrr0nmiitt�ii --·-!_Window i
n;,.;;;;�;;;··11"'":--!--------'=.
i..,------··--------�
J
Alarm i
Historical File I
J
f---·----1 Alarm [.,.J Ack [.J Colour Change I
l ••·-------------·---•-••m-••m---·--•-•mm- •---------•-,m••-
J
i ! Colour Change in ;
r-··-Jli'j Schematics, Groups etc'!
, ,_..,[ Annunciator I
J
i Panel Flashes I
----------'
J
Alarm actions in an operator display
pushbuttons. Each pushbutton would indicate the area from which the alarms originate
J
and also when depressed would cause the appropriate schematic to appear on the
operator d i s p l a y .
J
O n l y four alarm priorities s h o u l d be implemented. These are:
J
H i g h priority
Alarms that warn of dangerous conditions that could cause a shutdown of a major J
activity.
M e d i u m priority
--1
Low priority
J
Alarms that s h o u l d be dealt with when time permits.
J
Event only
J
' '
Statistical or technical information. No enunciator sounds for these. The limiting of the
number of types of alarms is to keep the system straightforward and with easy
� '
r . Alarms are classified as unacknowledged (and flashing on the screen) until the operator
l
acknowledges them via the keyboard. They then · become a n . accepted alarm. One·
weakness in many alarm systems is the occurrence of trivial alarms, which irritate and
r
(
fd�rm'/. ·,.'.
r . . � I--'---'---,-,----'--------'---+-'--�---'-----'---'----�
aware of
Noaciion_. · . Operator unable to· rectify the Delete the aJarm from the
ailarms.·.· . · · problem · system
changes: ' ' maintenance etc ca uses . suppressed for lli i s period by
alarm condition
r
l '
It is important to continuously audit, m a i n t a i n , and improve on the alarm system through
r
l
. . . . . . . • . . . . . . . . . . . . . . ···--·····.
l
J
J
•!• Alarmed tag
__J
•!• Description of tag
Alarms should be able to be disabled provided the operator has the relevant key.
J
· · LOW
l
__J
\
......J
J�
r
I
r
(
Introduction
r
i
•!• The "upstream end" precedes it and the "downstream end" follows it.
•!• Pipeline operations 'evolved from being prescriptive (i.e., defined by mandatory
management principles. · ·
r MT
interconnect WY
r
co
i
Receipt KS
from
gathering·
r UT
OK
TX
The Need
•!• The pipeline facilities are mature to the point that many of them have exceeded
conception.
1-
( .
•!• Today, most of these facilities continue to operate, p a rt l y for economic reasons
as they are too costly to replace and also partly because these facilities still
r
(
remain worthy of continued use
Area of Focus
· \ ·
J
.__J
Consequently, pipeline operation has been transformed toward the following areas of J
focus.
J
a. M a k i n g effective choices among risk-reduction measures.
activities.
J
d . S u p p o rt i n g decisions associated with modifications to pipelines, such as rehabilitation
or changes 1n service.
J
The Approach
J
•!• Combined, these elements form the basis for directing a prevention, detection,
•!• Not o n l y must operators be aware of them but they must also be well versed in
These focus points require that pipeline operations activities include the following
J
elements:
J
b. Hydrostatic testing
c. Direct assessment
J
f. Risk management
J
3. Operating procedures, i n c l u d i n g h a n d l i n g abnormal operating conditions
4. C h a n g e management
J
5 . Operating excellence/ Efficiency improvement
' J
r
(
[.
SCADA & Automation
l •!• Automation has become an increasingly important aspect of gas processing and
distribution. ·
r�
l
•!• The amount of specific types of automation is a major decision now in the
•:• With many existing plants having debottlenecked and improved process
improvements.
•!• Automation provides the means for fully utilizing the mechanical capabilities of
the equipment at a l l times and to run the process at its most efficient points in a
•!• If the system is· pertorminq both monitoring and control of a process or facility, it
r-
is referred to as a supervisory control and data acquisition (SCADA) system.
1
(
Applications
r (
•!• Optimization
r
i
(
r
r
(
r
i
r ·
(
l
--..J
SCAOA 8 COIAPUIIR
....
""
BIE
.... ...
IJO[
-
..
l
�
1 . Data Historians
J
•!• The ability to collect and store . a large amount of data on a disk is a key
J
•!• Even so, several vendors have specialized in developing historians to store and
..J
� Work order generation
_ _;
· 1
J
r
l
� Predictive maintenance
� O n l i n e e q u i p m e n t health monitoring .
r
\
•!• Data from the automation system can be interfaced to statistical process control
packages.
•!• This software is used to generate run charts, process capability analyses,
•!• This type of information is quite valuable to determine the causes of plant
•!• It is also an excellent tool when base-lining the plant performance and
•!• Statistical process control concepts form a foundation for many of the Six S i g m a
•!• Advanced regulatory control was made much easier with the advent of
microprocessor-based controllers.
•!• This control methodology basically turns s i n g l e input, s i n g l e output control into
multiple input, single output control through the use of cascading controllers,
•!• Although not impossible .with s i n g l e loop pneumatic and electronic controllers, the
r
(
,-
•!• T h i s enables the maintenance of an operating envelope within which the process
is constrained. · J
•!• In order to determine the optimal set points and constraint values for the
J
controller, an outer optimization can be performed.
Original.
ariability
CONSTRAINT
J
,t
I J
I
+
New Setpoint New
WithAPC Variability
J
APC
6. Optimization
J
r •:• For s i m p l e r optimization problems, linear programming ( L P ) techniques can be
employed.
j .
•:• Nonlinear techniques may be warranted for more complex optimization
.. •:• With the advances in computing power and optimization mathematics, online,
•:• Pipeline
•:• Valves
r
(
•:• Compressors: flow and . pressure · control loops, surge control· loops, station
•:• Storage
r
I
, •:• Gas transmission a nd distribution (T&D) companies depend on the reliable
•:• These systems are used for, controlling facilities, including regulating valves to
system; starting and stopping compressors along the system; and controlling
•:• To avoid the .cost of staffing all of these locations, as well as building and
r
•:• CP Stations
....•.
r
. I
__J
J
•:• City gate station (CGS)
J
•:• C N G stations.
•:• For safe and reliable operation of the entire natural gas pipeline network along J
with the C N G and P N G stations, implementation of SCADA plays a vital role.
J
•:• CP Stations
•:• C N G stations. J
•:• For safe and reliable operation of the entire natural gas p i p e l i n e n e t w o r k along
CP M O N I T O R I N G BY SCADA
J
J
· � Pipe to Soil Potential ( P S P ) .
J
� Target Pipe to Soil Potential. .·
J
� P i p e l i n e Over protected (Alarm)
__J
······--······· ············--··-·-······--·
J
I SCADA Master StaJion
Billing I CIS
I Voice Grade
· Communication
r
Distribution
LAN/WAN
Substation
r
CPRS
SCADA, Energy
Management, Outage
Service
ToHome .
·. t,c; . ·" ,.'.... �,;. .
PIPELINES
•!• Buried pipelines often subjected to geological events in the seismic zone
r
(
•!• Any shift in the soil encasing the p i p e l i n e transmit strain to the p i p e l i n e itself
r
1 2 3 1 Page Indian School of Petroleum & Energy
J
J
A Typi:cal P i p e l i n e l_nstallation
J
F CV .
J
--������1���
J
TO � I f----"--IXl----l
NEXT STATION
MAINLINE
J
PUMPS
FRO:MPREV. ·
STATION
p.:::v·
J
14--�__;.-"-��1--�-rer--r--��--f����1
TO NERT ST.J,.TlON ,
J
MAifilThlE
PUMPS
J
·········----··---··------·-····-··----- ········-----··--·-······-----·--··-·---· -·---·-·· .
J
Block Schematic tor Terminal Station
'NORK3TATION5 TERMINAL
TERMINAL
LASERJET
PRINTER
DYNAMIC
1.111.tlC
,,,- FIElD
r •• ._ DEVICES
r
;
r
- 1 2 5 1 Page Indian School of Petroleum & Energy -
\
J
J
Typical sec Configuration
j
WORKSTATION TERIIINAL
CO..OOR
J
D:SK:5 PRJ�TER
J
-"'----1 i---i·...,...--'---1::::::.:.:=..J �
10Rf'J
J.
J
U N I T 6 : LEAK D E T E C T I O N THROUGH SCADA
Introduction
r
•!• Due to the p i p e l i n e · damage the pipeline product will escape from the pipeline,
•!• The leak leads to environmental pollution and product loss to the pipeline
company
C a u s e s of leaks
•!• Due to the pipeline damage the pipeline product will escape from the pipeline,
r
•!• P i p e l i n e Leak is an unwanted product escape from the p i p e l i n e .
r •!• The leak leads to environmental po l l u ti o n and product loss to the pipeline
. c o rn p a n y
r
. Need for leak detection system
•!• If the leak is not identified timely, it will lead to severe unwanted consequences
r •!• Because of Leak Loss of life and property, Direct cost of lost product a nd line
r
•!• The need for a system that satisfactorily will detect leaks in a pipeline as well as
pipelines.
'
r
{
r
1 2 7 1 Page Indian School of Petroleum & Energy
1 ·
r
J
•!• Internal Systems: Software based systems that use operating data retrieved by
J
the SCADA system are classified as internal systems.
•!• External Systems: These systems use sensors that may or may not be J
physically connected to the p i p e .
J
E x . : Fiber optics, vapor detectors. etc.
J
Internal Systems
Parameter deviation
l
_)
External systems J
J
.: •!• Acoustic emission
r
\
Parameter Deviation
Temperature c h a n g e
•!• Temperature sensors such as an optical time d o m a i n reflecto- meter are used to
r detect.
•!• If the flow or pressure rate of change at the inlet or outlet is higher than a
predefined figure within a specific time period, then a leak alarm is generated.
•!• This system depends on the accuracy of the flow meter a n d the pressure g a u g e
reading. ·
'
I
•!• This method is based on the p rinc ip le "What goes in must come out".
•!• "Flow i n " is reconciled with "Flow out" considering p i p e l i n e inventory to calculate
flow i m b a l a n c e .
r
i
r
'
-
J
J
•!•· Pipeline model requires flow, pressure, temperature, density ( p r o p e rt y ) inputs
•!• Predicted values are compared with field values and alarm is generated if J
weighted deviation exceeds predefined imbalance limits
•!• Leak location is done by finding the best location where the simulated pipeline
J
state matches with current state
J
Gradient intersection method to detect the leak a n d its location
· p
J
Pi J
� �
, .......
' I J
<; , No. Leak
1./
--
analysis
--
.
-------
t - - - - - -�- -
Po .
- .
J
. . '
I
I
I
I
0 x
L
x
J
leak
) J
Din __ Gout
Internal Methods
J
r-
r
l
•:• PPA is based on the assumption that the pressure in the pipeline gets drop, d u e
to a leak.
,,.
•!• This method is used in gradient intersection system to detect the leak and its
. location.
•!• This technique attempts to mathematically model the fluid flow within a p i p e l i n e .
•!• The method requires flow, pressure, temperature measurements at the inlet and
accuracy of the flow meter, pressure gauge and other measuring devices.
• Measure of size of leak that the system can detect and the time
r+-
<
• Measure of error in the estimate of leak location
t
r ,
• Measure of the size of the operational envelope and the system
ability to
conditions of the p i p e l i n e ·
r
(
r·
l
Acoustic E m i s s i o n
r
(
J
•!• This sensor senses the noise generated by the product when it escapes from the
pipeline.
J
•!• D u e to the limitation of the detection range, it is u s u a l l y necessary to install many
•!• For hot tapped product theft Acoustic signal generation will be less hence
•!• When a leak occurs, the hydrocarbons form the leak contact the cables, changes
F i b e r Optic Sensors·
j
Three technologies are there for leak detection:
•!• Chemical changes in the fiber optic cable caused by the presence of
· j
., hydrocarbons.
•!• The response time of the detection system is u s u a l l y from. several hours to days.
Hence the u s a q e . i s l i m i t e d . J
J
Benefits of u s i n g SCADA i n . Leak Detection, It is costly but h a v i n g · various advantages
like: l
.....J
J
•!• Increase in profitability
J
· · · · - - · · · · · · · · · · · - · · · · · · - · · · · · · · · ' · · · - ' " .
J
r
l
•!• Maintainability
'
(
r
r
1 ,
r
1
(
r
r
(
r
(
r
(
r
( ,
___;
U N I T 7 : PLC BASICs J
Introduction
J
Before the advent of solid-state logic circuits, logical control systems were designed and
a single to thousands of relays. Relays are far from obsolete in modern d e s i g n , but have J
been replaced in many of their former roles as logic level control devices, relegated
Systems and processes requiring "on/off' control abound in modern commerce and
J
industry, but such control systems are rarely built from either electromechanical relays
or discrete logic gates. Instead, digital computers fill the need, which may be �J.
programmed to do a variety of logical functions.
Controllers
j
What type of task might a control system have? It might be required to control a
change. For example, the control system for an automatic drilling machine (Figure
7 . 1 (a)) might be required to start lowering the drill when the workpiece is in position,
\
start drilling when the drill reaches the workpiece, stop drilling when the drill has �
produced the required depth of hole, retract the d r i l l a n d then switch off and wait for the
next workpiece to be put in position before repeating the operation. Another control
might be from switches being closed or o p e n e d , e.g. the presence of the -workpiece j
m i g h t be indicated by it moving against a switch and closing it, or other sensors such as
those used for temperature or flow rates. The controller m i g h t be required t o - r u n a motor
Items moving
along
Cl
J
conveyor
E I
(a) (b)
J
Figure 7 . 1 An example of a control task and some input sensors: (a) an automatic drilling machine,
activating a relay which, in turn, switches on the current to a motor and causes the d r i l l to
I
rotate (Figure 7 . 2 ) . Another switch might be used to activate a relay and switch on the __J
J
...... -, .. ----·····----···--·····----· ·-··-·······--·. -·. ··-------·· -·---------··-····· ----····-···-······-· ------------� ······- ,
. ··--.--------··------- ···············-. ··----· ·-··-··- ····-----·- .......•.. , ..,_ -· ---··-··-
'-.J
J
r
(
drive a piston in a cylinder and so results in the workpiece being pushed into the required
. position. Such electrical circuits would have to be specific to the automatic drilling
machine. For controlling the n u m b e r of items packed into a packing case we could
likewise wire up electrical circuits involving sensors and motors. However, the controller
circuits we devised for these two situations would be different. I n the 'traditional' form of
control system, the rules governing the control system and when actions are initiated are
determined by the wiring. When the rules used for the control actions are changed, the�
r
(
�)Motor
Switch . \
r
(
0
1
· . . ) R e l a y to
switch o n
r
I
[
(�;;e c u rr e n t
Low
·�motor
r voltage
. program to instruct the microprocessor how to react to each i n p u t · signal from, say,
r ·
I
switches and give the required outputs to, say, motors a n d valves. Thus we might have a
If switch A doses
By changing the instructions in the program we can use the same microprocessor
Inputs to it arise from the dials used to select the required wash .cycle, a switch to
determine that the machine door is closed, a temperature sensor to determine the
temperature of the water and a switch to detect the level of the water. On the basis of
these inputs the microprocessor is programmed to give outputs which switch on the
r drum motor and control its speed, open or close cold a n d hot water valves, switch on the
I
drain pump, control the water heater and control -the door lock so that the m ac h i n e
J
The programmable logic controller
functions such as logic, sequencing, timing, counting and arithmetic in order to control
machines and processes (Figure 7.3) and are designed to be operated by engineers j
. with perhaps a limited knowledge of computers and computing languages. They are not
designed so that only computer programmers can set u p or change the programs. T h u s ,
j
the designers of the PLC have pre-programmed it so that the control program· can be
entered using a simple, rather intuitive, form of language. The term logic is used
sensors such a s . switches; and output devices in the system being controlled, e.g. J
motors, valves, etc., are connected to the PLC. The operator then enters a sequence of
instructions, i.e. a program, the memory of the PLC. The controller then monitors
into
j
the inputs and outputs according to this program and carries out the control rules for
1
which it has been programmed. -
J
Program
__J
... I
.
\
lnpu Outp
. l
P.b:C __J
PLCs have the great advantage that the same basic controller can be used with a wide
J
range of control systems. To modify a control system and the rules that are to be u s e d . .
. need to rewire. The result is a flexible, cost effective, system which can be used with J
control systems which vary quite widely in their nature a n d complexity.
display tasks, PLCs are optimised for control tasks and the- industrial environment. Thus
J
PLCs are:
J
1 Rugged and designed to withstand vibrations, temperature, humidity a n d noise.
J
The first PLC was developed in 1 9 6 9 . They are now widely used and extend from s m a l l
self-contained units for use with perhaps 20 digital inputs/outputs to modular systems J
_J
which can be used for large numbers of inputs/outputs, handle digital or analoque
J
r
I
Hardware
Typically a PLC system has the basic f u n c t i o n a l components of processor unit, memory,
power supply unit, input/output interface section, communications interface and the
Programming
r device
Input Output
inter inter
r:
l
r
i
i
!
1 The processor · unit or central proces.._sing unit (CPU) is the unit containing the
microprocessor and this interprets the input signals and carries out the control
r
(
decisions as action s i g n a l s to t h e outputs.
,.---, 2 The power supply unit is needed to convert the mains a.c. voltage to the low d.c.
!
l
voltage (5 V) necessary for the processor and the circuits in the input and output
interface modules.
3 The programming device ·is used to enter the required program into the memory of
the processor. The program is developed in the device and then transferred to the
r 4 The memory unit is where the program is stored that is to be used for the control
i
actions to be exercised by the microprocessor and data stored from the input for
,--
processing and for the output for o u t p u tt i n g .
I
5 The input and output sections are where the processor receives information from
,---
{
external devices and communicates information to external devices. The inputs
l
might thus be from switches, as illustrated in Figure 1 . 1 (a) with the automatic drill, or
1 . 1 (b ),. temperature sensors, or flow sensors, etc. The outputs might be to motor
,...,,_
I
-------············ ···········--- . ···-------- .... ------- ······· ·············-···------------- -- ····---··- ·----···---···················· ··-----.-- ...•.•.........................................•.....•..... -
r:
{_
1
_J
j
starter coils, solenoid valves, etc . . I n pu t and output interfaces are discussed in
devices give s ign al s whose size is proportional to the size of the variable being
J
monitored. For example, a temperature se n s or. may give a voltage proportional to
the temperature.
j
Cl)
Cl
m . Cl) I
-
0
! D D D
J
>
- (b) >
(a) li m e
Time
: l
t LL _
>
....J
(c) Time
J
J
6 The communications interface is used to receive and · transmit data on
Supervisory
system
Communications
I I
network:
J
PLC 1 PLC 2
Machine/
Machine/
J
plant plant
J
Figure 1 . 6 Basic communications model
. )
Internal architecture _J
r determines the operating speed of the PLC and provides the timing and synchronisation .
l
for all elements in the system. The information within the PLC is carried by means of
digital s i g n a l s . The internal paths -along which digital s i g n a l s flow are called buses. In
.the physical sense, a bus is just a number of conductors along which electrical si g na l s
can flow. It might be tracks on a printed circuit board or wires in a ribbon cable. The
C P U . uses the data bus for sending data between the constituent elements, the address
b us to send the addresses of locations for accessing stored data and -the control bus for
signals relating to internal control actions. The system bus is used for communications
r-
1
Program p a n e l
r-
i
RAM 0 unit
r
(
e . g . relays
r
Output c h a n n e l s
r
1.
r
1 The C P U
The buses
. \
I
The buses are the paths used for communication within the PLC. The information is
�
1
i.e. on/off states. The term word is used for the group of bits constituting some
'
._)
is communicated s i m u l t a n e o u s l y along its own parallel wire. The system has four buses: l
__J
1 The data bus carries the data used in the processing carried out by the C P U . A
microprocessor termed as being 8-bit has an internal data bus which can h a n d l e 8-bit 'I
__)
numbers. It can thus perform operations between 8-bit numbers and deliver results as
8-bit values. )
_J
2 The address bus is used to carry the addresses of memory locations. So that
each word can be located in the memory; every memory l�cation is given a unique j
address. Just like houses I n a town are each given a distinct address so that they can
be located, so each word location is given anaddress so that data stored at a particular
J
location can be accessed by the C P U either to read data located there or put,
>
i . e . write, data there. It is the address b u s which carries the information indicating which ,_J
address is to be accessed. If the address bus consists of 8 lines, the number of 8-bit
3 The control bus carries the s i g n a l s used by the CPU for control, e.g. to inform J
rnemory devices whether they are to receive data from an i n p u t or output data and to
· 4 The system bus is used for communications between the input/output ports and
j
the input/output unit.
Memory
J
There are several memory elements in a PLC system:
_J
. . . . . . . . . . . . . ... . . -, - ..
_J
. 3 Random-access m e m o ry (RAM) for data. This is where information is stored on
the status of input and output devices and the values of timers and coun_ters a n d other
internal devices: The data RAM is sometimes referred to as a data table or register
table. P a rt of this m e m o ry , i . e . a block of addresses; will be set aside for input and
output addresses and the states of those inputs a n d . outputs. P a rt will be set aside for
preset data and p a rt for storing counter values, timer values, etc.
m e m o ry ( E P R O M ) for ROMs that can be programmed and then the program made
permanent.
The programs and data in RAM can be ·changed by the user. All PLCs will have some
.,..-..
r
( · amount of RAM to store programs that have been developed by the user and program
data. However, to prevent the loss of programs when the power s u p p l y is switched off, a
r battery ts used in the PLC to maintain the RAM contents for a period of t i m e . After a
often a bolt-on module to the PLC, and so made permanent. In addition there are
· The storage capacity of a memory unit is determined by the number of b i n a ry words that
it can store. T h u s , if a memory size is 2-56 words then it can store 256 D 0 8 = 2048 bits
if 8-bit words are used and 256 D D 1 6 = 4096 bits if 16-bit words are used. Memory
sizes are often specified in terms of the number of storage locations available with 1 K
1 0 2 4 bit locations. A 4K % 8 memory has 4 °(o 8 % 1024 bit locations. The term byte is
used for a word of length 8 bits. T h u s the 4K % 8 memory can store 4096 bytes. With a
16-bit address bus we can have 2 1 6 different addresses and so; with 8-bit words stored
r-•
[ I n p u t/ o u t p u t unit
T h e i n p u t/ o u t p u t unit provides the i n te rf ace be tw een the system and the outside world,
s u c h . as sensors and output devices such as motors and solenoids. I t is also thro ug h the
inp u t/o utput u n i t that programs are entered from a program panel. Every i n p u t/ o u t p u t
along a road, number 1 0 mi ght be the ' house ' to be used for an inp u t from a p a rt i c u l a r
se n sor w h i l e n u m b e r '4 5 ' might be the ' house ' to be used for the outp u t to a p a rt i c u l a r
,...-,
motor.
I :
r
1 4 1 1 Page Indian 'School of Petroleum & Energy
r
1
.
J
The input/output channels provide isolation and signal conditioning functions so that J
sensors and actuators can often be directly connected to them without the ·need for
other circuitry. Electrical isolation from the external world is usually by means· of
. J .
· optoisolators (the term optocoupler is also often used). Figure 7.8. shows the principle of
rise to a voltage in that circuit. The gap · between the light-emitting diode and the 1
phototranslstor gives electrical isolation but the arrangement still allows for a digital
�J
_J
Infrared radiation
.
r - - - - - - - - - - J
._J
·
n ��'
- -
L i g ht - : ',
emitting I . _
_.-:::, : P h ot o - ,J
di d : _,,..-
7 , · transistor
10 0 I 'I I
. I
I I
- - - - - - - - -.- .J
_J
Figure 1 . 8 · Optoisolator
The digital signal that is generally compatible with the microprocessor in the PLC is 5 V
J
d.c. However, signal conditioning in the input c h a n n e l , with isolation, enables a wide
range of inp ut signals to be supplied to it. A range of inputs might be available with a
J
larger P L C , e . g . 5 V, 24 V, 1 1 0 V and 240 V digital/discrete, i . e . on-off, s i gn a ls (Figure
To inpuV
5 V
_J
o ut p u t unit
I n p ut s : 24V
5 V
Input
. digital signal l e ve l s
110 V
channel
Digital
240V J
signal level
J
Figure 7.9 Input levels
J
The term sensor is used for an input device that provides a usable output in response to
_J
temperature difference into an electrical output. The term transducer is generally used
for a device that converts a signal from one form to a different physical form. Thus
'
_J
.................... ,
_J
r
l
'
I , sensors are often transducers, but also other devices can be transducers, e . g . a motor
r Sensors which give digital/discrete, Le. on-off, outputs can be easily connected to t h e ·
input ports of PLCs. Sensors which give analogue signals have to be converted to
(,
digital signals before inputting them to PLC ports: The following are some of the more
r >- Accuracy is the e'xtent to which the value indicated by a measurement system or
of the measurement and the true value of the quantity being measured errors can
r
i arise in a n u m b e r of ways, e . g . the term non-linearity error is used for the error that
occurs as a result of assuming a linear relationship between the input and output
over the working range, i.e. a graph of output plotted against input is assumed to
give a straight line. Few systems or elements, · however, have a truly linear·
relationship and thus errors occur as a result of the assumption of linearity (Figure
r
I ,
7.10(a)). The term hysteresis error (Figure 7.10(b)) is used for the difference in
outputs gi.ven from the same value of quantity being measured according to whether
'
l '
Assumed Decreasing
"S
. � relationship I c..
� \ µctual -
:::J
0
' i· \ /"
i....;
t '
relationship 0
Ill
c
Cl)
r True value
Value being measured
(a) (b)
r >- The range of variabie of system is the limits between which the input can vary.
\ '
settle down to the steady-state value (Figure 7 . 1 1 ). The response time is the time
r
J
l
__J
\
which elapses after the input to a system or element is abruptly increased from _)
zero to a constant value up to the point at which the system or element gives an
percentage of the steady-state output. Often the rise time refers to the time taken
J
for the output to rise from 10% of the steady-state value to 90 or 95% of the
steady-state value. The settling time is the time taken for the output to settle to
J
� />.
§
g.
,
� I \ 1
r\
\J
,,......_
,..__ Steady-state
_ _
..... J reading l
......J
� I
J
I
0 Time
�l
Figure 7 . 1 1 Response of a sensor or measurement system to a sudd�n input. You can easily see such a response
· when the current in an electrical circuit is suddenly switched on and an ammeter reading observed. J
� The sensitivity indicates how much the output of an instrument system or system
J
element changes when the quantity being measured changes by a given amount,
1
measure a constant input over a period of time. The term drift is often used to __J
describe the change in output that occurs over time. The drift may be expressed
as a percentage of the full range output. The term zero drift is used for the
J
changes that occur in output when there is zero i n p u t .
� The term repeatability is used for the ability of a measurement system to give the
J·
same value for repeated measurements of the same value of a variable.
environment, e.g. changes in temperature and h umid i t y . The error arising from J
repeatability is u s u a l l y expressed as a percentage of the full range output. For
J
level of performance might be that the measurement system gives a particular
accuracy.
)' The following are examples of some of the commonly used PLC input devices and
their sensors.
Mechanical switches
mechanical input causing the switch to open or close. Such a switch might be used to
against the switch and so closing it. The absence of the workpiece is indicated by the
switch being open and its presence by it being closed. Thus, with the arrangement
shown in Figure 7.13(a), the input signals to a single input channel of the PLC are thus
r
I
Workpiece not present O
Workpiece present 1
r
(
The 1 level might correspond to a 24 V d . c . input, the O t o a O V i n p u t .
voltage
PLC
r
t
. 1 _ ->oi-·---'!-ii :L:p� . o Input
r
\ . •
(a) (b)
r=
1
( ,
Figure 7 . 1 3 Switch sensors
With the arrangement shown in Figure 7 . 1 3 ( b ), when the switch is open the supply
voltage is applied to the PLC input, when the switch is closed the input voltage drops to
Workpiece present O .
r
'
Switches are available with normally open (NO) or normally closed (NC) contacts or can
r. contacts open in the absence of a mechanical input and the mechanical input is used to
close the switch. An NC switch has its contacts closed in the absence of a mechanical
The term limit switch is used for a switch which is used to detect the presence or
,�
(
shows some examples. The cam (Figure 7 . 1 4 ( c ) ) can be rotated at a constant rate an d J
so switch the switch on and off for pa rti cu l a r time intervals.
t
-
Lever pushed down by
contact
t • f Roller pushed down
J
� by contact
Button to
(a) switch
(b)
switch
J
Figure 2.4 Limit switches actuated by: (a) lever, (b) roller, (c) cam
J
Proximity switches
J
· Proximity switches are used to detect the presence of an item without making contact
with it. There are a number of forms of such switches, some being o n l y · suitable for )
.._J
metallic objects. The eddy current type of proximity switch has a coil which is energised
When, a metallic object is close to it, eddy currents are induced in it (Figure 7.15(a)).
The magnetic field d u e to these eddy currents induces an e . m . f . back inthe coil with the
result that the voltage amplit ude needed to maintain the constant coil current c h a n g e s . J
The voltage amplitude is thus a measure of the proximity of metallic objects. The
voltage can b e . used to activate an electronic switch circuit, basically a transistor which l
�J
has its output switched from low to high by the voltage change, and so give a n o n D o ff
device. The range over which such objects can be detected is typically about 0 . 5 to 20
�J
mm.
r1
Object
--"'- J
Figure 7 . 1 5 Proximity switches: (a) eddy current, (b) reed switch, (c) capacitive
. Another type is the reed switch. This consists of two overlapping, but not touching, J
strips of a springy ferromagnetic material sealed in a glass or plastic envelope (Figure
I
7.15(b)). When a magnet or current-carrying coil is brought close to the switch, the
�
strips become magnetised and attract each other. The contacts then close. The magnet
closes the contacts when it is typically about 1 mm from the switch. Such a switch is
J
widely used with burglar alarms to detect when a door is opened; the magnet being in
J
r
i
{ the door and the reed switch in the frame of the door. When the door opens the switch
opens.
r
l
A proximity switch that can be used with metallic and non-metallic objects is the
r distance depends on the separation, the smaller the separation the higher the
capacitance. The sensor of the capacitive proximity switch is just one of the plates of
r the capacitor, the other plate being the metal object whose proximity is to be. detected
i
capacitance. The sensor can also be used to detect non-metallic objects since the
capacitance of a capacitor depends on the dielectric between its plates. In this case the
plates are the sensor and the earth and the non-metallic object is the dielectric. The
change in capacitance can be used to activate an electronic switch· circuit and so give
, an on-off device. Capacitive proximity switches c a n . b e used to detect objects when they
r-- .
I
Another type, the inductive proximity switch, consists of a coil wound round a ferrous
r
l
· metallic core. When one end of this core is placed near to a ferrous metal object there is
effectively a change in the amount of metallic core associated with t h e · coil and so a
r....,
I .
change in its inductance. This change in inductance can be monitored u s i n g a resonant
circuit, the presence of the ferrous metal object thus changing the current in that circuit.
device. The range over which such objects can be detected is typically about 2 to 15 ·
mm.
· Encoders
r
(
The term encoder is used for a device that provides a digital output as a result of
Figure 7. 1 6 shows the basic form of an incremental encoder for the measurement of
passes through slots in a disc and is detected by a light sensor, e.g. a photodiode or
. phototransistor. When the disc rotates, the light beam is alternately transmitted and
stopped and so a pulsed output is produced from the light sensor. The n u m b e r of pulses
is proportional to the angle through which the disc has rotated, the resolution being
r
(
proportional to the n u m b e r of slots on a disc. With 60 slots then, since one rev�lution is
a rotation of 3600, a movement from one slot to the next is a rotation of 60. By using
r offset slots it is possible to have over a thousand slots for one revolution and so much
(
higher resolution.
r
l
l
_J
Light
J
Single
a p e rt u r e · Fixed
Rotating d i s c
J
x disc ---�------ �-
l<S D (
) Apertures
1D\
( � CJ
\ .
l )
\ o o <:> J
'
\ '--- __/
J
Figure 7 . 1 6 Basic form of an incremental encoder
The- absolute encoder differs from the incremental encoder in having a pattern of slots
J
which u n i q u e l y defines each angular position. With the form shown in Figure 7 . 1 7 , the
rotating disc has four concentric circles of slots a nd four sensors to detect the l i g ht
pulses. The slots are arranged in such a way that the sequential output from the
number of tracks. Thus with 10 tracks there will be 10 bits and so the number of
Apertures through
which l i g h t B a n k of J
. 1 1 1 1 0000
can p a s s Light four detectors
10
J
�
T h e output
1100
0011 J
from the 4
detectors
0100
1011 d e p e n d s on J
the position
o f the d i s c
J
E a c h arc
has a u n i q u e
1000 0111
set o f a p e rt u r e s I
..._)
Figure 7 . 1 7 The rotating wheel of the absolute encoder. Note that though the normal form of binary code is
l
shown in the figure, in practice a modifiedform of binary code called the Gray code is generally used. This code, __)
unlike normal binary, has only one bit changing in moving from one number to the next. Thus we have the
. .
sequence 0000, 0001, 0011, 0010, 0011, 0111, OJ OJ, OJ 00, 1100, 11 OJ, 1 1 1 1 .
,J
J
Output devices
The output from the input/output u n i t will be digital with a level of 5 V. However, after
r s i g n a l conditioning with relays, transistors or triacs, the output from the output channel
_ PLC, a l l the outputs might be of one type, e.g. 240 V a . c . , 1 A. With m o d u l a r PLCs,
r�
{ ,
however, a range of outputs can be accommodated by selection of the modules to be
used.
.-------, 24 V, 100 mA
r
l
From 1 1 0 V, 1 A, d.c.
O ut p u t s
i n p ut / O ut p u t
r: 240 , 1 A, a.c,
( output channel S \l\li t c h i n g
5 V
r
i
r
(
Figure 7 . 1 8 Output levels
Outputs are specified as being of relay type, transistor type or triac type:
1 With the relay type, the signal from the PLC output is used to operate a relay and
r is able to switch currents of the order of a few amperes in an external circuit. The relay
not only allows s m a l l currents to switch much larger currents but also isolates the PLC -
r
(
from the external circuit. Relays are, however, relatively slow to operate. Relay outputs
are suitable for a . c . and d.c. switching. They can withstand high surge currents and
voltage transients.
2 The transistor type of output uses a transistor to switch current through the
r external Circuit. This gives a considerably faster switching action. It is, however, strictly
(
for· d.c. switching and is destroyed by overcurrent and high reverse voltage. As a
protection, either a fuse or built-in electronic protection are used. Optoisolators are used
to provide isolation.
r
' 3 Triac outputs, with optoisolators for isolation, can be used to control external
very easily destroyed by overcurrent. Fuses are virtually always included to protect such
r
outputs,
r The output ports of a PLC- are of the relay type or optoisolator with transistor or triac
l
r
I ,
_ ,
l
Generally, the digital signal from an output channel of a PLC is used to control an J
actuator: which in turn controls some process. The term actuator is used for the device
which transforms the electrical s i g n a l into some more powerful action which then results
J
in the control of the process. The following are some examples.
Relay J
Solenoids form the basis of a number of output control actuators. When a current
passes through a solenoid a magnetic field is produced and t h i s can then attract ferrous
metal components in its vicinity. One example of such an actuator is the relay, the term
contactor being used when large currents are involved. When the output from the PLC
J
is switched o n , the solenoid magnetic field is produced and p u l l s on the contacts and so
closes a switch or switches (Figure 7 . 1 9 ) . The result is that much larger currents can be J
switched o n . Thus the relay m i g h t be used to switch on the current to a motor.
J - - - "'
, R
f
i output
J
Figure 7 . 1 9 Relay used as an output device
J
Sourcing a n d S i n k i n g
The terms sourcing and s i n k i n g are used to describe the way in which d . c . devices, are J
connected to a PLC. With sourcing, using the conventional current flow direction as
from positive to negative, an input device receives current from the input module, i.e.
J
the i n p u t module is the source of the current (Figure 7 . 1 1 (a)). If the current flows from
the output module to an output load then the output module is referred to as sourcing
J
(Figure 7 . 1 1 (b )). With sinking, using the conventional current flow direction as from
positive to negative, an input device supplies current to the. input m o d u l e , i . e . the inp ut
module is the s i n k for the current (Figure 7.12(a)). If the current flows to the output J
module from an output load then the output module is referred to as sinking (Figure
7.12(b)).
_J
J
.:
r
(
+ ----l
I n p ut Input
r
(
module module
r>.
\____F -
Input
Output load
r
(
Figure 7. l l Sourcing
r
t
+
Input Input Input
r
i
\_)�+
Output load
(a) (b),,
Figure 7 . 1 2 Sinking
r Input/output units
(
r Input signals from sensors a n ti the outputs required for actuating devices can be:
1 . Analogue, i.e. a signal whose size is related to the size of the quantity being
sensed.
to 5 V. The output from the CPU is digital, normally O to 5 V. Thus there is generally a ·
need to manipulate input and output signals so that they are in the required form.
changed into 5 V digital signals and so that a range of outputs are available to drive
external devices. It is this in-built facility to enable a range of inputs and outputs to be
handled which makes PLCs so easy to use. The following is a brief indication of the
basic circuits used for input and output units. In the case of rack instruments they are
mounted on cards which can be plugged into the racks and so the i n p u t/ o u t p u t
characteristics of the PLC can thus be changed by changing the cards - . A single box
r:
( ,
Input units
Figures 1 7 . 1 3 and 1 7 . 1 4 show the basic input unit circuits for discrete and digital d.c.
and discrete a.c. inputs. Optoisolators are used to provide protection. With the a.c. input
unit, a rectifier bridge network is used to rectify the a.c. so that the resultinq.d.c. signal
can provide the signal for use by the optoisolator to give the input signals to the CPU of
the PLC. Individual status lights are provided for each input to indicate when the input
I ,
J
LED indicator +V J
PLC
of input signal Optolsolator
Internal PLC voltage
It
Input . Signal tp
J
to PLC PLC CPU
J
Protection
diode
Voltage
divider circuit
I
__;
Figure 1 7 . 1 3 D.C. input unit
. Live PLC
· +V Internal J
Optoisolator PLC
voltage
· � . Signal to
Input ,.,;,- .
1
to PLC /T � �CCPU
d?> s�,g-n-a-
l ------+�
Indicator
Neutral
· I
J
-•·----'
J
Figure 1 7 . 1 4 A.C. input unit
. Output units can be relay, transistor or triac . . Figure 7 . 1 5 shows the basic form of a relay
J
output u n i t , Figure 7 . 1 6 that of a transistor output unit a n d Figure 7 . 1 7 that of a triac
I
output u n i t . _J
PLC
Output signal LED
Fuse
J
+v
From
--,,.. J
PLC
0
CPU
L -V J
Optoisolator Relay
J
Figure 7 . 1 5 Relay output unit
J
r
Optocoupler
+
r----------
Output
r
,
J]- ....::,,
,
Ii
I
...._-,---t9-........-........-0-,t,-������
I_ - - - - - - - - - ,
r
i
(a)
r Optocoupler
l +
,----------
r---
: Output
J]
1 . _.:,, :
...,::,, I Fuse
I
......__,1�----1---..c>-1-......,_-i: Load
r
(
I_ - - . - - - - - - ,
PLC
(b)
..--
I
Figure 7 . 1 6 Basic forms of transistor output: (a) current sinking, (b) current sourcing
r
Triac
r
(
From
PLC
r CPU
Optoisolator Output
r · load
LED
-V
PLC systems
r There are two common types of mechanical design for PLC systems; a s i n g l e box, and
the modular/rack types. The single box type (or, as sometimes termed, brick) is
compact package complete with power supply, processor, memory, and input/output
r units. Typically such a PLC might have �· 8 , 1 2 or 24 inputs and 4, 8 or 1 6 outputs and
l ,
a memory which can store some 300 to 1000 instructions. Figure 7. 1 8 shows .the
Mitsubishi MELSEC FX3U compact, i.e. brick, PLC and Table 7.1 gives details of
r models in that Mitsubishi range.
r
1 5 3 1 Page Indian School of Petroleum & Energy
r
I
J
__J
..J
. ,.
l
.,_)
__)
\
Figure 7 . 1 8 Mitsubishi Compact PLC - MELSEC FX3 U (By permission ofMitsubishi Electric Europe) ._J
Table 7 .1 Mitsubishi Compact PLC - MELSEC FX3 U Product range (By permission ofMitsubishi
l
Electric Europe) ,__)
J
Power supply 100-240V AC
Inputs 8 16 24 32 40 l
_J
Outputs 8 16 24 32 40
Dimensions in mm
1 3 0 x 9 0 x 86 150 x 140 x 86 182 x 90 x 86 220 x 90 x 86 285 x 90 x 86
(WxHxD)
J
Some brick systems have the capacity to be extended to cope with more inputs and
J
outputs by linking i n p u t/ o u t p u t boxes to them. Figure 7 . 1 4 shows such an arrangement
with the OMRON C P M 1 A PLC. The base i n p u t/ o u t p u t brick, depending on the model
concerned, has 1 0 , 20, 30 or 40 inputs/outputs (1/0). The 1 O 1/0 brick has 6 d.c. input
J
points and four outputs, the 20 1/0 brick has 12 d.c, input points and 8 outputs, the 30
1/0 brick has 1 8 d.c. input points and 1 2 outputs. and the 40 1/0 brick has 24 d.c. input
J
points and 1 6 outputs. However, the 30 and 40 1/0 models can be extended to a
example a 20 1/0 expansion module might be added, it having 1 2 inputs and 8 outputs,
J
expansion modules can be added. The outputs can be relay or transistor outputs . .
.._J
J
Peripheral port Connecting cable
r
CPM 1-CIF01/CIF11 Serial
Communications Adapter
r
I
AC and DC power supply models: Expansion 110 Unit Expansion 1/0 unit Expansion 1/0 Unit
��i::�c::ue;in����i��;=�u
maximum of 3 Units.
r
Figure 7 . 1 4 Basic configuration of the OMRON CPMJA PLC (By permission o
f Omron Electronics LLC)
r
l
Systems with larger numbers of inputs and outputs are likely to be modular and
designed to fit in racks. The modular type consists of separate modules for power
supply, processor, etc., which are often mounted on rails within a metal cabinet. The
rack type can be used for all sizes of programmable controllers and . has t he various
r
(
functional units packaged in i n d i v i d u a l modules which can be plugged into sockets in a
base rack. The mix of modules required for a particular purpose isdecided by the user
an d the appropriate ones then plugged into the rack. Thus it is comparatively easy to
r ,
more input/output
r
An example of such a mo dular system is provided by the Allen-Bradley PLC-5 PLC of
Rockwell automation (Figure 7.15). PLC-5 processors are available in a range of 1/0
capacity and memory size, and can be configured for a variety of communication
networks. They are single-slot mo d ul e s that are placed in the left-most slot of a 1 7 7 1 1/0
chassis. Some 1771 1/0 chassis are built for back-panel mounting a nd .s o me are built
for rack mounting and are available in sizes of 4, 8, 12, or 16 1/0 module slots. The
1771 1/0 modules are available in densities of 8 , 16, or 32 1/0 per module. A PLC-5
processor can communicate with 1/0 across a DeviceNet or Universal Remote 1/0 l i n k .
for use in the local chassis, and an even larger selection available for use at locations
r
i remote from the-processor. Digital 1/0 mo d ul e s have d i g i t a l 1/0 circuits that interface to
on/off sensors such as pushbutton a nd limit switches; and on/off actuators such as
motor starters, pilot lights, and annunciators. Analogue 1/0 mo d ul e s perform the
required AID and D/A conversions using up to 1 6 - b i t resolution. Analogue 1/0 can be
user-configured for the desired fault-response state in the event that 1/0 communication
is disrupted. This feature provides a safe reaction/response in case of a fault, limits the
extent of faults, and provides a predictable fault response. 1771 1/0 modules include
r
(
optical c o u p l i n g and filter circuitry for s i g n a l noise reduction.
r
155 I Page Indian School of Petroleum & Energy
J
J
U U U U U U U U -U -U -U LI
- - - - - - - - - - - J
Pow er supply . . The basic brm ofa rack into which
_J
J
Processor Communication module ti r VO adapter module for connecting 110 modules to provide the means
m:i dule communication to computers the backplane to a processor at to con >.ert in put signals to backplane
1,0 adapters and other PLC another location le >.els and backplane signals to
J
Power
supply
J
Figure 7 . 1 5 A possible arrangement of a rack system, e.g. the Rockwell Automation, Allen-Bradley PLC-5
J
Digital 1/0 modules cover electrical ranges from 5 . . . 276V a . c . or d . c . and relay contact
...__j
J
U N I T 8 : PLC P r o g r a m m i n g
code, this being a sequence of binary code numbers to represent the program
LO, and a computer program called an assembler is used to translate the mnemonics
into machine code. Programming can be made even easier by the use of the so-called
high level languages, e.g. C, .BASIC, PASCAL, FORTRAN, COBOL. These use pre
operation. However, the use of these methods to write programs. requires some s k i l l in
programming and PLCs are intended to be used by engineers without any great
This is a 'means of writing programs which can then be converted into machine code by
however each tended to have developed their own versions and so an international
r
\
standard has been adopted for ladder programming and indeed a l l the methods used
for programming PLCs. The standard, published in 1993, is IEC 1131-3 (International
diagrams (LAD), instruction list (IL), sequential function charts (SFC), structured text
r.
1
O n l y when the program has been desiqned on the programming device and is ready is
the u n i t to retain programs while being carried from one place to another.
2 · Desktop consoles are likely to have a visual d i s p l a y unit with a full keyboard a n d
screen display.
stations. Some PL Cs only require the computer to have appropriate software; others.
require special communication cards to interface with the PLC. A major advantage of
u s i n g a computer is that the program can be stored on the hard d i s k or a CO and copies
r
(
easily made.
PLC manufacturers have programming software for their PLCs. For example, M i t s u b i s h i .
have MELSOFT. Their GX Developer supports all MELSEC controllers from the
function chart (SFC) l a n g u a g e s . You can switch back a n d forth between I L and LO at
r will while you are working. You can program your own function blocks and a wide range
of utilities are available tor configuring special function modules for the MELSEC .
r
1 5 7 1 Page . Indian School of Petroleum & Energy
I
(
J
System Q - there is no need to program special function modules, you just configure J
them. The package includes powerful editors and diagnostics functions for configuring
MELSEC networks and hardware, and extensive testing and monitoring functions to
international standard IEC 61131-3 for PLC programming languages. With STEP 7,
· instruction List (STL) programming l a n g u a g e . Other additional options are available for 1
_J
I E C 6 1 1 3 1 - 3 programming languages such as Structured Text (ST) called SIMATIC 8 7 -
efficient way to describe sequential control systems graphically. Features of the whole J
engineering system include system diagnostic capabilities, process diagnostic tools,
optional package for STEP 7 that allows simulation of a SIMATIC 87 control platform
J
a n d testing of a user program on a P C , e n a b l i n g testing and refining prior to physical
hardware installation. By testing early in a project's develo p m ent, overall project ualit y
q
J
can be improved. Installation and commissioning can thus be quicker and less
development.
O MRON has C X-:O ne a n d Telemecanique have ProWo rx 32 for its Modicon range of
J
PL Cs.
Ladder Diagrams J
As an introduction to ladder diagrams, consider the simple wmng diagram for an
electrical circuit in Figure 8 . 1 (a). The diagram shows the circuit for switching on. or off an
J
electric motor. We can redraw this diagram in a different way, u s i n g two vertical l i n e s to
represent the input power rails and stringing the rest of the circuit between them. Figure
8 . 1 (b) 'shows the result. Both circuits have the switch in series with the motor and
J
supplied with electrical power when the switch is closed. The circuit shown in Figure
L1r- 0
I
___)
.
d . c . input f �J ch---4Motor
J
\ I
Power rails --------
(a) (b)
J
Semi-graphic form Full graphic form
---+---
=t-
Interconnection of horizontal
+----
�
1
of a ladder rung
----+
�
f
Figure 8.4 shows standard IEC 1131-3 symbols that are used for input and output
devices. Some s l i g h t variations occur between the symbols when used in semi-graphic
form and when in full graphic. Note that inputs are represented by different symbols
representing normally open or normally closed contacts. The action of the input is
r equivalent to o p e n i n g or closing a switch, Output coils are represented by just one form
of symbol.
To illustrate the drawing of the rung of a ladder diagram, consider a situation where the
r energising of an output device, e . g . a motor, d e p e n d s on a normally open start switch
b e i n g activated by being closed. The i n p u t is thus the switch and the output the motor.
Input
r
(a)
HT-t� Output
Input Input
om}i
r --1/ · Output . I
I
(b)
r
(
Starting with the input, we have the normally open symbol I I for the i n p u t contacts.
There are no. other i n p u t devices and the l i n e 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
r
1 6 1 1 Page Indian, School of Petroleum & Energy
r
(
J
been a normally closed switch Ill with the output (Figure 8 . 5 ( b ) ) , then there would have J
been an output unt i l that switch was opened. Only while there is no i n p u t to the contacts
is there an output. I
.__J
I n drawing ladder diagrams the names of the associated variable- or addresses of each
element are appended to its symbol. Thus Figure 8 . 6 shows how the ladder diagram of J
Figure 8.5(a) would appear u s in g (a) Mitsubishi, (b) Siemens, (c) Allen-Bradley, (d)
T e l e m e c a n i q u e notations for the addresses. Thus Figure 5 . 6 ( a ) indicates that this rung
J
of the ladder program has an input from address X400 and an output to address Y430.
When wiring u p the inputs and outputs to the PLC, the relevant ones must be connected
J
to the i n put and output terminals with these addresses.
J
Input Output Input · Output
L__( J
(c)n Kn (d)
H . i \.. - .
J
Figure 5.6 Notation: (a) Mitsubishi, (b) Siemens, (c) Allen-Bradley, (d) Telemecanique
Logic Functions
J
There are many control situations requiring actions to be initiated when a certain
activated that indicate the presence of the workpiece and the drill position as being at
the surface of the workpiece. Such a situation involves the AND logic function, condition
J
A and condition - B having both to be realised for an output to occur. T h i s section is a
J
Figure 8 . 7 ( a ) shows a situation where an output is not energised unless two, normally
open, switches are both closed . . Switch A and switch B have both to be closed, which
thus gives an AND logic situation. We can think of this as representing a control system
with two inputs A and B (Figure 8 . 7 ( b ) ) . Only when A and B are both on is there an
controlled by a logic gate and the relationship between the inputs to alogic gate and the
outputs is tabulated in a form known as a truth table. Thus for the AND gate we have: J
J
r
'
.
With such a diagram the power s u p p l y for the circuits is always shown as two vertical
lines with the rest of the circuit as horizontal l i n e s . The power l i n e s , or rails as they are
often termed, are like the vertical sides of a ladder with the horizontal circuit l i n es like
the rungs of the ladder. The horizontal r u n g s show o n l y the control portion of the circuit,
in the case of Figure 8 . 1 it is just the switch i n series with the motor. Circuit diagrams
often show the relative physical location of the _circuit components and how they are
. ,.
actually wired. With ladder diagrams no attempt is made to show the actual physical
.: locations and the emphasis is on clearly showing how the control is exercised.
F i g u r e · 8 . 2 shows an example of a ladder diagram for a circuit that is used to start and
stop a motor using push buttons. I n the normal state, push button 1 is open and push
button 2 closed. When button 1 is pressed, the motor circuit is completed and the motor
.: starts. Also, the holding contacts w i r e d . in parallel with the motor clos.e and remain
closed as long as the motor is r u n n i n g . Thus when the push button 1 is released, the
r h ol d in g contacts maintain the circuit and hence the power to the motor. To stop the
motor, button 2 is pressed. This disconnects the power to the motor an d -the holding
r
\
contacts o p e n . Thus when push button 2 is released, there is still no power to the motor.
button 2 .
r
L1 L2
r
(
r
I
r
(
r Holding switch
A very commonly used method of programming PLCs is based on the use of ladder
r
(
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 l i n e s , i . e . .the runqs of the ladder, between these two verticals.
1. The vertical lines of the diagram represent the power rails between which circuits
are connected. The power flow is taken to be from the left-hand vertical across a
rung.
2. Each rung on the ladder defines one operation in the control process.
r
'
r:
•
'
J
3. A ladder d i a g r a m is read from left to right and from top to bottom, Figure 8.3 J
showing the scanning motion employed by the PLC. The top rung is read from
left to right. Then the second rung down is read from left to right and so o n : .When
J
. the PLC is in its run mode, it goes through the entire ladder program to the e n d ,
the end rung of the program being clearly denoted, and then promptly resumes at
the start. This procedure of g o i n g through a l l the rungs of the program is termed J
a cycle. The end rung might be indicated by a block with the word E N D or RET
Power flow
- '
J
��:==:;;;;;;;2!�Ru�g3
J
�=:::=:=:=:=:::!�Rung4
4. Each rung must start with an input or inputs and must end with at least one J
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
J
connected to the output of a P L C . e . g . a motor.
5: Electrical devices are shown in their normal condition. Thus a switch which is
normally open until some object closes it, is shown as open on the ladder
6. A particular device can appear in more than one rung of a ladder. For example,
J
we m i g h t have a relay which switches on one or more devices. The same letters
7. The inputs and outputs are all identified by t h e i r addresses, the notation used J.
d e p e n d i n g on the PLC manufacturer. This is the address of the i n p u t or output in
J
r
Inputs Output
.A
B
0 0 0
0 1 0
1 0 0
1 1 1
r
r
A B
O ut p u t
. Logic gate
r.".
control AND
Applied voltage
(a) (b)
r
OR
. \
Figure 8.8(a) Figure 5.9(a) shows an electrical circuit where an output is energised
. .
when switch A or B , both normally o p e n , are closed. This describes an OR logic gate
table is:
i
'
Inputs Output
A B
r
0 0 0
0 1 1
1 0 1
1 1 1
O u t p ut
r Logic gate
:]
i
control OR
r (b)
(a) Applied voltage
r:
( Figure 8.8(a) OR electrical circuit, (b) OR logic gate
NOT
r:
l
r When there is an i n p u t to the switch, it opens a n d there is then no current in the circuit.
l
This illustrates a NOT gate in that there is an output when there is no i n p u t and no
J
· Input
Output
0 1 J
1' 0
I
A
__)
J
(a) Applied voltage
I n p ut A
J
output � C.
(c) -
- -�--�---
Figure 8.9 (a) NOT circuit, (b) NOT logic with a ladder rung, (c) high output when no input to A
Latching J
There are often sit uat ions. where it i s · necessary to hold an output energised, even
'closed, the motor is required to continue running until a stop push button switch is
J
· pressed. The term latch circuit is used for the circuit used to carry out such an ·
there is an output. However, when there is an output, another set of contacts associated
with the output closes. These contacts form an OR logic gate system with the in p u t
contacts. Thus, even if the input A opens, the circuit will still maintain the output
J
energised. The only way to release the output is by operating the normally closed
contact B .
l
_)
I n p ut A Input B. Output
Output l
c...J
l
___)
_)
J
r
\
r
l
r-,
stop and start push button switches and for which one s i g n a l l i g h t must be illumi na te d
when the power is applied to the motor and another when it is not a p p l i e d . Figure 8 . 1 1
K )
Output
contacts
Y430
L a m p for power
Y430 . Y431
<.
· r
( L a m p for power
Output contacts
applied
Y430
Y432
--c
Figure 8 . 1 1 Motor on-off, with signal lamps, ladder diagram. Note that the stop contacts X401 are shown as
being programmed as open. lfthe stop switch used is normally closed then X401 receives a start-up signal to
close. This gives a safer operation than programming X401 as normally closed.
X401 is closed when the program is started. When X400 is momentarily closed, Y430 is
energised and its· contacts close. This results in latching and also the switching off of
r
I
Y431 and the switching on of Y432. To switch the motor off, X401 is pressed and
opens. Y430 contacts open in the top rung and third r u ng , but close in the second r u n g .
Thus Y431 comes on and Y432 off. Latching is widely used with start-ups so that the
Multiple outptus
With ladder diagrams, there can be more than one output connected to a contact.
r Figure 8.12 shows a ladder program with two output coils. When the input contacts
(
Input A
Output A
Input A
\.. I n p ut B
Output B
Output A
r
t
'
K'
Input B
Output B
For the ladder rung shown in Figure 8 . 1 3 , output A occurs when input A occurs. Output J
B only occurs when both input A and i n p u t B occur. ·
Input A Output A
Input A
J
Input B
Output B J
Output A
�(
Input B
Output B
J
D
being in the sequence with which contacts are 'closed. Figure 8.14 illustrates this with
J
the same ladder program in Mitsubishi and Siemens notations. Outputs A, B and C are
switched on as the contacts in the sequence given by the contacts A, B a n d C are being
I
closed. Until i n p u t A is closed, none of the other outputs can be switched on. When ._)
1----,�-:(
\_ '
.)
Input A ·
J
Input's
Input C
J
Output A
Output S J
Output C
I
Figure 8 . 1 4 Sequenced outputs __J
The location of stop switches with many applications has to be very carefully considered J
in order to ensure a safe system. A stop switch is not safe if it is normally closed and
has to be opened to give the stop action. If the switch malfunctions and remains closed
J
then the system cannot be stopped. Figure 8 . 1 5 ( a ) illustrates this. A better arrangement
is to program the stop switch in the ladder program as open in Figure 8 . 1 5 ( b ) and use a
l
stop switch that is normally closed and operating opens it. Thus there Is an i n p u t s i g n a l .___)
to the system which closes the contacts in the program when it starts u p .
J
,·
Start Stop Motor
c
Motor
Start Stop . Mo t or
K
Motor
Figure 8 . 1 6 shows where we can safely locate an emergency stop switch. If it is in the
r input to the PLC (Figure 8 . 1 6 ( a)) then if the PLC malfunctions it may not be possible to
stop the motor. However, if the emergency stop switch is in the output, operating it will ·
stop the motor and also cause the start switch to become unlatched if the arrangement
shown in Figure 8.16(b) is being used . . The motor will thus not restart when the
r �-� Emergency
. S t a rt t,:,- Startt:-u-.
Stop . Stop �-
PLC
Emergency . -er
--0
stop T
r� v
operated
(a) Unsafe _arrangement (b) Safe arrangement
by coil by coil
_ r ·
A ladder matrix represents all the possible locations where a contact symbol instruction
can be placed. The programming device usually displays allot these possible locations
r on the screen, allowing the user to place contact symbols in the desired locations.
However, according to the maker of the PLC, certain rules apply to contact placement.
One rule, which is present in almost all PLCs, prevents reverse ( i . e . , right-to-left) power
r flow in a ladder rung (see Figure 9 - 1 3 ) . PLC logic does not allow reverse power to a v o i d .
sneak paths. Sneak paths occur when power flows in a reverse direction through an
undesired field device, thus completing a continuity path. If a P L C ' s . logic requires
r reverse power flow, the user must reprogram the rung with forward power flow to all
r
1 6 7 1 Page Indian School of Petroleum & Energy
r
l
i
i
J
contact e l e m e n t s . · The next example illustrates the solution to the reverse power flow __)
rung in Figure 9 - 1 7 .
A B c y
J
__)
Solve the logic rung shown in Figure 9-17 so that no reverse power flow condition
exists. The reverse condition is not part of the required logic for the output to be J
energized.
Solution
· y = ( A • B • C) + ( A • D • E) + (F • E) J
J
Y. = A • (B • C + D • £) + . (F • £)
Figure 8-18 shows the implementation of this logic gate, while Figure 8-19 gives the J
ladder-equivalent s o l u t i o n .
A�����������-
J
B-E,.,.
c :·,·1-------1
(B • C + D • E)
D-=
E J--,--:....,
y
J
I .
.......J
J
y
D E
r+-
�I
I
Example s-i .
Solve the ladder logic shown in Figure 9-17 so that no reverse power flow exists . .
Assume that the reverse path logic through contact D and then forward through
contacts B and C is required in the PLC logic so)ution to energize the output. · ·
r
(
Solution ·
Following the same procedure as in Example 9-1, we can obtain the desired logic for
r output Y using Boolean logic expressions. Therefore, output Y, including the reverse
I
power flow logic, is represented by:
r
( 1st line 2nd line 3rd l i n e Reverse path
� ..-----"'----. �
Y = (A • B • C) + (A • D • E) + (F • E ) + (F • D • B • C)
r
I
= A • (B• C + D • E ) + F(E + D • B • C )
The term F • D • B • C implements the reverse power flow sequence that output Y
A B C y
I H r-1
r
i
A D E
I H r- 1 .
F E
D B C
r
\
r- l H
Figure 8 . 2 0 Ladder diagram implementation for Example 8-2.
r
. . '
( '
r
i
J
J
Internal relays
In PLCs there are elements that are used to hold data, i.e. bits, and behave like relays,
J
being able to be switched on or off and switch other devices on or off. Hence the term
internal relay. Such internal· relays do not exist as real-world switching devices but are
merely bits in the storage memory that behave in the same way as relays. For J
programming, they can. be treated in the same way as an external relay output and,
input. Thus inputs to external switches can be used to give an output from an internal
l
__J
relay. This then results in the internal relay contacts being used, in conjunction with
other external input switches to give an output, e.g. activate a motor. Thus we might
Energising the
J
coil activates
Internal relay
contacts
J
Figure 8.21 Internal relay
J
In using an internal relay, it has to be activated on one rung of a program and then its
output used to operate switching contacts on another rung, or rungs, of the program.
To distinguish internal relay outputs from external relay outputs, they are given different
types of addresses. Different manufacturers tend to use different terms for internal
.relays and different ways of expressing their addresses. For example, Mitsubishi uses
the term auxiliary relay or marker and the notation M100, M 1 0 1 , etc. Siemens uses the
J
term flag and notation FO.O, F 0 . 1 , etc. Telemecanique uses the term bit and notation
BO, 8 1 , etc. Toshiba uses the term internal relay and notation ROOO, R001, etc. Allen
Bradley uses the term bit storage and notation in the PLC-5 of the form 83/001, 83/002, J
etc.
J
As an illustration of the use that can be made of internal relays, consider the following
situation. A system is to be activated when two different sets of input conditions are
realised. We might just program this as an AND logic gate system; however, if a number _J
of inputs have to be checked in order that each of the input conditions can be realised, it
may be simpler to use an internal relay. The first input conditions then are used to give
l
__J
r
l '
r
(
an output to an internal relay. This has associated contacts which t h e n become part of
Figure 8 . 2 2 shows a ladder program for such a task. For the first r u n g : when input 1 or
·t
. input 3 is closed and input 2 closed, then internal relay I R 1 is activated. This results in
the contacts I R 1 closing. If input 4 is then activated, there is an output from output 1 .
Such a task might be involved in the automatic lifting of a barrier when someone
approaches from either side. Input 1 and inpu t 3 are inputs from photoelectric sensors
r=: that detect the presence of a person, approaching or leaving from either side of the
I .
barrier, i np u t 1 being activated from one side of it and input 3 from the other. I n p u t 2 is
3 , and i nput 2, are activated, there is an output from the internal relay 1 . This will close
the internal relay contacts. If i n p u t 4, perhaps a l i m i t switch, detects that the barrier is
closed then it is activated and closes. The result is then an output from Out 1 , a motor
r
( which lifts the barrier. If the limit switch detects that the barrier is already o p e n , the
person having passed t hrough it, then it opens and so output 1 is no longer energised
and a counterweight mig ht then close the barrier. The internal relay has enabled two
parts of the program to be linked, one part being the detection of the presence of a
person and the second part the detection of-whether thebarrier is already up or down.
-
r
I n p u t I n p u t Intern al re lay
(
I n 1 I n 2 I R 1
r
! . . H K ;
I n p u t
r
I
I n 3
Internal r e l a y l n p u t Output
I R 1 · I n 4 O u t 1
r
l H K
r Figure 8.22 Internal relay
(
Figure 8 . 23(a) shows how Figure 8.22 would appear in Mitsubishi notation and Figure
· 8 . 2 3 ( b ) in Siemens notation.
I n p ut 1 Input 2 Internal relay
I n p ut 1 Input 2 Internal relay
. m K)
LO X400"
A 10.0
n
lp
ut
µ r-i-� K j OR
AND
X402
X401
0 10.2
r I .
OUT M100
F0.1
t LO. M100
A F0.1
AND .X403
Internal relay Input 5 Output A 10.3
Internal relaylnput 3 Output
OUT Y430
· ..- �
02.0
l M10�40�30
F0.1 10.3 . 02.0 =
(
(a)
(b)
H
r-
r
( Figure 8.23 Figure 7.2 in: (a) Mitsubishi notation, (b) Siemens notation
r-,
1 '
r
(
J
Latching Programs J
Another use of internal relays is for resetting a latch circuit. Figure 8.24 shows an
J
I nt e r n a l
I n p ut 3 I n p ut 4 relay 2
In 3 In 4 IR 2
internal relays
I nt e r n a l 1
relay 2 �..J
I R 2
__J
When the in put 1 contacts are momentarily closed, there is an output at Out 1. This
closes the contacts for Out 1 and so m a i n t a i n s the output, even when i n p ut 1 opens.
J
When input 2 is closed, the internal relay IR 1 is energised and so opens the IR 1
contacts, which are normally closed. T h u s the output Out 1 is switched off and so the
output is u n l a t c h e d .
J
Input 1 Internal r e l ay 1 o u t p ut 1 J
I n ' IR 1 Out 1
r: -\
J
�,,'- .:
O ut p u t 1
Out 1 J
J
Input 2 Internal r e l ay 1
I n 2 IR 1
l
__J
r: '
--'- _,,/
I - 1
__J
\
I
Consider a situation requiring latch circuits where there is an automatic machine that ....J
can be started or stopped using push-button switches. A latch circuit is used to start and
- l
1 7 2 1 Page Indian School of Petroleum & Energy I
,_]
__J
stop the power being applied to the machine. The machine has several outputs which
can be turned on if the power has been turned on and are off if the power is off: It would
be possible to devise a ladder diagram which has individually latched controls for
each such output. However, a simpler method is to use an internal relay. Figure 8.26
shows such a ladder diagram. The first rung has the latch for keeping the internal relay
IR 1 on when the start switch gives a momentary input. T h e second rung will then
switch the power o n . The third rung will also switch on a n d . g_ive output Out 2 if i n p u t 2
r--. contacts are closed. The third rung will also switch on and give output Out 3 if i n p u t 3
I
I
contacts are closed. Thus all the outputs can be switched on when the start push button
is activated. All the outputs will be switched off if the stop switch is opened. Thus all the
r-,
I outputs are latched by I R 1 .
l
Internal relay
Start Stop IR 1
r
l ( '
�
Internal relay
IR 1
Output 1
.: lntemal relay
IR 1
Out
1
,
......... ------.() Power on-off
t: output 2
!
I I K )
r-, I I K )
r+:
I Figure 8.26 Starting of multiple outputs
l
Retentive Relays
If the power s u p p l y is cut off from a PLC while it is being used, al l the output relays and
internal relays will be turned off. Thus when the power is restored, all the contacts
associated with those relays will be set differently from when the power was o n . T h u s , if
the PLC was in the m i d d l e of some sequence of control actions, it would resume at a
different point in the sequence. To overcome this problem, some internal relays have.
,--.,·
I battery back-up so that they can be used in circuits to ensure a safe shutdown of plant
(
battery-backed relays retain their state of activation, even when the power supply is off.
r
( The relay is said to have been made retentive.
.--,
I
-{M)--.
l
r+
I
{
J
the IEC 1131-3 standard symbol for such elements. With Mitsubishi PLC,s, battery
backed internal relay· circuits use M300 to M377 as addresses for such relays. Other
J
manufacturers use different addresses and methods of achieving retentive memory.
The Allen-Bradley PLC-5 uses latch a n d unlatch r u n g s . If the relay is latched, it remains
J
latched if power is lost a n d is unlatched when the unlatch relay is activated.
As an example of the use of such a relay, Figure 8 . 2 8 shows a ladder diagram for a
'
When inp u t 1 contacts close, output I R 1 is energised. This closes the IR 1 contacts,
latching so that I R 1 remains on even if i n p u t 1 opens. The result is an output from Out
. Input · I n t e rn a l relay
_J
In 1 IR 1
Internal relay
IR 1
_J
Internal relay
IR 1 . Out 1
J
-I -CJ
J
Figure 8.28 Battery-backed relay program
. O n e S h o t O p e r a t i o n
j
One of the functions provided by some PLC manufacturers is the ability to program an
internal relay so that its contacts are activated for just one cycle, i . e . one scan through
the ladder program. Hence it provides a fixed duration pu l s e at its contacts when
J
operated. This function is often termed one-shot. While some PLCs have such a
function· as an entity as part of their programs, such a function can easily be developed
J
with just two rungs of a ladder program. Figure 8 . 2 9 shows such a pair of rungs. When
the trigger input occurs, it gives a trigger output in rung 1. In rung 2 it gives a cycle
\
__J
control output on an internal relay. Because rung 2 occurs after rung 1 , the effect of the
cycle control is�ot feit until· the next cycle of the PLC program when it opens the cycle
control contacts in rung 1 and stops the trigger output. The trigger output then remains
off, despite there being a trigger i n p u t . The trigger output can o n l y occur a ga in when the
.._J
_J
. l
.._J
,__J
_J
.__J
r
\
,.....
I
Hl1--( � Trigger
output O .
H�H�s}--t�
T�gger
r
, t Cycle control
... �
(b)
,-,-.
I
.
I
(a)
(c)
�rH::� '.
r Figure 8.29 One-shot (a) program, (b) facility in an Allen-Bradley PLC, (c) facility in a Mitsubishi PLC
,
Set a n d Reset ·
Another function which is often available is the ability to set a n d reset an internal relay . .
The set instruction causes the relay to self-hold, i.e. latch. It then remains in that
condition until the reset instruction . i s received. The term flip-flop .ls often used. Figure
8 . 3 0 shows the. l E G 1 1 3 1 - 3 standards for such coils. The SET coil is switched on when
r+: off state when power is supplied to it and remains off until it is SET.
Input ·
0
r
!
.
�rK;:H· Coil
(a)
Input
1 · 0
r+-
�rK:� Coil =i
_____. _
(b)
1
of the first input, X400, causes the output Y430 to be turned on and set, i.e. latched.
rr=
T h u s if the first i n p u t is turned off, the output remains o n . Activation of the second input,
!
· . X401, causes the output Y430 to be reset, . i . e . turned off and latched off. Thus the
output Y430 is on for the time between X400 being momentarily switched on a n d X401
r b e i n g momentarily switched on .. Between the two rungs indicated for the set and reset
operations, there could be other rungs for other activities to be carried out, the set rung
Input .
On
__
___......._ Off X400
�-r1 I s:TF:,:r I D
I Input. I D On X401
I
X401 . RESETt coil Y4301
-------- Off
On Y430
r�
l
H rEB--i -------Off
1
.
,�
i
J
_J
With an Allen Bradley PLC, the term set and reset is used. Figure 8.32 shows the ladder .J
diagram.
l
I n p ut SET
_J
10,01-00
.)
J
Input RESET.-
I0,1f--(:o
,· l
_J
Program examples
An example of the basic elements of a s i m p l e program for use with a fire alarm system
_j
is shown in Figure 8 . 3 3 . Fire sensors provide inputs to a SET-RESET function block so
that if one of the sensors is activated the alarm is set and remains set until it is cleared
Sensor 1 SET/RESET
Sr�o=2-
r -�
.· --
--<- �J�r\._
A l
a r-
�
j
Sensor 3
J
Clear alarm switch
__J
Figure 8.33 Alarm system
Another program showing the basic elements of a program is shown in Figure 8.34. J
This could be used with a system designed to detect when a workpiece has been·
. '
loaded into the correct position for some further operation. When the start contacts are _J
. closed then the output causes the workpiece to move. This continues until a light beam
is interrupted and resets, causing the output to cease. A stop button is available to stop
the movement at a n y t i m e . J
Work:plece m o ve m e nt
I
s
I
Motion
Light sensor
I
R
J
I
Sto p
J
Timers
I n many control tasks there is a need to control time. For example, a motor or a pump
switched on after some time interval. PL.Cs thus have timers as built-in devices. Timers
l
count fractions of seconds or seconds u s i n g the internal CPU clock.
_J
PLC manufacturers differ on 'how timers s h o u l d be programmed and hence how they ·
can be considered. A common approach is to consider timers to behave like relays with
l
_)
__J
r·�
coils which when energised result in the closure or opening of contacts after some
preset time. The timer is thus treated as an output for a rung with control being
exercised over pairs of contacts elsewhere (Figure 8.35(a)). This is the predominant
approach used in this book. Some treat a timer as a delay block which when inserted in
Timer coil
1-�.,ay
,--. before activated
(a)
l
H �... · . �
.
There are a number of different forms of timers that can be found with PLCs. With small
PLCs there is likely to be just one form, t h e · on-delay timers. These are timers which
come on after a particular time delay (Figure 8.36(a)). Off-delay timers are on for a fixed
period of time before turning off (Figure 8 . 3 6 ( b ) ) . Another type of timer that occurs is the
pulse timer. This timer switches on or off for a fixed period of time (Figure 8.36(c)).
Timer Tl m e r li m e r
TON roF W
Figure 8.37 !EC I 1 3 1 - I standards. BOOL indicates a Boolean input/output, i.e. on/off IN is the input. Q is the
output: ET is the elapsed time output. PT is the input used to specify the time.
The time duration for which a timer has been set· is termed the preset an d is set in
multiples of the time base used. Some time bases are typically 1 0 ms, 1 9 0 ms, 1 s, 1 0 s ·
convenience, where timers are involved in this text, a time base of 1 s has been used.
Programming timers
All PLCs generally have delay-on timers, small PLCs possibly having
r=:
( ,
..J
only this type of timer. Figure 9.4(a) shows a ladder rung diagram involving a delay-on J
timer. Figure 8 . 3 8 ( a ) is typical of Mitsubishi. The timer is like a relay with a coil which is
energised when the i n p u t I n 1 occurs (rung t). It then closes, after some preset time
J
delay, its contacts on rung 2 . Thus the output occurs some preset time after the i n p u t I n
relay, the example being for Siemens. When the s i g n a l at the timer's.start i n pu t changes _J
from O to 1 , the timer starts and runs for the programmed duration, giving its output then
to the output coil. The time value (TV) output can be used to ascertain the amount of
time remaining at any instant. A signal input of 1 at the reset input resets the timer
whether it is r u n n i n g or not. Techniques for the entry of preset time values vary. Often it
the time base used. Figure 8 . 3 8 ( c ) , (d) and (e) shows l a d d e r d i a g r a m s Telemecanique,
Input I n 1 Timer
lV is duration of time
T450 K5
X400
LO specification. .
X400 .
�01
0.0 TON
ro A 10.0
� \ R is Boolean reset.
\. J OUT
;450 � s Q
LKT 5.2
K
.J
Timer Output
SR TO
T450 Y430
LO
OUT
T450 KT5.2 rv Bl
�'1 A TO
· in
BCD
binary
is
word.
current time
Y430 R BCD
02.0
K
value in BCD word
Q is Boolean output,
(b)
_J
H'�'·}i.
X001 . Y020
H � }i
I � - - 1 (d) J
(c)
Input
1 : 0 1 2 /0 1
}
Input
TON
The enbable 'bit EN is set to 1
__J
TI M E R ON
wh e n there is a logic path to
Time
TIMER T4:0 EN
the time. The done bit ON
TIME BASE 1 :0 EN
indicates the status of the
Time
J
PRESET 5
timer and is set to 1 wh e n the
ON
Timer .._ __, Output
T4.0 0 : 0 1 2 1 1 0
Time
the preset value.
-11----)
(e)
J
Figure 8 . 3 8 Timers: (a) Mitsubishi, (b) Siemens, (c)Telemecanique, (d) Toshiba, (e) Allen-Bradley
'_J
Sequ encin g .
As an illustration of the use of a timer, consider the ladder diagram shown in Figure
8.39(a). When the input In 1 is on, the output Out 1 is switched on. The contacts J
associated with this output then start the timer. The contacts of the timer will close after
the preset time delay, in this case 5 . 5 s . When this happens, output Out 2 is switched
J
the same operation where the format used by the PLC manufacturer is for the timer to J
..
r
\ .
r: In 1 Out 1 In 1 Out 1
\
r
\
K ,) I
Timer
C J
Out 1 Timer
Preset
Out 1· Out 2
TON
(
to 5.5
Q
�( IN
-;
Timer· Oat 2
r.
l
�(} Preset to 5 . 5 s .
(a) (b)
r
l
Figure 8.40 shows two versions of how timers can be used to start three outputs, e.g.
three motors, in sequence following a single start button being pressed. I n . (a) the timers
r
I are programmed as coils, whereas in (b) - they are programmed as delays. When the
start push button is pressed there is an output from internal relay I R t . This latches the
start input. It also starts both the timers, T1 and T2, and motor 1 . When the preset time
for timer 1 has elapsed then its contacts close and motor 2 starts. When the preset time
for timer 2 has elapsed then its contacts close and motor 3 starts. The three motors are
all stopped by pressing the stop push button. Since. this is seen as a complete program,
r
:,��,��
(
� H Start O
r IR1� .
\
T1
IR1 T1
T2
I
IR1�-t
D
IR1
Moto_r 1
IR1 T2 IR3 1
IR1 Motor 2
, }i::3-i" 1
I
T1 Motor 3
D
I ( '
IR2 Motor 2
I
T2 Stop
I C '
IR3 Motor3
I
Timing diagram
I C
r -------t END
1---------1 END
(a) (b)
(
Figure 8.40 Motor sequence
r
1 7 9 1 Page Indian School of Petroleum & Energy
(
J
Off-delay timers
Figure 8.41 shows how a on-delay timer c a n - b e used to produce an off-delay timer.
With such an arrangement, when there is a momentary i n p u t to I n 1 , both the output Out
I
c.....l
. 1 and the timer are switched. o n . Because the i n p u t is latched by the Out 1 contacts, the
output remains on. After the preset timer time delay, the timer contacts, which are
normally closed, open and switch off the output. Thus the output starts as on and
J
remains on until the time delay has elapsed. ,,.
ln 1 Timer Out 1
In 1
1
a c.....l
Time
Out 1
Out 1
J
Time
. Timer
I
J
Time
Some PLCs have, as well as on-delay timers, built-in off-delay timers and thus there is J
no need to use an on-del.ay timer to produce an off-delay timer. As an illustration of the
use of an off-delay timer, consider the Allen- Bradley program shown in Figure 8.42.
TOF is used to indicate that it i s . an off-delay, rather than on-delay (TON) timer. The J
time base is set to 1 :0 which is 1 s. The pre?et is 1 0 so the ti'}ler is preset to 1 0 s.
1 : 0 1 2/0 1 TOF
1 : 0 1 2/0 1
TIME
PRESET
BASE 1 :O
10 ,rDNj
E N .
n
lime
T4:1 EN
J
0 : 0 1 3 /0 1 DN
J
( \ Rung 2
li m e
T4:1 TT 0 : 0 1 3/0 2
0 : 0 1 3 /0 1
n J
...,
( \ Rung 3
1 4 .
10 s
Time
0 : 0 1 3 /0 2
T4:1 DN 0 : 0 1 3/0 3
{ '
Rung4 .
Time
J
\...
T4:1 DN 0 : 0 1 3 /0 4
0 : 0 1 3 /0 3
I
( Rung 5
Time
J
0:013/04 ·
Time
l n the first r u n g , the output of the timer is taken from the EN (for e na b l e ) contacts. This
is an output from 0:013/01 immediately the input 1:012/01 occurs. The TT (for timer
J
t i m i n g ) contacts in rung 3 are energised just while the timer is running. Because the
timer is an off-delay timer, the timer is turned on for 1 0 s before turning off. Thus the TT
contacts will close when the set time of 10 s is running. Hence output 0:'012/02 is J
switched on for this time of 1 0 s. The DN (for done) contacts which are normally closed,
J
r
\
r:
\ . open a ft e r t h e 1 0 s a n d so output0:013/03 comes on after 1 0 s. The ON contacts which
r P u l s e timers
{
.
Pulse timers are used to produce a fixed duration output from some initiating input.
Figure 8 . 4 3 ( a ) shows a ladder diagram for a system that will give an output from Out 1
for a predetermined fixed length of time when there is an i n p u t to I n 1 , the timer being
one involving a coil. There are two .outputs for the input I n 1 . When there is an input to
I n 1 , there is an output from Out 1 and the timer s t a rt s . When the predetermined time
has elapsed, the timer contacts o p e n . This switches off the output. T h u s the output
In 1 Timer In 1
· 1 li m e
r Timer
I
Timer Out 1
-------. - - - - Closed
contacts I
· . Open
Time
· Out 1
(a)
r Time
!
Internal
In 1 Timer relay.
r
!
TON
r Internal
I
\ '
Out 1
relay
r
I
(b)
r timer which produces a delay in the time taken for a s i g n a l to reach the output.
predetermined t i m e , . then · switching off. Figure 8.44 shows another pulse timer that
switches an output on for a predetermined time after the i n p u t ceases. T h i s uses a timer
and two internal relays. When there is an input to I n 1 , the internal relay I R 1, is
r
l .
energised. The timer does not s t a rt at this point because the normally closed I n 1
contacts are o p e n . The closing of the I R 1 contacts means that the internal relay I R 2 is
energised. There i s , however, no output from Out 1 at this stage because, for the
internal relays r e rri a i n energised and the timer is s t a rt e d . After the set time, the timer
contacts, which are normally closed, open and switch off I R 2. This in turn switches off
I R 1 . It also, in the b o tt o m r u n g , switches off the output Out 1 . Thus the output is off for
the duration of the input, then being switched on for a predetermined length of time.
J'.
\
r
181 I Page Indian School .of Petroleum & Energy
r
\
J
In 1 In 1 Timer J
In 1
l
Time .....J
I R 2 IR 1
IR 1
·\ .. Time J
IR.1 I R 2
Timer
I R 2
�: IR Out 1
'Timer
Time
J
In 1 2
c J
Kj Out 1
lime
· J
Time
Counters
Counters are provided as built-in elements in PLCs and allow the number of
perhaps the n u m b e r of people passing through a door. A counter is set to some preset
n u m b e r value a n d , when this value of i n p u t p u l s e s has been received, it will operate its
opened. J
There are two types of counter, though PLCs may not i n c l u d e both types. These are
down-counters and up-counters. Down-counters count down from the preset value to _J
zero, i . e . events are subtracted from the set value. When the counter reaches the zero
value, its contacts change state. Most PLC$ offer down c o u nt ing . Up-counters count
from zero up to the preset v a l u e , i.e. events are added u nt il the n u m b e r reaches the J
preset v a l u e . When the counter reaches the set v a l u e , its contacts change state.
Different PLC manufacturers deal with counters in slightly different ways. Some c o u n t .
down (CTD), or up (CTU), and reset and treat the counter as though it is a relay coil and
so a rung output. In this way, counters can be considered to consist of two basic
elements: one relay coil. to count input pulses and one to reset the counter, the
J
associated contacts of the counter b e i ng used in other r u n g s . Figure 8.45(a) illustrates
an intermediate block in a rung from which sig na ls emanate when the count is attained. J
Figure 8.4 5(b) illustrates this. Siemens is an example of this type of manufacturer.
�J
l
�.....)
r�
I
,, Counter Counter Counter Counter
-fs) -fsr
Counter Counter
-Jcro LO PV
�TU
� J
Cou�/
r Cor:/
���� . .
Activated when Output when zero reached Output when set count
zero reached after counting set count reached after after counting down reached after counting
r-
1 . QI) down from set value counting up from zero (b) from set value up from zero
Figure 8.45 Forms of representation of counters. In (a) RST is reset. In (b), the !EC 1 1 3 1 - 3 representation, CD is
count down input, LD is for loading the input, PV is for the preset value, CV the current count value, CU is count
Programming
Figure Figure 8.46 shows· a basic counting circuit. When there is a pulse input to In 1,
the counter is reset. When there is an input to I n 2, the counter starts counting. If the
counter is set for, say, 1 O p u l s e s , then when 1 O p u l s e inputs have been received at I n 2,
the counter's contacts Will close a n d there will be an output from Out 1 . If at any time
, during the counting there is an input to I n 1 , the counter will be reset and start all over
/
In 1 Counter
Out 1
r �s) n
In 2
( CTU · ( '\_J
Time
In 2 CoLB1ter cu Q \. Fl
In 2
. In 1
Kcu
n n a n n nn n n n R
CV
Time
Counter Out 1
Out 1
PV
\
r K' Time
r
t '
r___,
r
(
l
..._) .
X400 co
10.0 2
LD X400 S_CU·
RESET a .1 CV_BCD iscounl
( value in BCD.
RST C460 cu Q
C46(,__--.( �'
with count up, this J
(a)
I
.:»
J
1 : 0 1 21 0 1
1:012101
CTU
D D O O O D D D D D c s:���eo���afler
C5:1
\._c1:;
CTU = count up
CU= output for use with count up counters DN = output which gives an output
d)
( Pres et is the reset
p court num b er preset v a l ue .
Figure 8.47 (a) Mitsubishi program, (b) Siemens program, (c) Toshiba program, (b) Allen-Bradley programs
l
___J
Figure 8.47(a) shows how the above program, and its program instruction list, would
appear with a Mitsubishi PLC. The reset and counting elements are combined in a
J
s i n g l e box s p a n n i n g the two rungs. You can consider the rectangle to be e n c l o s i n g the
two counter ( ) outputs in Figure 8 . 4 6 . The count value is set by a K program instruction.
Figure 8 . 4 7 ( b ) shows the same program with a Siemens PLC. With this ladder program, J
the counter is considered to be a delay element in the output l i n e (as in Figure 8 . 4 5 ( b ) ) ;
Counter a p p l i c a t i o n
As an illustration of the use that can be made of a counter, consider the problem of
items passing along a conveyor belt, the passage of an item past a particular point·
being registered by a l i g h t beam to a photoelectric cell b e ing interrupted, arid after a set
n u m b e r there is to be a s i g n a l sent informing that the set count has been reached and
the conveyor stopped. Figure 8.48(a) shows the basic elements of a Siemens program
that could be u s e d . A reset s i g n a l causes the counter to reset and start counting a g a i n . J
The set signal is used to make the counter active: Figure 8 .48 ( b ) shows the basic
elements of the comparable Allen-Bradley program. When the count reaches the preset
J
r
I
\
'
[
Counter
Output when
Input pulse Counter
finished
S_CD
�p,lses CTU
cu.)
CD Q
C5:1
r
\
Preset
counter
o0
s CV
- C5:1 ON 0 : 0 1 3 /0 1
r CV_BC ( _)
I Quantity
PV I
Reset
C5:1
1 : 0 1 2 1 0 :z
r:
�
I
�E)
Output C o nv e yo r
0. 0 1 3 / 0 1 C o nv e y o r
(a)
1/1
c )- (b)
Up a n d Down C o u n t i n g -
It is possible to program up- and down-counters together. Consider the task of counting
products as they enter a conveyor line and as they leave it, or perhaps cars as they
enter a multi-storage parking lot and as they leave it. An output is to be triggered if the
n u m b e r of items/cars entering is some number greater than the number leaving, i.e. the
ri u m b e r _in the parking lot has reached a. 'saturation' value. The output might be to
illuminate a 'No empty spaces' sign. Suppose we-use the up-counter for items entering
r
i_ .
and the count down for items leaving. Figure 8.49(a) shows the basic form a ladder
program for such an application can take. When an item enters it gives a pulse on input
In 1 . This increases the count . by one. Thus each · item entering increases the
r accumulated count by 1 . When an item leaves it gives an input to In 2. This reduces the
number by 1 . Thus each item leaving reduces the accumulated count by 1 . When the
accumulated value reaches the preset value, the output Out 1 is switched on. Figure
In 1 Up-counter
�cu
r t-C \
1
:012TI110·
c- � . u I ; J
In 2 D o wn- c o u n t e r
r t-C \ --{o0
t 1 : 0 1 2 / 1 1
In 3 Reset
t-e · \ H�co·
.-.
I
l . Counter Out 1
. . LJ-(o�)
K) C5:0 ON 0 : 0 1 3 / 1 0
r
t
I C _)
(a)
1 : 0 1 3 / 1 0
I �ES
(b)
Figure 8.49 (a) Using up- and down-counters, (b) Allen-Bradley program
r
'
Up-down counters are available as single entities. Figure 8.50 shows the IEC 1 1 3 1 - 3
standard symbol. The counter has two inputs CU and CD and counts up the number of
r
\ .
pulses detected at the input CU and counts down the number of pulses detected at
· input CD. If the counter input reaches zero, the QD output is set on and the counting
r
l
�J
down stops. If the count reaches the maximum value PV, the QU output is set on and __ J
the counting up stops. CV is the count value. LO can be used to preset the counter
output CV with the value PV. The reset R clears the counter i n p u t to zero. ·
1
CTUD ,._]
CU. QU
CD QD
J
R
LD
\
.......)
PV CV
J
Figure 8.51 shows how the above. system might appear for a Siemens PLC and the
associated program instruction list. CU is the count up i n p u t and CD the count down. R
is the reset. The set accumulator value is loaded via F O . O , this being an internal relay. J
co 02.0
1 0 . 0
cu OU
CD
is 1 . As long as i
t is 1
J
inputs to CU and CD have
PV
1 0 . 2
no effect.
J
The count is reset to zero
R
A typical timer can count up to 1 6 binary bits of data, this corresponding to 32 767 base
J
time u n i t s . T h u s , if we have a time base of 1 s then the maximum time that can be dealt
with by a timer is just over 546 minutes or 9 . 1 hours. If the time base is to be 0 . 1 s then
program. If the timer has a time base of 1 s and a preset value of 3600, then it can
second increments. When the time reaches the preset value of 1 h o u r , the ON bit is set
to 1 a n d the counter increments by 1 . The ON bit setting to 1 also reset the timer and J
the t i m e r starts to time a g a i n . When it next reaches its preset time of 1 h o u r , the ON bit
is a g a i n set to 1 a n d the counter increments by 1 . With the counter set to a preset value
_}
of 24, the counter ON bit is set to 1 when the count reaches 24 and the output 0 : 0 1 3 / 0 1
is turned o n . We thus have a timer which is able to count the seconds for the duration of
a day and would be able to switch on some device after 24· hours.
J
J
1 8 6 1 Page Indian School of Petroleum & Energy
J
r,
l
r
r- TimerT4.0
1 : 0 1 2 /0 1 T4:0 ON
TON
r
Time b ase 1 . 0
(
Preset 3 6 0 0
Accurn O
r T4:0
Ccunter C fi . Il
I
ON
CTU
�c�
r �--
Preset24 �
(
AccumO � ,
�-�-\0�
r- C5.0
ON1-l----------o--1,(3101
1-
r
.
r�
r
r l
r·
(
I:
r
\
,...,
I
r·
r-
i .
r
I
r
\
r:
r
r-
I
l
unit 9 PLC Start u p and Maintenance
J
PLC Start-Up
and Maintenance
J
CHAPTER The design of programmable controllers includes a number of rugged .
HIGHLIGHTS features that allow PLCs to be installed in almost any industrial environ
l
ment. Although programmable controllers are tough machines; a little fore __J
sight during their installation will ensure proper system operation. In this
you finish this unit, you will understand the fundamentals of PLC start-up J
and operation.
9-1 PLC S Y S T E M L A Y O U T
mable controller equipment, the system layout also encompasses the other
. components that form the total system. These components include isolation
J
PLCs are designed to work on a factory floor; thus, they can withstand harsh
possible will minimize wire runs and simplify start-up and maintenance.
_J
_J
r
(
r
PLC Start-Up I u
and Maintenance . 9NIT
r·
r
l.
r i
!
I
s
g!
I
I
j�urtesyof
�Siemens,
,--.
• Alpharetta. GA,
I and Phoenix
t
Contact,·
Harrisburg, PA·
r
r
(
Figure 9-1. Installation of a PLC-based system using modular 1/0 terminal blocks.
r-
1
placement and wiring should take into consideration the effects of heat,
. typical enclosure layout, which can be used for reference during the following
r:
f
layout guideline discussion.
,.
,-
'
(
I
_)
J
NEMA Panel Enclosures
l
_J
Type 1 (Surface mount)
For indoor use to protect against contact with the enclosed equipment in
is desired
J
Type3 __J
For outdoor use to protect against windblown dust, rain, sleet, and external
ice formation
Type3R
J
For outdoor use to protect against falling rain, 'sleet, and external ice
· formation ·
Used for the same types of applications as Type 3R, 7, and 9 enclosures
Type4
For indoor or outdoor use to protect against windblown dust and rain,
J
splashing water, and hose-directed water
Type6P
J
For indoor and outdoor use to protect against the entry of water during
J
Type 7 (Hazardous gas locations bolted enclosure)
prohibit the entry of dust as well as prevent the ignition of dust by enclosed
heat-generating devices
l
._)
Type 12
For indoor use to protect against dust, falling dirt, and dripping noncorrosive
liquids
Type 13
For indoor use to protect against dust, spraying of water, oil, and J
noncorrosive coolants
1
._)
,J
J
r
J
t
PLC Start-Up
and Maintenance
r
\ .
r
( , .
CT
Po 'r>.
Wi "l..J 40Amp
r
Disconnect
(
r
I
Auxiliary
PowerSu ly
. 110 Rack·
, (AC Outputs
2KVA
Isolation
DC irin Transformer
,.....__
Figure 9-2.
Enclosure
layout.
r
·,;
r
Auxiliary
! PowerSuj oly
' Out ut
W i n g
r
r,
PLC
r PowerSup ly
Inp t
r W i n g ·
i.
.: 0
Terminal Block (AC Inputs)
r
r+
I
(
I
_)
PLC Start-Up
and Maintenance
____;
,_..)
The enclosure should be located so that the doors can fully open for
�J
The enclosure depth should provide adequate clearance between the
interior lighting, and a gasketed, clear acrylic viewing window, for .....J
____;
Environmental. The effects of temperature, humidity, electrical noise, and
vibration are important when designing the system layout. These factors
l
influence the actual placement of the controller, the inside layout of the
____;
enclosure, and the need for other special equipment. The following consider
J
The temperature inside the enclosure must not exceed the maximum
._)
be installed to help dissipate the heat.
controlled heater.
starters.
.:»
.....J
____)
J
r
I
r
(
PLC Start-Up
· and Maintenance
'
l
r Courtes)' of Allen
Bradley, Highland
Heights, OH
r
i__
r
l
ments, the following considerations and precautions apply when placing any
.r
\ ,
r
The power supply (main or auxiliary) has a higher heat dissipation
installed at the top of the enclosure above all other equipment, with
[ · adequate spacing (at least ten inches) between the power supply and
the top of the enclosure. The power supply may also be placed
r
• · The CPU should be located at a comfortable working level (e.g., at
power supply. If the CPU and power supply are contained in a single
PLC unit, then the PLC unit should be-placed toward the top of the
sufficient space. · .
Local I/0 racks (in the same panel enclosure as the CPU) can be
adjacentto the CPU, but not directly above the CPU or power supply.
r·
r:
r
(
I
J
PLC Start-Up I u
and Maintenance ' _ 9NIT
J
Remote I/0 racks and their auxiliary power supplies are generally
._)
mize the effects of noise and heat generated by these devices. The following
list outlines some common practices for locating other equipment inside the
enclosure:
located near the top of the enclosure and beside the power supply. This
placement assumes that the incoming power eriters at the top of the
place a six-inch barrier between the magnetic area and the controller
(generally power supply heat sinks). Wheri using fans, outside air
1
should not be brought inside the enclosure unless a fabric or other
�J
reliable filter is used. Filtration prevents conductive particles and
J
Grouping Common 1/0 Modules.The grouping of l/O'modules allows
signal and power lines to be routed properly through the ducts, thus minimiz
J
I/0 modules should be segregated into groups, such as AC input
possible. · · ·
I
_ _J
r-'·
PLC Start-Up I u
and Maintenance . 9NIT
r
separated as much as possible within the rack. Asuitable partitioning
r
I
and, if space permits, allowing an unused slot between the two groups:
Duct and Wiring Layout. The duct and wiring layout defines the physical
r wiring layout depends on the placement of I/0 modules within each I/0 rack.
(
The placement of these modules pccurs during the design stage, when the I/0
assignment takes place. Prior to defining the duct and.wiring layout and
r
l
All incoming AC power lines should be kept separate from low-level
cables.
r
Low-level DC I/0 lines, such as TTL and analog, should not be
· . • I/0 rack interconnection cables and I/0 power cables can be routed
r: from all other wiring. In this case, the I/0 cables can either be routed
\
with low-level DC lines or routed externally to all ducts and held in
r
Ifl/0 wiring must cross AC power lines, it should do so only at right
angles (see Figure 9-4). This routing practice minimizes the possi
bility of electrical noise pickup. I/0 wiring coming from the conduits
r
AC Power Lines
r
\
r I/0 --+
\
Wiring
.:
r
(
.
Figure 9-4. 1/0 wiring must cross AC power lines at a right angle.
J
PLC Start-Up
and Maintenance
J
Conduit
.-=1
'-J
-,
I/0 Wiring Cable Tie
l
.....)
J
When designing the duct layout, the separation between the I/0
modules and any wire duct should be at least two inches. If terminal
strips are used, then the terminal strip and wire duct, as well as the J
terminal strip and I/0 modules, should be at least two inches apart.
J
Grounding. Proper grounding is an important safety measure in all electrical
National Electric Code (NEC) Article 250, which provides data about the size
and types of conductors, color codes, and connections necessary for safe
· must be permanent (no solder), continuous, and able to safely conduct the
J
ground-fault current in the system with minimal impedance. The following
by electromagnetic induction:
Ground wires should be separated from the power wiring at the point
be scraped away from the area where the chassis makes contact with ' l
_J
the enclosure. In addition to the ground connection made through the
mounting bolt or stud, a one-inch metal braid or size #8 AWG wire (or
_)
nect each chassis to the enclosure at the mounting bolt or stud:
__J
____)
J
PLC Start-Up
and Maintenance
r
\ .
the enclosure. , ·
earth ground. ·
r
(
9-2
.
POWER R E Q U I R E M E N T S A N D SAFETY C I R C U I T R Y
The source for a PLC power supply is generally single-phase and 19 or 240
VAC. If the controller is installed in an enclosure, the two power leads (Ll
hot and L2 common) normally enter the enclosure through the top part of the
r cabinet to minimize interference with other control lines. The power line
i
should be as clean as possible to avoid problems due to line interference in the
Common AC Source. The system power supply and I/0 devices should ·
have a common AC source (see Figure 9-6). This minimizes line interfer
r
I
ence and prevents faulty input signals stemming from a stable AC source to
.the power supply and CPU; but an unstable AC source to the I/0 devices. By
keeping both the power supply and the I/0 devices on the same power source,
the user can take full advantage of the power supply's line monitoring feature.
'
t
=
it_=
= -
-==-
-==-.......,
= c =
-- =
23 =
- -
.......,
= :
-�=
�
·. -
-=�-
-=�-
- =
LI L2
J
(
r
I
Figure 9-6. System power supply and 1/0 devices with a common AC source.
.-
'
J
PLC Start-Up
and Maintenance
. I
J
If line conditions fall below the minimum operating level, the power supply
will detect the abnormal condition and signal the processor, which will stop
duce noise into the AC line. An isolation transformer can also serve as a
The transformer should have a sufficient power rating (in units of volt
.....J
routed outside the controller, so that the user can manually and rapidly shut
down the system in the event of total controller failure. Safety devices, like
emergency pull rope switches and end-of-travel limit switches, should bypass
j
the controller to operate motor starters, solenoids, and other devices directly.
These emergency circuits should use simple logic with a minimum nurriber
__)
=
it_
- ==--==--==---,
=LJ-
:=
_=
· ,__
. -
�=--
�=-
-�=
--:=
- =
-
J
.....J
L1 L2
__)
Start PLC
,_J
CRI-1
CRI-2
I
Tol/0 To 1/0
....._../
__)
. J
r
(
PLC Start-Up
and Maintenance
l ·.
Emergency Stops. The system should have emergency stop circuits for
these circuits should not be wired to the controller, but instead should be left
operator can easily access. Emergency stop switches are usually wired into
master control relay or safety control relay circuits, which remove power from
Master or Safety Control Relays. Master control relay (MCR) and safety
control relay (SCR) circuits provide an easy way to remove power from
the I/0 system during an emergency situation (see Figure 9-8). These
LI
L2
§
. L3
r
\
r Fuse
\ '
Li L2
Start PLC
System CRl
_J_ Stop PBl StopPB2
r
I.
r
\
Enable
�l-l
Enable
r � R2 - l .
T T
MCRl-2 . MCRl-3
To.Inputs · To Inputs
r
!
T T
MCR2-2 · MCR2-3
To Outputs To Outputs
Figure 9-8. Master start control for a PLC with MCRs enabling input and output power.
r
l
____)
J
PLC Start-Up 1.U
and Maintenance _ 9NIT
J
switch connected to the circuit. De-energizing the control relay coil re
moves power to the input and output devices. The CPU, however, continues
to receive power and operate even though all of its inputs and outputs are
J
disabled.
An MCR circuit may be extended by placing a PLC fault relay (closed during J
normal PLC operation) in series with any other emergency stop condition.
This enhancement will cause the MCR circuit to cut the I/0 power in the
case of a PLC failure (memory error, I/0 communications error, etc.). Figure
J
LI��������--�������������
. L2��������---t����--�������---
L3
��������-+����+---�������---
J
J
Main Disconnect
�-
.,
,
--------- J
Fuse (
LI L2
c
· Enable
J
Emergency Disable PLC Fault
Inputs
Stop Inputs Contact MCRI
_J_
al.O aJ..o J
I
MC£] I
____)
Enable
Disable
Outputs
Outputs MCRI MCR2
_J_
ol.o c.I,o
MCJ J
TMCRI TMCR2 1
,..._)
To Inputs To Outputs
J
Figure 9-9. Circuit that enables/disables 1/0 power through MCRs and PLC fault
contact detection.
J
Emergency Power Disconnect. The power circuit feeding the power
system (refer to Figure 9-9). Sometimes, a capacitor (0.47 oc<I> for 19 VAC,
_)
PLC Start-Up
and Maintenance
0.22 oc<P. for 29 VAC) is placed across the disconnect to protect against an .
outrush condition. Outrush occurs when the power disconnect turns off the
output triacs, causing the energy stored in the inductive loads to seek the
r . nearest path to ground, which is often through the triacs.
r
9-3 N OISE , H EAT , A N D V O L T A G E R EQUJREMENTS
r-- tions. However, in certain applications, the operating envirortment may have
include excessive noise and heat and nuisance line fluctuations. This section
r · unless extremely high energy or high voltage levels are present. However,
_continuously. The first case is the most difficult to isolate and correct.
r:
Noise usually enters a system through input, output, and power supply lines.·
Noise may also be coupled into these lines electrostatically through the
capacitance between them and the noise signal carrier lines. The presence of
. effect. The coupling of magnetic fields can also occur when control Iines are
located close to lines carrying large currents. Devices that are potential noise
when operated by hard contacts, such as push buttons and selector switches.
,-- Analog I/0 and transmitters are very susceptible to noise from electrome-
)
(
. chanical sources, causing jumps in counts during the reading of analog data.
r noise immunity, the designer must still take special precautions to minimize
noise, especially when the anticipated noise signal has characteristics similar
to the desired control input signals. To increase the operating noise margin,
r
!
together and routed separately from low-level signal leads. Sometimes, if the
noise level situation is critical, all three-phase motor leads must be suppressed
r
z
,--
I
1
.......)
_)
PLC Start-Up UNIT
and Maintenance 9
J
L1 L2 L3
J
R
c
--��"'+-'����.....
'
I
i--��....,_,�,_,--,.._�-i-��--i J
__)
._..)
LI
lj
Controller
L2.
J
(a) Differential mode filter diagram
J
LI
J
· Controller
Ground
L2
,__/
l
-.--J
J
Courtesy of
Wallow Electric
J
Note I : Keep line filters 12 inches or less from the controller. Minimize the line
Note 2: To prevent ground loops, do not tie the common mode line metal case
filters with other metal that is at ground potential. Doing so will reduce
J
the filters' effectiveness.
J
Figure 9-11. Power noise reduction using one of three line-filtering configurations.
._..)
�
r
PLC Start-Up
and Maintenance
that a vertical column of air, drawn in an upward direction over the surface of
the components, cools the PLC. To keep the temperature within limits, the ·
cooling air at the base of the system must not exceed 60°C.
The PLC components must be properly spaced when they are installed to
which are based on typical conditions for most PLC applications. Typical
-turer-provided specifications
Situations in which most of the I/0 are ON at the same time and the air
temperature is higher than 40°C are not typical. In these situations, spacing
heat and the I/0 system is ON continuously, the enclosure should contain a
fan that will reduce hot spots near the PLC system by providing good air
circulation. The air being brought in by the fan should first pass through a
unit or cooling control system that utilizes compressed air (see Figures 9-12
r and 9:-13). Leaving enclosure doors open to cool off the system is not a good
Courtesy of ITW
Vortec,
Cincinnati, OH
r=
l
r
(
PLC Start-Up
J
and Maintenance
.
J
Basic Cooler
1
Solenoid Valve
.....)
(750 & 790 only)
j
Filter ·
Compressed
.:»
·courtesy of ITW
Vortec,
Cincinnati, OH
J
Adjustable
Thermostat
There are methods available to calculate the temperature rise and heat ._)
inside an enclosure and the outside air temperature (ambient air temperature). J
Hoffman Engineering Co., a manufacturer of control system enclosures, has
developed temperature rise graphs for use with their panels and enclosures.
. I
__)
EXAMPLE 9-1
J
The NEMA 1 2 enclosure shown in Figure 9 - 1 5 contains a program
(a) the temperature rise for this enclosure and (b) the required airflow. J
__J
r
'·
r
1.
PLC Start-Up I u
and Maintenance _ 9NJT
.
r
\
140°F
130°F
19°F
Temi:ierature
tem)iOOORe
so-r
70°F
,------,
60°F
J
'
50°F
Courtesy of
40°F
Hoffman
Engineering Co.,
Anoka, MN
30°F
r:
9op
r l0°F
\
5 1015925 30
•
r Input Power (watts per sq. ft.)
r+-
i
\
Height
72 inches
r\
r=:
1 I . Width
}
�8inches
r
()
J
J
PLC Start-Up UNIT
and Maintenance 9
J
SOLUTION
(a) To calculate the temperature rise, first calculate the total area
(square feet) of the exposed sides of the enclosure. Assuming that the
back and bottom sides of the enclosure are not exposed, the area of
__)
= (6 ft)(4 ft).
;::; 24 ft2
J
= (6 ft)(3 ft)
= 1 8 fu
1
__J
Top a r e a = (Depth)(Width)
j
= 1 2 ft 2
_J
Therefore, the total area for heat dissipation, taking into account that
= 7 2 fh
foot of 1 4 . 0 4 watts:
J
J
1 0 1 1 watts
Power dissipation= . fu
72
= 1 4 . 0 4 watts/ft,
J
From the temperature rise curve for a NEMA 1 2 enclosure, we can find
l
(b) The required airflow inside the enclosure is based on the maximum
J
PLC Start-Up 1· U9NIT
and Maintenance _
r
l
(140°F), the permissible temperature rise (.1T) in °<1> of the cooling air
is:
= 1 7 9 . 6 ° F ""'." 1 4 0 ° F
= 39.6°F
.:
I
Q air= ( 3 1 6 0 ) ( KW of e n c l o s u r e ) .
T
r.
where the term 3160 is a constant, KW is the kilowatt heat of the
enclosure (in this case 1.011 KW) and . T is the permissible tempera
r·
(
. = (3160)(1.011)
Q
air . 39.6
= 80.68 ft 3 / m i n
system can sustain line fluctuations and still allow the system to function
within its operating margin. As long as the incoming voltage is adequate, the
power supply provides all the logic voltages necessary to support the
processor, memory, and 1/0. However, if the voltage drops below the
minimum acceptable level, the power supply will alert the processor, which
In applications that are subject to "soft" AC lines and unusual line variations,
the first step towards a solution is to correct any possible feeder problem
r
(
in the distribution system. If this correction does not solve the problem, then
a constant voltage transformer can be used to prevent the system from -c,
shutting down too often (see Figure 9-16). The constant voltage transformer
stabilizes the input voltage to the power supply and input field devices by
in the secondary. When using a constant voltage transformer, the user should
r
( check that its power rating is sufficient to supply the input devices and the
power supply. Also, the user should connect the output devices in front of the
constant voltage transformer, rather than behind it, so that the transforiner is
r=
r
\
J
J
PLC Start-Up
and Maintenance
J.
not providing power to the outputs. This arrangement will lessen the load
----------ro AC Source J
Constant Voltage
Transformer
i
-1
Secondary
CPU J
Power· J
Supply
J
,
1
AC Input
o-------iie7il· Module
J
AC Output
/
Module
l
_.)
/ '
J
J
9-4 1/0 INSTALLATION, WIRING, AND PRECAUTIONS
J
Input/output installation is perhaps the biggest and most critical job when
plify installation, the user should follow predefined guidelines. All of the J
people involved in installing the controller should receive these I/0 system
J
PLC Start-Up
and Maintenance
installation guidelines, which should have been prepared during the design
r placement- and connections will ensure that the system is organized properly.
orderly installation.
verifying the type of module ( 1 1 5 VAC output, 11 5 VDC input, etc.) and the
terminal in the module is then wired to the field devices that have been
assigned to that termination address. The user should remove power to the
Wire Size. Each I/0 terminal can accept one or more conductors of a
particular wire size. The user should check that the wire is the correct gauge
and that it is the proper size to handle the maximum possible current.
Wire and Terminal Labeling . Each field wire and its termination point
r. with shrink-tubing or tape, while tape or stick-on labels should identify each
terminal block. Color coding of similar signal characteristics (e.g., AC: red,
DC: blue, common: white, etc.) can be used in addition to wire labeling.
numbers, and the input or output address assignment. Good wire and terminal
r
Wire Bundling. Wire b u n d l i n g is a technique commonly usedto simplify
r
\
the connections to each I/0 module. In this method, the wires that will be
connected to a single module are bundled, generally using a tie wrap, and then
routed through the duct with other bundles of wire with the same signal
characteristics. Input, power, and output bundles carrying the same type of
r
r
Once the I/0 modules 'are in place and their wires have been bundled, the
r wiring to the modules can begin. The following are recommended procedures
<.
r •
:
I
I
......J
PLC Start-Up
J
and Maintenance
J
Remove and lock out' input power from the controller and I/0 before
J
Verify that all modules are in the correct slots. Check module type
..__)
Loosen all terminal screws on each I/0 module.
__)
through the duct to the module location. Identify each of the wires in
the bundle and check that they correspond to that particular module.
J
Starting with the first module, locate the wire in the bundle that ·
vertical height equal to the termination point, bend the wire at a right
J
angle towards the terminal.
Cut the wire to a length that extends 1/4 inch past the edge of the J
terminal screw. Strip approximately 3/8 inch of insulation from the
end of the wire. Insert the uninsulated end of the wire under the
If two or more modules share the· same power source, jumper the
electrical paths are created in a ground line or when oneor more paths
J
are created in a shield (Section 9- 7 explains how to identify a ground
loop). Leave the other end cut back and unconnected, unless other
wise specified.
J
1
• . Repeat the wiring procedure for each wire in the bundle until the
�
module wiring is complete.
After all of the wires are terminated, check for good terminations by \
__)
_J
\
.__J
J
PLC Start-Up
and Maintenance
r
Connecting Leaky Inputs. Some field devices have a small leakage current
even when they are in the OFF state. Both triac and transistor outputs exhibit
r
\
this leakage characteristic, although transistor leakage current is much lower.
Most of the time, the leaky input will only cause the module's input indicator
to flicker; but sometimes, the leakage can falsely trigger an input circuit,
r resulting in misoperation. A typical device that exhibits this leakage situation
is a proximity switch. This type of leakage may also occur when an output
resistor across the input. A bleeding resistor introduces resistance into the
circuit, causing the voltage to drop on the line between the leaky field device
LI 12
r
I
Device's
Output Triac
(a)
r LI 12
r
'
r:
Figure 9-17. (a) A connection for a leaky input device and (b) the connection of an
r
i
r·
(
r=
l
J
PLC Start-Up
and Maintenance
J
and the input circuit. This causes a shunt on the input's terminals. Conse
quently, the leakage current is routed through the bleeding resistor, minimiz
ing the amount of current to the input module (or to the output device). This J
prevents the input or output from turning ON when it should be OFF.
These spikes, which can reach several thousands of volts if not suppressed,
can occur either across the leads that feed power to the device or between both
of the device. This high voltage causes erratic operation and, in some cases,
J
may damage the output module. To avoid this situation, a snubber circuit,
should be installed to limit the voltage spike, as well as control the rate of
J
current change through the inductor (see Figure 9 - 1 8 ) .
+-------19VAC
J
c R
J
-------19 VAC
J
R
J
(b) Large load suppression (AC)
J
�-,------19VDC
D
l
._J
J
(c) DC load suppression
J
Figure 9-18. (a) Small, (b) large, and (c) DC load suppression techniques.
J
r
I
PLC Start-Up
and Mainteriance
.:
Most output modules are designed to drive inductive loads; so they typically
tions, the triac may be unable to turn OFF as current passes through zero
r
•. An RC snubber circuit placed across the device can provide additional
addition to the RC network. A free-wheeling diode placed across the load can
load suppression.
LI
AC Suppressor
Diode
Suppressor
r
(
r
1.
(a) (b)
r
I, LI L2
AC Suppressor
r
(
(c)
r
'· Figure 9-19. Suppression of (a) a load in parallel with a PLC input module, (b) a DC load,
and (c) loads with switches in parallel and series with a PLC output module.
r
\
'
i
J
l
.__)
.
PLC Start-Up
and Maintenance
J
Fusing Outputs. Solid-state outputs normally have fusing on the module, to
protect the triac or transistor from moderate overloads. If the output does not I
have internal fuses, then fuses should be installed externally (normally at the __J
terminal block) during the initial installation. When adding fuses to an output
circuit, the user should adhere to the manufacturer's specifications for the
particular module. Only a properly rated fuse will ensure that the fuse will
switching device.
Shielding. Control lines, such as TTL, analog, thermocouple, and other low
level signals, are normally routed in a separate wireway, to reduce the effects
J
of signal coupling. For further protection, shielded cable should be used for
the control lines, to protect the low-level signals from electrostatic and
magnetic coupling with both lines carrying 60 Hz power and other lines
J
carrying rapidly changing currents. The twisted, shielded cable should have
at least a one-inch lay, or approximately twelve twists per foot, and should be
and shield continuity must be maintained for the entire length of the cable. The
shielded cable should also be routed away from high noise areas, as well as
J
insulated over its entire length.
PC
Interface J
to ground at only J
one point ----• To Control
Ground
J
Figure 9-9. Shielded cable ground connection.
J
9-5 P L C S TART-U P AND C HECKING P ROCEDURES
J
Prior to applying .power to the system, the user should make several final
spections will undoubtedly require extra time. However, this invested time .__)
will almost always reduce total start-up time, especially for large systems
up procedures: J
Visually inspect the system to ensure that all PLC hardware compo
J
nents are present. Verify correct model numbers for each component.
J
r
i
PLC Start-Up I u
and Maintenance . 9NIT
I
r
l
Inspect all CPU components and I/0 modules to ensure that they are
r Check that the incoming power is correctly wired to the power supply
(and transformer) and that the system power is properly routed and
Verify that the I/0 communication cables Iinking the processor to the
Verify that all I/0 wiring connections at the controller end are in
Check that the output wiring connections are in place and properly
Ensure that the system memory has been. cleared of previously stored
r
A static input wiring check should be performed with power applied to the
controller and input devices. This check will verify that each input deviceis
r
(
connected to the correct input terminal and that the input modules or points
are functioning properly. Since this test is performed before other system
tests, it will also verify that the processor and the programming device are in
r good working condition. Proper input wiring can be verified using the
following procedures:
,---.
!
Place the controller in a mode that will inhibit the PLC from any
Apply power to the system power supply and input devices. Verify
indicators are AC OK, DC OK, processor OK, memory OK, and 1/0
communication OK.
status indicator on the input module and/or monitor the same address
will turn ON. If an indicator other than the expected one turns ON
r
( when the input device is activated, the input device may be wired to
J
__J
PLC Start-Up
and Maintenance
J
the wrong input terminal. If no indicator turns ON, then a fault may
exist in either the input device, field wiring, or input module (see
Section 9-4). -
J
Take precautions to avoid injury or damage when activating input ·
devices that are connected in series with loads that are external to
J
the PLC.
A static output wiring check should be performed with power applied to the J
controller and the output devices. A safe practice is to first locally disconnect
all output devices that involve mechanical motion (e.g., motors, solenoids,
. etc.). When performed, the static output wiring check will verify that each J
· output device is connected to the correct terminal address and that the device
J
Perform the static check of the outputs one at a time. If the output is
._J
power to that device only prior to checking. The output operation
J
Assuming that the controller has a forcing function, test each
__J
ling the output. Place the CPU hi either the RUN, single-scan, or
J
a similar mode, depending on the controller. With the controller
J
r
i
PLC Start-Up
and Maintenance
,--.,,
. ,
in the RUN mode, depress the push button to perform the test.
serve the output device and LED indicator, as described in the first
procedure.
r=
program. This check can be performed at any time, but it should be done prior
to loading the program into memory for the dynamic system checkout.
r any modifications that may have occurred during the static wiring checks.
l.
When performed, this final program review will verify that the. final hardcopy
of the program, which will be loaded into memory, is either free of error or
r
/.
Using the 1/0 wiring document printout, verify that every controlled
r
(
Inspect the hardcopy printout for errors that may have occurred while
entering the program. Verify that all program contacts and internal
Verify that all timer, counter, and other preset values are correct.
r The dynamic system checkout is a procedure that verifies the logic of the
assumes that all static checks have been performed, the wiring is correct, the
r
During the dynamic checkout, it is safe to gradually bring the system under
full automatic control. Although small systems may be started all at once, a
Bringing one subsystem at a time on-line allows the total system to start up
communications link with the CPU. The following practices outline proce
r
r
l
J
PLC.Start-Up
J
and Maintenance
. .
J
Load the control program into the PLC memory. ,
the outputs are disabled. Check each rung by observing the status
J
of the output LED indicators or by monitoring the corresponding
during the tests, locally disconnect the outputs that are not being J
tested, to avoid damage or harm. If an MCR or similar instruction
J
Check each rung for correct logic operation, and modify the logic if
necessary. A useful tool for debugging the control logic is the single
scan. This procedure allows the user to observe each rung as every J
scan is executed.
• When the tests indicate that all of the logic properly controls the
J
outputs, remove all of the temporary rungs that may have been used
(MCRs, etc.). Place the controller in the RUN mode, and test the total
__J
good procedures that will aid in the safe, orderly start-up of any program J
mable control system. However, some controllers may have specific start-up
J
. . .
....J
followed to keep the system in good operating condition.
_J
J
PLC Start-Up ,. U9NIT
and Maintenance· .
r
(
a few .basic procedures, which will greatly reduce the failure rate of system
uled with the regular machine or equipment maintenance, so that the equip- .
ment and controllerare down for a minimum amount of time. However, the
r+:
( .
. schedule for PLC preventive maintenance depends on the controller's envi
filter. This practice will ensure that clean air circulation is present
the central processing unit and 1/0 system are not designed to be
all plugs, sockets, terminal strips, and modules have good connec
tions. Also, check that the module is securely installed. Perform this
type of check more often when the PLC system is located in an area
connections.
Make sure that unnecessary items are kept away from the equipment
enclosures can obstruct the airflow and create hot spots, which can
. vibration, install a vibration detector that can interface with the PLC
connections.
J
.
J
PLC Start-Up
and Maintenance
J
It is a good idea to keep a stock of replacement parts on hand. This practice
situation, having the right spare in stock can mean a shutdown of only J
minutes, instead of hours or days: As a rule of thumb, the amount of a spare
part stocked should be 10% of the number of that part used. If a part is used
infrequently, then less than 10% of that particular part can be stocked. J
Main CPU board components should have one spare each, regardless of J
how many CPUs are being used. Each power supply, whether main or
complete CPU rack as a standby spare. This extreme case exists when a J
downed system must be brought into operation immediately, leaving no
_J
If a module must be replaced, the user should make sure that the replacement
module being installed is the correct type. Some I/0 systems allow modules J
to be replaced while power is still applied, but others may require that power
be removed. If replacing a module solves the problem, but the failure reoccurs
in a relatively short period, the user should check the inductive loads. The J
inductive loads may be generating voltage and current spikes, in which case,
external suppression may be necessary. If the module's fuse blows again after
it is replaced, the problem may be that the module's output current limit is J
being exceeded or that the output device is shorted.
J
;
,
electrical paths exist in a ground line. For example, in Figure 9-21, the
J
transducers and transmitter are connected to .ground at the chassis (or device
The shield connects to both chassis grounds, thereby creating a path for
J
current to flow from one ground to another since both grounds have different
potentials. The current flowing through the shield could be as high as several
misreading of the analog signal. To avoid this problem, the shield should be \
_J
J
· PLC Start-Up
and Maintenance
connected to ground on only one side of the chassis, preferably the PLC side.
In the example shown in Figure 9-21, the shield should only be connected
r>
to ground at_ the analog input interface.
(
Shielded
r Cabf
r=:
1'
l
Ground LooR Current
between the
two grounds
r Figure 9-21. Ground loop created by shielded cable grounded at both ends.
To check for a ground loop, disconnect the ground wire at the ground
termination and measure the resistance from the wire to the termination point
where it is connected (see Figure 9-22). The ineter should read a large ohm
r value. If a low ohm value occurs across this gap, circuit continuity exists,
Equipment or Device
Equipment or Device
+-- Disconnected
/7;,)t/77
r
(
r
(
r=>
1
J
PLC Start-Up I u
J
and Maintenance _ 9NIT
J
LED status indicators can, provide much information about field devices,
wiring, and 1/0 modules. Most input/output modules have at least a single
For an input module, a lit power LED indicates that the input device is
J
activated and that its signal is present at the module. This indicator alone
l
cannot isolate malfunctions to the module, so some manufacturers provide an
__J
additional diagnostic indicator, a logic indicator. An ON logic LED indicates
that the input signal has been recognized by the logic section of the input
circuit. If the logic and power indicators do not match, then the module is
J
An output module's logic indicator functions similarly to an input module's
logic indicator. When it is ON, the logic LED indicates that the module's logic
J
circuitry has recognized a command from the processor to tum ON. In
indicator shows that power is being applied to the load. Like the power and
J
LED indicators greatly assist the troubleshooting process. With both power
J
If the field device connected to an input module does not seem to tum ON, a
problem may exist somewhere between the Ll connection and the terminal
J
The first step in diagnosing the problem is to place the PLC in standby mode,
so that it is not activating the outputs This allows the field device to be
J
manually activated (e.g., a limit switch can be manually closed). When the
field device is-activated, the module's power status indicator should tum ON,
indicating that power continuity exists. If the indicator is ON, then wiring is
J
not the cause of the problem.
J
r
,
l . PLC Start-Up
and Maintenance
r-'
The nextstep is to evaluate the PLC's reading of the input module. This can
beaccomplished using the PLC's test mode, which reads the inputs and
I"""""'
( executes the program but does not activate the outputs. In this mode, the
PLC's display should either show a 1 in the image table bit corresponding to
r become highlighted when the device provides continuity (see Figure 9-23).
If the PLC is reading the device correctly, then the problem is.not located in
the input module. If it does not read the device correctly, then the module
r>
could be faulty. The logic side of the modulemay not be operating correctly,
I
or its optical isolator may be blown. Moreover, one of the module's interfac
ing channels could be faulty. In this case, the module must be replaced.
'
l
Input PLC Monitor.
r
(
r
LSI Status= 1
i
If the module does not read the field device's signal, then further tests are
(
required. Bad wiring, a faulty field device, a faulty module, or an improper
voltage between the field device and the module could be causing the
problem. First, dose the field device and measure the voltage to the input
l module. The meter should display the voltage of the signal (e.g., 19 volts
AC). If the proper voltage is present, the input module is faulty because it is
not recognizing the signal. If the measured voltage is 10-15% below the
r proper signal voltage, then the problem lies in the source voltage to the field
device. If no voltage is present, then either the wiring or the field device is the
cause of the problem. Check the wiring connection to the module to ensure
To further pinpoint the problem, check that voltage is present at the field
r= device. With the device activated, measure the voltage across the device using
I
a voltmeter. If no voltage is present on the load side of the device (the side that
connects to the module), then the input device is faulty. If there is power,
r then the problem lies in the wiring from the input device to the module. In this
{
case, the wiring must be traced to find the problem.
r=
r=-
,"
i
J
J
PLC Start-Up .I u
and Maintenance _ 9NIT
I
J
PLC output interfaces also contain status indicators that provide useful
At the output module, ensure that the source power for switching the output
J
is at the correct level. In a 1 9 VAC system, this value should be within 10%
of the rated value (i.e., between 108 and 132 volts AC). Also, examine the
_J
output module to see ifit has a blown fuse. If it does have.a blown fuse,
check the fuse's rated value. Furthermore, check the output device's current
If the output module receives the command to turn ON from the processor
yet the module's output status does not turn ON accordingly, then the output J
module is faulty. If the indicator turns ON but the field device does not
energize, check for voltage at the output terminal to ensure that the switching
replaced. If voltage is present, then the problem lies in the wiring or the field
device. At this point, make sure that the field wiring to the module's terminal
j
or to the terminal block has a good connection and that no wires are broken.
After checking the module, check that the field device is working properly. J
Measure the voltage coming to the field device while the output module is
ON, making sure that the return line is well connected to the device. If there
is power yet the device does not respond, then the field device is faulty.
Another method for checking the field device is to test it without using the
J
output module. Remove the output wiring and connect the field device
directly to the power source. If the field device does not respond, then it is
faulty. If the field device responds, then the problem lies in the wiring between J_
- the device and the output module. Check the wiring, looking for broken wires
,J
J
PLCs also provide diagnostic indicators that show the status of the PLC
and the CPU. Such indicators include power OK, memory OK, and communl
. cations OK conditions. First, check that the PLC is receiving enough power
J
from the transformer to supply all the loads. If the PLC is still not working,
I
check for voltage supply drop in the _control circuitor for blown fuses. If the
__J
PLC does not come up even with proper power, then the problem lies in the -
CPU. The diagnostic indicators on the front of the CPU will show a fault in
__J
J
r-
r
I
.: wire b u n d l i n g
rr>
PLC Start-Up
(
and Maintenance
isolate the problem to the module, the field device, or the wiring. If both
'
l
power and logic indicators are available, then module failures become readily
apparent. The first step in solving the problem is to take a voltage measure
ment to determine if the proper voltage level is present at the input or output
terminal. If the voltage is adequate at the terminal and the module is not
has no effect, then field wiring may be the problem. A proper voltage level at
the output terminal while the output device is OFF also indicates an error in
l the field wiring. If an output rung is activated but the LED indicator is OFF,
then the module is faulty. If a malfunction cannot be traced to the I/0 module,
then the module connectors should be inspected for poor contact or misalign
l ment. Finally, check for broken wires under connector terminals and cold
r
(,
'
.:
(, /
r
I
r�
r-
1.
r
r=:
[