Complete Manual SCADA Systems
Complete Manual SCADA Systems
4 DAYS WORKSHOP
Important notice:
No part of these notes or diagrams may be reproduced in any form without permission of
the copyright holder.
Table of Contents
i
Section 4. Basics of data communications and networks
Historical background 4.2
Typical link 4.3
Bits, bytes and codes 4.4
Half and full duplex communication 4.4
Synchronous versus asynchronous transmission 4.5
Serial asynchronous transmission 4.8
Codes 4.12
UART 4.19
UART timing 4.22
Networking 4.23
Topologies 4.24
Networking approaches 4.29
CSMA/CD 4.30
Token passing 4.31
LAN standards 4.32
Token bus 4.33
Mesh topology 4.35
The OSI model 4.40
Virtual or peer-layer communications 4.42
Simplified model 4.47
Repeaters 4.50
Splitter 4.51
Bridge 4.52
Router 4.53
Gateway 4.54
ii
Successive approximation 5.24
D/A converters 5.30
Writing the specification 5.33
Digital sampling 5.35
iii
Electromagnetic spectrum 8.25
Electromagnetic waves 8.26
Propagation methods 8.27
Atmospheric refraction 8.28
The radio spectrum and frequency allocation 8.29
Implementing a radio link 8.32
Path profile 8.33
Profile correction 8.34
Fresnel zone 8.36
Diffraction losses 8.38
Reflection losses 8.39
Transmitter power/receiver sensitivity 8.40
Other factors 8.42
iv
Sampled value (SV) 10.42
Object modelling 10.42
Comparison of DNP 3 with IEC 61850 10.44
v
SCADA Systems - Transitioning
from Beginner to Advanced
Section 1.
Introduction to Controls Systems
SCADA Systems - Transitioning
from Beginner to Advanced
Section 1.
Introduction to Controls Systems
1
Abbreviations and Acronyms
2
Abbreviations and Acronyms
3
Car seals
RIO
4
Programmable logic controller (PLC)
Smart instruments
Modulator/demodulator
interface CPU
Analog Digital
input
ADC ADC
value
4 -20 mA loop
Scaling/
linearization
5
Distributed Control Systems
(DCS)
6
Distributed Control System (DCS)
Corporate
MES Computer
Ethernet
Operator
Gateway Workplace
Redundant Data
Plant
Highway
Computer
Remote field
controllers and
interface modules
in cabinet
Field Devices
7
Traditional systems
Traditional systems
8
Typical physical layout of traditional DCS
Field Devices
Corporate
MES Computer
Ethernet
Operator
Workplace
Gateway
Redundant Data
Plant
Highway
Computer
Remote field
controllers and
interface modules
in cabinet
Field Devices
9
Typical physical layout of traditional DCS
Field Devices
Field Devices
10
Hybrid DCS
Open DCS
11
Open DCS
Advantages
● Designed to be 100% reliable
Redundant controllers
Redundant communications
Redundant power
Redundant I/O cards
Redundant operator interfaces
Total isolation from all other systems
● Single database management
● On-line maintenance
● Excellent security
12
Advantages and disadvantages
● Disadvantages
● Support is more complicated and costly
● Highest cost of process control options
13
SCADA
SCADA
14
SCADA
Operator stations System controller
Radio
Modem
Modem
Landline link
Radio
Modem
RTU 3
Radio
Modem Modem M
RTU 1 RTU 2
M M
What is an RTU?
15
SCADA
● In its other format SCADA is used as a standalone system
to monitor and control a plant using PLCs as ‘hardened’
robust front-end devices.
● May be broadly defined as an industrial automation system
that provides a ‘window’ into the process.
● Provides wide range of services:
Graphical representation of plant
Trending
Limit setting
Control configuration
Traditional system
TCP/IP (Ethernet)
VME/PC
SCADA
4 –20 mA 4 –20 mA
4 –20 mA
4 –20 mA
16
Improving the system
TCP/IP (Ethernet)
VME/PC
SCADA
e.g. Modbus Plus (if all Modicon PLCs) or DH Plus (if all Allen Bradley PLCs)
4 –20 mA 4 –20 mA
4 –20 mA
4 –20 mA
A universal bus?
TCP/IP (Ethernet)
VME/PC
SCADA
TCP/IP (Ethernet)
4 –20 mA 4 –20 mA
4 –20 mA
4 –20 mA
17
A universal bus?
TCP/IP (Ethernet)
VME/PC
SCADA
H2 HSE
4 –20 mA
4 –20 mA H0
4 –20 mA
A universal bus?
TCP/IP (Ethernet)
VME/PC
SCADA
H2 HSE
H1 H0
18
Typical FF application
Control
Flow transmitter
valve
Junction Level
box transmitter
100
Terminator
1 F
19
SCADA vs. DCS
20
SCADA vs. DCS
21
SCADA Systems - Transitioning
from Beginner to Advanced
Section 2.
Instrument Signal Loops
SCADA Systems - Transitioning
from Beginner to Advanced
Section 2.
Instrument Signal Loops
What’s a thermocouple?
Copper Copper
Antimony
Junctions
Reference Variable
ice bath 0°C temperature
© 2017 Crabtree Controls Ltd. All Right Reserved 2
1
Simplified thermocouple?
Hot junction
(Measuring)
Thermocouple types
80
E
70
Although some 300
60 different types of
50 J K thermocouple have
N been studied and
described…
Millivolts
40
…only eight type
30 designations are
20
T R officially recognised by
S the generally accepted
B authorities.
10
2
Thermocouple types
80
E So looking at these
70
curves, do you see a
60 general problem with the
K
use of thermocouples?
50 J That’s right, the outputs
N
are quite small – all in the
Millivolts
40
millivolt range.
30 Furthermore, the outputs
T
are not linear.
R
20
S
B
10
Thermocouple types
80
E As an example, let’s look
70 at type T thermocouple
60 Copper/Constantan (57%
K
Copper, 43% nickel )
50 J -200 to 350 C
N
Millivolts
40
30
T R
20
S
B
10
3
Type T thermocouple (mV @ °C)
Answer: 94°C
Transmitter Loops
Thermocouple
Large output
Transmitter
Small voltage
input (mV)
4
Transmitter Loops
Temperature
(°C) 0 1 2 3 4 5 6 7 8 9 10
Thermocouple
Transmitter Large output
0 -10 mV = 0 to 213°C
© 2017 Crabtree Controls Ltd. All Right Reserved 9
X 1000 0 – 10 V
2 – 10 V
0–5V
Thermocouple
Transmitter 1–5V
e.g. 0 -10 mV
0 – 20 mA
4 – 20 mA
10 – 50 mA
5
Signal loops
Assume an output of 0 – 10 V …
… and a load resistance of 100
How much of the output voltage appears across the load?
Is this realistic?
Why not?
Thermocouple
0 – 10 V Load resistance
0 - 10 mV Transmitter 100
Signal loops
5
Thermocouple
0 - 10 mV Transmitter 0 – 10 V 100
5
6
Signal loops
1 0
0
V R
0
.
0
9
0
9
1
A
I
1
0
1
0
And the voltage developed across the load will be:
V
I
R
0
.
0
9
0
9
1
*
1
0
0
9
.
0
9
1
V
What is this as a percentage error?
About a 9% error
5
Thermocouple
0 - 10 mV Transmitter 0 – 10 V 100
5
Signal loops
5
.
0
V
*
2
5
0
V
I
R
1
0
Thermocouple
Constant 0 – 20 mA 250
0 - 10 mV
current
7
Signal loops
5
Thermocouple
0 - 10 mV Constant 250
0 – 20 mA
current
5
Signal loops
Thermocouple
Constant 0 – 20 mA 0–5V 250
0 - 10 mV
current
8
Signal loops
Thermocouple
Constant 4 – 20 mA 1–5V 250
0 - 10 mV
current
Larger currents?
Thermocouple
Constant 2 – 10 A 250
0 - 10 mV
current
9
Combustion triangle
O2
27.2
Air
(21% oxygen) Fuel
(sufficient vapor)
Bang !
Source of Ignition
(of sufficient energy)
© 2017 Crabtree Controls Ltd. All Right Reserved 19
Concentrations
The answer lies with the susceptibility of various mixes of
gases to sparks caused by electrical discharges.
1.0
Ignition energy (mJ))
0.1
LFL UFL
0.02 mJ
4% 75%
Minimum Ignition Energy (MIE)
0.01
0 20 30 40 50 60 70 80 90 100
Volume concentration (%)
10
Concentrations
5A
Intrinsic Safety is
designed to limit energy
2A within the ignition zone.
1A Consequently the voltage,
current and power must
500 mA Group IIC
be restricted.
Group A The maximum voltage is
Short circuit current
Loop powering
10 – 30 V d.c.
Thermocouple
0 - 10 mV Transmitter 4 – 20 mA
11
Why choose 4 – 20 mA
Calibration
0 - 10 mV
Zero
Transmitter Span
4 – 20 mA
12
Is this a temperature transmitter?
But can we call this a temperature transmitter?
Strictly speaking it’s a mV transmitter.
Thermocouple Zero
0 - 10 mV Transmitter Span
4 – 20 mA
Signal loops
Transmitter
Thermocouple Linearization Zero
Input scaling
0 - 10 mV 4 – 20 mA
Input device selection Span
13
Signal loops
Transmitter 4 – 20 mA PLC
Thermocouple
A/D D/A A/D
e.g. 10 mV P 250
converter converter converter
Signal loops
14
Multiple devices
Chart recorder in
supervisor’s office PLC in control
cabinet
Field indicator
on side of tank
Multiple devices
75.8
PT
Pressure transmitter in
storage tank
© 2017 Crabtree Controls Ltd. All Right Reserved 30
15
Loop splitters/repeaters
PT Splitter/
Pressure transmitter repeater
in storage tank
Loop splitters/repeaters
16
Loop splitters/repeaters
Diagnostic output
17
Diagnostic ootput
16 mA State 1
8 mA State 0
4 mA
3.6 mA 3.7 mA: Diagnostic fault
Line break
Diagnostic output
20 mA
10 mA
150 Hz 50 Hz 0 Hz
State 0 State 1 Diagnostic fault
Line break
0 mA
18
Highway Addressable Remote
Transducer (HART)
● Developed by Rosemount.
● Open Standard
● Hybrid 4-20 mA and digital communications standard
● Core functions provided by the HART protocol include:
control of range/zero/span adjustments;
diagnostics to verify functionality; and
memory to store configuration and status information.
19
Hybrid 4 - 20 mA/digital communications
Flowrate
+.......-........
totalizer
I..........P
Overrange
Handheld
terminal
Field device
Physical Layer
● Based on FSK Standard (Bell 202)
● The digital signal is made up all the two frequencies:
1200 Hz representing a bit ‘1’
2200 Hz representing bit ‘0’
+ 0.5 mA
Analog signal
- 0.5 mA
1200 Hz 2200 Hz
‘1’ ‘0’
20
Physical Layer
20 mA
Increasing
analog signal
1 0 0 1 1 0 1 1 0
4 mA
20 mA
Analog signal
C R
Analog signal
R
C
R
C
R C = Command
C
R = Response
4 mA
1 2
Time (s)
21
Digital and analog co-existing
Programming terminal
Modulator/demodulator
interface CPU
Analog Digital
input
ADC ADC
value
4 -20 mA loop
Scaling/
linearization
Minimalist Approach
22
Multi-point mode
● Up to 15 field devices are connected to a single twisted-
pair cable and all values are transmitted entirely digitally.
Control
system
HART Up to 15 devices
Interface and
power supply
+.......-...... .. I..........P +.......-...... .. I..........P +.......-... ... .. I..........P
Flowrate totaliz e r Ov errange Flowra te tota liz e r Ov errange Flowra te tota liz er Ove rrange
+.......-... ... .. I..........P
Flowra te tota liz er Ov errange
HART commands
23
Universal Commands
24
Device Specific Commands
● Device-specific commands are unique to each device
and access set-up and calibration information as well as
information about the construction of the device.
● These include:
Read or write Low flow cut-off value
Start, stop or clear totaliser
Read or write density calibration factor
Choose PV (mass, flow, or density)
Read or write materials of construction information
Trim sensor calibration
PID enable
Valve characterisation
Travel limits
25
SCADA Systems - Transitioning
from Beginner to Advanced
Section 3.
Accuracy and Resolution
SCADA Systems - Transitioning
from Beginner to Advanced
Section 3.
Accuracy and Resolution
Accuracy
Total error
(inaccuracy)
Repeatability Random error
(precision)
● So, what do you think?
A good marksman?
● And now?
Target
Systematic error
(inaccuracy)
1
Accuracy
Measurement
2
Measurement
Accuracy
3
Accuracy
Accuracy
4
Error
Uncertainty
5
Uncertainty
6
Binary numbering
Binary numbering
7
Binary numbering
Base Power 27 26 25 24 23 22 21 20
Description 128 64 32 16 8 4 2 1
Number 1 0 1 0 1 0 1 1
128 0 32 0 8 0 2 1
128 + 0 + 32 + 0 + 8 + 0 + 2 + 1 = 171dec
© 2017 Crabtree Controls Ltd. All Right Reserved 15
Resolution
8
Resolution
Resolution
9
Exercise
Hexadecimal
10
Hexadecimal
Base 16 makes use of six additional symbols:
Decimal Hex
0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
16 = 10
17 = 11
18 = 12
Hexadecimal
● Hexadecimal numbers may be expressed in both upper
or lower case:
2DAF
2daf
● What is 2daf (hex) expressed as a decimal number?
= 1169510
© 2017 Crabtree Controls Ltd. All Right Reserved 22
11
Hexadecimal
Hex 2 d a f
Decimal 2 13 10 15
12
Design of SCADA system
Section 4.
Basics of data communications and
networks
SCADA Systems - Transitioning
from Beginner to Advanced
Section 4.
Basics of data communications and
networks
Introduction
1
Historical Background
Historical background
● By 1850 over 50 telegraphic companies had been set up in the
USA.
● And in 1866 the first successful transatlantic cable was laid from
the USA to England.
● A major problem with Morse Code lay in its difficulty in
implementing an automatic system due to its variable length –
ranging from a single dot (E) to five dashes (numerical 0).
● This was overcome by Emile Baudot who devised a constant-
length 5-bit code.
● The Baudot code was to become the forerunner of the most
frequently used code in use today – the ASCII code.
2
Typical serial data communications link
RS 232 RS 232
DTE DCE DCE DTE
Terminal Modem Modem Terminal
3
Bits, bytes, characters and codes
● Bit: (Binary digIT) - Logic 0 or 1
● Byte: an assembly of 8 bits
● Octet: an assembly of 8 bits
● Word: normally, by default, 2bytes – however when
specified can be any length
● Character: Alpha Numerics
● Code: Unique bit arrangement for each character such as:
BAUDOT
EBCDIC (Extended Binary Coded Decimal Interchange Code)
ASCII (American Standard Code for Information Interchange)
Transmitter Receiver
Receiver Transmitter
Half-duplex
4
Full duplex communication
Transmitter Receiver
Receiver Transmitter
Full-duplex
5
Protocols
6
Synchronous vs. Asynchronous transmission
Node 1 Node 2
7
Serial asynchronous transmission
Logic 0
Logic 1
Idle State
Stop Bit
Data bits
8
Serial asynchronous transmission
Logic 0
Logic 1
Idle State
Stop Bit
Stop bits
9
Parity (Character Redundancy Check)
Even
Data character Parity
‘1’ added to make
Sent 1010111 1 total count EVEN
10
Parity (Character Redundancy Check)
11
The Baudot code
EBCDIC code
12
The ASCII code
The ASCII
HEX 0 1 table
2 3 4 5 6 7
HEX BIN 000 001 010 011 100 101 110 111
0 0000 (NUL) (DLE) Space 0 @ P ` p
1 0001 (SOH) (DC1) ! 1 A Q a q
2 0010 (STX) (DC2) “ 2 B R b r
3 0011 (ETX) (DC3) # 3 C S c s
4 0100 (EOT) (DC4) $ 4 D T d t
5 0101 (ENQ) (NAK) % 5 E U e u
6 0110 (ACK) (SYN) & 6 F V f v
7 0111 (BEL) (ETB) ‘ 7 G W g w
8 1000 (BS) (CAN) ( 8 H X h x
9 1001 (HT) (EM) ) 9 I Y i y
A 1010 (LF) (SUB) * : J Z j z
B 1011 (VT) (ESC) + ; K [ k {
C 1100 (FF) (FS) , < L \ l |
D 1101 (CR) (GS) .- = M ] m }
E 1110 (SO) (RS) . > N ^ n ~
_
F 1111 (SI) (US) / ? O o DEL
13
Exercise 2
Exercise 2 - Answer
● M 0 100 1101
● i 0 110 1001
● c 0 110 0011
● k 0 110 1011
14
Serial asynchronous transmission
Logic 0
Logic 1
Idle State
Stop Bit
Exercise 3
15
Exercise 3 - Answer
Logic 0 0 1 0 1 0 0 0 1 1
Logic 1
Idle State
Stop Bit
Exercise 4
Logic 0 0 1 0 1 0 0 0 1 1
Logic 1
Idle State
Stop Bit
16
Exercise 4
1000 101
Logic 0 0 1 0 1 0 0 0 1 1
Logic 1
Idle State
Stop Bit
Exercise 5
17
Exercise 5 - Answer
Logic 0 0 1 0 0 0 1 0 1 1 1
Logic 1
Idle State
Stop Bit
18
Typical connection details of the UART
Data RS 232
UART
CPU bus Driver
Micro- Control Transmit Tx
Tx
processor Rx
Rx Receive
Com
Clock
Serialization
Data status
format register
decoder
Data bus
# Data bits
# Stop bits
select
Parity
TBE
Transmitter holding register
SDU formation
TXE
Transmitter shift register
Serial Data
Transmitter Baud
timing generator
Master CLK Transmitter CLK
19
The UART transmitter
Serialization
Data
status register
format
decoder
Data bus
# Data bits
# Stop bits
select
Parity
Rx RDY
Receiver buffer (FIFO)
Error logic
Receiver shift register
Rx D Serial
input
Transmitter Baud
timing generator
Master CLK Receive CLK
20
Errors
Receiver Overrun
Bytes received faster than they can be read
Parity Error
Parity bit disagreement
Framing Error
Detected bits do not fit into the frame selected
Break Error
Occurs if start bit detected for more than a frame
time
Receivers can be equipped with Break Detect to
detect this condition
Logic 0
Logic 1
Idle State
Stop Bit
21
Incorrect timing between source and receiver
Logic 0
0 1 0 1 0 1 0
Logic 1
0 1 0 1 0 1 0
Correct sampling
0 1 0 0 1 0 1 0 0
Sampling too fast
0 1 0 0 1 0 0
Sampling too slow
© 2017 Crabtree Controls Ltd. All Right Reserved 43
8 clock 16 clock
cycles cycles
UART 16 x
clock
22
What is a Network ?
23
Three Topologies
Bus Topology
Packet
24
Bus Topology
● Variations include:
daisy chain bus
main line/trunk line
tree type bus
Bus Topology
Advantages
Minimal cable requirements
Simplest wiring arrangement
Easy to add or remove nodes
Simple and flexible
Very suitable for one-to-many broadcast transmissions
Disadvantages
Fault isolation can be difficult since fault can be anywhere
on the line
No automatic acknowledgement
Cable can be a bottleneck when traffic gets heavy
25
Star Network
Each node has its own network segment that links it back
to the hub, which controls all communication.
Hub
Node 1 Node 6
Node 2 Node 5
Node 3 Node 4
Star Topology
Advantages
● Troubleshooting and fault isolation is easy
● Each node has separate interface unit
● Easy to add or remove nodes and to modify cable layout
● Central hub controls all communications and allows easier
monitoring of traffic
Disadvantages
● Failure of hub results in network failure
● Requires a lot of cabling
26
Ring (or Loop) Topology
Node 6
Node 1
Node 5
Node 2 Node 4
Node 3
27
Ring (or Loop) Topology
Advantages
Minimal cable requirements
No central wiring centre required
Automatic acknowledgement of message
Disadvantages
If any node goes down, complete network goes down
Fault isolation is difficult because communication is
unidirectional
Adding or removing nodes disrupts the network
28
Networking Approaches
Categories of Networks
● Master/slave
older approach, still in use
master node in control of other nodes
nodes require individual addresses
● Peer to peer
more common today, especially with larger networks
all nodes are equal
control of the network more complicated
29
Carrier Sense Multiple Access with Collision Detection (CSMA/CD)
CSMA/CD
30
Token Passing
Token Passing
31
Summary of LAN Standards
● IEEE 802 specifies the bottom two layers of the OSI model
as they relate to LAN’s (as well as how these layers relate
to higher layers)
● Layer 2, the Data Link Layer, is divided into two sub-layers
Logical Link Control Sub-layer
Media Access Control Sub-layer
32
Token Ring
33
Token Bus System
34
Token Bus System
Mesh topology
Node 1
Node 6
Hub/Switch H
D G
A
L
C
Node 2 F J
E Node 4 Node 7
K
B
Node 3
35
Mesh topology
Node 1
Node 6
Hub/Switch H
D G
A
L
C
Node 2 F J
E Node 4 Node 7
K
B
Node 3
Mesh topology
Node 1
Node 6
Hub/Switch H
D G
A
L
C
Node 2 F J
E Node 4 Node 7
K
B
Node 3
36
Mesh topology
Node 1
Node 6
Hub/Switch H
D G
A
L
C
Node 2 F J
E Node 4 Node 7
K
B
Node 3
Mesh topology
Node 1
Node 6
Hub/Switch H
D G
A
L
C
Node 2 F J
E Node 4 Node 7
K
B
Node 3
37
Mesh topology
38
Introduction
● When all other devices on a network are sourced from
one manufacture and work with specific hardware
connections and protocols, the network is termed a
Closed System.
● A typical Closed System would be Honeywell’s TDC
3000 DCS.
● When devices from several manufacturers are used on
the same application, the system is termed an Open
System.
● In such a network the system specifications and
guidelines should conform to a common standard that is
open to all.
Introduction
39
Introduction
40
The OSI Model
41
Virtual or peer-layer communications
Application Application
Presentation Presentation
Session Session
Virtual
Transport Transport
connections
Network Network
Data Link Data Link
Physical Physical
42
An Analogy
Paris Chicago
● Manager dictates letter ● Manager reads letter
● Secretary translates and types ● Secretary puts letter on desk
letter ● Clerk checks details and
● Clerk records details passes on
● Shipping manager copies and ● Shipping manager check to
arranges transport make sure complete message
● Shipping clerk establishes received
route ● Shipping clerk checks which
● Mailroom weighs and labels route was taken
letter ● Mailroom weighs letters,
● Letter dropped into mailbox ensures it is correct
● Letter drops into mail slot
Seven Layers
● Application Layer
● Presentation Layer
● Session Layer
● Transport Layer
● Network Layer
● Data Link Layer
● Physical Layer
43
The Application Layer
● Always used
● Allows user application programs to gain access to the
network.
● This would include sending e-mail, accessing a network
database, and transferring files across the network.
● Does not include the actual application itself but is just
a support layer, used by the application, to perform
network functions.
● In industrial systems the application layer comprises the
commands: e.g.
HART commands,
Modbus function codes,
D H+ command codes, etc.
44
The Session Layer
● Specifies:
how to exchange data between different systems
● Ensures end to end reliability
compares the packets received with what was supposed to be
received and orders them correctly
45
The Network Layer
● Specifies:
information required to send message to receiving station
information for determining the optimum path to the destination
● If there is only one route through a network this layer is
minimal or not needed
46
Physical Layer
47
Simplified OSI Model
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
8th layer
48
8th layer
Layer 8 User
Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 2 Data Link
Layer 1 Physical
Inter-network communications
49
Repeater
Repeater
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical Physical Physical
50
Splitter
Splitter
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical Physical Physical
51
Bridge
● A bridge allows connection between two different
sections of a network or to join two networks.
● A bridge operates at both Layers 1 and 2 of the OSI
model and acts as a node as far as a both sides are
concerned.
● A bridge is more intelligent than a repeater and
incorporates software to ensure that noise and
truncated packets are not passed through it.
● Many bridges also maintain address lists to ensure that
only packets addressed to the other side are
retransmitted.
● Splitting a network with such a bridge can produce
large reductions in traffic density.
Bridge
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link Data Link Data Link
Physical Physical Physical Physical
52
Router
Router
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network Network Network
Data Link Data Link Data Link Data Link
Physical Physical Physical Physical
53
Gateway
Gateway
54
Design of SCADA system
Section 5.
Remote Terminal Units
SCADA Systems - Transitioning
from Beginner to Advanced
Section 5.
Remote Terminal Units
Introduction
1
Supervisory Control and Data Acquisition (SCADA)
Operator stations
Radio Modem
Radio
Local Area Network links
PLC
Landline
link
M
Modem
RTU 3 Radio Modem RTU 2
M M
Typical RTU
Antenna
Radio
Transmitter/
Receiver
Modem
RTU
Central Bus
Optional Optional
CPU
2
Typical RTU
Typical RTU
3
RTU environmental enclosures
4
Power supply module
● Power supply, battery and charger normally contained in
the RTU housing.
● The battery cabinet normally rated to IP 52 for internal
mounting and IP 56 for external mounting.
● Operating range from 110/240 V a.c. 10% 50/60 Hz or
12/24/48 V d.c. 10%.
● Typical battery requirements are for 20-hour standby
operation and a recharging time of 12 hours for a fully
discharged battery at 25°C.
● Following parameters transmitted back to the central
site/master:
Analog battery reading
Alarm for battery voltage outside normal range
5
RAM (Random Access Memory)
6
ROM (Read Only Memory)
Communication ports
7
Digital processing
Digital inputs
8
Voltage source
Ground 24 V d.c.
Voltage sink
24 V d.c. Ground
S1 1
S2 2
S3 3 The contacts are powered
S4
S5
4
5
externally and ‘pull up’ the
S6 6 input terminal voltage when
S7 7
S8 8 closed.
S9 9
S10 10
S11 11
S12 12
S13 13
S14 14
S15 15
S16 16
Com
9
Digital or discrete input board
● Most digital input boards usually provide groups of 4, 8, 16 or 32
channels’ per card capable of operating from a wide selection of
voltages, e.g. 24, 48 and 120 V d.c. and 115 and 240 V a.c.
Status LED
Fuse R1
Input 1 D1
+
24 V d.c. R2
͟
Opto-isolator
Fuse R1
Status LED
Zener
Input 1
220 V a.c. R2 R3 D1
Opto-isolator
10
d.c. reed-relay digital output module
Status LED
Output 1
Opto-isolator
11
a.c. switching
SCR
12
… SCR/Thyristor
A A A
G OR OR G
G
K K K
Operation of SCR
13
Triac
G
MT2
© 2017 Crabtree Controls Ltd. All Right Reserved 27
Triac
MT1
G
MT2
© 2017 Crabtree Controls Ltd. All Right Reserved 28
14
Triac
Digital output
module
+
Backplane
24 V d.c.
−
15
a.c. system protection
Digital output
module
Backplane
~ a.c. voltage
Current ratings
16
Analog processing
Analog functions
20 mA (100%)
4 mA (0%)
© 2017 Crabtree Controls Ltd. All Right Reserved 34
17
Analog processing
18
Single-ended input
● Each input has a single input for each signal – the source's Hi
side.
● All signals are measured relative to the board's analog ground
point, GND, which is 0 V.
Input connector
External signals Cable
ES0
~ CH0
ES1 Input amplifier
~ ES2
CH1
with gain G
~ CH2
Multiplexer
ES3 +
~ CH3
Input
G A/D
0
ES0 ES4 ES0 + Vcm0 _
~ ES5
CH4
~ ES6
CH5 0 V
GRND
Reference Ground Vcm GRND or system
reference Ground point
Single-ended input
Lo is the source' reference point and Hi is the signal value.
All the Lo sides of the sources are grouped together to form a
remote signal reference point that is then connected to the analog
ground GND pin.
Input connector
External signals Cable
ES0
~ CH0
ES1 Input amplifier
~ ES2
CH1
with gain G
~ CH2
Multiplexer
ES3 +
~ CH3
Input
G A/D
0
~ ES6
CH5 0 V
GRND
Reference Ground Vcm GRND or system
reference Ground point
19
Single-ended input
Because of lead resistance, the remote signal reference point
is not necessarily at the same potential as GND and can be
offset by a voltage called the common mode voltage VCM.
The voltage at the board's inputs is therefore ES0 + VCM.
Input connector
External signals Cable
ES0
~ CH0
ES1 Input amplifier
~ ES2
CH1
with gain G
~ CH2
Multiplexer
ES3 +
~ CH3
Input
G A/D
0
ES0 ES4 ES0 + Vcm0 _
~ ES5
CH4
~ ES6
CH5 0 V
GRND
Reference Ground Vcm GRND or system
reference Ground point
Single-ended input
20
Single-ended input
Differential inputs
ES1
CH1 HI Input amplifier
Input
CH2 HI
ES
CH3 HI
ES0 + Vcm0
+
ES0 + Vcm0 G A/D
CH0 LO _
G*ES0
Multiplexer
CH1 LO
Input
Vcm0
1
CH3 LO
RBIAS RBIAS RBIAS RBIAS RLEAD
GRND
Reference Ground Vcm GRND or system
reference Ground point
21
Differential inputs
Multiplexer
ES1
CH1 HI Input amplifier
Input
ES0 ES2 with gain G
0
CH2 HI
ES
CH3 HI
ES0 + Vcm0
+
ES0 + Vcm0 G A/D
CH0 LO _
G*ES0
Multiplexer
CH1 LO
Input
Vcm0
1
Vcm0 CH2 LO Vcm0
CH3 LO
RBIAS RBIAS RBIAS RBIAS RLEAD
GRND
Reference Ground Vcm GRND or system
reference Ground point
Differential inputs
22
Typical analog input specifications
23
A/D conversion
MSB 1 5 5V
0 0.625
5.00 V
0 0.3125
0 0.15625
0 0.078125
LSB 0 0.0390625
24
Successive approximation A/D converter
MSB 1 5 5V
0 1.25
0 0.625
5.0390625 V
0 0.3125
0 0.15625
0 0.078125
MSB 1 5 5V
1 1.25 1.25 V
1 0.625 0.625 V
9.9609375 V
1 0.3125 0.3125 V
1 0.15625 0.15625 V
1 0.078125 0.078125 V
25
Successive approximation A/D converter
Analog input
Comparator
DAC
Analog reference
Control Logic
MSB LSB
Clock
Shift register
Output register
Start conversion
MSB LSB
Digital Output
Analog input 6 V
DAC
Analog reference
1
0 0 0 0 0 0 0 0 Control Logic
MSB LSB
Clock
Shift register
Output register
1
0 0 0 0 0 0 0 0
Start conversion
MSB LSB
Digital Output
'Start conversion' pulse …
…clears the output register and the shift register
This turns ON (logic 1) the Shift Register’s MSB …
…so that the D/A converter
...gives half of a full-scale deflection (5 V)
© 2017 Crabtree Controls Ltd. All Right Reserved 52
26
Successive approximation A/D converter
Analog input 6 V
Comparator
5V
DAC
Analog reference
1
0 0 0 0 0 0 0 0 Control Logic
MSB LSB
Clock
Shift register
Output register
0 0 0 0 0 0 0 0
Start conversion
MSB LSB
Digital Output
Analog input 6 V
Comparator
5 V +2.5 V
DAC
Analog reference
1
0 1
0 0 0 0 0 0 0 Control Logic
MSB LSB
Clock
Shift register
Output register
10 10 0 0 0 0 0 0
Start conversion
MSB LSB
Digital Output
The next clock pulse turns ON the next significant bit in the
output register via the shift register
Its contribution of 2.5 V adds to the previous bit – provided that it
was left ON.
A comparison is thus made to determine whether the analog
signal is greater© 2017
than or less then the new total of 7.5 V.
Crabtree Controls Ltd. All Right Reserved 54
27
Successive approximation A/D converter
Analog input 6 V
Comparator
5 V +2.5 V
DAC
Analog reference
1
0 1
0 0 0 0 0 0 0 Control Logic
MSB LSB
Clock
Shift register
Output register
10 10 0 0 0 0 0 0
Start conversion
MSB LSB
Digital Output
Since the value is greater than the Analog Input voltage the
comparator turns the MSB in the output register OFF (logic 0).
The contribution now reverts back to 5V
● Process is repeated ‘8’ times for an 8-bit converter, until the LSB
has been compared.
● The clock then stops, to be restarted only by the next conversion
pulse.
● During the conversion interval, typically S in slow converters the
input analogue signal must not change.
28
10.0
8.0 7.5V
6.09375V 6.015625V
Output (Volts)
Start
10.0
8.0 7.5V
6.09375V 6.015625V
Output (Volts)
Start
29
Successive approximation A/D converters
Features
● Accuracy, linearity and conversion speed is primarily dictated by the
properties of its D/A converter, its reference and the comparator.
● Widely used for interfacing analog signals to digital computers
because they are capable of both high resolution (up to 16 bits) and
high speed (conversion interval of less than 1 s).
● The conversion time is fixed and independent of the input voltage.
● Because the internal logic is cleared at the start of a conversion, each
conversion is unique and independent of the result of previous
conversions.
30
VDAC – Circuit 1. Binary Weighted Resistors
LSB MSB
0V
+ Analog output
_
VREF
0V
+ Analog output
_
VREF
31
VDAC – Circuit 1. Binary Weighted Resistors
LSB MSB
0V
+ Analog output
_
VREF
0V
+ Analog output
_
VREF
32
VDAC – Circuit 1. Binary Weighted Resistors
33
Writing the specification − Environmental
considerations
● The PLC is normally installed in a remote location with
fairly harsh environmental conditions:
Ambient temperature range of -30°C to +65°C
(dependent on location)
Storage temperature range of -20°C to +70°C
Relative humidity of 0 to 95% non condensing
Surge withstand capability typically 2.5 kV, 1 MHz for
2 s with 150 source impedance
Static discharge test where 1.5 cm sparks are
discharged at a distance of 30 cm from the unit
Other requirements include dust, vibration, rain, salt
and fog protection.
34
Writing the specification − Software (and firmware)
● Each module should have an internal software
continuously testing the systems I/O and hardware.
● Diagnostic LEDs should also be provided to identify any
faults or to diagnose failure of components.
● It is important that all these conditions are communicated
back to the central station for indication to the operator.
Digital sampling
Reconstructed signal
© 2017 Crabtree Controls Ltd. All Right Reserved 70
35
Digital sampling
Analog
5s input
1s
Digital sampling at 1 Hz
Reconstructed signal
© 2017 Crabtree Controls Ltd. All Right Reserved 71
Aliasing
Reconstructed signal
© 2017 Crabtree Controls Ltd. All Right Reserved 72
36
Aliasing
Analog
5s input
Reconstructed signal
© 2017 Crabtree Controls Ltd. All Right Reserved 73
37
Design of SCADA system
Section 6.
SCADA systems
SCADA Systems - Transitioning
from Beginner to Advanced
Section 6.
SCADA systems
SCADA - Introduction
1
Supervisory Control and Data Acquisition (SCADA)
Operator stations
Radio Modem
Radio
Local Area Network links
PLC
Landline
link
M
Modem
RTU 3 Radio Modem RTU 2
M M
2
SCADA – Features (1)
● User-friendly interface.
● Automatic control.
● Off-line processing.
● Integrated environments.
● Extensive historical data manipulation.
● Extensive processing power.
● Extremely high data throughput.
● Extremely quick response.
3
SCADA – Features (2)
4
SCADA – Architecture Overview (1)
The I/O driver is the SCADA software’s interface to the
RTU.
It reads (and writes) data in the form of poll records.
These poll records are specified by addresses in the
RTU registers and can be a single data point or a range
of points.
This data is then transferred
to/from addresses in the Driver
DRIVER IMAGE
Image Table (DIT)… TABLE (DIT)
RTU
© 2017 Crabtree Controls Ltd. All Right Reserved 9
DRIVER IMAGE
TABLE (DIT)
I/O DRIVER
PLC
© 2017 Crabtree Controls Ltd. All Right Reserved 10
5
SCADA – Architecture Overview (3)
The PDB is made of units of instructions assigned to
perform process function, such as writing values to the
process hardware.
Values are transferred to/from the PDB from/to the DIT.
PROCESS
DATABASE (PDB)
DRIVER IMAGE
TABLE (DIT)
I/O DRIVER
PLC
© 2017 Crabtree Controls Ltd. All Right Reserved 11
SCREEN
PROCESS
DATABASE (PDB)
DRIVER IMAGE
TABLE (DIT)
I/O DRIVER
PLC
© 2017 Crabtree Controls Ltd. All Right Reserved 12
6
SCADA – Architecture Overview (5)
PLC
© 2017 Crabtree Controls Ltd. All Right Reserved 13
Scan, Alarm and Control (SAC) fetch data from the DIT
and transfer it to the Process Database (PDB).
Driver Image Table
Process database
DIT PDB
Scan, alarm
AI CA
and control
AI DR AO
DI DO
Poll record
Data
12 31 18 44 22 19
I/O driver View
software (Links)
RTU
I/O sensors
© 2017 Crabtree Controls Ltd. All Right Reserved 14
7
SCADA – Architecture Overview (6)
The rate at which SAC reads from the DIT is called scan time.
RTU
I/O sensors
© 2017 Crabtree Controls Ltd. All Right Reserved 15
MOTORSTAT MOTORCTRL
8
SCADA – Architecture (10)
Operator Display
● Once the values are in the PDB, they can be
graphically displayed.
● View is the application to interact with the graphical
displays and provide the man-machine interface.
● Links are used in View to display database values,
and the rate that they are updated is the screen
refresh rate.
● Links can display information about alarms, database
information information about a tag.
9
© 2017 Crabtree Controls Ltd. All Right Reserved 19
Software Systems
10
SCADA database management
11
SCADA database management
Tag Instrument Manufacturer Type number Serial Size Measuring Measuring Set Ex rating SIL
No. type number range unit span
101 Pressure Rosemount 3051S 3A 0 124582 - 0 - 80 bar 20 - 60 Ex ia IIC T4 3
transmitter (Emerson)
232 Temperature Endress+Hauser iTEMP TMT162 - 0 - 500 ºC 80 - 120 Ex ia IIC T4 3
transmitter
456 Magnetic Krohne OPTIFLUX A5679B2 100 mm 0.3 - 12 m/s 4-8 Ex ia IIC T4 3
flowmeter 4000
457 Coriolis mass Krohne OPTIMASS X4523M 100 mm 420 tonnes/hr 0 - 200 Ex ia IIC T6 3
flowmeter 2000
12
SCADA database management
FT
456
M TT
CV 265
844 Process
Tank 21
TT PT LC
232 001 I/P
101
CV
845
© 2017 Crabtree Controls Ltd. All Right Reserved 25
13
SCADA database management
14
SCADA database management
15
Design of SCADA system
Section 7.
Alarm management
SCADA Systems - Transitioning
from Beginner to Advanced
Section 7.
Alarm management
1
Three Mile Island - 1979
● A cascading series of events, that included a stuck-open
safety relief valve, led to the computer reporting some
700 problems occurring within the first few minutes.
● This is set off a number of audible and visual alarms –
with the problems forwarded to a line printer in the
control room.
● The line printer queue rapidly contained 700 error
reports followed by several thousand error report
updates and corrections.
● The printer queue was thus almost instantly hours
behind, so the operators knew they had a problem but
had no idea what the problem was.
2
Texaco Milford Haven Refinery - 1994
● A severe electrical storm caused plant disturbances.
● An explosion that occurred five hours later was a
combination of failures in management, equipment and
control systems during the plant upset.
● Twenty-six people were injured and damage of £48 million
was caused.
● Too many alarms that were poorly prioritised
● Control room displays did not help the operators to
understand what was happening
● During the last 11 minutes before the explosion, the two
operators had to recognise, acknowledge and act on 275
alarms
3
Common Issues with Alarm Handling
● Alarm systems implemented without proper guidance
EEMUA 191 in the UK
ISA 18.2
API 1167
Namur NA 102
● Many alarm systems either alarm everything or rely on
default alarms
● There is often little visibility or reporting on how many
alarms your operators are having to deal with
● Too many alarms are not critical and should not be classed
as alarms
● Nuisance Alarms – appear regularly and require no action
● Chattering alarms – cause distraction
4
How observant are you?
https://www.youtube.com/watch?v=IGQmdoK_ZfY
5
Abnormal upsets
Abnormal upsets
● Alarm requirements differ under different plant conditions,
● Therefore important that the alarms are context sensitive
or plant condition sensitive.
● Some signals may be required as alarms during normal
plant running but …
● … may not be relevant during plant start-ups
● Important to clearly identify the functions of an operator for
maintaining plant safety and integrity during all operational
conditions.
● Even in highly automated plants with automatic protection
and controls in place, there is always scope for operator
intervention.
● When an abnormal condition arises, the alarm system
gives an alarm in the form of an audible warning, flashing
or blinking alarm indication and an alarm message.
6
Present only relevant and useful alarms
● An effective alarm system presents only alarms that help
an operator in monitoring and controlling the
plant/equipment
● The operator's time and attention should not be diverted by
alarms that do not require response or intervention …
● …otherwise danger of ‘Cry wolf’ syndrome where operator
lapses into a frame of mind where the alarms are ignored.
● Each and every alarm should be useful and relevant.
● This means that changes in the condition of the
plant/equipment that requires intervention of maintenance
personnel but is not relevant to an operator should not
be configured and presented as an alarm.
Defined response
7
Adequate time to respond
● Since the operator is expected to respond to every alarm, it
is essential to allow adequate time for him to respond.
● To allow a timeous response, the alarm should allow
enough time to take corrective action.
● At the same time, the rate of the alarms should not exceed
the capability of the operator to respond to them.
● The operator's functions include many other activities and
responsibilities apart from responding and handling alarms.
W=R. T
where:
R is average rate of alarms presented
T is average time taken to respond to the alarm
8
Adequate time to respond
Example 1. Manageable alarms
● Assume a SCADA based alarm management system
presents alarms to the operator at an average rate of 1
alarm per 120 seconds.
● To respond to each alarm takes the plant operator an
average of 40 seconds.
● The average workload (W) imposed on the operator by
DCS alarm management system is:
9
Prioritising an alarm system
● Various types of alarm systems are:
Configured within a process control system,
A standalone alarm system, and
A combination of a standalone alarm system and an alarm system
within a process control system.
● If a standalone alarm system is used for configuring and
implementing all the alarms, then the high priority alarms
include the safety-related alarms.
● However, if a combination of a standalone alarm system
and alarm system configured within the process control
system is used, there is a possibility of overlapping priority
bands of alarms between the two systems.
Design documentation
● Some of the questions that need to answered, for each
and every alarm, are:
What is the purpose of the alarm?
What response is required from the operator?
If the operator does not respond to the alarm, what are the likely
consequences?
How much time is available for the operator to respond?
What will the effectiveness be of the operator response?
10
Alarm displays
● Alarms are either displayed on
annunciator panels consisting of a X Y Z Alarm
separate light window for each window
Audible
warning
Alarm history
storage
Alarm
Secondary display
occurrence
key-lamp ON
Alarm
printouts
© 2017 Crabtree Controls Ltd. All Right Reserved 21
.
Alarm lists
● In DCS or SCADA based alarm systems, alarm list
displays are the most common way of displaying the
alarms.
● An alarm list provides display of different alarms within a
single window.
● Another way of displaying alarms is through the use of
schematics.
11
Annunciator displays
● Alarm annunciator displays consist of arrays of windows.
● Annunciator displays provide immediate access to
information and excellent spatial pattern recognition.
● The annunciator displays are easily visible and easy to use.
● However, they do not provide detailed and additional
associated information about the alarm and are not suitable
for potentially large number of alarms.
● Still useful for standalone safety related critical alarms.
12
Audible alarm warnings
High
priority Low tone
alarm
Medium
priority
alarm Medium tone
Low
priority
alarm High tone
Alarm generation
● Alarms can be configured and presented using various
detection methods:
Absolute alarms
Deviation alarms
Rate of change alarms
Discrepancy alarms
Calculated alarms
Diagnostic alarm
First-up alarms
Statistical alarms
13
Alarm generation − Absolute alarms
14
Alarm generation − Absolute alarms
Increase in absolute
alarm setting
100
Temperature Hi Hi alarm (Trip)
Bearing temperature (ºC)
95
90
Temperature Hi alarm
85
80
75
Time
Deviation alarms
15
Rate of change alarms
180
Temperature (ºC)
150 B Desired
120 temperature
A increase rate
90
60
30 C
1 2 3 4 5 6 7 8 9 10 11 12
Curing time (hrs)
© 2017 Crabtree Controls Ltd. All Right Reserved 32
.
16
Discrepancy alarms
● Discrepancy alarms are generated by comparing the
actual state of the plant with the expected state.
● Often used for control valves or actuators and require an
expected characteristic of the actuator movement in
response to a give command
● A discrepancy alarm would thus identify faults such as a
stuck or sticking actuator.
● In practice, actuator performance tends to degrade −
resulting in spurious discrepancy alarms
● Spurious discrepancy alarms can become a nuisance
during abnormal plant conditions
● To overcome such problems, discrepancy alarms must be
robustly designed and tolerance bands should be easily
adjustable.
Calculated alarms
● Calculated alarms are generated in applications where
several signals are combined to perform such calculations
as energy consumption, efficiency calculations, etc.
17
Diagnostic alarms
● These alarms are generated to indicate faults within the
control systems and field instruments.
● They are more useful for operations and maintenance
personnel and should be kept separate from the process
alarms.
First-up alarms
● Rather than a ‘type’ of alarm a ‘First-up Alarm’ is actually a
facility for identifying the sequence of alarm occurrence.
● First-up alarms help to identify the reason for the
plant/equipment trips. In large plants it becomes difficult to
identify the cause of equipment/plant trips.
● Logic with fast scanning time/cycle is used to detect the
first alarm after the plant/equipment trip and the exact
cause.
● In such cases the first alarm detected is displayed
blinking/flashing and the following alarms are displayed
steady on the group alarm display.
18
First-up alarms
● Example:
● A hydraulic pump may trip due to hydraulic pump
discharge pressure low (or flow low) or due to power
failure to the motor.
● When the pump trips due to a power failure, the motor
stops and the pump's discharge pressure will drop quickly
and both the alarms –‘motor stopped’ and ‘pump discharge
pressure low (flow low)’ – will be generated in a fraction of
seconds.
Statistical alarms
● Statistical alarms are generated using statistical
techniques to filter out significant changes from the
process noise.
● Basic tools include:
Sample average
Sample median
Sample range
RMS deviation
Sample standard deviation
Histograms
Running records
19
Statistical alarms
100 bar
20
How do we scan an HMI screen?
● Important items should thus be on the ‘scan’ line...
● … with alarms across the top of the page…
● … key data in centre right …
● …and maybe buttons and controls on the lower right.
● Supporting graphics and the company logo are better
placed on the lower left of the screen.
Colours
● On-screen colours are created from the 3 primary colours:
Red
Green
Blue
● And the three secondary colours:
Cyan
Magenta
Yellow
21
Colours
● Complementary contrast is created by positioning a
secondary colour with the primary colour from the opposite
side of the wheel.
Colours
● Whilst useful in creating an impact, using these colours
together can make focussing difficult.
22
Colours
● Pairs of secondary colours…
Cyan
Yellow
Magenta
● …produce higher contrasts than pairs of primary colours
Red
Green
Blue
Colours
● The preferred colour convention, following the standard for
safety signs (BS 5378) defines:
Red = stop, prohibition, danger
Yellow = caution, risk of danger
Green = safe condition
Blue = mandatory action.
23
Colours
● Large blocks of primary colours, e.g. red, should be
avoided because they will cause complimentary colour
image retention on the retina.
Colours
● Designers also need to be aware that 1 in 12 men have
some degree of colour blindness.
● This normally means that there is some confusion in the
perception of reds and greens (also yellows, oranges, and
browns) …
● …consequently, screen designs should not solely rely on
colour to indicate plant condition.
24
ISA-18.2
ISA-18.2
25
ISA-18.2
26
Design of SCADA system
Section 8.
Data transmission media
SCADA Systems - Transitioning
from Beginner to Advanced
Section 8.
Data transmission media
Cable classifications:
● Two-wire open lines
a.c. power and return
High power low frequency signals
d.c. power and return
low power low frequency signals
● Coaxial
RF and digital signals
● Twisted pair
Digital signals
1
Two-wire open lines
R L R L R L
G C G C G C
2
Two-wire open lines
3
Two-wire open lines
Attenuation
Zo
4
Reflections
Zo
Matching
ZT
Zo
5
Typical coaxial cable
Coaxial cables
6
Twisted cable
Category 5
● High grade, handling frequencies up to 100MHz.
● The current standard normally has four (4) Unshielded
Twisted-Pairs (UTP) copper wires with at least 26
twists/m
● For use in high speed communications of up to 100
Mbps over distances of up to 100 m.
● Used in:
10BASE-T & 100BASE-T4 & 100BASE-TX Fast Ethernet
Networks.
FDDI and ATM at 155 Mbps
● The industry standard since 1994, superseded by
Category 5E in 1998.
7
EIA Standards for UTP
Category 5e
● Supports Gigabit Ethernet
● Usually tested to a bandwidth of 350 MHz
● Used in:
10Base-T, 100Base-T4 and 100Base-TX Fast Ethernet
Networks.
1000Base-T (Gigabit Ethernet) networks.
● The new standard Category 5e was created in 1998 for
1 Gigabit networks.
Category 6
● Supports Gigabit Ethernet
● Field performance verification over the frequency range
of 1 to 250 MHz.
● Offers double the bandwidth of category 5e cabling and
vastly improved signal-to-noise margins.
● The improved performance of Category 6 cabling,
reduces the cost, complexity and power consumption of
the new generation 1000Base-T chipsets.
● Specification published in August 2002
8
EIA Standards for UTP
Category 7
● Proposed TIA Category 7 / ISO Class F requirements
are being developed for fully shielded (i.e., overall shield
and individually shielded pairs) twisted-pair cabling.
Category 7 / class F
● Will most likely be supported by an entirely new
interface design (i.e. plug and socket).
● Some vendors are marketing forms of Category 7 wire.
The Cat 7 standard is barely in its infancy, but is
expected to end up as either 600 MHz or 700 MHz UTP
when and if it reaches completion.
● Systems are in development
9
Fibre-optic principles
Air
Glass
Fibre-optic principles
Air
Glass
10
Fibre-optic principles
Sheath
Cladding
Core
11
Fibre-optic Principles
Cladding
Light absorbed in
cladding
Core
Cladding
12
Fibre-optic propagation modes
Input pulse Multi-mode Stepped Index Output pulse
13
Fibre-optic propagation modes
4.0
3.5
Single mode fibre
3.0 nm db/km
Attenuation (dB/km)
A 850 1.81
2.5 A B 1300 0.35
C 1310 0.34
2.0 D 1380 0.55
E 1550 0.19
1.5
C D
1.0 B
E
0.5
Fibre-optic advantages
14
Fibre-optic advantages
● High Noise Immunity
● Light weight
● Smaller size
● Galvanic Isolation
● Safe in hazardous areas
● No cross-talk
● Licensing not required
Fibre-optic limitations
15
Patch panel using direct termination
16
Cable tension
● Fiber snaps rather than stretches
● Never exceed max. cable tension
(Rule of thumb: approx. weight of 1 km of cable)
● Avoid short sharp jerking
● Cable Drum smoothly rotated
● Minimise stress after installation
● J/Box’s for lots of bends
17
Trace from an OTDR
-15
Noise floor of
-20 the instrument
-25
-30
-35
0 4 8 12 16 20 24
Distance (km)
© 2017 Crabtree Controls Ltd. All Right Reserved 35
Basics of Radio
Communications
18
Brief history
Brief history
19
Radio communications
Radio communications
20
Radio communications
21
Basic elements of a radio link
Antennae
Frequency F1
Transmitter Receiver
Voice Voice
Interface Interface
Data Data
Receiver Transmitter
Frequency F2
Antenna
22
Transmitter
● The device that converts the voice or data signal into a
modified (modulated) higher frequency signal and feeds
it to the antenna where it is radiated into the free space
as an electromagnetic wave at radio frequencies.
Receiver
23
Antenna Support Structure
Mast
Tower
24
Electromagnetic spectrum
● Radio signals are a form of electromagnetic radiation – commonly
abbreviated to EM.
● Any body with a temperature above absolute zero emits electromagnetic
energy as a result of molecular thermal agitation.
● Visible light extends from approximately 0.4 to 0.7 m…
● … and infrared from 0.7 to several hundred or more micrometres.
10pm 0.1nm 1nm 10nm 100nm 0.1m 1m 10m 100m 1mm 1cm 10cm 1m 10m 100m
Electromagnetic spectrum
● Generally, radio communications signals are expressed in terms of
frequencies …
10pm 0.1nm 1nm 10nm 100nm 0.1m 1m 10m 100m 1mm 1cm 10cm 1m 10m 100m
25
Electromagnetic spectrum
● …whilst technical microwaves and above are expressed in wavelength
Visible
Rays violet Microwave TV TV Radio
10pm 0.1nm 1nm 10nm 100nm 0.1m 1m 10m 100m 1mm 1cm 10cm 1m 10m 100m
100 60 40 25 16 10 6 4 2.5
O V Q(Ka) K J(Ku) X C
140 60 40 26.5 18 12 8 4
Electromagnetic waves
Magnetic field
component
Electric field
component
Direction of
travel
26
Propagation beyond the horizon
● It might appear that the radiated power of a ground-based
transmitter beamed above the horizon will travel into space;
horizontally beamed signals will travel to the horizon and be
absorbed; and signals below horizontal will be absorbed or
scattered into space.
● Rule of thumb – distance to radio horizon (km) vs transmitter
height (m) d 4.12 h
Lost
Scattered
Absorbed
Absorbed
Propagation methods
● However, signals do propagate beyond the horizon.
● The major mechanisms are:
Refraction - bending of signals towards ground
Scattering - from eddies in the air, from rain , from reflecting surfaces
and objects
Diffraction - from terrain, buildings and vegetation.
Scatter
Refraction
Diffraction
27
Atmospheric refraction
● As altitude increases, both pressure and temperature
decrease.
● As a result, the refractive index falls with height and radio
waves are bent downwards…
n4
n3
Increasing Decreasing Decreasing
altitude n2 refractive density
index
n1
Atmospheric refraction
Scatter
Refraction
Diffraction
28
The radio spectrum and frequency allocation
29
The radio spectrum and frequency allocation
● Certain sections of these bands will have been
allocated specifically for telemetry systems.
● In some countries, a deregulated Telecommunications
environment has allowed sections of the spectrum to be
sold off to large private organizations to be managed,
and then onsold to smaller individual users.
● Application must be made to the government body, or
independent groups that hold larger chunks of the
spectrum for onselling, to obtain a frequency and no
transmission is allowed on any frequency unless a
license is obtained.
30
The radio spectrum and frequency allocation
31
Implementing a Radio Link
32
Path Profile
● A radio path profile is basically a cross sectional
drawing of the earth for the radio propagation path
showing all terrain variations, obstructions, terrain type
(water, land, trees, buildings, etc) and the masts on
which the antenna are mounted.
● For distances less than one km profiles are not normally
required since the RTU can quite often be clearly seen
from the master site.
● Note: all other calculations and choices described in the
design methodology must be carried out.
Path Profile
● Using a contour map of the location...
● …having (ideally) 2 m or 5 m intervals …
● …locate the RTU and master site locations.
● Draw a ruled line between the two locations with a
pencil.
● Assume the master site is at distance 0 km, follow the
line along noting the distance at which each contour line
occurs and its height.
33
Path Profile
220
Altitude (metres above sea level)
200
160
140
Calculated terrain
120
0 2 4 6 8 10 12 14 16 18
Distance (km)
Path Profile
● Unfortunately, this is not a true indication of the path
● This is because the surface of the earth is not flat but
curved.
● Consequently, use is made of a formula that provides a
height correction factor that can be applied to each
point obtained from the map to mark a true earth profile
plot.
d 12
d 25
h
1
.
7
K
where:
h = height correction factor added to the contour height (m)
d1 = distance from a contour point to one end of the path (km)
d2 = distance from same contour point to the other end of the path (km)
K = the ‘equivalent earth radius factor’
34
Path Profile
● The ‘equivalent earth radius factor K’ account for the radio
wave is bent towards the earth because of atmospheric
refraction.
● This amount varies with changing atmospheric conditions.
● For frequencies below 1 GHz it is sufficient to assume that
for greater than 90% of the time K will be equal to 4/3.
● To allow for periods where a changing K will increase
signal attenuation, a good fade margin should be allowed
for.
Path Profile
● The K factor allows the radio path to always be drawn in
a straight line and adjusts the earth's contour height to
account for the bending radio wave.
● Once the height has been calculated and added to the
contour height, the path profile can be plotted.
● From the plot it can now be seen if there are any direct
obstructions in the path
35
Corrected path profile
220
Altitude (metres above sea level)
200
Corrected terrain
180 Line of sight radio path
160
140
Calculated terrain
120
0 2 4 6 8 10 12 14 16 18
Distance (km)
Fresnel zone
● As a general rule, the path should have good clearance
over all obstructions.
● There is an area around the radio path that appears as
a cone that should be kept as clearance for the radio
path.
● This is referred to as the Fresnel Zone
Fresnel zone
36
Fresnel zone
● Fresnel zone clearance is of more relevance to
microwave path prediction than to radio path prediction.
● The formula for the Fresnel zone clearance required is:
d 1f
d D
F
2
*
where
F = Fresnel zone clearance (i.e. radius of cone (m))
d1 = distance from contour point to one end of path (km)
d2 = distance from contour point to other end of path (km)
D = total length of path (km)
f = frequency in MHz
Fresnel zone
● If from the plot it appears that the radio path is going
dangerously close to an obstruction, then it is worth
doing a Fresnel zone calculation to check for sufficient
clearance.
● Normally the mast heights are chosen to provide a
clearance of 0.6 x the Fresnel zone radius.
● This figure of 0.6 is chosen because it firstly gives
sufficient radio path clearance and secondly assists in
preventing cancellation from reflections.
● At less than 0.6 F, attenuation of the line of sight signal
occurs.
● At 0.6 F there is no attenuation of the line of sight signal
and therefore there is no gain achieved by the extra
cost of providing higher masts.
37
Diffraction losses
● Another important point to consider is that frequencies
below 1 GHz have good diffraction properties.
● The lower the frequency the more diffraction that
occurs.
● Therefore, for very long paths it is possible to operate
the link with a certain amount of obstruction.
● It is important to calculate the amount of attenuation
introduced by the diffraction and determine the affect it
has on the availability (i.e. fade margin) of the radio link.
● Assume a hill obstructing the radio path.
● Therefore a calculation is required to be carried out to
determine the attenuation due to diffraction at this hill.
● This would be then added to the total path loss to
determine if the link will still operate satisfactorily.
Diffraction losses
220
Altitude (metres above sea level)
200 RTU (1 W
Master (5 W Diffraction loss = 23 dB
transmitter)
180 transmitter)
450 MHz
160
140
120
0 2 4 6 8 10 12 14 16 18
Distance (km)
38
RF path loss calculations
Reflection losses
● Reflection losses are difficult to determine.
● First of all the strength of the reflected signal depends on
the surface it is reflected off (e.g. water, rock, sand).
● Secondly, the reflected signal may arrive in phase, out of
phase or at a phase angle in between.
● So reflected waves can be anything from totally
catastrophic to enhancing the signal.
● Good engineering practice should always assume the
worst case, which would be catastrophic failure.
39
Transmitter power/receiver sensitivity
● The next step is to determine the gain provided by the
transmitters.
● Generally, regulations require that RTUs are allowed to
transmit a maximum of 1 W into the antenna
● Master stations can transmit 5 W (sometimes higher).
● Consequently, the path direction from the RTU to the
Master should be considered.
● The transmit power should be converted to a dBm figure.
For an RTU this would be as follows:
1000
Power 10 log dBm
1
Power = + 30 dBm
40
Transmitter power/receiver sensitivity
● A de facto standard is used where the RF signal is at its
lowest but still intelligible.
● This level is referred to as the 12 dB SINAD level.
● Again, this figure is obtained from manufacturer's data
sheets.
● For a typical 450 MHz radio this level is approximately -117
dBm.
41
Other factors
● There are in fact a number of other factors that need to be
taken into account that include:
Signal to Noise Ratio (SNR) – a measure of the signal power level
compared to the noise power level at a chosen point in a circuit.
SINAD level – Signal to Noise and Distortion
Fade margin – a safety margin to cater for the unpredictability of
the link.
A typical fade margin allowance is approximately 30 dB.
● Interference due to:
Another radio user operating close by on the same frequency as
the system suffering from interference.
Noisy transmitters that emit spurious frequencies outside their
allocated bandwidth.
Intermodulation due to two or more frequencies interacting in a
non-linear device such as a transmitter, receiver or their environs,
or on a rusty bolted joint acting as an RF diode to produce one or
more additional frequencies that can potentially cause interference
to other users.
42
Design of SCADA system
Section 9.
Basic digital transmission systems
SCADA Systems - Transitioning
from Beginner to Advanced
Section 9.
Basic digital transmission systems
1
Data communications with unbalanced lines
Signal 1
Tx Rx
Signal 2
Rx Tx
Signal 3
Tx Rx
Signal 4
Tx Rx
Signal Common
Signal 1
Tx Rx
Signal 2
Rx Tx
Signal 3
Tx Rx
Signal 4
Tx Rx
Signal Common
2
Data communications with a balanced lines
A (-)
Tx A (+) Signal 1 Rx
A (-)
Rx A (+) Signal 2 Tx
A (-)
Tx A (+) Signal 3 Rx
A (-)
Tx A (+) Signal 4 Rx
Signal Common
RS 232
3
Typical Serial Data Communications Link
RS 232 RS 232
DTE DCE DCE DTE
Terminal Modem Modem Terminal
DTE vs DCE
● DTE
Data Terminal Equipment
Transmits on Pin 2 for 25-pin connector
● DCE
Data Communications Equipment
Transmits on Pin 3 for 25-pin connector
4
DB 25-pin connector
Chassis Ground 1
1
Transmit Data (TxD) 2
2
Received Data (RxD) 3
3
Request To Send (RTS) 4
4
Clear To Send (CTS) 5
5
Data Set Ready (DSR) 6
6
Signal Ground (Common) 7
7
Data Carrier Detect (DCD) 8
8
Data Terminal Ready (DTR) 20
20
Ring Indicator (RI) 22
22
Data Signal Rate Selector (DSRS) 23
23 (Rarely supported)
Terminal Modem
DTE DCE
© 2017 Crabtree Controls Ltd. All Right Reserved 9
DB 9-pin connector
5
Voltage Levels for EIA-232
+25 V
‘0’
Logic ‘0’
+3 V
Transition
region –3 V
Logic ‘1’
Idle state ‘1’ ‘1’
+25 V
Enabled ‘ON’
Logic ‘1’
+3 V
Transition
region –3 V
Logic ‘0’
Disabled ‘OFF’ Disabled ‘OFF’
6
Handshaking
Handshaking
Chassis Ground 1
1
Transmit Data (TxD) 2
2
Received Data (RxD) 3
3
Request To Send (RTS) 4
4
Clear To Send (CTS) 5
5
Data Set Ready (CTS) 6
6
Signal Ground (Common) 7
7
Data Carrier Detect (DCD) 8
8
Data Terminal Ready (DTR) 20
20
Ring Indicator (RI) 22
22
Data Signal Rate Selector (DSRS) 23
23 (Rarely supported)
Terminal Modem
DTE © 2017 Crabtree Controls Ltd. All Right Reserved DCE 14
7
Handshaking
Handshaking
Chassis Ground 1
1
Transmit Data (TxD) 2
2
Received Data (RxD) 3
3
Request To Send (RTS) 4
4
Clear To Send (CTS) 5
5
Data Set Ready (DSR) 6
6
Signal Ground (Common) 7
7
Data Carrier Detect (DCD) 8
8
Data Terminal Ready (DTR) 20
20
Ring Indicator (RI) 22
22
Data Signal Rate Selector (DSRS) 23
23 (Rarely supported)
Terminal Modem
DTE © 2017 Crabtree Controls Ltd. All Right Reserved DCE 16
8
Handshaking
Handshaking
9
Limitations of RS 232
● Point-to-Point
● Distance Limitation (50 ft)
● 19.2 kbaud
● -3 to -25V and +3 to +25 V
Revision D
• 25-pin D connector formally recognised
• 50 ft distance constraint modified to 2500 pF
Revision E
• 26-pin ALT A connector recognised
Revision F
• Slew rates specified
10
Baud rate vs. cable length
Shield 1 1 Shield
Tx 2 2 Tx
Rx 3 3 Rx
RTS 4 4 RTS
CTS 5 5 CTS
DSR 6 6 DSR
Com 7 7 Com
CD 8 8 CD
DTR 20 20 DTR
RI 22 22 RI
DTE DTE
11
Null Modem without handshaking
9 9
4 4
8 8
3 3
7 7
2 2
6 6
1 1
RS 485
12
The drop line vs. daisy chain
Trunk line
13
Traditional junction block
+ +
Trunk S S Trunk
- -
+ S -
Spur
© 2017 Crabtree Controls Ltd. All Right Reserved 27
+ +
Trunk S S Trunk
- -
+
S
-
Transceiver
© 2017 Crabtree Controls Ltd. All Right Reserved 28
14
EIA 485 standard
● RS 485 uses balanced data line transmission.
● The transmitter generates a typical voltage of 5 V between
the A and B outputs.
● When idle (logic 1) there is +5 V on B and 0 V on A.
● For correct operation a return signal path between the
grounding of individual devices is required .
● This is realised by a grounding wire.
15
Three States
● The RS 485 standard can be configured in either a half- or
full-duplex mode.
● In the half-duplex mode, all the devices are connected to a
single twisted pair cable.
● Obviously, only one transmitter can be active at any time.
Two-wire multi-drop
A (-)
Tx Rx
Tx Rx
B (+)
Rx Tx
Rx Tx
Tx Tx
Tx Tx
Rx Rx
Rx Rx
16
Idle state
0V
1
Tx 1
+5 V
0V
1
Tx 2
+5 V
0V
1
Tx 3
+5 V
0V
1
Tx 4
+5 V
Active state
1 0V
Tx 1
+5 V
1 0V
Tx 2
+5 V
1 0V
Tx 3
+5 V
0 +5 V
Tx 4
0V
17
Three States
● Consequently, in order to allow several devices to share a
single line, and at the same time prevent more than one
device from actually transmitting at a time, all the
transmitters have an Enable input that sets the transmitter
outputs to a high impedance state.
● Such drivers are said to have tri-state outputs:
Logic 1
Logic 0
High Impedance - Hi-Z
Idle state
Tx 1 Hi-Z Up to 1200 m
Enable
Tx 2 Hi-Z
Enable
Tx 3 Hi-Z
Enable
Tx 4 Hi-Z
Enable
18
Problem 3
● However, when all the transmitters are disabled and are in
a high impedance state, the line will be in an undefined
state and be susceptible to noise pick up.
● In order to overcome this problem use is made of ‘Fail Safe
Biasing’
● Frequently referred to as a ‘live terminator’ or ‘power
terminator’.
Live termination
+5 V
0V
Tx 1 Up to 1200 m
+5 V
Enable
0V
Tx 2
+5 V
Enable
Tx 3 0V
+5 V
Enable
0V
Tx 4
+5 V
Enable
19
Problem 3
● Without such biasing the receiver outputs are
undetermined when the drivers are in their Hi-Z state and
the line would then settle within the receivers’ threshold
limits (200 mV)
● The fail-safe bias ensures that the bus differential voltage
is in a defined state (2.5 V) when all the transmitters are
idle.
Four-wire multi-drop
Master Slave
Tx Rx
Tx Rx
Rx Tx
Rx Tx
Slave Slave
Tx Tx
Tx Tx
Rx Rx
Rx Rx
20
RS - 485 with Repeaters
Tx Rx Tx Rx
Rx Tx Rx Tx
● Advantages
Elimination of reflections
● Disadvantages
Increased load on the drivers
Increased installation complexity
Changed biasing requirements
System modification more difficult
21
Terminate or not to terminate?
22
Terminate or not to terminate?
23
Exercise 7
Exercise 7 - Answer
● What is the time of one round trip?
1200
6 μs
3 10 8 0.66
24
Exercise 7 - Answer
18 s
Exercise 7 - Answer
18 s
104 s
Is matching required?
25
Exercise 8
18 s
36 s
Exercise 8- Answer
10 6
bit width
baud rate
Approximately 28 kbaud
26
The EIA-422 Balanced Line Driver Connections
RS 422 RS 422
Transmitter Balanced line with Receiver
differential voltages
Line Driver A (-) (-5 to + 5 V) Line Receiver
B (+)
Up to 1200 m 10
Terminating
Resistor
1 2 9
Up to 10 receivers
RS-485 vs RS-422
27
Installation Troubleshooting
1k
Cable length (m)
1200
100
Many RS 422/485
systems run up to
5000 m at 1200 bps
10
1K 10 K 100 K 1M 10 M
Data signalling rate (bits/s))
28
RS-232/422 Converter
RS 232 RS 422
RS 232 to 422 Converter
A (-)
Tx Tx Rx Tx B (+) Rx Rx
Processor A (-) Processor
Rx Rx Tx Rx B (+) Tx Tx
Com Com
RS-232/485 Converter
RS 232 RS 485
RS 232 to 485 Converter
A (-)
Tx Tx Rx Tx B (+) Rx Rx
Processor Processor
Rx Rx Tx Rx Tx Tx
Com Com
29
Error detection
Error detection
46
Parity
Cyclic redundancy
● Developed to check data transfers from disk drives
● Used with large messages
● Also sends a check character
● The information bits, taken in conjunction, correspond to
the coefficients of a message polynomial having terms
from Xn-1
(n = total number of bits in a block or sequence) down to X16 + X12 +
X5 + 1.
● The check bits correspond to the coefficients of the terms
from X15 to X0 in the remainder polynomial found at the
completion of this division
47
Cyclic redundancy
● The basic idea of the CRC algorithm is to simply treat the
message (the Dividend) …as a huge binary number
Divide it by another fixed binary number (the Divisor)
This gives rise to an answer comprising the Quotient…
…and the Remainder
Throw the quotient away …
… and make the Remainder the CRC error check.
Message (Dividend)
= Quotient + Remainder
Fixed key (Divisor)
Cyclic redundancy
Upon receipt of the message, the receiver performs the
same division and compares the remainder with the
transmitted remainder.
If they differ, the message must have been corrupted.
If, they are equal, the odds are very good that the
message went through uncorrupted.
48
Cyclic redundancy
The polynomial
CRC-16
● X16 +X15 + X2 +1
Where X denotes those positions that are a binary 1
i.e. 1100 0000 0000 0010 1 (18005 hex)
● A polynomial of degree 16 has 17 coefficients and thus
requires a 17-bit number to store it.
● However, since we know that the highest coefficient (in
front of x16) is 1, we don't have to store it.
● The key is thus normally expressed as:
0x8005
49
The polynomial
CRC-CCITT
● X16 +X12 + X5 +1
i.e. 1000 1000 0001 0000 1 (11021 hex)
● which, again, is expressed as:
0x1021
CRC-32
● X32+X26+X23+X22+X16+X12+X11+X10+X8+X7+X5+X4+X2+X+1
i.e. = 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0 0 1 1 1 0 1 1 0 1 1
0 1 1 1 (104C11DB7 hex)
● which, again, is expressed as:
0x04C11DB7
Cyclic redundancy
● Detects virtually 100% of errors:
all single bit errors
any odd number of errors
all single and double errors in the message format
any two burst errors of two bits in the message format
any single burst of 16 bits or less
all but 1 in 32768 bursts of exactly 17 bits
all but 1 in 65536 bursts of greater than 17 bits
● The use of CRC greatly improves the error rate.
● Typical improvements of the order of 105
● For a circuit with a basic error rate of 1 in 105, this gives an
undetected error rate of 1 in 1010
50
Cyclic Redundancy
● The checking process can be implemented relatively
easily in
software
hardware (chips available to do this)
51
Design of SCADA system
Section 10.
Fieldbus systems
SCADA Systems - Transitioning
from Beginner to Advanced
Section 10.
Fieldbus systems
Modbus
1
Modbus Protocol
Open Protocol
2
A De-facto Standard
● Widespread acceptance.
● PLC jargon used in describing the standard....but used in
instruments/gas chromatographs....etc
● Two Versions:
Modbus RTU (Sometimes Modbus-B)
Modbus ASCII
● Have almost identical format except that RTU being binary
is more compact.
OSI Model
3
Modbus Protocol Structure
DATA field
1 Byte 1 Byte Variable 2 Bytes
Memory Structure
110 V d.c. Coil 24 V d.c. Input
(Digital/Discrete Input) (Discrete Input)
Slave Node
Master
Node 16-bit input register 16-bit output register
ADC DAC
4 – 20 mA 4 – 20 mA
Analog Input Analog Output
© 2017 Crabtree Controls Ltd. All Right Reserved 8
4
The Application Layer
5
Addresses and function codes
6
Read coil status
Request message
Address field
Number
of points
offset
Initial
Function
Code
CRC
Hi Lo Hi Lo
01 01 00 0A 00 02 9D C9
Response frame
Byte count
Coil data
Function
Address
Code
CRC
field
01 01 01 03 9D C9
0D 0C 0B 0A 09 08 … …
HEX
0 0 00
0 1 01
1 0 02
1 1 03
7
Read coil stutus
Request message
Address field
Number
of points
offset
Initial
Function
Code
CRC
Hi Lo Hi Lo
01 01 00 0A 00 04 9D C9
Response frame
Byte count
Coil data
Function
Address
Code
CRC
field
01 01 01 05 11 89
8
Write Request
● Can you trust the response that comes back when you
are writing a critical parameter down ?
● Methods to check:
Do a subsequent read request of that parameter.
Check some other associated parameter..e.g. start a
pump..check flow rate...
Loopback Test
● Function Code 08
● Tests the operation of the communications system without
affecting the memory tables of the slave device
● So… usually a simple return of the query message
9
Read coil status
Request message
diagnostic
Address field
Data
Function
Data
cod
Code
CRC
Hi Lo Hi Lo
11 08 00 00 A5 37 --
Response frame
diagnostic
Address field
Data
Function
Data
cod
Code
CRC
Hi Lo Hi Lo
11 08 00 00 A5 37 --
© 2017 Crabtree Controls Ltd. All Right Reserved 19
10
Modbus Exception Responses
Request message
Address field
Initial offset
Number of
Function
points
Code
CRC
01 01 02 01 03 9D C9
Response frame
Exception
Function
Address
Code
CRC
code
field
01 81 02 9D C9
11
ProfiBus
Introduction
● Why have we have ended up with so many industrial
communications systems?
● The origins go back at least a 20 years to the days of the
ISA SP 50 (the same committee that standardised on the
4 – 20 mA current loop).
● By 1994, two organisations, the Interoperable Standards
Project (I SP) and WorldFIP, were vying for dominance as
the field bus standard.
● In the second half of 1994 there was an agreement to
merge the two specifications in the interests of
standardisation.
● The result was the Fieldbus Foundation.
12
Introduction
● Unfortunately this did not result in agreement among the
original contenders and, as a result, we now have
Profibus (formerly ISP), WorldFIP, and Foundation
Fieldbus as the main contenders.
● The problem is partly that of vested interests, partly
conflicting requirements for different applications, and
partly due to end-user lack of interest in the details.
● This is compounded by the reluctance of the various bus
proponents in differentiating their offerings and at the
same time, trying to keep them proprietary.
Introduction
● Profibus (Process Field Bus) is the outcome of a joint project
started in 1987 by Siemens and supported by Bosch and Klöckner-
Müller.
● Profibus comprises a suite of protocols:
Motion Control
PROFIBUS DP PROFIBUS PA with PROFIBUS PROFIsafe
(Manufacturing) (Process) (Drives) (Universal)
Application Application Application Application
Profiles, Profiles, Profiles, Profiles,
for example for example for example for example
Ident. Systems PA Devices PROFIdrive PROFIsafe
RS485
RS485 MBP-IS RS485
MBP-IS
13
Relationship between the three protocols
Factory
Ethernet TCP/IP Ethernet TCP/IP
level Area
Controller
Bus cycle time PC/VME
< 1000 ms
CNC
level
Bus cycle time
< 10 ms
Profibus DP
14
Profibus DP
DP-Master
Class 1
PROFIBUS-DP
Profibus DP
The DP Master Class 1 is typically a PLC or process
controller.
Data transmission between the master controller and
the slaves is executed automatically by the master in a
defined, cyclical order.
The central controller (master) reads input information
from the slaves cyclically and writes output information
to the slaves cyclically.
DP only requires approx. 1 ms at 12 Mbit/s for the
transmission of 512 bits of input and 512 bits of output
data distributed over 32 stations.
15
Profibus PA
Profibus PA
16
Profibus PA
PROFIBUS-DP
10 mA
10 mA
10 mA
Segment
coupler
MBP-IS 31.25 Kbit/s 10 mA
24 V
Foundation Fieldbus
17
Introduction
Feature Profibus PA
Transmission type IEC 61158-2
Transmission medium Shielded twisted-
pair cable
Maximum distance of single 1900 m
element
Maximum number of nodes on a 32
single element
Total length (with the extension) 10 km
Total number of nodes (with the 126
extension)
Bus-powered field devices? Yes
Intrinsic safety? Yes
Connect/disconnect live network? Yes
Topology Bus, tree
18
Comparison of the Physical Layer of Profibus PA and Foundation Fieldbus
Factory
Ethernet TCP/IP Ethernet TCP/IP
level Area
Controller
VME/PC
PC/VME
PLC
+.......- I........
Flow ........ ..P
rate totaliz Over
er range
19
Source/Destination Model
Source/Destination Model
5 6
4 2 7
1
20
Producer/Consumer Model
2 3
FIELD LEVEL
+.......- I........
Flow ........ ..P
rate totaliz Over
er range
21
Link Active Scheduler (LAS)
FIELD LEVEL
+.......- I........
Flow ........ ..P
rate totaliz Over
er range
FIELD LEVEL
+.......- I........
Flow ........ ..P
rate totaliz Over
er range
22
Cyclic vs. acyclic
23
Cyclic vs. acyclic
Schedule
Device A
CD to Device B
Device B
Device C
Fieldbus
LAS
24
Function blocks
Bias B Proportional/derivative PD
Function blocks
25
Function blocks
AI AI AI
AI DI ML
AI
Input PID PD PID
AO DI
AO DO AO AO AO
Manual Control
Output Feedback Control Track, Feedforward
Capability in Control
AI AI AI
AI AI AI AI
PID
PID PID
RA PID
BG BG
SS PID PID
AO AO AO AO AO
Function blocks
Fieldbus
26
Application profiles
OUT
(Measured value)
Profibus PA vs. FF
Profibus PA
● instruments unable to communicate with each other so
that no control is available in the field;
● pre-configuration of instruments required using DIP
switches;
● time stamping not available; and
● Profibus PA needs to be connected to Profibus DP.
Thus, if control system fails PA instruments stop
communicating.
27
Profibus PA vs. FF
Foundation Fieldbus
● automatic address assignment (true Plug ‘n Play);
● deterministic highway communication;
● control in the field, giving improved redundancy;
● standard library of function blocks;
● master clock (Link Active Scheduler);
● trends any input or output parameter - holds last 16
values and statuses;
● meaningful device status;
● tag search function; and
● Device Description (EDDL)
28
DNP and IEC 60870
Preview of DNP3
● What is DNP3?
● Open standards and interoperability
● Early SCADA Standards
● DNP3 and IEC 60870
● Implementors of DNP3
● Features and Benefits of DNP3
29
What is DNP3?
30
Designed for SCADA
Is it widely supported?
● Industry ● Geographic
Began in Electric North America
Utility Industry in 1993 Asia
Oil & Gas Australia
Water & Wastewater South Africa
Middle East
31
Open Standards
● Available to all
● Offer benefits if:
Widely supported
Are sufficiently detailed
Are accurately implemented
So that systems interoperate
● Benefits
Greater choice of equipment
Competition
Extended life-cycle
Can add functionality in future
Can upgrade system incrementally
32
IEC 60870
IEC 60870
33
DNP3 and IEC 60870
IEC 870
Overall framework
Implementors of DNP3
● ABB Network Control
● ABB Power T&D Co.
● Advanced Control Systems
● Siemens Energy & Automation
● Harris Controls
● Leeds & Northrup
● Bailey Network
● CI Technologies
● Triangle Microworks
● Hunter Watertech
● Novatech Limited
● www.dnp.org.com
34
DNP features
● System topology
Master - slave
Multiple master
Direct or one-on-one
Multi-drop
Hierarchical
● Operating Modes
Polled static operation
Polled Report-by-Exception
Unsolicited Report-by-Exception with background integrity poll
Unsolicited Report-by-Exception ONLY or quiescent
DNP3 features
35
DNP3 features
Benefits of DNP3
Open Standard
Supported by an active DNP user group
A protocol that is supported by a large and increasing
number of equipment manufacturers
Layered architecture conforming to IEC enhanced
performance architecture model
36
Benefits of DNP3
It is an open protocol
It is optimised for SCADA communications
It provides interoperability between different vendor’s
equipment
It is supported by a substantial number of SCADA
equipment manufacturers
It will provide immediate and long-term benefits to users
37
IEC 61850
38
What is XML?
39
Benefits of the IEC 61850
GOOSE
40
GOOSE
GOOSE
41
Sampled Value (SV)
Object modelling
Network
42
Object modelling
Object modelling
43
Comparison of DNP3 with IEC61850
44
Design of SCADA system
Section 11.
Cyber Security
SCADA Systems - Transitioning
from Beginner to Advanced
Section 11.
Cyber Security
1
Major differences
Major differences
Priority IT SCADA/ICN
1 Confidentiality Availability
2 Integrity Integrity
3 Availability Confidentiality
2
Security issues in ICS
Soft Targets
3
Multiple Pathways
‘Flat’ Networks
4
Threat sources
5
Threat sources – corporate intelligence
6
Threat sources – disgruntled staff
7
Threat sources – hackers
8
Threat sources – protestors and activists
9
Threat sources – terrorists
Hardened perimeter
Office Network
Firewall Firewall
10
Use of firewalls
SCADA
Viruses
SCADA
e-mails
SCADA
@
Spy-ware
Firewall
© 2017 Crabtree Controls Ltd. All Right Reserved 21
Defence in depth
Office Network
Firewall Firewall
11
Remote access
Remote
maintenance Office Network
Remote access
Firewall Firewall
Internet VPN
Firewall
12
Typical SCADA layout
Engineering
workstations
HMI
Modem RTU
Modem PLC
Modems/
Data SCADA Master routers
historian Terminal Unit Modem RTU
13
Remove or disable unnecessary services
14
Do not rely on proprietary protocols
15
Beware of back doors
16
Perform technical audits
17
Make someone responsible
18
Make use of USB port blockers
19
Design of SCADA system
Section 12.
Functional Design Specification (FDS)
SCADA Systems - Transitioning
from Beginner to Advanced
Section 12.
Functional Design Specification
(FDS)
1
Functional Design Specification (FDS)
Overview
2
Overview
Purpose
3
Process
Methods
4
Examples of functional specifications
5
System Development Life Cycle (SDLC)
Management
Control
SDLC Phases Control
Objectives
Domains
Project Definition
Planning &
User Requirements Organization
Definitions
System Requirements
Control Objectives
Acquisition &
Definitions
implementation
Analysis and Design
Delivery &
System Build/
Support
Prototype/Pilot
Implementation and
Training
Monitoring
Sustainment
6
Design of SCADA system
Section 13.
SCADA Troubleshooting, Maintenance
and Best Practice.
SCADA Systems - Transitioning
from Beginner to Advanced
Section 13.
SCADA Troubleshooting,
Maintenance and Best Practice
Troubleshooting
1
SCADA Troubleshooting – Communications
2
SCADA Troubleshooting – Hardware failures
3
Maintenance
SCADA Maintenance
4
SCADA Best Practice
1. Active monitoring
5
2. Forwarding system log data
NERC CIP: North American Electric Reliability Corporation critical infrastructure protection
3. Intrusion detection
6
Adroit step-by-step practicals
Install the Adroit SCADA simulator on your CD, under Software / Adroit / Adroit ver 5.
It is important to note that this is a trial version of the software, but it does not expire.
ADROIT (and, by the way, CITECT do the same), provide you will a fully functional version
of the program, and everything will operate, excepting that you will not be able to
communicate with tags out in the field, without a purchased lisence. In order to do this, you
purchase a lisence for the amount of tags that you will be utilising. When finished, you can
either uninstall the software, or leave it on your machine, as desired.
Install the software, using all of the defaults. Please install ver 5 (rather than ver 7, as
this does have very specific requirements).
Hint: To get a new page, click on File, New … and then select PICTURE from the following
screen:
To edit the background colour of a page, just double-click on it, and the following
screen will appear:
1
Firstly, always set the ANIMATION DELAY TIMER to 0. Then, near the top, next
to BACKGROUND COLOUR, press the EDIT button.
Please remember to save all of your images (File, Save As ,,,,) in C://ADROIT /
DATA, so that you can find them again, easily. In most cases, check on the right
hand side of the screen, to get boxes, circles, etc. If you do not see these, then you are
probably in the OPERATOR VIEW mode. To get back to the DRAWING /
EDITING mode, just press on the following icon, at the top:
2
Create the following images:
Hint: The most difficult one, will be the right-hand image. You ned to make use of the
“polyline”, and click and release each point. At the very last point, double-click. To
colour it in, double-click on the image, and make sure the following are selected
(especially the CLOSED and SOLID BACKGROUND at the bottom:
Create a tank farm. Here, you will be encouraged to use the following icons, on the
left-hand side of the screen:
3
The image must look as follows:
Hint: Create a new page. Press FILE / SAVE AS, and save as SCADA2. Delete the first
page, if necessary, by clicking on the X, to close the page. raw a single tank. (I have used
shaded colours, rather than solid.) Group the tank, once complete, and copy and paste it, to
create the other two tanks. Ungroup each tank, to change the tank number at the bottom.
Using the tools on the left, space and align, where necessary.
Create a new page, and save it as SCADA3. (To find the buttons, check out on the
right-hand side, under . It should look as follows:
4
We now need to create 2 x digital tags. At the top, middle, click on:
(If everything is greyed out, then your Agent Server is not running.)
Under TYPE, select DIGITAL. Under NAME, type in MOTOR1, and click ADD.
Under NAME, backspace on the last letter (which is 1), change it to a 2, and press
ADD. You should now have 2 x digital tags created. It will look as follows:
5
Close this small page. Double-click on the square. The following image will appear:
Leave the default colours of GREEN = ON, and RED = OFF. Click on the button:
next to TAG. The following screen will appear:
6
Click on the small + sign, next to DIGITAL, and select MOTOR1. Press OK and
FINISH (or, OK, OK, OK, etc.)
Double-click on the single button, under the square. Under BUTTON TEXT, type in
the word TOGGLE, and then press the BEHAVIOUR button. Double-click on
OPERATOR ACTION, and at the very top, link it (TAG) to MOTOR1. The page
should look as follows:
Near the bottom, under ACTION, click on the drop-down box next to CONTROL
ACTION, and select DIGITAL TOGGLE, right at the bottom.
At the top, click on the icon that looks as follows . This takes you from the
drawing mode to the observation mode. If it asks you to save anything, press YES.
The screen will look as follows:
7
Click on the button marked as TOGGLE. The screen should change as follows:
Now, press the button again, and double-click on the left hand button, under
the circle. Type in MOTOR START under BUTTON TEXT, and press
BEHAVIOURS. Double-click on OPERATOR ACTION, link it under TAG to
MOTOR2, and under CONTROL ACTION at the bottom, select DIGITAL ON.
Press FINISH.
Double-click on the right hand button, under the circle. Type in MOTOR STOP
under BUTTON TEXT, and press BEHAVIOURS. Double-click on OPERATOR
ACTION, link it under TAG to MOTOR2, and under CONTROL ACTION at the
bottom, select DIGITAL OFF. Press FINISH.
8
Now, press the button again (saving as nescesary), and click on the MOTOR
START and MOTOR STOP buttons. The circle should become visible, and
disappear, as the tag changes status.
Press the button again, and delete the white square. Press FILE / OPEN and
look under C:/ ADROIT / WIZARDS. Click on -WIZARDS MENU, and open it.
Click on MORE WIZARDS / MOTOR 2, and click on one of the top left motors
(such as . Press EDIT / COPY and then CLOSE (at bottom left).
Next to the word “ADROIT PATH”, see an icon block, which has a dotted box on the
inside. Click on this, and a new line with a directory will appear below it.
Right at the end of the (new) line is a downward arrow. Click on this, and drill in,
until you are in the new WIZARDS location (C:\Program Files (x86)\Adroit
Technologies\Adroit\Wizards) and press OK or OPEN or SAVE or whatever.
Press EDIT / PASTE and click on your SCADA3 screen. It will ask you to link the
motor, with the following screen.
9
Clicking on the down arrow, select MOTOR1, and press OK.
Go into the operator view, and click on the TOGGLE button. You have now
successfully used pre-configured diagrams.
Analog controls
We now need to create 2 x analog tags. At the top, middle, click on . (If
everything is greyed out, then your Agent Server is not running.)
10
Under TYPE, select ANALOG. Under NAME, type in TANK1, and click ADD. It
will look as follows:
Link it to the alalog tag, TANK1 (you will have to expand the + sign, next to analog.
Think how you did this with the digital tag!!)
Double-click on PERCENTAGE FILL. Link it to the TANK1 tag, make the fill
colour red, and press finish.
Go into the operator view, and click once on the up and down arrows of the slider,
and simulate a bigger and smaller level in the tank. It should look as follows:
11
Using digital displays
Move from the Operator to the drawing mode, using the icon.
Click on the icon (right hand side of screden), and click anywhere on your
screen, where you would like to display the tank level. Your screen may look
something like this …
12
Double-click on the word TEXT, select BEHAVIOUR, double-click on DISPLAY
VALUE, and under TAG, link it to the analog Tank1. Click on FINISH.
Press the icon (to get back to the operator viewing mode, and change the slider.
See how this is reflected, on the display. It should look something like this:
Wouldn’t it be nice to change the set point, without having to use the slider? Well, it
can be done, quite easily.
Go back to the drawing mode (using the icon), click on the icon, and
click somewhere below the slider.
Double-click on the new word TEXT, type in “Change SET POINT, here”, and click
on BEHAVIOURS.
Double-click on OPERATOR ACTION, link it to the analog TANK1 tag, and then
select the radio button marked as DATA ENTRY. Click FINISH. And go back into
the operator view. It should look as follows:
13
Move your pointer towards the text box that says “Change SET POINT here”. As
soon as the pointer moves over the wording, it will change to a hand. Type in any
value (between the limits provided on the screen), and the set point / value will
change. Think how you could use this to change set points, output values, etc.
14