Review of Computers in Process Control 1.1 Data Loggers
Review of Computers in Process Control 1.1 Data Loggers
Review of Computers in Process Control 1.1 Data Loggers
Input Scanning
Signal conditioning
Analog to Digital Conversion
Recording
These distinctions have blurred over the last twenty years or so due mainly to technology
advancements. For example, there used to be a huge cost difference between high speed and low
speed, as well as high and low resolution analog to digital converters. Today, those differences
have nearly been erased. A manufacturer can choose a high speed, high resolution and low power
solution and deploy it as either a data logger or data acquisition solution at its discretion.
Furthermore, much greater levels of integrated circuit density and functionality have allowed
previously complex designs to be reduced to only a handful of ICs. From a firmware perspective,
open source stacks that offer turnkey support for SD memory cards, Ethernet, WiFi, etc. may be
implemented on nearly a whim by the manufacturer because of minimal development time and
expense.
1.1.5 Data Loggers Vs Recorders
A data logger is an attractive alternative to either a recorder or data acquisition system in many
applications. When compared to a recorder, data loggers have the ability to accept a greater
number of input channels, with better resolution and accuracy. Also, data loggers usually have
some form of on-board intelligence, which provides the user with diverse capabilities. For
example, raw data can be analyzed to give flow rates, differential temperatures, and other
interpreted data that otherwise would require manual analysis by the operator. The major
difference between a data logger and a recorder, however, is the way the data itself is stored,
analyzed and recorded. A common recorder accepts an input, and compares it to a full scale
value. The pen arm is then deflected across the recording width, to produce the appropriate ratio
of the actual input to the full scale input. For example, using a recorder with a 1 Volt full scale,
an input of 0.5 Volts would move the pen 0.5/1 or 50% of the distance across the recording
width. In comparison, a data logger accepts an input which is fed into an analog-to-digital
converter prior to analysis and storage. This method has advantages in accuracy and resolution,
while only a recorder can provide a truly continuous trend recording
1.1.6 Advantages
One of the primary benefits of using data loggers is the ability to automatically collect
data on a 24-hour basis
This allows for a comprehensive, accurate picture of the environmental conditions being
monitored such as air temperature and relative humidity
Slower sample rates
Ease in use
1.1.7 Applications
Introduction
In 1963, IBM produced computers, which specialized in data acquisition. These include
the IBM 7700 Data Acquisition System and its successor, the IBM 1800 Data Acquisition and
Control System. These expensive specialized systems were surpassed in 1974 by general purpose
S-100 computers and data acquisitions cards produced by Tecmar/Scientific Solutions Inc. In
1981, IBM introduced the IBM Personal Computer and Scientific Solutions introduced the first
PC data acquisition products.
Data acquisition is the process of sampling signals that measure real world physical conditions
and converting the resulting samples into digital numeric values that can be manipulated by a
computer. Data acquisition systems (abbreviated with the acronym DAS or DAQ) typically
convert analog waveforms into digital values for processing. The components of data acquisition
systems include:
Data acquisition applications are controlled by software programs developed using various
general purpose programming languages such as BASIC, C, Fortran, Java, Lisp, Pascal.
1.2.2 Components of a Typical DAS
3D scanner
A 3D scanner is a device that analyzes a real-world object or environment to collect
data on its shape and possibly its appearance (i.e. color). The collected data can then be
used to construct digital, three dimensional models.
Data Acquisition
Data loggers typically have slower sample Data acquisition has faster sample rates.
rates
Data loggers are implicitly stand-alone devices Data acquisition system must remain tethered
Recorded data value is associated with a date Real-Time Clock (RTC) not required.
and time of acquisition in order to produce a
sequence of events using real-time clock
(RTC).
Table 1.1 Difference between Data Logging and Data Acquisition
1.3 SAMPLING CONSIDERATIONS
In signal processing, sampling can be described as the process by which analog signals
are converted into discrete signals. There are a large number of applications for sampling, falling
under the two categories: Audio sampling and video sampling.
A sampler is a subsystem or operation that extracts samples from a continuous signal. A
theoretical ideal sampler produces samples equivalent to the instantaneous value of the
continuous signal at the desired points.
The sampling rate, sample rate, or sampling frequency ( ) defines the number of samples per
unit of time (usually seconds) taken from a continuous signal to make a discrete signal. For timedomain signals, the unit for sampling rate is hertz (inverse seconds, 1/s, s1). The inverse of the
sampling frequency is the sampling period or sampling interval, which is the time between
samples.
Figure 1.4 Analog signal (light blue) with a sampled signal (red) with a fixed spacing or
sampling rate
being sampled.The Nyquist sampling theorem provides a prescription for the nominal sampling
interval required to avoid aliasing.
It may be stated simply as follows:
The sampling frequency should be at least twice the highest frequency contained in the signal.
or in mathematical terms:
Fs > 2 f m
where fs is the sampling frequency (how often samples are taken per unit of time or
space), and fm is the highest frequency contained in the signal. If lower sampling rates are used,
the original signal's information may not be completely recoverable from the sampled signal.
The full range of human hearing is between 20 Hz and 20 kHz. The minimum sampling rate that
satisfies the sampling theorem for this full bandwidth is 40 kHz. The sampling rate of 44.1 kHz
is used for Compact Disc.
1.3.2 Optimums Sampling Period
The selection of sampling rate is of prime importance when sampling is to be done on
signals such as medical signals (ECG and EEG).
In Signal Processing, there are two techniques used for sampling which are as follows:
Oversampling
Oversampling is the process of sampling a signal with a sampling frequency
significantly higher than twice the bandwidth or highest frequency of the signal being
sampled. Oversampling helps avoid aliasing, improves resolution and reduces noise.
Undersampling
Undersampling or Bandpass sampling is a technique where one samples a
bandpass-filtered signal at a sample rate below its Nyquist rate (twice the upper cut-off
frequency), but is still able to reconstruct the signal. For a baseband signal (one that has
components from 0 to the band limit), such sampling introduces aliasing.
The designer should ensure that the sampling period selected is as large as possible, consistent
with good control.
When a digital computer is used to execute the PID control equations, there exists a lower limit
on the sampling period, because if T is too small, a reset deadband may result when a fixed point
calculation is used to implement the control algorithm. The lower limit on sampling period for
purposes of monitoring.
1.4.2 Elements of SCADA system
A SCADA system consists of:
One or more field data interface devices, usually RTUs, or PLCs, which interface to field
sensing devices and local control switchboxes and valve actuators
A communications system used to transfer data between field data interface devices and
control units and the computers in the SCADA central host. The system can be radio,
telephone, cable, satellite, etc., or any combination of these.
A central host computer server or servers (sometimes called a SCADA Center, master station,
or Master Terminal Unit (MTU)
A collection of standard and/or custom software [sometimes called Human Machine Interface
(HMI) software or Man Machine Interface (MMI) software] systems used to provide the
SCADA central host and operator terminal application, support the communications system,
and monitor and control remotely located field data interface devices
displayed for the operators. Recent SCADA systems are able to offer high resolution computer
graphics to display a graphical user interface or mimic screen of the site. Historically, SCADA
vendors offered proprietary hardware, operating systems, and software that was largely
incompatible with other vendors' SCADA systems. Expanding the system required a further
contract with the original SCADA vendor. Host computer platforms characteristically employed
UNIX-based architecture.
.
However, with the increased use of the personal computer, computer networking has become
commonplace in the office and as a result, SCADA systems are now available that can network
with office-based personal computers. Indeed, many of today's SCADA systems can reside on
computer servers that are identical to those servers and computers used for traditional office
applications. This has opened a range of possibilities for the linking of SCADA systems to
office-based applications such as GIS systems, hydraulic modeling software, drawing
management systems, work scheduling systems, and information databases.
Operator Workstations and Software Components
Operator workstations are most often computer terminals that are networked with the
SCADA central host computer. The central host computer acts as a server for the SCADA
application, and the operator terminals are clients that request and send information to the central
host computer based on the request and action of the operators.
An important aspect of every SCADA system is the computer software used within the system.
The most obvious software component is the operator interface or Man Machine
Interface/Human Machine Interface (MMI/HMI) package; however, software of some form
pervades all levels of a SCADA system. Depending on the size and nature of the SCADA
application, software can be a significant cost item when developing, maintaining, and
expanding a SCADA system. When software is well defined, designed, written, checked, and
tested, a successful SCADA system will likely be produced. Poor performances in any of these
project phases will very easily cause a SCADA project to fail.
Many SCADA systems employ commercial proprietary software upon which the SCADA system
is developed. The proprietary software often is configured for a specific hardware platform and
may not interface with the software or hardware produced by competing vendors. It is therefore
important to ensure that adequate planning is undertaken to select the software systems
appropriate to any new SCADA system.
1.4.3 SCADA Architectures
SCADA systems have evolved in parallel with the growth and sophistication of modern
computing technology. The following sections will provide a description of the following three
generations of SCADA systems:
First Generation Monolithic
Second Generation Distributed
Third Generation Networked
Monolithic SCADA Systems
When SCADA systems were first developed, the concept of computing in general
centered on mainframe systems. Networks were generally non-existent, and each centralized
system stood alone. As a result, SCADA systems were standalone systems with virtually no
connectivity to other systems. The Wide Area Networks (WANs) that were implemented to
communicate with remote terminal units (RTUs) were designed with a single purpose in mind
that of communicating with RTUs in the field and nothing else. In addition, WAN protocols in
use today were largely unknown at the time. The communication protocols in use on SCADA
networks were developed by vendors of RTU equipment and were often proprietary.
Redundancy in these first generation systems was accomplished by the use of two identically
equipped mainframe systems, a primary and a backup, connected at the bus level. The standby
systems primary function was to monitor the primary and take over in the event of a detected
failure. This type of standby operation meant that little or no processing was done on the standby
system.
.
e
Figure 1.7 Second Generation SCADA Architecture
Networked SCADA Systems
The current generation of SCADA master station architecture is closely related to that
of
the second generation, with the primary difference being that of an open system architecture
rather than a vendor controlled, proprietary environment. The major improvement in the third
generation is that of opening the system architecture, utilizing open standards and protocols and
making it possible to distribute SCADA functionality across a WAN and not just a LAN. Open
standards eliminate a number of the limitations of previous generations of SCADA systems. The
utilization of off-the-shelf systems makes it easier for the user to connect third party peripheral
devices (such as monitors, printers, disk drives, tape drives, etc.) to the system and/or the
network.
As they have moved to open or off-the-shelf systems, SCADA vendors have gradually got
out of the hardware development business. These vendors have looked to system vendors for
their expertise in developing the basic computer platforms and operating system software. This
allows SCADA vendors to concentrate their development in an area where they can add specific
value to the systemthat of SCADA master station software.
The major improvement in third generation SCADA systems comes from the use of WAN
protocols such as the Internet Protocol (IP) for communication between the master station and
communications equipment.
In real life, SCADA systems automatically regulate all kinds of industrial processes. For
example, if too much pressure is building up in a gas pipeline, the SCADA system can
automatically open a release valve. Electricity production can be adjusted to meet demands on
the power grid. Even these real world examples are simplified; a full-scale SCADA system can
adjust the managed system in response to multiple inputs.
1.4.5 SCADA SECURITY
There are two types of process-control systems in viewdistributed control systems
(DCS) and supervisory control and acquisition (SCADA). DCS are typically used for singlepoint processing and are employed in a limited geographic area. On the other hand, SCADA
systems are used for large scale, distributed management of critical infrastructure systems and
are often geographically dispersed.
Improve product quality: Analyzes and controls the quality of manufactured products using
standard SCADA functionality, such as Statistical Process Control (SPC). Advanced statistical
alarms enable your personnel to perform predictive calibration of process parameters, thus
preventing out of limit deviations before they occur.
Reduce your operating and maintenance costs: Through the deployment of a centralized
SCADA system you can significantly reduce operating and maintenance costs; fewer personnel
are required to monitor field equipment in remote locations, resulting in increased operational
effectiveness; and less maintenance trips are required, resulting in decreased maintenance and
training costs.
Integrate with your business systems: A SCADA system can be easily integrated with your
existing business systems, leading to increased production and profitability. In addition, this
system implementation allows you to transform, analyze and present real-time information
throughout the enterprise for prioritized decision-making.
Preserve your capital investment: When you spend money to improve operations, you need to
ensure prolonged use; SCADA's open system design protects against control system
obsolescence and can be easily scaled to meet growing demands of operations.
1.4.7 Applications of SCADA
SCADA can be used to manage many kinds of equipment. Typically, SCADA systems are
used to automate complex industrial processes where human control is impractical. Around the
world, SCADA system controls are used in the following industries:
Manufacturing: SCADA systems manage parts inventories for JIT manufacturing, regulate
industrial automation and robots, and monitor process and quality control.
Buildings, facilities and environments: Facility managers use SCADA to control HVAC,
refrigeration units, lighting and entry systems.
Electric power generation, transmission and distribution: Electric utilities use SCADA
systems to detect current flow and line voltage, to monitor the operation of circuit breakers, and
to take sections of the power grid online or offline.
Water and sewage: State and municipal water utilities use SCADA to monitor and regulate
water flow, reservoir levels, and pipe pressure.
Mass transit: Transit authorities use SCADA to regulate electricity to subways, trams and
trolley buses; to automate traffic signals for rail systems; to track and locate trains and buses; and
to control railroad-crossing gates.
Traffic signals: SCADA regulates traffic lights, controls traffic flow and detects out-of-order
signals.
1.5 COMPUTER CONTROL SYSTEM
1.5.1 Functional Block Diagram of Computer Control System
Now a days most of the industrial control is done using computers. Every control system
incorporated into the industry is a computer based control system or simply a computer control
system.
The general block diagram of a computer control system is given by:
Set point
ADC
Controller
equation
Measured
Variable
DAC
Control
Valve
Process
A direct-conversion ADC or flash ADC has a bank of comparators sampling the input signal
in parallel, each firing of their decoded voltage range. The comparator bank feeds a logic circuit
that generates a code for each voltage range. Direct conversion is very fast, capable of gigahertz
sampling rates, but usually has only 8 bits of resolution or less, since the number of comparators
needed, 2N - 1, doubles with each additional bit, requiring a large, expensive circuit. ADCs of this
type have a large die size, a high input capacitance, high power dissipation, and are prone to
produce glitches at the output (by outputting an out-of-sequence code. They are often used for
video, wideband communications or other fast signals in optical storage.
Successive-Approximation type ADC
Ramp-Compare ADC
the counter's value, or calibrate the timed ramp. A special advantage of the ramp-compare system
is that comparing a second signal just requires another comparator, and another register to store
the voltage value. This type of ADC is fairly slow (but cheap and simple) and it is ideal for data
that changes fairly slowly such as vehicle or aircraft control systems.
Integrating ADC
An integrating ADC (also dual-slope or multi-slope ADC) applies the unknown input voltage
to the input of an integrator. A current, proportional to the input voltage, charges a capacitor for a
fixed time interval T . At the end of this interval, the device resets its counter and applies an
opposite-polarity negative reference voltage to the integrator input. Because of this, the
capacitor is discharged by a constant current until the integrator output voltage zero again. The T
discharge interval is proportional to the input voltage level and the resultant final count provides
the digital output, corresponding to the input signal. This type of ADC is extremely slow devices
with low input bandwidths. The speed of the converter can be improved by sacrificing resolution.
Their advantage, however, is their ability to reject high-frequency noise and AC line noise such
as 50Hz or 60Hz which makes them useful in noisy industrial environments. Such types are used
in most digital voltmeters for their linearity and flexibility.
Direct digital control consists of enabling the computer (controller) to work in a feedback loop
configuration as well as using, for instance, a three mode control algorithm(PIDProportional+Integral+Derivative).It is of course allowed to use different control algorithms,
however in 90% of the problems PID is sufficient. When DDC controllers are networked
together they can share information through a data bus. The control system may speak
'proprietary' or 'open protocol' language to communicate on the data bus. Examples of open
protocol language are BACnet (Building Automation Control Network), LON (Echelon),
Modbus.
1.6.2 The Position Algorithm
Position PID is the algorithm typically used to perform closed-loop control on a
position feedback axis. The Position PID provides very good control and is suitable for nearly all
control systems. The Position PID works on a position feedback only and controls both position
and velocity. The output of the position algorithm gives the new position of the final control
element, in absolute term.
PID stands for the central gains used in this mode: Proportional, Integral, and Differential. The
PID equation is generally represented by,
1
e
Yn= KP.en+ KD.
+
+ Y0
(1.1)
KI
t
Where
Yn= valve position at time n
Y0= median valve position
KP= proportional gain=100/PB (where, PB=proportional band in percent)
KI=integral gain
KD= derivative gain
en= error at instant tn = (S-Vn)
Vn= value of controlled variable at instant tn
S= set-point
The PID controller control can be realized with a microprocessor based system, if only the above
equation is implemented in the software. Apparently, it is very difficult to write the software for
implementing the above equation for a microprocessor based system. However, the above
equation can be modified such that its software implementation becomes easy. The modifications
are discussed in the following section.
The integral term at any given instant tn is equal to the algebraic sum of all the control forces
generated by the integral control action from the beginning to that instant.
Thus the integral term can be represented as
1
n
e .t
t 0 t
kI
and the differential term, KD. at any instant tn is proportional to the rate of change of the error.
Thus, differential term, can be represented as
(e e )
k D n n 1
t
Where, en is the current error and en-1 is the previous error calculated at the instant tn-1. Thus, with
these modifications the three-mode controller equation will become:
1
n
(e e )
e .t + Y0
Yn= k P en + k D n n 1 +
(1.2)
i 0 i
kI
t
The integral and the differential control forces are dependent upon the interval between two
consecutive errors. This interval is the inverse of the rate at which the value of the controlled
variable measured i.e, the sampling rate. Hence the provision for defining the sampling rate
should be made available in the software.
The two modifications that can be performed on above equations are Trapezoidal rule for
integral term and interpolation technique for derivative term.
Trapezoidal rule for integral term
The integral term can be represented using trapezoidal rule:
n
i0
(ei ei 1 )
t
2
(1.3)
[(Vn-V*).
+ (Vn-1-V*).
+ (V*-Vn-2).
+ (V*-Vn-3).
(1.5)
i
0
kI
6t
2
The position algorithm has distinct properties that it maintains its own reference in Y0.
Position PID Advantages
(1.6)
(1.7)
i 0 i
kI
t
Where
Yn is the valve position at tn.
At tn-1 i.e. at previous instant, the valve position was,
1
n 1
(e e )
e .t + Y0
Yn-1= k P en 1 + k D n 1 n 2 +
(1.9)
i 0 i
kI
t
The change in valve position Yn at tn will thus be,
Yn = Yn Yn 1
1
(e 2en 1 en 2 )
en t
= k P (en en 1 ) + k D n
+
(1.10)
kI
t
The integral term and derivative term can be modified by using trapezoidal rule and interpolation
technique similar to position algorithm.
1
n (ei ei 1 )
n 1 (ei ei 1 )
t
Integral term =
i 0
i 0
k I
2
2
1 (en en 1 )
t
=
(1.11)
kI
2
Derivative term = [(en+ 3en-1- 3en-2- en-3)-( en-1+ 3en-2- 3en-3- en-4)]
=[en+2en-1- 6en-2+ 2en-3+ en-4]
(1.12)
By substituting modified integral or differential terms in (10), we get
1 (en en 1 )
t
Yn = k P (en en 1 ) +[en+2en-1- 6en-2+ 2en-3+ en-4] +
(1.13)
kI
2
The relationship between position and velocity algorithm is,
Yn = Yn- Yn-1
i.e; Yn = Yn + Yn-1
= Yn + [ Yn-1+Yn-2]
= Yn + Yn-1+[Yn-2+Yn-3]
n
Yn = i 0 Yi +Y0
Logically also, the present valve position is equal to original position plus sum of all the changes
occurred so far.
The velocity algorithm at equation (1.13) exhibits two measure problems:
Controller drift
The velocity algorithm must contain the integral term else controller drift might
arise. And the proportional term might give rise to oscillations. The oscillation problem
can be solved by disregarding the sign of the proportional term and assigning the same
sign as the integral term.
Integral overshoot
When the proportional term is forced to have the same sign as the integral term
the value of the controlled variable will reach the set point at a faster rate and overshoot
it. It has been found that 7% of full scale set point band gives results on simulation tests
of systems with first and second order time constants.