SK Idcbookextract Scada PLC
SK Idcbookextract Scada PLC
With offices conveniently located worldwide, IDC Technologies has an enthusiastic team of professional
engineers, technicians and support staff who are committed to providing the highest level of training and
consultancy.
TECHNICAL WORKSHOPS
TRAINING THAT WORKS
We deliver engineering and technology training that will maximize your business goals. In today’s
competitive environment, you require training that will help you and your organization to achieve its goals
and produce a large return on investment. With our ‘training that works’ objective you and your
organization will:
• Get job-related skills that you need to achieve your business goals
• Improve the operation and design of your equipment and plant
• Improve your troubleshooting abilities
• Sharpen your competitive edge
• Boost morale and retain valuable staff
• Save time and money
EXPERT INSTRUCTORS
We search the world for good quality instructors who have three outstanding attributes:
1. Expert knowledge and experience – of the course topic
2. Superb training abilities – to ensure the know-how is transferred effectively and quickly to you in
a practical, hands-on way
3. Listening skills – they listen carefully to the needs of the participants and want to ensure that you
benefit from the experience.
Each and every instructor is evaluated by the delegates and we assess the presentation after every class to
ensure that the instructor stays on track in presenting outstanding courses.
REFERENCE MATERIALS
A fully illustrated workshop book with hundreds of pages of tables, charts, figures and handy hints, plus
considerable reference material is provided FREE of charge to each delegate.
IDC workshops also satisfy criteria for Continuing Professional Development according to the
requirements of the Institution of Electrical Engineers and Institution of Measurement and Control in the
UK, Institution of Engineers in Australia, Institution of Engineers New Zealand, and others.
CERTIFICATE OF ATTENDANCE
Each delegate receives a Certificate of Attendance documenting their experience.
ONSITE WORKSHOPS
All IDC Technologies Training Workshops are available on an on-site basis, presented at the venue of
your choice, saving delegates travel time and expenses, thus providing your company with even greater
savings.
OFFICE LOCATIONS
AUSTRALIA • INDIA • IRELAND • MALAYSIA • NEW ZEALAND • SINGAPORE •
SOUTH AFRICA • UNITED KINGDOM • UNITED STATES
[email protected] www.idc-online.com
On-Site Training
All IDC Technologies Training Workshops are available on an on-site basis, presented at the venue of
your choice, saving delegates travel time and expenses, thus providing your company with even
greater savings.
For more information or a FREE detailed proposal contact Kevin Baker by e-mailing:
[email protected]
IDC TECHNOLOGIES
Worldwide Offices
AUSTRALIA
Telephone: 1300 138 522 • Facsimile: 1300 138 533
INDIA
Telephone : +91 44 3061 8525
131 G.N. Chetty Road, Chennai 600017
IRELAND
Telephone : +353 1 473 3190 • Facsimile: +353 1 473 3191
Caoran, Baile na hAbhann, Co. Galway
MALAYSIA
Telephone: +60 3 5192 3800 • Facsimile: +60 3 5192 3801
26 Jalan Kota Raja E27/E, Hicom Town Center
Seksyen 27, 40400 Shah Alam, Selangor
NEW ZEALAND
Telephone: +64 9 263 4759 • Facsimile: +64 9 262 2304
Parkview Towers, 28 Davies Avenue, Manukau City
PO Box 76-142, Manukau City
SINGAPORE
Telephone: +65 6224 6298 • Facsimile: + 65 6224 7922
100 Eu Tong Sen Street, #04-11 Pearl’s Centre, Singapore 059812
SOUTH AFRICA
Telephone: +27 87 751 4294 or +27 79 629 5706 • Facsimile: +27 86 692 4368
68 Pretorius Street, President Park, Midrand
PO Box 389, Halfway House 1685
UNITED KINGDOM
Telephone: +44 20 8335 4014 • Facsimile: +44 20 8335 4120
Suite 18, Fitzroy House, Lynwood Drive, Worcester Park, Surrey KT4 7AT
UNITED STATES
Toll Free Telephone: 1800 324 4244 • Toll Free Facsimile: 1800 434 4045
10685-B Hazelhurst Dr. # 6175, Houston, TX 77043, USA
Website: www.idc-online.com
Email: [email protected]
Presents
Revision 4
Website: www.idc-online.com
E-mail: [email protected]
IDC Technologies Pty Ltd
PO Box 1093, West Perth, Western Australia 6872
Offices in Australia, New Zealand, Singapore, United Kingdom, Ireland, Malaysia, Poland, United States of
America, Canada, South Africa and India
ISBN: 978-1-921716-85-0
All rights to this publication, associated software and workshop are reserved. No part of this publication
may be reproduced, stored in a retrieval system or transmitted in any form or by any means electronic,
mechanical, photocopying, recording or otherwise without the prior written permission of the publisher. All
enquiries should be made to the publisher at the address above.
Disclaimer
Whilst all reasonable care has been taken to ensure that the descriptions, opinions, programs, listings,
software and diagrams are accurate and workable, IDC Technologies do not accept any legal responsibility
or liability to any person, organization or other entity for any direct loss, consequential loss or damage,
however caused, that may be suffered as a result of the use of this publication or the associated workshop
and software.
In case of any uncertainty, we recommend that you contact IDC Technologies for clarification or assistance.
Trademarks
All logos and trademarks belong to, and are copyrighted to, their companies respectively.
Acknowledgements
IDC Technologies expresses its sincere thanks to all those engineers and technicians on our training
workshops who freely made available their expertise in preparing this manual.
Contents
1 Introduction to PLC and SCADA Systems 1
1.1 Introduction 1
1.2 PLC block diagram of components 2
1.3 PLC power supply 4
1.4 PLC processor module and memory 5
1.5 PLC input/output modules 13
1.6 SCADA hardware 18
1.7 Good installation practice 19
3 SCADA Software 89
3.1 SCADA communication architectures 89
3.2 SCADA software blocks 92
3.3 HUMAN–machine interface 94
3.4 SCADA alarm management 95
1.1 Introduction
Figure 1.1
PLC block diagram
Figure 1.1 shows, in block form, the four major units of a PLC system and their interconnections,
which are briefly described here:
1. Central processing unit (CPU)
This is called the “Brain” of the PLC system, and has the following three sub- units:
(a) A microprocessor unit that carries out the mathematical and logical operations
of the system.
(b) A memory unit in which the system software and the user program data and
information are stored and retrieved.
(c) Power supply, which is an electrical supply that converts the alternate current
(AC) line voltage to various direct current (DC) operational values. In this
process, the power supply is filtered and regulated to a DC voltage to ensure
proper operation of the PLC system.
2. PLC programmer/monitor
A programming device is used to communicate with the circuits of the PLC. This
may be a hand-held terminal, industrial terminal, or a personal computer.
3. I/O modules
(a) The “I” is the input module, which has terminals into which outside process
electrical signals, generated by sensors or transducers, are entered. These
sensors or transducers can be thousands of meters away from the CPU.
(b) The “O” is the output module, which has terminals into which output signals are
sent to activate relays, solenoids, various solid-state switching devices, motors,
and displays. These output signaling elements may also be thousands of meters
away from the CPU.
Sometimes, an electronic system for connecting I/O modules to remote locations can
be added as it is necessary.
4. Racks and chassis
There is a rack on which the PLC parts are mounted and the enclosures on which the
CPU, the PM, and the I/O modules are mounted.
Introduction to PLC and SCADA Systems 3
5. Optional devices
(a) Printer – it is a device using which the program in the CPU may be printed. In
addition, operating information may be printed upon command.
(b) Program recorder/player – PLCs use fluffy disks, with hard disks for secondary
storage. This recorder provides the backup and a way to download the program
written-off from the PLC process system.
(c) Master computers – they are often used to coordinate many individual,
interconnected PLCs. These interconnected electrical buses are sometimes
referred to as “Data Highways.”
Figure 1.2
Typical PLC system components
4 Practical Troubleshooting and Problem Solving of PLCs and SCADA Systems
This is the actual system. How does it look like? Does it seem difficult to understand it? Let us
compare Figure 1.2, component by component, with Figure 1.3, which is its simplified version.
Figure 1.3
A typical PLC configuration
Figure 1.4
Power supply
Introduction to PLC and SCADA Systems 5
As shown in Figure 1.4, there are five parts, including a switching system for the battery backup
system:
1. Line conditioner – This is either included in the PLC CPU or separate external unit
according to CPU current rating. This AC conditioner purifies the AC waveform,
because sometimes due to external factors, the sine wave form may be distorted. The
external factors are considered to be the sine wave distortion during switching or
generation and by the electrical back surge from other electrical equipment in the
plant.
2. Converter/rectifier – It changes the bidirectional AC to a pulsating, unidirectional
DC waveform. Internally, a transformer steps down the voltage to an appropriate
level. Then the bridge rectifier produces pulsating DC outputs. One output is +5 V
and the other is −5 V. This dual voltage is required to operate many of the IC chips
in the CPU.
3. Filter – A computer needs a constant input DC voltage for correct operation. The
pulsating DC voltage is to be smoothened out. This is accomplished in the filter
section.
4. Regulator – The regulator is always included in the circuit, to keep the voltage at or
near the 5 V levels regardless of load (CPU) demands.
5. Battery backup system – The switch is set to switch the output from power supply
to battery backup power quickly and automatically if the input power fails while
disconnecting the CPU plug or the plant power fails. The continuity of power
voltage keeps the user program from being lost. There is also some circuitry that
converts battery DC (e.g., 24 V) to the two 5 V DC at required level.
The voltage required depends on the type of chips used within the system. If TTL ICs are used, a
5 V DC power supply will be required. If a CMOS type of IC is utilized, then the power supply
will be in the range of 3–18 V.
Power is also required for operating field devices and output loads so that they may operate. A
separate external power supply is provided for this purpose. It is often referred to as the field
interrogation power supply.
The latter is kept separate from the control power supply so that any power supply problems in
the field are not echoed within the PLC.
Figure 1.5
The processor of a PLC (Courtesy: Allen-Bradley)
The main processor (or CPU) is a microprocessor-based system that executes the control
program, after reading the status of the field inputs. It, in turn, sends commands to the field outputs.
Depending on the manufacturer, it is possible to find bit or word processors. If a bit processor is
used, it will only be able to control logic bit operations. A word processor can control both bit and
word operations such as processing numerical data, calculations, and analog values. Nowadays,
most processors are found to be of the word type.
Does it appear as if something is missing? The CPU requires a power supply for its internal
electronics, as well as for operating the signal exchange with the I/O modules.
That power supply is either derived from a separate external power supply, or some PLC units
may have a power supply card installed beside the CPU card.
• Program: Indicates the PLC has been selected in the program mode by means
of the selector switch.
• Communication: Depending on the communication options provided, this
indicates the health of a communication link.
3. Programming port
A programming port is provided on the CPU to download any user program from a
programming device, to the CPU. The programming port is either a nine-pin serial
COM port or any other type depending on the vendor.
4. Communication port
Communication ports are prerequisites in PLC units as the PLC must exchange data
with other PLCs (or operator stations) to show the process information. For this
purpose, different vendors provide different kinds of communication ports. As a
common practice, you will probably find an Ethernet port.
5. Battery
A 3.6 V DC battery is normally given in a compartment on the CPU itself for
memory backup in case of a power failure.
6. Memory chip
In some PLCs, such as those from Siemens, an external flash EEPROM card is
provided in slot on the CPU for user program backup storage.
The CPU’s memory contains the manufacturer’s operating system and housekeeping
functions, the program written by the user, and the data stored by the user, relating to
the process or the equipment being controlled.
The memory chip is the main component of the PLC processor unit. It will be
discussed in more detail in the next chapter.
These are the general features that can be found on the PLC’s CPU cards. However,
some CPUs may offer other additional features as well, relating to the working
requirements.
Figure 1.6
Working of a PLC CPU
A PLC uses input modules (analog or digital) for collecting field data. Then, during program
execution (which goes on continuously), it generates output commands depending on the input
field data. These output commands are sent to the field via output (analog or digital) modules.
In order to do this, the PLC has the following four stages of operation that are continuously
repeated, many times per second (i.e., the CPU’s scan rate).
8 Practical Troubleshooting and Problem Solving of PLCs and SCADA Systems
• Self-test: This checks for hardware and software errors of the PLC.
• Input scan: This reads the status of inputs from the cards and transfers values to
memory. It can be equated to taking snaps of the inputs. In some cases (such as with
analog inputs), they are not stored in memory.
• Logic solving: A program is executed on the basis of the input status stored in the
memory. Thus, the outputs are decided and transferred to the memory.
• Output scan: The outputs are transferred from the memory to the physical cards.
Why is an input or output scan required? Why can’t the PLC take the status of inputs directly all
the time and send this information directly to the cards?
Visualize a condition where an input (which is used or accessed in logic format at multiple
locations) changes state, while the program is halfway through its execution. What’s going to
happen? This will invalidate the logic. To avoid this situation, input and output scans are done so
that once the input status is copied in the memory it remains valid throughout that program
execution cycle.
Other than this, it is important to note that data access with I/O modules is done through a
communication data bus (back plane connector).
The CPU has a PG port. This is used to feed the PLC program by means of the programming
device.
Figure 1.7
Sections of PLC RAM memory
As shown in Figure 1.7, RAM is used for storing the “User PLC program,” which occupies its
major portion. It is also used for storing the status of inputs and outputs, storing timer, counter, and
register values.
Based on these functions, PLC memory is broadly divided in two categories:
• Program memory
• Storage memory
1. Program memory
This is a portion of the memory used for storing the user PLC program. This
program is actually stored in the memory, by means of a machine code format.
Programming is usually done in ladder, statement list, or any PLC language.
Following this, the program is downloaded to the PLC. As part of the download
process, the program is converted into machine code and is stored in program
memory.
The sequence of machine code instructions is very similar to the sequence of user
programs that are just discussed.
The program memory occupies the largest portion of total memory usage. For
example, a system with 16 K memory words may have program memory ranging
from 4 to 12 K words, depending on the complexity of the program.
The complexity or size of the process decides the size/space of memory required in
the PLC’s CPU. This is a major factor in the selection of a CPU, as once the system
is commissioned, it is very important that there should be enough space still left, for
future program additions.
2. Storage memory
This portion of the memory stores the important information relating to program
execution such as the present status of the inputs and outputs, timer, counter, register
values, etc. It does not occupy much space, but dictates the maximum number of
timers, counters, and registers that can be used in the program.
10 Practical Troubleshooting and Problem Solving of PLCs and SCADA Systems
Addressing
Normally, 8-, 16-, or 32-channel digital I/P cards are used for accessing field inputs.
This means that, with a 16-channel I/P card, one can access/connect to16 individual field inputs.
Each PLC vendor has a unique addressing format (Figure 1.8). Normally, you will find that the
addressing for input or output is done in such a manner that the channel, slot, and rack address are
easily projected.
Introduction to PLC and SCADA Systems 11
Figure 1.8
Addressing format
The input address I 014/03 indicates that the input channel is located at channel 3 of the slot 4
module, in rack 1.
Figure 1.9 shows the rack, slot, and channel locations.
Figure 1.9
Digital I/O addressing
Input address I 1.0/3 indicates that the input channel is located at channel 3 of slot 1 module in
rack 1.
Similarly, output addresses of 16 channels for slot 4 modules would be O 4.0/1 to O4.0/15.
Depending on different vendors, the I/O addressing may differ somewhat. However, the overall
concept very much remains the same.
Temperature feedback is given to the PLC through a temperature transmitter connected to the
PLC. The PLC gives analog output 4–20 mA, which controls a valve supplying fuel to the heater.
Let us assume that the input and output is 4–20 mA.
Hardware things to do:
Field devices, such as a temperature transmitter giving 4–20 mA as output, will be hardwired to a
4–20 mA DC analog I/P module.
Similarly, a valve I/P converter requiring a 4–20 mA input will be hardwired to a 4–20 mA DC
analog O/P module.
Addressing will be required by the PLC (e.g., the connection of the analog I/P) so that the PLC
knows where to generate the required output.
A similar addressing concept is used for analog I/Os as was used for the digital example.
Addressing
Normally, four- and eight-channel analog I/P cards are used for accessing field inputs.
Figure 1.10 shows a PLC configuration with analog I/O modules.
Figure 1.10
Analog I/O addressing
Analog input address I-1.0 indicates that the module is located in the first slot and channel 0.
Similarly, output addresses for the first analog output channel in slot 5 analog output module is
O:5.0.
For accessing analog inputs and outputs, most PLCs prefer to access directly (as opposed to
working through a process image table). Why would this be?
This is to ensure that a corresponding control action is executed immediately after any change in
the analog input occurs.
Analog inputs and outputs are accessed instantaneously during the program execution.
An analog input module converts analog signals into digital value using the analog-to-digital
converter (ADC). The ADC gives a 12-bit digital binary count that is exactly proportionate to the
field signal.
There are some instructions or standard blocks available for accessing these digital counts, by
using the unique addressing. Values are then scaled to the required engineering units. This can then
be transferred in a register, if required.
Similarly, if an analog output must be sent out to the field, the control value (generated after
program execution) is scaled into a 12-digit binary value using standard block or instructions.
The same digital value is then transferred to the required analog output channel by unique
addressing.
According to the binary value, a proportional 4–20 mA DC or 0–10 V DC signal is generated,
depending on the analog output module type.
This same signal will, in turn, reach the control device connected to the PLC.
This is how analog input and output interactions take place.
Introduction to PLC and SCADA Systems 13
Attention will now be focused on a brief look at these field devices, one at a time:
1. Selector switch, push button, and emergency stop switch
These are manually operated switches or buttons, which give a “Normally Open” or
“Normally Closed” contact, as required, for a selected switch position.
2. Mechanically operated switch
In this category, there are switches that are operated mechanically due to changes in
some or the other position. A good and very common example is a “Limit switch.”
Limit switches are used in many applications to sense the position of any moving
device. They also gives “NO” or “NC” contact outputs.
3. Sensor type of switch
These sensors are used to sense various parameters and conditions of the process.
They give a “Yes” or “No” signal to the PLC, corresponding to the presence of the
process parameter condition. For example, a flow switch gives a clear indication of
whether the flow is “Present” or “Not Present,” as a NO/NC contact to the PLC.
Similarly, a level switch gives change in NO/NC contact when the level of a
process variable exceeds the limit of the level switch. More commonly used
14 Practical Troubleshooting and Problem Solving of PLCs and SCADA Systems
Figure 1.11
Digital DC input module
Source-type DI module
It is not uncommon for some PLC vendors to make use of the source-type DI modules. This is the
opposite of the more commonly used “sink” type.
In the source-type DI modules, current flows from the module terminal to the field device,
whereas with the sink-type DI module, just the reverse occurs.
What difference does this make in the wiring?
Instead of using a 24 V DC positive as common on the field, there will be 24 V DC negative as
common.
Figure 1.12 shows the termination diagram, as well the section of an internal circuit for a 230 V
DC digital input module.
Figure 1.12
Digital AC input module
Other than the power section, everything else within a DI module remains the same for a channel
internal circuit.
The power section includes a bridge rectifier and a noise filter unit. A bridge rectifier converts
the 230 V DC signal into DC voltage. This voltage signal then passes through a filter circuit that
filters out any noise in the incoming signal.
Following this, the DC level signal passes through a threshold detection circuit, which detects the
“logic state” of the signal. After passing through the opto-isolator circuit, the logic “1” or “0”
signal is passed to the internal circuit.
Fuse protection is provided for the power section. An LED indicator is used to indicate the state
of the fuse, that is, whether it is healthy or not. LEDs are also provided for indicating the logical
status of all incoming signals.
Since many discrete field devices have various voltage requirements for operation, different types
of discrete output modules are available. Generally, output voltage levels of modules may be
indicated as follows:
• 12–30 V DC
• 110 V AC/DC
• 230 V AC/DC
• Isolated output
Some of the major discrete modules will now be discussed, individually.
Figure 1.13
Digital DC output module
As shown in Figure 1.13, discrete field devices are connected via an eight-channel DO module
(24 V DC source type). This module is supplied with a 24 V DC supply and a common terminal is
provided as well.
The internal circuit of one channel can be seen in Figure 1.13, as well.
As discussed earlier, at the end of the program execution, each output bit status is transferred to
an output image table. Depending on the bit status of the output image, a corresponding 5 or 0 V
DC signal is provided.
An opto-isolator is provided in between for an isolation of the internal circuit from the field
circuit. The opto-coupler provides noise immunity, as well as physical isolation between the field
and the processor.
After the opto-coupler, the optically-isolated output signal activates an electronic switch, which
provides a 24 V DC or 0 V signal (as is the case of the module used in the figure).
In many instances, the electronic switch is in the form of a power transistor that is used to switch
the load. In many instances, a freewheeling diode may be provided across the load.
Depending on the type of the card, one may also find a fuse protection for the complete module
and individual channels, to protect the power transistors from overload conditions. A fuse-blown
LED indicator will be provided for a group of channels.
A typical digital output module will have an indication LED for each channel, to reveal the logic
status of the output signal. If it glows (depending on the configuration), it may mean that the output
signal is “True.”
Introduction to PLC and SCADA Systems 17
Sink-type DO modules
Similar to DI modules, DO modules may be purchased (or wired up) in either the sink or
sourceconfiguration.
In sink-type configurations of DO modules, current flows from a field device to a module
terminal, whereas in case of a source type of DO module, it is simply the reverse.
What difference is it going to make in the wiring?
Instead of 24 V DC negative as common in the field, there will be 24 V DC positive as common.
Figure 1.14
Digital AC output module
Figure 1.15
SCADA system hierarchies
Introduction to PLC and SCADA Systems 19
1.7.1 Introduction
Proper installation of any electronic system is necessary for its reliable and safe working. Let us
first learn some of the concepts relating to the PLC installation procedures.
interferes with) the original (or desired) signal. The ratio of signal voltage to noise voltage
determines the signal strength in relation to the noise. This is called the signal-to-noise ratio (SNR)
and is an important consideration while designing electronic systems where electrical interference
can be a problem.
The SNR is usually expressed in decibels (dB), which is the logarithmic ratio of the signal
voltage to the noise voltage.
SNR = 10 log S/N (measured in decibels)
Figure 1.16
A typical shield
The purpose of the shield is to reduce the magnitude of the noise coupled into the low-level
signal circuits by electrostatic or magnetic coupling. This has brushed up the above-mentioned
concepts up to some extent. Let us focus once again on the installation requirements for different
sections of a PLC system.
We will refer to the following typical PLC system schematic for understanding the installation
requirements (Figure 1.17).
We will divide up the installation requirements of a PLC system in the following areas:
• PLC modules
• PLC rack
• PLC panel internal wiring
• PLC panel power supply
• Cabling between the PLC and the field devices
• Cabling between the PLC and the control room computers
• PLC earthing
• Specific PLC installation requirements
• Control room requirements
Now, we will discuss the installation requirements in each area.
Introduction to PLC and SCADA Systems 21
Figure 1.17
A typical PLC system
Keying of module
This is an important technique to avoid a situation in which the maintenance personnel replace an
I/O module that has failed with the wrong module. Installing some form of keying mechanism
(which is unique to each type of module supplied by the particular manufacturer) on the back plane
prevents inadvertent errors of this nature.
Standardization
If an area of the factory or the plant is already standardized on the voltage (such as 110 V AC),
then it makes sense from maintenance and spares point of view to continue with this approach.
Voltage range of input/output module
It may be the case that a particular PLC has already been selected and only supports a particular
voltage level.
Minimization of power consumption/heat generation
A low voltage such as 24 V DC may be preferable when the power dissipation of an I/O module
has to be minimized, as less current will be used here.
Leakage current/earthing and grounding problems
If the wiring is of such a poor standard that the ground loops are forming, the voltage used should
be of such a level that they are well above spurious voltage and currents that may develop in the
circuit due to these problems.
Voltage range
Ensure that the particular voltage selected is matched to the range of the I/O modules and there is a
margin of safety. For example, if the range is 0–48 V DC and the input module selected has a range
of 0–50 V DC, this will be inadequate if 48 V DC is sourced from a lead-acid battery system,
which, when fully charged, has a voltage of 51 V.
Indeterminate state
When using certain sensors, there may be some leakage current even when the device is off. This
can tend to bias the input channel into the ON condition even though the device has been switched
off. An example of devices exhibiting this problem is proximity detectors. The voltage range
should be checked to see whether this is a problem for a particular input with its associated sensor.
Loop powering of field devices
Some field devices require an external voltage source to power them. This voltage is often derived
from the modules and should be compatible (e.g., 24 V DC).
It should be noted that in today’s world, from an analog point of view, there is not much
argument about using 4–20 mA for the interface. The low impedance 4–20 mA analog signal is
relatively noise immune when compared with the high-impedance voltage signal systems.
Some of the older standards may still be 0–10 V/10–50 mA or 0–20 mA, but they are not as
common as the 4–20 mA standard.
Sometimes, a voltage interface standard may have certain advantages over the 4–20 mA standard
(such as lower power requirements). The zero of the range is selected to be 4 mA and is useful as
anything <4 mA indicates that there is a problem (such as a broken wire). Interestingly, a 4–20 mA
is related and associated with the older pneumatic standard 3–15 psi by having the same ratio (1:5).
Figure 1.18
An isolation transformer
Figure 1.19
Techniques for reducing electromagnetic interference and surges
Introduction to PLC and SCADA Systems 25
Shielding wire
It is theoretically possible to almost eliminate both electric and magnetic field noises (and hence,
the need for shielding) by using twisted pair signal cables. Magnetic interference reduction can
vary from a factor of 14 for 4-in. lay (or three twists per foot) to 141 for 1-in. lay (or 12 twists per
foot).
Electrostatic coupling can be reduced by a factor of 103 for copper braid (with 85% coverage) to
aluminum mylar tape with a factor of 6,610. These shielded wires are normally ineffective for
magnetic coupling; hence, twisting of the pairs is also desirable within a shield.
It is important that the shield is earthed (or grounded) only at one point so that all ground loops
are eliminated. This means that the shield envelope should have an insulated jacket so as to prevent
multiple grounds.
Ground loops in signal wires can be eliminated by decoupling the input amplifier or using
optically isolated signals (Figure 1.20). This is sometimes referred to as Galvanic Isolation.
Figure 1.20
Ground loop in signal wire elimination
Cable spacing
In the practical world, with many different cabling systems in a particular plant, a system has been
developed to classify all wirings in a certain class of susceptibility to interference and to group the
classes in an orderly manner as indicated below.
Some points to emphasize when installing cabling are listed below:
• calculate the actual distance the cable is being run; that is, 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, harsh
chemicals, excessive heat, wet environments, and sources of physical damage
• ensure that no one will walk or drive on the cable
26 Practical Troubleshooting and Problem Solving of PLCs and SCADA Systems
• ensure that the cable is not put under undue tension (such as hanging between two
points)
• do not bend the cable excessively in the installation process
• if the cable is likely to run a considerable distance, a calculation should be made of
the IR drop along the wire to determine whether it is excessive
Hence, a higher voltage may be required if the cable resistance is high or the distance over which
the cable is run is fairly lengthy.
Wiring levels
There are four basic levels or classes of wiring that can be identified. The IEEE 518 standard
defines the following four levels:
• Level 1 – High susceptibility-analog signals of <50 V and digital signals of <15 V.
• Level 2 – Medium susceptibility-analog signals >50 V and switching circuits.
• Level 3 – Low susceptibility-awitching signals >50 V, analog signals >50 V,
regulating signals of 50 V with currents <20 A, and AC feeders <20 A.
• Level 4 – Power-AC and DC power buses of 0–1,000 V with currents of 20–800 A.
Tray spacing
The tables from the IEEE 518 are given below. Tables 1.1–1.3 indicate the minimum distance in
inches between the top of one tray and the bottom of the tray above, or between the sides of
adjacent trays.
Table 1.1
Tray spacing (in.)
Introduction to PLC and SCADA Systems 27
Table 1.2
Tray-conduit spacing (in.)
Table 1.3
Conduit spacing (in.)
*Level 3S & 4S can be run in a common tray, but should be separated by a barrier
Three types of earthing systems are indicated in Figure 1.21. The series single point is perhaps
the more common, while the parallel single point is the preferred approach with a separate earthing
subsystem for groups of signals:
Figure 1.21
Various earthing configurations
Figure 1.22
Ground loop
Introduction to PLC and SCADA Systems 29
To avoid this, a tree-type configuration is preferred where all the separate components are
connected to a common line first, and then that common line is connected with the earth point.
To avoid ground loops:
• each PLC module chassis should be grounded with the main PLC chassis
• the PLC chassis or rack should be grounded in turn to the back plate or to the ground
connection
• ensure that the panel enclosure is connected to the ground point
• the ground connection should have least resistance value (<0.1 Ω)
A PLC system particularly has a panel earth, an instrumentation signal shield earth, and a power
supply earth.
The instrumentation earth and the power earth should be taken from separate earth pits. All signal
shields must be grounded at one end in the case of digital and analog signal cables.
The shield must be grounded at both the ends for other data cables such as:
• connecting cables between the central PLC rack and the extension racks
• bus cables
• cables to peripherals
As discussed in earlier individual sections, grounding has to be provided for all necessary
equipment.
Figure 1.23
Driving relays and preventing back EMF damage
Solid-state relays
These are relays where the output switch is fabricated from power semiconductor devices and the
control inputs behave like transistors. The control input may need buffering if the current
requirements exceed the digital drive available, but there are no back EMF problems to deal with.
Back EMF from an inductive load may be reduced by a snubber network as shown in Figure
1.24.
Figure 1.24
Driving solid-state relays
Switch inputs
As switches are passive devices with no power source, one side of the switch must be pulled up or
down (with a suitable resistor) to the logic level (+5 V usually is normally available from the host
card) or the ground and the switch position is read by the digital input.
Two such connections are shown in Figure 1.25. The first should give better noise immunity and
has the advantage that one terminal is connected straight to the ground – useful if the system is
made from a conducting metal and is at the ground potential – one does not need to have a ground
return wire from the switch.
Introduction to PLC and SCADA Systems 31
Figure 1.25
Reading the position of a switch
Fuses
It is always a good practice to fuse the output module channels. This ensures that if the normal load
or in-rush currents are exceeded, the output channels are protected from damage. The
manufacturers select fuses with certain current/time characteristics for use only with their output
modules. These fuse types should be used. A good indication as to whether a fuse has blown on
some output module is an individual “blown fuse” light.
Most good output modules will have an individual “blown fuse” light for each circuit.
Interposing relays
These are useful in circumstances where the load to be controlled has far greater current
requirements than the output module can deliver. For example, we would use an interposing relay
to control a larger relay, which is rated for the load’s voltage and current.
This may be preferable to use a higher rated output card of a different model with an attendant
extra cost for a few circuits.
Safety circuit
The National Electrical Manufacturing Association (NEMA) and other authorities recommend the
use of emergency stop function hardware to be independent of the PLC software and solid state
electronic construction.
Two of the biggest areas of concern as far as safety is concerned are: one, the behavior of the
software (especially during preliminary commissioning) and two, and the solid state output devices.
Many solid state output devices fail in the shorted condition.
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 1.4.
Obviously, the environment in a control room should not have these extremes. The equipment
should be rated for these ranges. Typical control room environmental ranges are discussed under
ergonomic requirements. Industrial computer systems may be mounted in a less stringent
environment than in the standard air-conditioned control room.
Table 1.4
Environmental conditions
Should the operational personnel believe that there could be problems with the environment
having excessive dust, corrosive vapors, moisture or oil, and the best approach is to mount the
computer system in an enclosure? This will provide the necessary protection for the processor.
Special consideration may have to be given to issues such as vibration and it may be necessary to
mount the computer in the enclosure on shock mountings to absorb some of the vibrations.
Ensure that the enclosure doors can be easily opened and heat is allowed to dissipate.
Note that hot air rises and there can be a build-up of air inside the top of the enclosure and a fan
may be needed to circulate the air.
Figure 1.26
Typical control room
The voice communications system (either radio or telephone) should be situated as close as
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).
The amount of desk space should not be compromised. Space should be allowed for manuals and
other items to be left on the desk without unnecessary clutter.
Printers for the system are situated in a separate room to isolate the operators from the associated
(rather, repetitive) noise. The associated inconvenience of having to walk to 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 room,
which is of no interest to the operator but which disrupts his/her work.
The following specific issues should also be considered in the design of the computer control
room.
Lighting
Tungsten halogen light sources produce warm lighting, while the light life of 2,000–4,000 hours is
reasonable. They are not diffused and can produce significant shadowing.
If longer life is required, tubular fluorescent lamps have a life of 5,000–10,000 hours, but may
have variable color rendering and variable apparent color if the correct color tube is not chosen.
The luminaries should be fixed overhead and provide direct lighting. Desk lighting can be
installed to provide localized lighting over the keyboard.
A general level of lighting of 400 lux is recommended throughout the control room with a
personal level of 200–600 lux set by the operator.
An average reflectance level of 30–60% is recommended for the walls. The ceiling should have a
reflectance of at least 75%, with floors having an average of 40%.
34 Practical Troubleshooting and Problem Solving of PLCs and SCADA Systems
Sound environment
A maximum noise level of 54–59 dB (A) is recommended.
Ventilation
The air temperature should be between 20°C and 26°C with relative humidity range of 40–60%.
Fresh air should flow at the rate of 7 l/s per person throughout the control room.
Colors of equipment
Colors for walls and equipment should have a matt finish (i.e., no shiny surfaces) to avoid irritating
reflections from the operator displays.
Strong contrasts in color should also be avoided to minimize glare. Matt or “orange peel” finish
help to disguise inevitable blemishes and ripples on flat sheet metal surfaces.
A glossy “contours d’elegance” finish will cost extra and is unlikely to survive rigors of transport
from factory to job site.
Where the general light level is low (<300 lux) warm color schemes are more acceptable than
those in which cold colors predominate. A pleasant color scheme can be achieved with warm colors
backed up with cool secondary colors.
These are typical installation requirements that should be taken care of. Further additions for
improvisation are still possible.