Ee902 Notes
Ee902 Notes
Reza Katebi
Email: [email protected]
GH705
Ext: 4297
What is measurement?
1
How do we measure
Measurand
Compare Result
Standard
Measurand
Standard
Comparison Device
Hierarchy of Standards
Dimension
Unit
Definitions
Primary Standards
Secondary Standards
Working Standards
Methods of Comparisons
• Direct; Measuring a length with a tape
• Indirect: Measurement is inferred based on known facts and
observations
– Mass of electrons
2
• Measurement: is the process of determining the value of a physical quantity.
• Measurement Systems: is the means to determine a measurement.
Measurement
System
True Value Measured
Value
Thermocouple
Temperature voltage
• Errors
• Scales
• Accuracy
• Noise
Measurement
System
True Value Measured
Value
Thermocouple
Temperature voltage
• Errors
• Scales
• Accuracy
• Noise
3
Elements of a Measurement System
Sensor : is the element in contact with the process and change the information about
the variable into a form (value) which can be used by the other elements.
Resistance
Thermocouple
Resistance
Temperature
change
Types of Sensors
Physical
strain gauge Velocimeter
Accelerometer Thermistor
Load Cell Pressure Sensor
Chemical
Oxygen electrode CO2 sensor
Bioanalytical
Glucose Sensor Nitrate Sesnor
4
Thermistor (Temperature Sensor)
Lead wires
Semiconductor
Oxide
•Inexpensive
⎛ β ( T0 − T ) ⎞
•Nonlinear R = R 0 exp ⎜ ⎟
⎝ T0T ⎠
•Moderate stability
R 0 resistance at absolute zero T0
Force
d
A
A
C = ε R0
d
ε dielectric constant
5
Signal Conditioner: changes the sensor output into a suitable form for processing.
Examples: Amplifier, Wheatstone Bridge, Oscillator
Wheatstone
Sensor Amplifier
Bridge
True Voltage
Value
Data Presentation: Presents the measured value in a visual way, e.g. pointer, LED
display, printing, recording, transmitting
6
Load Strain Signal
Bridge Conditioning
Cell 1 gauge 2
Weight
Sensing 3 Signal Processing
4 5 6
1. Strain Change 7
2. Resistance Change DAC
3. Small Analogue Voltage Display
4. Amplified Signal Output
5. Digital Signal
6. Adjusted Signal (nonlinearity)
7. Display
Control Systems
Microprocessor
Measurement
System
potentiometer
Differential Motor
Amplifier
Speed
Control
Feedback
Taco
7
Ideal Instrument
• Low cost.
• Easy to use.
• Rugged / will work in harsh environments.
• Minimally disturb the phenomena being studied.
• high resolution.
• High temporal response (frequency response).
• Wide bandwidth.
• Measure quantities directly
8
• Selecting an appropriate device
– must match input requirements(1) and consider the future output requirements(2)
– range
– accuracy
– linearity
– speed of response
– reliability
– maintainability
– life
– power
– supply requirements
– ruggedness
– availability
– cost
• Select appropriate signal conditioning/signal processing
– must match output requirement (2)
– To be able to do this, we must be familiar with static characteristics, steady
state accuracy
– and dynamic characteristics.
Instrument Specification
Instrument
Specification
Temperature Operation
Humidity Documents
Static Dynamic Stability Others Pressure Safety
Vibration Maintenance
Power Quality
Supply
Accuracy, Shock
Repeatability, Step response
Linearity, Frequency Input Impedance
Sensitivity, Response Output
Hysterisis Impedance
Output Noise
Start-up drift
Long term Drift
Operational Life
Mounting Position
9
Disturbances
Transducer
• Transducer is the first element to perceive the measured variable.
Transducers convert physical variable into a signal.
10
Signals
Analogue Signals
– Infinite values possible
– Difficult. D/A conversions required.
– Susceptible to noise.
– Accuracy may decrease during transmission.
Digital Signals
– Output can take only a finite number of values
– Interfacing with a computer easy
– System more tolerant to noise.
– Accuracy is preserved.
11
Principles of Measurements
Calibration
The process of determining the relation between a measuring instrument
and a standard.
Example: Take a spring balance. Add known weights. Note down the
readings for each weight. This is calibration.
The above can be represented as a curve i.e a Calibration Curve.
Measurement
System
Known Input Observed Output
12
Static Characteristics
i/p
o/p
Linear
Approximation
i/p
i/p
13
Hysteresis: Dependence of
output to the direction of Max o/p
input variation. Reasons: Hysterisis
Looseness, Friction, Material o/p
characteristics, etc. Max i/p Hysterisis
Hysteresis usually i/p
expressed in terms of
percentage of full scale
reading
Next Calibration
i/p
14
Static Characteristics
• I be input, O be output
15
Linear or Nonlinear?
We define linear as follows:
A variable y given by y = a x, for some constant or function or system ‘a’, is
linear in x, if when
y1 = a x1 and y2 = a x2 then y = a(x1 + x2) = ax1 + ax2 = y1 + y2
q (t ) = k h (t )
Example 2: The ideal gas law:
P(t)V(t)/T(t) = constant = k
where P, V and T indicate pressure volume and temperature respectively.
u(t) u c (t)
C ontroller d u A ctuator
output output
16
Sensor’s nonlinear characteristic
Voltage from level sensor
(Volts)
3
2.5
Experimental results
1.5
Linear approximation
1
0.5 operating
region
0
0 5 10 15 20 25 30
Level in tank (cm)
This defines the nonlinearity at each input point as the error from the ideal straight line:
nonlinearity = actual value - ideal straight line value
The above can be checked on a point-by-point basis. However, for some instruments,
the nonlinear relationship between input and output is known.
17
Nonlinearity as a percentage of f.s.d
We can define the max nonlinearity as a percentage of f.s.d. (full scale deflection) or span:
H(I) = output when increasing the input – output when decreasing the input
H(I) = O(I)↑ - O(I)↓
18
What do we mean by tolerance?
Resistor coding
n tolerance band
Significant x10
Figures
Sensitivity
The static sensitivity of the instrument is the rate of change of the output w.r.t. to the
input
dO
S=
dI
The above expression can often be simplified to the ratio of the change in the
output ∆y to a corresponding change in the input, ∆u.
Sensitivities are often quoted as, for example, µV/oC.
∆O
S=
∆I
19
Sources of Errors
• Construction error
– These are inherent in the manufacture and arise from causes such as component tolerances.
• Approximation error
– This may occur when taking a linear representation for a nonlinear system.
• Operating error
– These can occur when taking readings from systems.
• Environmental effects
– For example, a change in temperature can affect pressure readings.
• Ageing errors
– Components may deteriorate over time.
• random errors are those that can vary between successive readings. By taking repeated
readings these errors can sometimes be successfully averaged out.
•Systematic errors are errors which do not vary from one reading to another due to
approximation or construction errors.
Out layers
20
Estimation of Random Errors
Errors
• Measurement error is the difference between the measured value and the
true value.
Two Types:
• Systematic Errors: These errors have identifiable source and can be
compensated by calibration.
– Zero Error, Zero Drift, Sensitivity Drift,etc.
– For example, a backlash in a screw gauge leads to a zero error.
– Systematic errors will be the same for all inputs (in the measurement range)
– One can re-calibrate the equipment to quantify systematic errors.
• Random Errors: These errors do not have an identifiable source and hence
cannot be corrected for.
– Measurement environment, like temperature fluctuations, Humidity, wind,
vibrations, background acoustic and electromagnetic noise, etc.
– Since this error arises from a multitude of sources, it is impossible to quantify.
However, since all interfering inputs contribute equally to random errors, it is
amenable to statistical treatment.
21
Error and Accuracy
Consider a voltmeter which has a full scale (FS) of 100 V. It takes a reading of 29.9 V when the true
value is 30 V. We can express the error in three forms.
(i) As an absolute error, that is, in terms of the measurement units absolute error
absolute error = 29.9 V - 30 V = -0.1 V
E=O–I
The accuracy is determined using the deviation from the true value of a measurement. It is often
expressed as an inaccuracy. That is a device whose accuracy is listed as 5% is actually 95%
accurate.
Example: A manufacturer’s specification sheet lists the percentage accuracy for a 0-1 m
level sensor as 1% of FS. What would be the possible range of true values for
readings of 0.9 m and 0.25 m.
Solution The accuracy is 1% of FS = 1% of 1 m = 0.01 m
(a) When the measured value, y, is 0.9 m, the accuracy listed permits an uncertainty of
±0.01 m, that is the output may lie 0.89 < y < 0.91 m.
(b) When y = 0.25, the same percentage accuracy applies and 0.24 < y < 0.26 m.
Example: A pressure gauge is quoted as having a combined error of ±0.5% of any value
indicated. What is the accuracy for a reading of 120kPa?
Solution: Accuracy of reading 0f 120kPa is 0.5% of 120kPa = 6kPa: 120± 6 kPa.
Example: An ammeter with a range of 0-5V gives the following calibration data. What is
the accuracy as a percentage of FS?
Reading (V) 0 1 2 3 4 5
Deviation (V) 0 0.02 0.05 0.01 0 -0.05
22
System errors
y y y
u K 1 K 2 K 3 Consider the measurement system
1 2 3
representing a data recording system.
transducer amplifier recorder
The transfer functions K1, K2 and K3 can assume a spread of values and should be written as K1 ±
∆K1. Hence the output of the first transfer function should be
y1 ± ∆y1 = (K1 ± ∆K1) u y2 ± ∆y2 =(K2 ± ∆K2)(y1 ± ∆y1) =(K2 ± ∆K2) (K1 ± ∆K1) u
y3 =K3K2K1
∆y3 ∆K3 ∆K2 ∆K1
1 +- y = 1± K ± K ± K
3 3 2 1
Hence the fractional uncertainty is the sum of the errors in each element of the measuring system.
This represents the worst possible accuracy.
23
Example:
Let K1 have an accuracy of ± 2%, K2 ± 1% and K3 ± 0.5%. What is the overall accuracy?
The overall accuracy is given by the sum of the errors:
Accuracy = ± (2 + 1 + 0.5) % = ± 3.5%
Opposing environmental inputs: Two strain gauges experience the same temperature effects.
Differential system: strain gauges placed to experience compression and tension forces.
-
H
Feedback instrumentation
24
Dynamic Response
The dynamic response of sensors concerns the transient response of an instrument to an input
signal.
Typical system responses
Fast response, but large
Slowly rising response to steady level oscillations, taking time to decay
0
0 0
0
Time Time
Output does not exceed final value, no Fast response, not such a large
oscillations, response not too slow
peak, oscillations decay quickly
0
0
Time 0
0
Time
y(t)
Transient Steady-state
Region Region
0
0
t
y(t)
Transient Steady-state
Region Region
0
0
t
25
First Order System
K τ
(τs + 1)Y(s) = K U(s) + τyo Æ Y(s) = U(s) + y
τs+1 τs+1 o
U(s) Y(s)
G (s)
K
G (s) = .
τs+1
Kro 300
Calculation of system gain, K: Read off the
steady state value of yss from the graph. 250
Given the intput step size ro, use the
equation yss=Kro to work out the system 0.63 *Kro 200
gain, K.
150
100
Calculation of time constant, t: Calculate
the value of yt (63% of the change in output). 50
Mark the value on the vertical axis. From the τ :time constant
vertical (y-axis) track across to the output 0
x
0 20
curve. Descend to the time axis, to determine 40 60 80 100 120 140 160 180
the time taken for the output to have altered Time (minutes)
by 63% of its change in value.
26
Time Delay
Very often in control we meet what is known as the first-order-lag-plus-
deadtime model. This is shown in diagram form as:
System output
3
First order lag Deadtime
2.5 Original response
U(s) K e− sTd Y(s)
τs+1 2 Delayed response
1.5
Ke− sTd
0 1 2 3 4 5 6 7
U(s) Y(s)
Deadtime Time (minutes)
τs + 1
1 d2y 2ξ dy
+ + y(t) = Ku(t) u(t) and y(t) represent the input and
ωn2 dt 2 ωn dt output signals
Three parameters:.
K: the system gain,
Kωn2 z : the damping constant
y= u Wn: the natural frequency
s + 2ξωn s + ωn2
2
output
time
tr ts
27
Second Order Responses
Damping value Description of output Output step response
response
Y
ζ1 = 0.2 Underdamped:
output has large overshoot
on steady state level,
output is oscillatory 0 t
ζ1 = 0.4 Underdamped:
output is less oscillatory,
but still overshoots the
steady state level, to a 0 t
lesser Y
ζ1 = 4.0 Overdamped:
output has no overshoot,
the response is slow and
sluggish, takes a longer 0 t
Overshoot
System overshoot
The overshoot is an indication of the largest error between the reference
input and the output.
peak value - final value
percent overshoot = O.S. (%) = final value x 100 percent
System Output
1.2
Peak value = 0.97
0.9 Overshoot
0.75
0.6
Final value
0.3
0
0 5 10 15 20 25 30
Time (secs)
- ζπ
In general: O.S.(%) = 100 exp ( )
1 - ζ2
28
Settling Time
Settling-time
This is the time required for the system to rise and settle within a given percentage
of its final value.
System output
1.6
1.2
1.05
1
0.95
0.8
point at which
response stays
within 5% bound
0.4
on final value
settling time
0
0 5 10 ts 15 20 25 30
Time (secs)
For the 2% and 5% bound, we find:
Rise Time
The rise time is the time required for the system to change from, say,
10 percent to 90 percent of its final value.
System output
1.6
1.4
1.2
0.8
0.6
0.4
tr (10%,90%): rise time
0.2
0 5 10 15 20 25 30
Time (secs)
29
Repeatability
This is the ability of the device to give the same output for the same input under the same
conditions, for a number of occasions. A lack of repeatability is caused by random
fluctuations with time in the environmental inputs. Random fluctuations are modelled
by a probability density function , p.d.f.
Spread of a distribution
p(x)
σ
p − σ, σ = ∫− σ p( x )dx = 0.683
2σ
p− 2σ,2σ = ∫− 2σ p( x )dx = 0.955
3σ
x p − 3σ,3σ = ∫− 3σ p( x )dx = 0.997
−3σ −2σ −σ σ 2σ 3σ
Repeatability test
1 k=N
Presume a set of ‘N’ readings taken. O= ∑ Ok
Mean given by:
N k =1
⎡1 ⎤
σ o = ⎢ ∑kk ==1N (Ok − O 2 )⎥
Standard deviation: ⎣ N ⎦
Can plot a histogram of results and compare with the Gaussian p.d.f.
30
Example: Error Bands
The manufacturer often provides a band, such that for any input I, the output will be O ± h.
O p(O)
1/(2h)
h
I O
h Ox h
Note that the probability of the output O lying between –h and +h is unity.
An Approximation for the +/- h p.d.f to the Normal one is to let the standard deviation be h.
Example
Given the following values:
Variance =
[ (31-32.8)2+(27-32.8)2+(37-32.8)2+(33-32.8)2+36-32.8)2 ] / 5
= 12.96
31
Standard Deviation
• Variance is hard to visualize since it is the square of the units of the variable of
interest .
• It is more common to present the square root of the variance, the standard
deviation.
Example
• Given the following data;
15,19,18,15,16,12,19,15,18,16
1. Minimum = 12; maximum = 19.
2. Let’s choose 4 equal intervals between 10 and 21, each interval consisting of three values
(inclusive);
• Interval 1: 10-12
• Interval 2: 13-15
• Interval 3: 16-18
• Interval 4: 19-21
32
Histogram Example
• Let’s count the number of observations of the data that fall into each interval.
1 1 {12}
4 2 {19, 19}
Histogram
4
Count
3
2
1 2 3 4
Class Interval
33
Sets of Data
Load45 Load90 Load135 Load180
35 15 4 0.5
18 26 18 2
41 10 16 6
42 11 19 7
20 24 16 1
38 15 12 4
45 16 4 1.5
34 13 14 1
26 3 7 5
91 14 11 3
40 1 5 14
19 26 6 8
18 18 13 2
3 31 11 10
34 50 8 2
22 3 15 18
40 27 1 2
35 36 5 3
18 17 19 7.5
14 12 13 1
7 7 18 1
13 16 13 4
41 2 4 6
24 12 1 1
13 9 12 0.5
34 2 1
11 3
9 5
7
Layered Reports
Specimen: Total
Std. % of Total % of Total
Sum N Mean Deviation Sum N
Load45 298 10 29.80 5.27 100.0% 100.0%
load90 163 10 16.30 2.21 100.0% 100.0%
load135 115 10 11.50 2.92 100.0% 100.0%
load180 73 10 7.30 2.21 100.0% 100.0%
34
Data for Histograms
Load45
Valid Cumulative
Frequency Percent Percent Percent
Valid 20 1 10.0 10.0 10.0
25 1 10.0 10.0 20.0
26 1 10.0 10.0 30.0
27 1 10.0 10.0 40.0
31 2 20.0 20.0 60.0
32 1 10.0 10.0 70.0
33 1 10.0 10.0 80.0
36 1 10.0 10.0 90.0
37 1 10.0 10.0 100.0
Total 10 100.0 100.0
Load45 Histogram
This frequency
1.5
distribution
1.0
appears “normal” or
Gaussian.
Frequency
.5
Std. Dev = 5.27
Mean = 29.8
0.0 N = 10.00
20.0 22.5 25.0 27.5 30.0 32.5 35.0 37.5
Load45
35
Load90 Histogram
load90
6
This frequency
5 distribution also
appears “normal”
4
or Gaussian.
3
2
Frequency
0 N = 10.00
12.0 14.0 16.0 18.0 20.0
load90
Load135 Histogram
load135
6
This frequency distribution
appears “log-normal” with the
5 majority of the data
concentrated on the left side
4 of the distribution. This curve
is skewed right.
3
2
Frequency
0 N = 10.00
10.0 12.0 14.0 16.0 18.0
load135
36
Load180 Histogram
load180
5
2
Frequency
1
Std. Dev = 2.21
Mean = 7.3
0 N = 10.00
6.0 8.0 10.0 12.0
load180
The term signal conditioning is used for the components that convert
the signal from the sensor to a signal which is more appropriate for
further processing – or display or control.
Signal output is usually a d.c. voltage, d.c.current or variable frequency
a.c. voltage.
37
Current transmitters
• Varying signalling standards. e.g. 10-50 mA standard, 1-5 mA standard or 4-20 mA standard.
• 1975: ISA's standards Practices Committee 50 (SP50) endorsed the 4-20mA standard.
• Further development includes the introduction of smart or intelligent transmitters.
• Computer calculations: instrument can account for accuracy/temperature compensation etc.
• Remote diagnosis of faults (signals within transmitter can be monitored)
• Remote re-ranging: control room can reset the span and zero of instrument
• Remote identtification: For Maintenance purposes
• Digital Communications: digital signal superimposed on 4-20mA carrier.
• Local indication of signal: Often analogue digital readout of process variable at sight.
Temperature
Multiplexing
Pressure Sensor Signal
and A-D Operator
Conditioning C
Flow Conversion Interface
O
Test Status
Digital Input
Data
M
Trigger Reduction
& Analysis
P
Experiment
Indicators U Control
Algorithms
Digital Output T
Process
Controls E Permanent
Data
Valves Analog output
D-A R Storage
Setpoints Conditioning Conversion
38
Digital-to-Analog Conversion
How to convert a binary number into a voltage proportional to its value?
Adding an op-amp:
–The voltage at the junction of all the resistors is now held constant by the feedback
Hence current drawn from V3 is independent of the other voltages V2, …, V0
Hence any gate non-linearity has no effect more accurate, Lower output
impedance, Much slower: op-amp slew rate ≈ 1 V/µs.
Hard to make accurate resistors covering a wide range of values in an integrated
circuit.
Weighted-resistor DAC is no good for converters with many bits.
39
Resolution and word length
The word length determines the resolution of the element,that is, the smallest change in VA which
will result in a change in the digital output.
VFS VOMAX
Resolution = Minimum change in VA = VLSB = 2n (= 2n-1 )
1
Maximum VA = VOMAX = VFS (1-2n) )
Note: VOMAX ≠ VFS but VOMAX →VFS as resolution→∞.
VFS = 2* VMSB
Example
Example:
Given a 4-bit converter with a fullscale range of 0-10V. Calculate the following
1. The voltage resolution
2. The value of VFS.
3. The analogue voltage that would produce the output 1000
4. The value of VOMAX .
Solution:
VFS 10 10
1. Voltage resolution: VLSB = 2n = 24 = 16 Volts = 0.625 Volts
2. VFS = 10 V
3. 1000 :=
bn-1 bn-2 bn-3 bo 1 0 0 0
VA ≈VFS ( 2 + 22 + 23 + ... + 2n ) =10 ( 2 + 22 +23 + 24 ) = 0.5 Volts
40
Quantisation error
Output voltage
100
011
010
001
000
t
The following example illustrates the percentage error due to the quantisation of the
digital signal.
Example
An 8-bit A-D converter has a quantisation error of ± ½ bit. The output voltage range
is 0-25 volts. Determine the resolution and the quantisation error in volts as a
percentage of FS.
0.048828
Percentage accuracy: = ± 25 * 100 = ± 0.1953%.
c. Conversion time: time taken for a complete measurement by A-D converter
d. Linearity: Maximum deviation from best straight line drawn through
staircase output waveform. The design depends on the degree of
sophistication of the D/A circuitry, and hence the cost.
e. Offset: The output of a D/A converter when appropriate code(0000) binary
is applied to the input. Often there is an external control for adjusting offset.
41
SAMPLING
Many process systems use digital controllers to calculate the correct controller output signals.
The input to these controllers is often a continuous physical variable, such as flow or pressure
or temperature. To enable the digital control system to act on these signals, the analogue input
signals are sampled and converted to digital form. This is shown in the diagram below.
Sampled signal
Analogue Signal
Continuous Digital
Process Controller
T
sampling time
42
Aliasing
A feature that can cause problems due to incorrectly sampled systems is known as aliasing. The
effect of aliasing can be clearly seen by the following diagram:
time
seconds
50 Hz samples
The output signal is a 60Hz analogue signal. Due to sampling at a low frequency, the 60Hz signal
will appear as a 10Hz signal to our controller. This signal is only produced due to the sampling
effects. Note that
fs : sampling rate (Hz)
fo : frequency of original signal (Hz)
fa = fs – fo : frequency of aliased signal (Hz)
Aliasing
The Sampling Theorem states that: to prevent aliasing, the sampling frequency must
always be more than twice the highest occurring frequency.
In the example above, 50Hz was not greater than 2*60Hz and therefore we saw the
problems of aliasing appearing. Typically you would sample at 4-10 times the
highest occurring frequency.
43
A/D Converter
Level h (cm) 0.0 1.5 3.0 4.5 6.0 7.5 9.0 10.5 12.0 13.5 15.0
o/p volts h 0.00 0.35 1.42 2.40 3.43 4.35 5.61 6.50 7.77 8.85 10.2
increasing (mV)
o/p volts h 0.14 1.25 2.32 3.55 4.43 5.70 6.78 7.80 8.87 9.65 10.2
decreasing (mV)
Q5 (from Bentley 2.5)
A PRT is used to interpolate between the triple point of water (0 C), the boiling point of water ( 100oC) and the freezing point of zinc (
o
419.6oC). The corresponding resistance values are 100.0 Ω, 138.5 Ω, and 253.7 Ω. The algebraic form of the interpolation equation is
RT = Ro ( 1 + α T + βT2)
where RT Ω, resistance at ToC, Ro Ω, resistance at 0oC, α, β are constants.
Find the numerical form of the equation.
Answers
1. [ 5.84023 0.006363 –0.000002647], 2.α = 0.18. R(25oC) = 3643 Ω.,3.O= 19.3 I, 25.9%,4.13.2%,5. 3.9 e-3, -5.8e-7
44
Flash A/D Converter
For an n-bit converter we have
2n–1 threshold voltages.
45
Successive Approximation ADC
State Diagram:
A DAC input of n must generate the
threshold between n–1 and n.
When the final column of states is reached,
DONE goes high and the answer is X2:0.
Note that it is possible to number the 15
states so that DONE is the MSB
and X2:0 are the 3 LSB.
If the input voltage changes during conversion, the result is biased towards its initial value because
the most significant bits are determined first.
Increasing voltages will tend to be converted to values ending in …111. Decreasing voltages will
tend to be converted to values ending in …000. Consequences: reduced precision, uncertain
sample instant.
46
A/D conversion with sample/hold
Sample/Hold Circuit
47
by Radu Rusan and Dale Vanclieaf, Humber College
A dm inistration
INT EGR ATED
IN FOR M AT IO N SYST EM
Corporate Level
M anagement R eports Finance
W ork Scheduling
Decision M aking
GIS
LAN, W AN LA N / W AN
Custom er
Supervisory M anagement System Services
Level
Data
DataLogging
Storage
D atabase M anagement
Plant Supervision
E mergency M anagement LE ASED
Alarm Resp onse LINES
TERRESTRIAL
M ICROW AVE
RAD IO PSTN SATE LLITE
DCS
Supervisory Control and M onitoring
Local Control
Level FIE LDBUS, for example,
M ODBUS
SC ADA/PLC s
FIELDBUS
OR
4-20 mA
O perational Level
SENSO RS ACT U AT OR S
D IRECT
PHYSIC AL
CONNECT ION
PH YSICAL PR OC ESSES
48
Supervisory Control And Data Acquisition (SCADA)
SCADA is a technology that enables a user to collect data from one or more distant
facilities and/or send control instructions to those facilities. Using SCADA, it is not
necessary for a user to attend or visit remote locations in the normal system operation.
A SCADA system (hardware and software) should implement one or more of the
following functions.
49
Master Station
The master station is mainly a computer system and therefore consists of:
• A primary computer
• A backup computer (optional)
• A user interface
– Local console
• Monitor(s)
• Keyboard and cursor or other operator input devices (touch
screen, trackball)
• Mass storage media
• Printer(s)
– Local RTU
• Analog recorders
• Digital display
• Mapboard
• RTU function
• Communication interfaces
– Other remote computers –RTU
– Remote console or loggers
Communication System
Typical communication system elements are:
• MODEMs (MOdulate-DEModulate), which use transmission lines for
communication (telephone lines, optical cables, power transmission lines, or radio
for very long distances)
• LAN (Local Area Network) for shorter distances (typically within a facility)
50
Master Station to RTUs
From the master station, control commands, set points,
control software, parameters for controls, and alarms are sent
to the RTUs.
51
Programmable Logic Controllers (PLCs)
Until the 1970s, industrial logical control (sequencing) was realized with
electromechanical relays and pneumatic coupling.
Starting in 1970, the PLC became more common in industrial applications, initially
as a simple replacement for relay sequencing applications.
Today, PLCs are the major choice in industrial control applications and are available
with increasingly complex functions.
PLC Architecture
52
CPU
The CPU is the “heart” of the PLC.
It controls the execution of all PLC operations. It executes the operating
system, manages memory, monitors inputs, evaluates the user logic,
turns on the appropriate outputs, and handles communication and
interactions with the other components of the system.
Memory
Functionally, the RAM memory is split into different areas with
specific functions. While the memory organization (called also the
memory map) varies from one PLC manufacturer to another, three
of these memory areas are present in any PLC
These areas are playing a central role in the PLC operation cycle. It
is important to mention that because the RAM memory is volatile in
a PLC, a lithium battery takes over when the PLC is shut off, and
therefore the information resident in the PLC (program and data
tables) can be kept for years without powering on the PLC.
53
Input Modules
Input modules are special interfaces that transform process information into
digital values. The most frequently used input modules are the discrete (digital)
input modules and analog input modules.
Discrete input modules allow the user to convert two state process signals (for
example, switch positions) into a signal compatible with the CPU requirements
(usually into a 0 to 5 V signal). This 0 to 5 V signal is seen as a bit in the input
data table.
The discrete input modules differ in the type of voltage (AC or DC), as well as
the voltage level (120 V, 24 V, etc.) and in the number of terminals (input
signals) per module.
Analog input modules are actually analog-to-digital converters that allow the
user to convert the analog signal to a numeric value. Modules for current and
voltage analog signals are offered for all existing ranges of analog signals.
Output Modules
Output modules are special interfaces that transform a PLC digital value into a
useful electrical signal. There are discrete and analog output modules.
Discrete output modules convert the logical values from the output data table into
a useful voltage signal as needed for the different field devices— AC or DC
voltage, as well as different voltage values (120 V, 24 V, etc.).
Analog output modules are essentially digital-to-analog converters that convert
numeric values from the PLC memory to one of the standard ranges for analog
signals.
54
Power Supply
The PLC power supply converts the supply voltage, usually 115 V or 240
V AC, into low-level DC voltages needed for operation of the CPU and
different types of modules installed in the rack. Sometimes, the power
supply will provide a DC voltage output to power digital inputs, but
normally the output devices controlled by the PLC will be powered from
another power supply. The power supply is frequently a separate
module, or may be incorporated in the rack structure. Each rack must
have its own power supply.
Scan
A scan is the operation algorithm implemented to allow the PLC to
perform logical control. The main steps:
1. Read the inputs—transfer the input signal status from the
input modules to the input data table.
2. The CPU executes the programmed logic, using the values
from the input data table and those existing in the output data table
from the previous scan. In the execution process, the output data table
is changed to reflect the result of the executed logic, but no output
modules change their status.
3. The outputs update takes place after the programmed logic
operation is completed; the output data table information is transferred
to the output modules.
4. A fourth important step in a scan is the self diagnostic testing
to ensure that all PLC functions are problem free.
55
Communication Interfaces
Communication interfaces provide the hardware and protocol base for
transferring information from the PLC to other computers, another PLC, or
intelligent electronic devices.
PLC Communication
Sensor Level
PLCs made automation flexible and affordable. They completely changed
the manufacturing process. In addition to providing control, PLCs also
produce data. Data in many situations can be at least as valuable as the
product. If data is collected and used, quality, productivity, and up time can
be improved.
56
Communications at sensor level represent a new trend to replace
conventional cables with a single digital connection. This simplifies
the wiring volume, but requires intelligent sensors (that is, sensors
able to send digital information). Each sensor needs an interface to
the bus. Different communication protocols are in development, and
international efforts for development of a standard to ensure
interconnectivity of different devices are well under way.
57
Real Time
System
(RTS)
A computer-controlled mechanism in
which there are strict timing constraints
on the computer’s actions.
Example:
Anti-Lock Braking System (ABS): System that controls braking in a
car, preventing wheel lock.
Normally, surface of wheels move at same speed as road. Braking
force can cause one or more wheels to slip or lock. If ABS detects
locking at a wheel it will reduce braking pressure to
stop locking.
58