Professional Documents
Culture Documents
Computer as a Controller
3.1 BASIC BUILDING BLOCKS OF COMPUTER CONTROL SYSTEM
Basic functions of computer-aided process control system are:
(a) Measurement and data acquisition.
(b) Data conversion with scaling and checking.
(c) Data accumulation and formatting.
(d) Visual display.
(e) Comparing with limits and alarm raising.
CD Recording and monitoring of events, sequence and trends.
(g) Data logging and computation.
(h) Control action.
A block diagram of computer-aided process control system IS shown III
Figure s.i
Computer system
v
Final
Set-point
Controller
Digital-to- control
yet)
equation
..
~
--+ ~
u
...
analog UfC) ~ element
Process
+ (digital
(control
algorithm)
converter
p..-
valve)
Analog-to
Measured Controlled
variable
Sensor
variable
digital ....
(measuring element)
...
converter
~
(a) Schematic diagram
)
3.2
computer Control of Process
Computer as a Controller
3.3
Fig 3.2 shows the Role of computer in process control. After the
technological development of digital computer system, its use for measurement
and control application has tremendously increased. The basic objective of
computer-aided measurement and control is to identify the information flow,
and to manipulate the material and energy flow of given process in a desired,
optimal way. The requirement in terms of response time, computing power,
flexibility and fault tolerance are stricter, since the control is to be carried out
in real-time. Other difficulties, as a result of computer technology developments
are, a solution to the problem of complexity, flexibility, and geographical
separation of process elements (plant equipment to be controlled).
3.1.1 Role of computers in Measurement and Control (process control)
Digital computer control application exists to-day for two major areas III
the process industries, passive and active applications. Passive application.
involves acquisition and manipulation of process data where as, active
application involves manipulation of process as well. The passive application
deals predominantly with monitoring, alarming and data reduction systems. The
process data, after captured (measured) on-line, are sent to the data acquisition
computer through interface module. The smart instruments such as smart.
sensors, smart transmitters and smart actuators (final control element), are now
rvailable which have a microcomputer built into them. The smart instruments
help the operator to get real-time process measurement information and
automatic transmission is required form for further processing by the process
process.
As shown in fig 3.l(a), the controlled variable (output of the process) is
measured as before in continuous electrical signal (analog) form, and converted
into a discrete-time signal using device called analog-to-digital converter (ADC).
The value of discrete signal thus produced is then compared with the discrete
form of the set-point (desired value) inside the digital computer to produce an
error signal (e). An appropriate computer program representing the controller
,
called control algorithm, is executed which yields a discrete controller output.
The discrete signal is then converted into a continuous electrical signal using
a device called digital-to-analog converter (DAC), and the signal is then fed to
the final control element. This control strategy is repeated at some pre
determined frequency so as to achieve the closed-loop computer control of the
uri)
I
i{DBta
'---r---'L---,.---...JL..-.---''---r--J: output
I
I
I
I
I
I
I
---- 1
Hold
device
Process
uri)
(b) Block diagram
Digital
algorithm
Digital computer
Fig. 3.1 (a) & (b) Typical Computer-aided Process Control Systems
Fig. 3.2 In Computer-based control, the analog loop controller is
replaced by Computer programming
Data }:
acquisition :
'------,---'
I
I
I
I
I
I
I
I
Measurement
3.4 Computer Control of Process Q.omputer as a Controller
3.5
control computer. The smart instruments ensure that the actuator, transmitter
or sensor function according to design.
As illustrated in Fig 3.3, the tasks carried out by each Levels in the
automation hierarchy are as follows:
Fig. 3.3 Automation of computer aided process control
(b) System coordination and reporting
Collecting information on unit production, raw material consumption,
energy consumption and transmitting to the higher Level computer (Level-S),
Providing services to the operator's man-machine interface (MMI).
(c) Reliability assurance
Performing diagnostics on the various control equipments to help in
detecting the fault and keep updating hot-back up (stand by) system if connected
in the hierarchy.
Field Level (Level-G)
Control Level (Level-l)
Supervisory Level (Level-2)
Plant Level (Level-S)
Corporate Level (Level-4)
Supervisory Level (Level-2)
(a) Control enforcement
Responding to any emergency condition in its region of plant cognizance.
Optimization of the processes under its control as per established production
schedule and carry out all established process operational schemes or operating
practices for these processes.
Control Level (Level-l)
(a) Control enforcement
Maintaining direct control of the plant units under their cognizance,
detection of any emergency condition is these units and taking appropriate
response.
Field Level (Level-D)
(a) Measurement and transmission of field parameters to the Control
Level (Level-l) computer control systems.
Process control level
control)
Supervisory control level
____ optlmlzatlon
Plant control Level
_____ Scheduling)
Corporate Level
__________ .:. __ Information
Field Level
Optlmizatlon
Level
Control Level
Level 4
Level 3
Level 2
Level 1
Level 0
- - - - - - - - - - - - - - - - -
Measurements level
________ L-- ('!n!!oJ:!l!- Transducer)
The major application of digital computers is in process control and plant
optimization. Computer control systems, once prohibitively expensive, can now
be tailored to fit most industrial applications on a competitive economic basis.
The advances in the use of computer control have motivated many and changed
the concepts of the operations of industrial processes. Video display terminals
now provide the four for operators to supervise the whole plant from a control
room. Large panels of instruments, knobs and switches are replaced by a few
keyboards and screens. Control rooms are now much smaller and fewer people
are required to supervise the plant.
Process control computers now have the capability to implement
sophisticated mathematical models. Plant managers and engineers can be
provided with comprehensive information concerning the status of plant
operations to aid effective operation. With the use of microprocessor-based
instruments and new emerging techniques, it is possible for automatic tuning
of controller parameters for best operating performance. The expert systems and
advanced control techniques such as model based predictive control, are being
applied with the help of computer for optimization of the process operation.
3.1.2 Detailed Task listing of computer control systems
3.6 Computer Control of Process
Computer as a Controller
3,7
Multiplexer
(Telemetry)
Signal
Conditioner - 1
Signal
Conditioner - 2
Signal
Conditioner - 3
Signal
Conditioner - 4
Transducer - 1
e
19
<Il
E
e! Transducer - 2
m
a..
1:
m
a::
Transducer - 3
'!2.
s:
a..
Transducer- N
(b) Finance and Accounting
Logging and monitoring of company's sales and expenditures, annual
accounting, profit and loss account for the management information.
BlockDiagram of DataAcquisition system
3.2 DATA ACQUISITION SYSTEM (DAQ)
A data acquisition (DAQ) system is used for the measurement and
processing of plant signal data before it is displayed on the operator desk or
permanently recorded. A block diagram of a PC (computer) based data
acquisition is shown in fig 3.'1. It consists of individual transducers (sensors)
for measurement of physical plant parameters (such as temperature, pressure,
flow, etc.i). After measurement, the transducer data is fed to the signal
conditioning device to bring the signal level up to a sufficient value to make it
useful for conversion, processing, indicating and recording. Signal conditioner
is used to amplify, modify or select certain portion of signals.
(b) Plant coordination and operational data reporting
Collection and maintenance of process/production database. Keeping
inventory of raw material and energy consumption for the units. under its
control. Maintaining communication with the higher and Lower Level computer
systems. Providing services to the operator's man-machine interface (MMI).
Plant Level (Level-S)
(c) Reliability assurance
Performing diagnostics on the various control equipment to help in
detecting the fault and keep updating hot-back up (standby) system if connected
in the hierarchy.
(a) Production planning and scheduling
Prepare the immediate production schedule is its area of control. Locally
optimize the costs for its individual production area as a basis for modifying
the production schedule established by the production control computer system
(minimize energy usage and maximize production).
(b) Plant coordination and operational data reporting
Preparing production reports, maintenance of plant inventory about
materials and energy usage, maintaining communications with higher and
Lower Level computers, operational related data collection and off-line analysis
for future prediction and usage, providing services to the operator's
man-machine interface (MMI).
(c) Reliability assurance
Performing diagnostics on the various control equipment to help in
detecting the fault and keep updating hot-backup (standby) system if connected
in the hierarchy.
Corporate Level (Level-d)
(a) Sales and Marketing
Customer order management, order booking, and transferring order
information to plant Level (Level-S) computer. Market forecasting and market
intelligence, customer database management, market survey.
Fig. 3.4 Block Diagram of Data Acquisition System
The output of the signal conditioner is fed to the multiplexing (telemetry)
device. With the help of multiplexing all individual signal data (called lower
bandwidth communication channels) are combined and transmitted over a
higher bandwidth channel. At the receiving end, de-multiplexing recovers the
original lower bandwidth channels. It scans across a number of analog signals
and time-sharing them sequentially into a single analog output channel. The
multiplexed data is converted into digital signal with the help of analog-to-digital
converter. The converted digital signals are fed to the computer for further
3.8 Computer Control of Process Computer as a Controller
3.9
processing, mathematical computation, storage, etc. The final and processed data
is either displayed on electronic digital display panel or recorded on magnetic
media and/or chart recorders.
transducers, and pressure transducer which convert force, rate of flow, and
pressure to electrical signals. In each. case electrical signals produced are
proportional to the physical parameters they are monitoring.
Data acquisition system is generally a process of collecting input signal
in analog or digital form, as rapidly,as accurately, completely and economically
as necessary and possible. Data acquisition system can be of two types: an
analog data acquisition system and a digital data acquisition system. Analog
data acquisition system deals with information in analog form where as digital
data acquisition system handles information in digital forms.
Today, most scientists and engineers are using personal computers with
expansion buses for laboratory research, industrial control, and test and
measurement. Obtaining proper results from a PC-based DAQ system depends
on each of the following system elements, as shown in figure 3.5 personal
computer, transducers, signal conditioning, DAQ hardware and software.
(ii) Isolation
(iii) Filtering
(iv) Excitation
Transducers
Transducers change physical phenomena into electrical signals. For
example, thermocouples, Rl'Ds, thermistors, and IC sensors convert temperature
into a voltage or resistance. Other examples include stain gauges, flow
(v) Linearization
Amplification
The most common type of conditioning is amplification. Low-level
thermocouple signals, for example, should be amplified to increase the resolution
and reduce noise. For the highest possible accuracy, the signal should be
amplified so that the maximum voltage range of the conditioned signal equals
the maximum input range of the analog-to-digital converter (ADC). Very high
resolution reduces the need for high amplification and provides wide dynamic
range.
Isolation
Another common application for signal conditioning is to isolate the
transducer signals from the computer for safety purposes. The system being
monitored may contain high-voltage transients that could damage the computer.
An additional reason for needing isolation is to make sure that the readings
from the DAQ device are not affected by differences in ground potentials or
common-mode voltages. When the DAQ board input and the signal being
acquired are each referenced to "ground", problems occur if there is potential
difference between the two grounds. This difference can lead to what is known
Transducers
DataAcquisition
Hardware
Signal
Conditioning
Fig. 3.5 Typical Data Acquisition (DAQ) System
@
Software
3.10
Computer Control of Process
Computer as a Controller
3.11
as ground loop, which may cause inaccurate representation of the acquired
signal, or if too large, may damage the measurement system. Using isolated
signal conditioning modules eliminates the group loop and ensures that the
signals are accurately acquired.
Filtering
Filtering removes unwanted noise from the signal that are being tried to
be measured. A noise filter is used on DC-class signals such as temperature to
attenuate higher frequency signals that can reduce the accuracy of the
measurement. AC-class signals such as vibration often require a different type
of filter known as an antialising filter. Like the noise filter, the antialising is
a lowpass filter; however, it has a very steep cut off rate, so that it almost
completely removes all frequency components higher than the input bandwidth
of the board. If the signals- are not removed, they erroneously appear as signals
within the input bandwidth of the board.
Excitation
Signal conditioning also generates excitation for some transducers. Strain
gauges, thermistors, and RTDs,for example, require external voltage or current
excitation. Signal conditioning modules for these transducers usually provide
these signals. RTD measurements are usually made with a current source that
converts the variation in resistance to a measurable voltage. Strain gauges are
resistance devices in a wheatstone bridge configuration, which often require
bridge completion circuitry and excitation sources.
Linearization
Another common signal conditioning function is linearization. Many
transducers, such as thermocouples, have a nonlinear response to changes in
the phenomenon being measured. Therefore, linearization routines for
thermocouples, strain gauges, and RTDs are included in the DAQ application
software.
3.2.1 Data Acquisition Hardware
Data acquisition hardware includes the following functions
Analog Input
The analog input specifications can give information on both the
capabilities and the accuracy of the DAQ product. Basic specifications, which
are available on most DAQ products, tell about the number of channels,
sampling rate, resolution, and input range. The number of analog channel inputs
will be specified for both single-ended and differential inputs on boards that
have both types of inputs.
Single ended inputs are referred to a common ground point.
Non-referenced single-ended inputs are all referenced to AISENSE, not a
common ground. The potential at this node can ~ with respect to the system
ground. These inputs are typically used when the input signals are-high level
(31 V), the leads from the signal source to the analog input hardware are short
(15 ft), and all input signals can share a common ground reference.
If the signal do not meet these criteria, differential inputs should be used.
A differential, or non-referenced, measurement system has neither of its inputs
tied to a fixed reference. An ideal differential measurement system responds
only to the potential difference between two terminals-the (+) and (-)inputs.
Any voltage measured with respect to the instrumentation amplifier ground
present at both amplifier inputs is referred to as a common-mode voltage. The
term common-mode voltage range describes the ability of a DAQ board in
differential mode to reject common-mode voltage signals. In differential mode,
noise errors are reduced because the common-mode noise picked up by both
leads is cancelled out.
Sampling Rate
This parameter specifies how often conversions can take place. Using a
faster sampling rate, more inputs can be acquired in a given time, providing a
better representation of the original signal. As shown in figure 3.6 (a), all input
signals must be sampled at a sufficiently fast rate to faithfully reproduce the
analog signals obviously, if the signal is changing faster than the DAQ board
is digitizing, errors are introduced into the measured data. In fact, data that
is sampled too slowly can appear to be at a completely different frequency. This
distortion of signal is referred to as aliasing, as shown in figure 3.6(b).
3.12
Computer Control of Process
Computer as a Controller
3.13
(a) Adequately Sampled
low-frequency signals, such astemperature and pressure, while maintaining the
cost benefits of continuous scanning. This method scans the input channels at
one interval and uses a second interval to determine the time before repeating
the scan.' The, input channels are scanned within microseconds, creating the
effect' of simultaneously sampling the input channels.
10.00 r ~ _ _
140 60 40
~ ~
20 o
Fig. 3.7 Digitized sine wave with 3 bit Resolution
7.50 -
6.75
3.75
5.00
6.25
1.25
2.50 --------------
Multiplexing
A common technique for measuring several .signals with a single ADC is
multiplexing, A multiplexer selects and routes one channel and repeats. Because
the same ADC is sampling many channels, the effective rate of each individual
channel is reduced in proportion to the number of channels sampled.
Resolution
The number of bits that the ADC uses to represent the analog signal is
the resolution. The higher the resolution, the higher' the number of divisions
the voltage range is broken into and therefore, the smaller the detectable voltage
change.
Figure 3.7 shows a sine wave and its corresponding digital image as
, . .
obtained by an ideal 3-bit ADC. A 3-bit converter divides the analog range in
/to 2
3
or 8 divisions. Each division is represented by a binary code between 000
I . . .
. and 111. Clearly, the digital representation is not a good representation of the
original analog signal because information has been lost in conversion. By
(b) AllasedDueto Under-sampling Rate
Sampling Methods
When acquiring data from several input channels, the analog multiplexer
connects each signal to the ADC at a constant rate. This method, known as
continuous scanning, is significantly less expensive than having a separate
amplifier and ADC for each input channel. BeC\ause the mUltiPlexer, switches
between channels, a time skew is generated between each channel sample. An
analog multiplexer connects one of the input signals to the ADC for processing.
This method is appropriate for applications where the time relationship between
sampled points is unimportant. For those applications where the time
relationship between inputs is important (such as phase analysis of AC signals),
simultaneous sampling is needed. DAQ products capable of stimultaneous
sampling usc sample-and-hold circuitry for each input channeL Simultaneous
sampling can be simulated without paying for additional sample-and-hold
circuitry. Internal scanning creates the effect of simultaneous sampling for
Fig. 3.6 Effects of too Low a Sampling Rate
, /
According the Nyquist theorem in control system, inputs must be sampled
at least twice the rate of the maximum frequency component in that signal to
prevent aliasing. The frequency at one-half the sampling frequency is referred
to as the Nyquist frequency. Theoretically, it is possible to recover information
about signals with frequencies at or below the Nyquist frequency. Frequencies
above the Nyquist frequency will alias to appear between DC and the Nyquist
frequency. For example, audio signals converted to electrical, signals by a
microphone commonly have frequency components up to 20 kHz. A board with
a sampling rate greater than 40 kS/s is needed to properly acquire this signal.
3.14
Computer Control of Process
Q?mputer as a Controller 3.15
increasing the resolution of 16 bits, however, the number of codes from the ADC
increases from 8 to 65, 536 and therefore, an extremely accurate digital
representation of the analog signal can be obtained, if the rest of the analog
input circuitry is designed properly.
3.2.2 Data Acquisition Software
DAQ hardware without software is of little use-and DAQ hardware with
poor software can be worse. Following two types of software is used:
Driver software
Driver software is the layer of the software that directly programs the
registers of the DAQ hardware, managing its operation and its integration with
the computer resources, such. as processor interrupts, direct memory access
(DMA), and memory. Driver software rides the low-level, complicated details of
hardware programming while preserving high performance, providing the user
with an easy-to-understand interface.
Driver functions for controlling DAQ hardware can be grouped into analog
1/0, digital I/O, and timing I/O. Although most drivers will have this basic
functionality, driver software does more than simply getting data on and off the
board. If has the following functionality..
(i) Acquire data at specified sampling rates.
(ii) Acquire data in the background while processing in the foreground
(continuous data acquisition)
(iii) Use programmed 1/0, interrupts, and DMA to transfer data.
(iv) Stream data to and from disk.
(v) Perform several functions simultaneously.
(vi) Integrate more than one DAQ board.
(vii) Integrate seamlessly with signal conditioning equipment.
Application Software
Application software uses driver software to control the DAQ hardware
efficiently. It adds analysis and presentation capabilities to the driver software.
The application software also integrates instrument control such' as GPIB (as
general purpose interface bus), RS-232, PXI (peripheral component interact
extensions for instrumentation), and VXI (virtual extension for instrumentation)
with data acquisition.
3.2.3 Data Logging
The efficient operation of a manufacturing process may involve the
interplay of many factors, such as production rates, material costs, and
efficiencies of control. When the process requires implementation of many
process-control loops, then the interaction of one stage of the system with
another often can be analysed in terms of the controlled variables of the loops.
An example of this is. the rate of production of one loop, expressed as a. flow
rate, which serves as a determining factor in the production rate of a following
control system. Historically, an understanding of this type of interaction
required analysis, after the fact, of strip-chart recordings taken from process
parameters during a production run. Such analysis, carried out by trained
personnel, may then dictate settings of operational limits of future production
runs.
With the development of high-speed digital computers with mass digital
storage, it became possible to record such data continuously and automatically,
display the data on command, and perform calculations on the data to reduce
it to a form suitable for evaluation by appropriate technical individuals.
Fixed Loggers
Let us assume the process is under the control of many analog
process-control loops and there is provision for analog process variable
measurements to be available as a commonly scaled voltage. Thus, some signal
conditioning converts all measurements into a given range, often a specified
voltage range, as required by a data-acquisition system. A brief accounting of
the elements of the system is given later.
3.16 computer Control of r o e s ~
.computer as a Controller
-
3.17
Fig. 3.8 General features of a data-logging system using a computer
Data-Acquisition System (DAS)
Alarms
An important part of any data-logging circuit is an alarm system} that
monitors inputs from excursions beyond some specific limits. Withscan rates
of the data as high as 5000 per second, it is possible for a computer to maintain
tight vigilance over variable values. Everytime the computer inputs a particular
variable, the value is compared to its preset limits,which, if exceeded, trigger
an alarm.
Computer
The computer, of course, is the central element in the system. Through
programming, the computer accepts inputs and performs prescribed reductions
of the data through mathematical operations. The results are evaluated by
further programmed tests to oversee the operation of the entire process from
which the inputs are taken. Projections of future yields, evaluations of efficiency,
deviation trends, and many other operations can be performed and made
available to process personnel.
Peripheral Units
. The peripheral units are the support equipment to communicate computer
operations to the outside world. These units include the operator console where
the programs are entered and through which commands can be given to initiate
specific actions, such. as calculations and data outputs by the computer. The
console usually has a CRT/keyboard and a typewriter unit for inputs and
outputs. A mass-storage system, such as magnetic tape, is used to store data,
such as periodically sampled inputs from the process, that can be used in later,
more detailed analysis of process performance.
SP
Alarms
Address
lines
Process
}-i
Line printers,
CRTs and so on
Data
acquisition
. system
Analog {
process-control
loops
The data-acquisition system, IS the switchyard by which the computer
inputs samples of process variable values. The concept of "samples" of these
values is an important topic. The reason for concern over this point is that there
are situations where the sample rate can be such that erroneous information
about the variable time dependence results. The rate at which samples of a
process variable can be taken depends on how long it takes for the DAS to
acquire a value, how long it takes the computer to process the value, and how
many other variables are to be sampled.
3.3 SUPERVISORY CONTROL AND DATA ACQUISITION SYSTEMS
(SCADA)
3.3.1 Introduction
A natural extension of a computer data-logging system involves computer
feedback on the process through automatic adjustment of loop setpoints. As
various loads in a process change; it is often advantageous to alter set points
in certain loops to increase efficiency or to maintain the operation within certain
3.18 Computer Control of Process Computer asa Controller
3.19
precalculated limits. In general, the choice of setpoint is a function of many
other parameter in the process. In fact, a decision to alter one setpoint may
necessitate the alteration of many other loop set points as interactive effects
are taken into account. Given the number of loops, interactions, and calculations
required in such decisions, it is more natural and expedient to let a computer
perform these operations under program control.
After having dealt with the basic hardware modules of a real-time system,
let us first concentrate on Supervisory Control and Data Acquisition (SCADA)
system, since it is the first step towards automation. The basic functions carried
out by a SCADA system are:
Channel scanning
Conversion into engineering units
Data processing.
Figure 3.9 & 3.10 the block schematic of SCADA. Before considering other
features of SCADA, let us discuss the basic functions.
Fig. 3.9 In computer supervisory control, the computer monitors
measurements and outputs the loop setpoints
-
--+
Display
module
j[~
T
Micro
Signal Analog
processor
Serial
conditioner
I
Input --. interface I +
!e
module
.L,
module
Memory
mcdute
--+
(/)
Alarm
----+ annunciator
'C
module
c
lUOl I Digital
gj.fi
I
Input
I
!
Communication
:9""
I Module
~
with central
computer
External
TImer
~ Counter
clock
module
-
Fig. 3.10 Supervisory control and data acquisition system
P
R
o
C
E
S
S
3.3.2 .Channel scanning
There are many ways III which microprocessor can address the varIOUS
channels and read the data.
Polling
The microprocessor scans the channel to read the data, and this process
is called polling. In polling, the action of selecting a channel and addressing it,
is the responsibility of processor. The channel selection may be sequential or in
{
Data
output
system.
Alarms
Address
Line Printers
eRTs and so on
,--- - - -------------
}i
Data
acquisition
system
Analog process- {
control loops
3.20 Computer Control of Computer as a Controller
3.21
any particular order decided by the designer. It is also possible to assign priority
to some channels over others, i.e. some channels canbe scanned more frequently
than others. It is also possible to offer this facility of selecting the order of
channel addressing and channel priorities to the operator level, these
facilities as dynamic.
The channel scanning and reading of data requires.. the following actions
to be taken.
Sending channel address to multiplexer
Sending start convert pulse to ADC
Reading the digital data.
For the digital data at ADC output, the end of conversion signal
of ADC chip can be read by processor and when it is 'ON', the digital data can
be read. Alternatively, the microprocessor can execute a group of instructions
(which donot require this data) for the time which is equal to or greater than
conversion time of AVC and then read the ADe output. Another modification
of this approach involves connecting the end of conversion line to one of the
interrupt request pins of the processor. In this case the interrupt service routine
reads the ADC output and stores at predefined memory location.
The channels may be polled sequentially, in which case the channel
address in first step above increases by one every time or they may be .scanned
in some other order. In the later case, a channel scan Array can be maintained
in memory (fig The scan array contains the addresses of the channels in
Channel
number
9
10
1
2
ASCN 5
(Scan array) 9
.3
4
2
6
8
9
n 7
Fig. 3.11 Channel scan array
the order in which they should be addressed. The ASCN array in fig. 3.11 has
. 9, 10, 1, 2.... as entries in sequence. Thus the first channel to be scanned will
be channel 9, followed by 10, 1, 2.... As the pointer reaches the last entry in
the array, the first entry is again taken up (i.e channel 9 is scanned).
. If a channel number is repeated in the array, then that particular channel
will be scanned repeatedly. Thus it is possible to scan some channels more
frequently than others. This gives them higher priority over others. In figure
(3.11) the channel 9 is scanned 3 times, channel 2 is scanned 2 times while
other channels are scanned once during a cycle. Figure 3.12 shows the flowchart
for one scan cycle.
Fig. 3.12 Scan cycle flow chart
The processor may scan the channels continuously in the particular order
as illustrated by the flowchart or the channels may be scanned after every fixed
time period. The. second approach requires a timer/counter circuit whose output
is connected to interrupt request input. The scan routine for one channel is
incorporated in 'Interrupt Service Routine'. It is also possible to make the time
gap between two channels as variable. This would require a n x 2 dimension
scan array (fig The Interrupt Service Routine fetches the time gap value
for next channel, loads the timer/counter with the value and initiates the
timer/counter before returning to main program.
/
3.22 computer Control of Process Computer as a Controller
3.23
The scan array may be decided at the design stage of SCADA and fused
permanently in (ROM) Read Only Memory. Thus the channels are always
scanned in that particular order. However, it may be desirable to offer the
facility of changing the sequence at the operator level. The operator may like
to take this action depending on the condition of the plant being monitored. As
an example, if at any instant operator finds out that the transducerconnected
to channel 9 has generated some .fault, then he might take decision to by pass
the channel 9, as otherwise its data will be taken into analysis to produce
incorrect result. In another situation, it may become necessary to scan some
channel more frequently for some time to observe its response to some
modifications incorporated in the system. The operator should thus be able to
insert new scan array at any time. This facility may be provided through a key
switch which may be connected to interrupt request input of the processor. The
Interrupt Servicing Routine will accept new scan array and store in place of
the old one.
Channel Time
number gap
9 FF (H)
10 OF (H)
1 FO (H)
2
5
9
3
4
2
6
a
9
7
n
Fig. 3.13 Scan array with time
Interrupt Scanning
Another way of scanning. the channels may be to provide some primitive
facility after transducer to check for violation of limits. It sends interrupt request
signal to processor when the analog signal from transducer is not within High
and Low limits boundary set by Analog High and Analog Low signals. This is
also called Scanning by Exception. When any parameter exceeds the limits then
the limit checking circuit would send interrupt request to microprocessor which
in turn would monitor all parameters till the parameter values came back within
pre-specified limits. This allows a detailed analysis of the system and the
problems by the SCADA system.
'I'he limit checking circuit for one channel is shown in Fig 8.14. Two analog
comparators check whether the input signal is within high and low limits. The
output is ORed and the final output is used as interrupt request to
microprocessor. This limit checking should not be constructed an alarm.
condition, but the condition for the start of any abnormality which may generate
alarm condition or may be controlled by the system before any alarm condition
is reached. Therefore, the system should be watched closely during this time.
3.3.3 Conversion to Engineering Units
The data read from the output of ADC should be converted to the
equivalent engineering units before any analysis is done or the data is sent for
display or printing. For an 8-bit ADC working in unipolar mode the output
ranges between 0 and 255. An ADC output value will corresponds to a particular
engineering value based on the following parameters.
1. Calibration of transmitters.
2. ADC mode and digital output lines.
Fig. 3.14 Interrupt request generation on limit violation
The transmitter output should be in the range of 0-5 V or 4-20 rnA range.
Depending on the input range of measurand value for transmitter, a calibration
factor is determined. If a transmitter is capable of measuring parameter within
the input range Xl and X
2
and provides 0-5 V signal at output ,then calibration
factor is
3.24 Computer Control of Process
Computer as a Controller' 3.25
If we are converting this signal to digital through an 8-bit ADC (Input
range 0-5V) in unipolar mode then 5V =255 and OV=0,
. 255
ie 1 Volt=-
. 5
Thus the conversion factor is ADC output
. HigherLimit
10
20
LowerLimit
02
09
ADCoutput
255
5 -
X2 -Xl . . .
5 . engmeermg urnts
Fig. 3.15 Limit array
1
X2-XI ... ..
= 255 engmeermg units
If the ADC output is Y then the corresponding value in engineering units
. . . .
(X
2-XI
)
Conversion factor is therefore -=------==-
255
The conversion of ADC output to engineering units, therefore,involves
multiplication by conversion factor. The conversion factor is based on the ADC
type, mode and the transmitter range. This multiplication can be achieved by
shift and add method in case of 8-bit microprocessor; For 16-bit microprocessor,
a single multiplication instruction will do the job.
3.3.4 Data Processing
The data read from the ADC output for various channels is processed by
the microprocessor to carry out limit checking and performance analysis. For
limit checking the Highest and Lowest Limits for each channel are . stored in .
an array (Fig 3.15), When any of the two limits is violated for any channel,
appropriate action like alarm generation, printing etc., is initiated. The limit
array shown (Fig 3.15) simplifies the limit checking routine. Through this; the
facility to dynamically change the limits for any channel may also be provided,
on the lines similar to scan array. .
In addition to limit checking, the system performance may also be
analysed and report could be generated for the manager level. This report will
enable the managers to visualise the problems in the system and to take decision
regarding system modification or alternate operational strategy to increase the
system performance. The analysis may include histogram generation, standard
deviation calculation, plotting one parameter with respect to another and so on.
The software can be written depending on the type of analysis required.
The facilities like scanning, limit checking, etc, could be incorporated in
a simple way using arrays in software. Let us first examine channel scanning,
using scan array in memory which contains the channel numbers in one
. particular order of scan.. For two applications using the same hardware, only
the scan array will have to be changed for the scanning. The same argument
is valid for limit checking. The conversion to engineering units can also be
achieved by storing the conversion factors for different channels in any array.
'I'he conversion factors stored in the array will change with the transducers i.e
it will be different for different applications. The simple print programme which
takes the data in particular format from memory and sends for printing may
also be same for different applications. However, the designer will have to write
specialised routine for arranging the data in memory in any particular format
required. The analysis and report generation programs will be. application
dependent and will have tobe written separately for different applications. Here
also the routines for histogram etc. may be used by different applications if they
are written in generalised manner.
3.26
3.3.5 Distributed SCADA System
Computer Control of Process
Computer as a Controller 3.27
In any application, if the number of channels are quite larger then in
order to interface these to processor, one has to use multiplexers at different
levels. Figure 3.16 shows the interfacing of 256 channels, using 17 multiplexer
of 16 channels each.
The 8 address lines are used to address 256 channels. Out of the 8-address
lines, upper four are used to select a particular multiplexer and lower four lines
are used to select a particular channel in the multiplexer.
The 8-bit channel address thus directly maps into channel number and
can be manipulated in any way. The other parts are same as described earlier.
This approach will be suitable for the processor which are basically slow. Even
if a channel is scanned only once in every scan, it is only after 255 channels
have been scanned, limit checking and analysis have been performed,. a
particular channel will be addressed again. This is not acceptable in many
processes.
For the process plants where the structure does not suit, the only
alternative is to use more than. one SCADA system and distribute the channels
among them. But, for performance analysis on the process plant, it is mandatory
that the data from various channels should reach a central location where it
can be consolidated and analysed to generate the reports on plant performance.
Figure (3.17) (a) and (b) show the interfacing of number of SCADA systems
with central computer in star configuration and Daisy chain configuration
respectively.
The SCADA system directly connected to transducers are called nodes and
are the same as the systems described earlier. They scan the channels using
one of the techniques discussed, earlier; convert the data into engineering units,
perform the limit checking, generate alarm, if data item crosses the limit and
generate print out.
In addition to these functions, the data regarding the channels in the node
are transferred to central computer which analyses the system performance and
generates print out. The print outs are generated by exception i.e unnecessary
data is not printed at any point. At the node level, the print out is required for
the operators to run the system. Depending on the node performance, operator
.---
I"- '5
113
.-
L/)
w IQd
.... -
<i! " ,-+-l"-
Gl
E
....
ld
'---
F
( .
<OOOCW(/)(/) CD::;)(/) )
( 01- CD::!(/) )
t t
IrE
113
...
'5",113
1-
113 '5",
1l'3
1
-
'5:;; c.t: ,9-t:
"8.
E&. 8&. I'- 00.
0
IJ
f-+-
o
r;-
UOISJ811UOO
lOPU3 <"0
7
lH
113
'"
xI'-
.
'"
------ "0<:
"0-
<C
I
I
x
*-=-
x
I
x
::ii
e- ",;---.;
",1----;,;1 ",r--"il ",r ",-I
3.28 Computer Control of Process
3.29
The concept of local area networks or microprocessor interconnections can
be used in case of distributed SCADA system very effectively. Thus we conclude
that the distributed SCADA is the ultimate solution for complex process plant
monitoring.
Computer as a Controller
the input and output material flow and the fuel consumption etc. may be more
helpful.
3.4.1 Introduction
3.4 DIRECT DIGITAL CONTROL
CHI
n-l 2 2
Sensors
CPU
-----------
Serial
interface
module
J
Serial Serial Serial
. Serial
..-
interface interface interface interface
module module module module
-------- -------- -------- --------
CAS,
CAS
2 DASn-'
CAS
n
.
--- --- --- ---
.....-
-
Process
CH
. CH-M
1 CHI CH CHM CH CHM
CH2 CHM
n
CH
(b)
Fig. 3.17 (a) Distributed SCADA structure (Star configuration), and
(b) Distributed SCADA structure (Daisy chain configuration)
may decide to monitor any channel more frequently, change the limits etc. The
print out at the central node is required for the managers to take long term
. decision to optimise the performance. The details on the channel performance,
limit violation arc not required at this level. On the other hand, histogram on
[3pervisors ..
Supervisory
control level
Console
computer
-----c-
1
\
--
Operator's Analog
displays controllers
1
Specialised
I
controllers
1
Process
The advent of microprocessor has changed the field of process control
completely. The tasks which were performed by complex and costly
minicomputers are now easily programmed using microcomputers. In the past
computer was not directly connected to the process but was used for supervision
of analog controllers: The analog controllers were interfaced to the process
directly as well as through specialised control for dedicated functions (Fig
The analog controllers and specialised controllers were called level 2 and level
1 control respectively.
From other
CAS
Serial
interface
module
To other
DAS
(a)
Serial
interface
module
CH
1
Serial
interlace
module
DAS,
CPU
Serial
Interface
module
Process
CH
1
CH
2
CH-M,
Sensors
Fig. 3.18 Supervisory computer level
/
3.30 Computer Control of Process
Qomputer as a Controller 3.31
'rho emergence of economical and fast microprocessor has made analog
controllers completely out-dated, as the same functions can be performed by
digital computers in more efficient and cost effective way.
3.4.3 DDC Software
The main part, DDCsoftware is program for control loops. There are two
algorithms for programming a three mode PID control loops.
(1)
median valve position
value position at time ti
Proportional constant == 100/ PE
(where PE == proportional band in percent)
integral constant
derivative constant
error at instant t
n
== (8 - V,J
value of controlled variable at instant til
set-point.
ri
S: i : f
Yn==Kpcn+KD. 6.t +kI .
o
Position Algorithm
Velocity Algorithm.
where
3.4.3.1 The Position Algorithm
The three-mode controller can be represented by,
The integral term at any given instant t
n
is equal to the algebraic sum
of all the control forces generated by the integral control action from the
beginning to that instant.
The PID control can be realised 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 soil ware implementation becomes easy. The modifications are discussed
in the following section.
Y
n
Yo
Wt'
K
p
KI
KD
en
V
n
8
DAC H Actuator
Memory
Serial
I/O ports
Timer/Counter
I Clock
L
MUX
I
I
t
I
I
I
I
I
I
I
I
l
Fig. 3.19 Direct digital control
The microprocessor performs the following tasks.
1. It reads the various process variables from different transmitters
through multiplexer and ADC.
2. It determines tho error for each control loop and executes control
strategy for each loop.
3. It outputs the correction value to control value through DAC.
3.4.2 DDC Structure
The DDC (Direct Digital Control) directly interfaces to the process for the
data acquisition and control purpose. That is, it has necessary hardware for
directly interfacing (opto-isolator, signal conditioner, ADC) and reading the data
from process. It should also have memory and arithmetic capability to execute
required P, P + I or P + I -v D control strategy. At the same time, the interface
to control valve should also be part of DDC. Figure shows the various
functional blocks of a direct digital control system. These functional blocks have
been described in number ofbooks on microprocessor. The multiplexer acts like
a switch under microprocessor control. It switches and presents at its output
the analog signal from a sensor/transmitter. The analog to digital converter
converts the analog signal to digital value.
computer as a CO(1troller
-
3.33
Thus, differential term, can be expressed as
Yes
Proportional P= K
p
x En
Error En=Set point - MeasuredValue
Reinitialise sampling Intervalcounter (ST)
No
Computer Control of r o e ~
Thus integral term can be represented as
3.32
and the differential term, KD . L1 e / L1 t at any instant t
n
is proportional to
the rate of change of the error.
en - e
n
- 1
KD----
L1t
Integral I = In+1n-1
where en is the current error and
StoreEn-1
ST = Sampling interval counter
Differential D= ~ x Ed
Fig. 3.20 Flow chart of PIO control
Trapezoidal rule for integral term
The integral term can be represented by using trapezoidal rule
(2)
n
en - en - 1 1
Yn =Kp . en + KD . L1 t + KI Lei L1 t + Yo
t=o
en - 1 is the previous error calculated at instant t
n
_ r-
Thus, with these modifications the three-mode controller equation will
become:
The integral and the differential control forces are dependent upon the
interval between the two consecutive terms. This interval is the inverse of the
rate at which the value of the controlled variable is measured i.e the sampling
rate. Hence the provision for defining the sampling rate should be made
available in the software.
n
"" ei +ei - 1
L..J 2 L1t
t=o
This will give better accuracy than previous term,
The flowchart for calculating PID control output based on the above
equation (Eq.2) is shown in Figure 3.20.
The 'sampling interval counter', the set-point, the proportional constant
IS), the integral constant KI and the derivative constant KD are defined by the
user.
The two modifications that can be performed on above equations are
Trapezoidal rule for integral term and interpolation technique for derivative
term.
based on rectangular rule.
n
t=o
(3)
3.34 Computer Control of
Computer as a Controller
3.35
Interpolation technique for derivative term
The first difference in the derivative term, (en - en -1) is affected by noise,
and thus differentiation is sensitive to data error and noise. The noise can be
reduced by using analog or digital filters.
However the technique commonly used III interpolation method with
four-point control difference technique (Fig. 3.21).
Thus, with these two modifications the controller equation becomes
(7)
In position algorithm computer recalculates the full value of the valve
setting at each sampling interval. As shown in Fig 3.20 the analog signal is
sent to valve actuator through DAC.
Fig. 3.21 Interpolation technique for derivative term
________ n " n l
OV Full scalevoltagefor control valve .,
+Ve
In velocity algorithm, the computer calculate the required change in valve
position. The output is digital pulse train which can be directly used in case
valve is stepper motor driven. In case of other valves, stepper motor combined
Fixed Voltagecorresponding
point to newposition
-- _-----------1--Lj
I L'Changein valveposition
: I by velocityalgorithm
I '
,.... ---
I '
I '
I '
I :
, ,
, ,
I I
I I
I I . Movablepoint drivenby
: : stepper motor
Tho position algorithm has distinct property that it maintains its own
reference in Yo' However it has two drawbacks namely lack of bumples transfer
from manual to auto switching and set wind-up due to integral saturation in
test mode. These drawbacks are not present in velocity algorithm.
3.4.8.2 The Velocity Algorithm
In number of control loops, the final control element is stepper motor or
stepper motor driven valve. In such cases, the requirement at the computer
output will be a pulse train specifying the change in the valve position. Thus
output of position algorithm cannot be used, since it gives the new position of
the valve, in absolute term.
(4)
(5)
V' =V n + Vn - 1 + Vn - 2 +Vn - 3
4
v =.1 rV;1 - V'" + Vn 1 - VI' +V' - Vn - 2 + V' - V
n
.. 3 1
t 4 L 1.5 t 0.5 t 0.5 t 1.5 t J
Since set-point is constant,
Let Vn, V
n
r- V
n
2 and V
n
. 3 be the values of controlled variable at
current and their previous consecutive sampling intervals.
(6)
Fig. 3.22 Slide wire arrangement
3.36
Computer Control of Process
Computer as a Controller 3.37
At t n _ 1 i.e at previous instant, the valve position
where Y
n
is valve position at t
n
(13)
1 [en + en - 1 ]
+- .6.t
KI 2
n
Y
n
= .6. Y
n
+Y
n
- 1
=.6.Yn+[ .6.Y
n
- 1 +Y
n
-
2
]
=.6. v, + .6. Y
n
- 1 + [ L\ Y
n
- 2 + .6. Y
n
- 3 ]
The relationship between position and velocity algorithm is,
L\ Y
n
=Y
n
- Y
n
- 1
I.e
(8)
(9)
with slide wire arrangement as shown in Figure 3.22 can be used. The same
function can be performed by an integrating amplifier.
The Eq. (2) of position algorithm derived earlier is,
The change in valve position L\ Y
n
at t
n
will be,
i=o
KD . 1 (10)
=Kp . (en - en - 1) + L\ t (en - 2 en - 1 + en - 2 ) + KI en . .6. t
The integral term and derivative term can be modified by using
Trapezoidal rule and Interpolation technique similar to position algorithm.
I Integral overshoot
We shall discuss these and modify the algorithm accurately.
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 (13) exhibits two measure problems:
Controller drift
Controller drift
The velocity algorithm should always include integral term, otherwise it
will give rise to controller drift. To explain this let us substitute the following
equation in velocity algorithm.
(11)
ei+ei-l 1
J
Integral term = KI.Li 2 - .Li 2 .6. t
t=o i=o
_ [ en + en - 1 ]
- KI 2 .6. t
Derivative term
= [(en + 3en - 1 - 3en - 2 - en - 3 ) - ( en - 1 + 3e
n
- 2 - 3e
n
- 3 - en - 4 ) ]
where S =set point and
V
n
=value of controlled variable at t
n
By substituting modified integral and differential terms in (10), we get,
KD
= 6 .6. t [ en + 2en - 1 - 6en - 2 + 2en - 3 + en - 4 ]
(12)
3.38 Computer Control of Process
computer as a Controller
3.39
The' controller .response may thus oscillate. The oscillation problem
explained above can be solved by disregarding the sign of proportional term and
assigning if the same sign as integral term. Thus,
From the above, it is clear that only integral term has set-point and thus
this term will force controlled variable to come to set-point. If integral term is
not present in velocity algorithm, then controller drift may be caused. The
proportional term of velocity algorithm may give rise to oscillations. Let us
consider the velocity algorithm with only proportional and integral term.
Proportional term (sign of integral term), K
p
(en - en 1)'
Vminbla
Value
+-----
Integral overshoot
This modification while solving one problem, creates another problem of
integral overshoot and consequently integral oscillations. When proportional
term is forced to have the same sign as integral term, the value of controlled
variable will reach the set-point at a faster rate and overshoot it.
11 t [ en + en - 1 ]
The integral term -.-
. . , KI 2
will register the change in the direction of error and oppose this along with
proportional term and give negative correction. The value of controlled variable
may overshoot the set-point in the opposite direction, giving rise to oscillation
(Fig : ~ 2 8
Output =+ Ve.
Proportional term = K
p
( en ~ en _ 1 ) = + Ve
11 t ~ en + en - 1 ]
Integral term = KI l 2 . =+Ve
When error IS increasing i.e when value of controlled variable is movmg
away from the set-point.
When error IS decreasing because of control action, i.e when value of
controlled variable is moving towards set-point.
Case II
CaseL
If integral term is not over balancing the proportional term then, output
11 Y
n
=negative.
TIme
Fig. 3.23 Case of Oscillation in velocity algorithm
The ideal solution to this problem will be to fix a band across the set-point.
When value of controlled variable is outside the band the proportional term
takes the sign of integral term. Thus controlled variable will reach the band
steeply. Whereas when the value of controlled variable is inside the band, the
proportional term takes the sign as calculated, i.e (en - en _ 1)' This gives
damping action inside the band while controlled variable reaches the set-point,
thus preventing integral" vershoot and oscillation (Fig. 3.24).
11 t [ en + en - 1 ] .
=- =+ Ve
KI 2
Integral term
Proportional term =K
p
[ en - en - 1 J=~ Ve
The negative correction may increase the error thus, giving positive
correction as per Case 1. The positive correction may decrease the error and
give negative correction.
It has been found that 7% full scale setpoint band gives good results on
simulation tests of systems with first and second order time constants. The
above modification to the velocity algorithm will yield the following equation
3.40 Computer Control of Process
Computer as a Controller 3.41
SP
Variable
Value
7%,+- _
lime
b. t [ en + en - 1] KD .
b.Yn =K1. 2+6b.t( en+2en-1-6en-2+2en-s+en-4)+
Proportional term
(set-point Band) SB = 0;07 of full scale
When I en - 1 I > SB
Fig. 3.24 Effect of set-point band in velocity algorithm
Readcontrol algorithm constants, steady-state algorithm
output to valve, samplingperiodandset-point
Give D/Acommand to set valvefor steady-state operation
No
Yes
GiveAIDcommand to read measured variable
Current error =set point- measured variable
Presentcontrolleroutput = controlleroutput one sample
periodbeforepresent+ (P +1+0) correctiontenns
Yn=Yn+ KP(en-9"..1) + 2
AKl t
(en KD
6At
(en+2e"..1-6en4 +28n-a +61>-4)
Set past error =presenterror
Give O/Acommand to forward controlleroutput to
Fig. 3.25 Program flow chart for velocity "'gorithm
Proportional term = (Sign of integral term) K
p
I en - en - 1 I
When len - 1 I < SB
Proportional term =KP I en - en -1 I
The flowchart for velocity algorithm is shown in Figure. 3.25. The ADC
output can be directly used for calculation if set-point and SB are expressed in
terms of fraction of ADC output values.
The range of ADC output is taken as full scale value. This avoids time
consuming portion of conversion to Engineering Unit III software. If
proportionality constant KP integral constant (1/ K1) and derivative constant
KD can be expressed as fraction of ADC values, then in addition it will save
computer time in calculation.
3.4.3.3 Position Vs. Velocity Algorithm
Reference position
The major advantage of position algorithm is the reference position. In its
equation itself, the reference position of control valve is maintained as Yo' This
is however not there in velocity algorithm. Thus whenever there is disruption
due to shut down, communication error/failure or any other reason, the median
position of valve will be known in position algorithm and eventually valve will
catch up without any synchronization problem. In velocity algorithm, external
device like stepper motor or integrating amplifier should store the last position
of valve.
Reset windup
When the DDC control loop IS being tested, then sensor inputs are
connected to see whether the DDC accepts the signals. But control valves in
3.42 computer Control of Process
computer as a Controller
3.43
Common memory
Bus
Microprocessor Microprocessor Microprocessor Microprocessor
+ + + +
Local memory Local memory Local memory Local memory
--------- -------- -------- --------
MUX+ADC MUX+ADC MUX+ADC MUX+ADC
[]} - - - Transmitter
3.5 ARTIFICIAL INTELLIGENCE AND EXPERT SYSTEMS
have only to specify the pertinent input variables which establish the setting
of each final output element. A programmer could easily put these variables
together (as described above) to get the desired control action.
Fig. 3.26 Multimicrocomputer based DDC structure
Introduction
Process control and monitoring is becoming increasingly automated. In
today's environment large process control systems and distributed control systems
are being automated using computers. Such automation is absolutely essential for
fast and complex processes like power generation, transmission and distribution
systems, petrochemical processing, metal industries, discrete manufacturing, etc.
These manufacturing and process environments are exceedingly complex with
volumes of data and more opportunities to go wrong than to go right. The
management of complex processes is a difficult task requiring a wide range of
knowledge and expertise. The challenges in building intelligent control applications
Jar process control and management problems are vast and require the subtle
combination of many technologies and methodologies.
In intelligent control, the contrci algorithms are developed by emulating
certain characteristics intelligent biological systems. An intelligent control
technique that holds tremendous promise combines the methodologies of
artificial intelligence (AI).
Thus velocity algorithm with corrections incorporated IS best suited lor
DDC control loops.
A possible solution to above problem may be to disregard integral term
in test mode. However, then integral mode,cannot be tested along with other
modes by connecting the system inputs.
process are not connected, so that process is not disrupted. In position algorithm,
the integral term increases to its limit (saturate or windup) because when the
process is not connected, process reactions are same, i.e. sensors read more or
less the same value and for computer error is persisting. In this case when the
DDC system is finally connected, the correction drives control valve to an
extreme, causing process disruption. This problem does not arise in velocity
algorithm where the integral term is given by
3.4.4 Multimicrocontroller based DOC
This loop description can be a great help to the instrumcntation-d.o.ign
engineers, if each kind of loop component is tabulated separately according to
the plant instrumentation numbering system. The instrument enginfeT would
A parallel microcomputer based DDC ar chitecture, suited for parallel
multi-variable cascade loops is shown in Figure 3.26. The common memory
stores all the variables and is used for transferring parameters between various
systems.
Auto manual switching
The DDC control loop with position algorithm causes bumps :' Lthe time
of manual to auto switching. At the time of switching, the algorithm must be
initiated to zero error situation. Thus output must be equal to Yo. i.e median
position of valve. Depending on the process dynamics, operator selects the
median position of the valve and corresponding Yo value. The DDC algorithm
has no knowledge of this precise Yo value, and thus switching causes bumps.
. Velocity algorithm is not susceptible to this problem since Yo does not exist in
the algorithm.
Computer as a Controller 3.45
.. Artificial neutral networks (ANN)
Expert systems
The inference engine
The knowledge base
The interface between the human and the expert system.
The inference engine gathers the information needed from the knowledge
base, from associated databases, or from the user. It guides the search process
in accordance with a programmed strategy; uses rules of logic to draw inferences
or conclusions for the process involved; and presents the conclusions (where
warranted) with explanations or bases for the conclusions.
The knowledge base consists of information stored in retrievable form in
the computer, usually in the form of rules or frames. the correctness and
3.5.1.1 Expert systems
Expert systems are computer software systems that. mimic the tasks
routinely carried out by experts. Expert systems mimic human judgement using
computer programs by applying substantial knowledge in specific areas or
expertise to solve finite, well-defined problems. These computer programs
contain human expertise (called heuristic knowledge) obtained either directly
from human experts or indirectly from books, publications, codes, standards or
databases as well as general and specialised knowledge that pertains to the
specific situation. Expert systems have the ability to reason using formal logic,
to seek information from variety of sources including databases and the user,
plant operator and to interact with conventional programs to carry out a variety
of tasks including sophisticated computations.
Usually, the domain of expertise of these systems is restricted to a
well-defined area. Unlike humans, these systems lack common sense n ~ hence
cannot extrapolate their knowledge much beyond their narrow domain of
expertise. They encode the relevant knowledge about the problem domain in a
form, which is suitable for manipulation. The structure of the expert system
separates the knowledge froni the mechanism for manipulating the knowledge.
This has significant advantages because it makes the system easier to maintain
and update. It is this separation of the knowledge base from the reasoning.
process that makes expert systems different from other software package.
Figure 3.27 shows the typical structure of an expert system.
The principal components of an expert system are:
Computer Control of Process
3.44
3.5.1 Artificial Intelligence
" Natural language processing
Artificial Intelligence (AI) IS a field of computer science concerned with
the development and deployment of machines that mimic human behaviour. It
attempts to emulate certain mental process of human by using computer models.
AI can be viewed as a collection of tools, concepts, techniques and methodologies
that allow certain problems to be addressed that cannot easily be modelled in
a closed-form analytic solution. It can also be viewed as a way of increasing the
design centre of an existing problem where solution is not really satisfactory.
Artificial intelligence can be divided into the following major categories:
Many techniques are used to make the building of intelligent reasoning
systems feasible. in realistic time frames with proper software engineering
practices. AI is not a magic, and it is these techniques along with software
environments that translate what seems to be magic into actual step-and-repeat
methodological approaches.
There has been some exploratory work on the role of AI in process control.
Several tool kits have been developed to assist in this process. As an emerging
technology, it was experimented with AI to understand how it could help and
support process control. However, the?e experiments have largely indicated that,
by and large the techniques were not as effective as existing PID controllers.
Based on these, it was believed that AI should only be used in monitoring of
process control systems, and also in assisting working as quickly as possible.
Although, AI provides many powerful means for data abstraction and easy
modification of instructions, they still do not address the depth of control needed.
Fuzzy logic
3.47
User
Real - time expert system '
engine
interface
I
Knowledge base Database
ineer Messages to
Communication
operator
links
I Operator 1
I
Distributed control system
interface I
Sensor Control
data actions
I
Process
Experts need not be present for a consultation, it may be delivered to
remote locations where expertise may not be available.
Expert systems do not suffer from some of the' short comings of human
beings, e.g. tiredness or carelessness as the workload increases.
The techniques inherent in the methodology of expert systems
minimize the recollection of information by requesting only relevant
data from the user or appropriate database.
Expert knowledge is saved and readily available because the expert
system can become a repository for undocumented knowledge that
might otherwise be lost.
(ii) The loop that measures disturbance uses the output of the primary
controller on its set point and is called the secondary or slave loop.
3.6.5 Design the controller
In every control configuration, the controller is the active element that
receives the information from the measurements and takes appropriate
control actions to adjust the values of the manipulated variables, based
on control law.
Design of multiloop controller:
Multiloop control systems involve
(i) More than one measurement and one manipulation (or)
(ii) One measurement and more than one manipulated variables
(eg) Cascade control
If has two control loops using two different measurements, but sharing a
common manipulated variable.
(i) . The loop that measures controlled variable is the dominant or primary
or master control loop and uses a set point supplied by the operator while
Computerized multiloop controller
The closed loop response of the primary loop is influenced by thedynamics
of the secondary loop, whose open-loop transfer function is equal to
The characteristic equation whose roots determine the stability of the
primary loop is,
Fig. 3.40 Digital computer used in two distinct control loops
3.62
Computer Control of Process
computer as a Controller 3.63
Problem solving
known algorithms
Conventional EPD systems AI=__ =----j1
.. --- in the field of Problem
solves
usmg well problem solving by
-reasomng
4. State the requirement of CIMPLICITY HMI Plant Edition?
CTMPLICITY HMI Plant Edition provides an extraordinary selection of
features that. enables to configure comprehensive and robust project. It a
quick tour provides links to the related subject in the documentation.
5. What is a DDC?
The nDC (Direct Digital Control) directly interface to the process for data
acquisition and control purposes.
6. List the tasks performed by IlP in DDC?
It reads the various process variables from different transmitters
through multiplexer and ADC
It determines the error each control loop and executes control
strategy for each loop.
It outputs the correction value of control value through DAC.
7. Mention the two algrothims used in DDC software?
There are two algorithms for programming a three mode PID control loop
Position algorithm
Velocity algorithm
8.. Define AI?
Artificial intelligence has been defined as the branch of computer science
which deals with the.' software and hardware techniques to solve symbolic
problems as against 'number crunching' problems solved by EDP machines.
9. What is heuristics?
The learned facts, experience and institution are three basic inputs which
enable decision making collectively these arc as heuristics. In AI systems
the decisions are taken on the basis of heuristics.
10. Detail on the difference in working of conventional EDP systems
and AI systems.
ControlledVariable
Control Equation
Measuring Varible
'------------1Meesuring Element 14'-_-'--_---.,. _
TWO MARKS QUESTIONS AND ANSWERS
1. Instead of using one AID convertor for every measured variable, we
employ a single AID converter which server all measured variables
sequentially through a multiplexes.
2. A multiplexer can also be used to obtain several outputs from a single
D/A converter.
8.. The control program is now composed of several sub programs. Each
one used to control a different loop. Furthermore, the control program
should be able to coordinate the execution of the various subprograms
so that each loop and all together function properly.
Fig.
1. Draw the general block representation of a computer control
system?
2. Define SCADA?
Supervisory Control And Data Acquisition (SCADA) system is computerised
hardware and software based project that provides a single integrated view of
all control and information resources, enable engineers, supervisors, managers,
operators to view and interact with the working of an cntiro operation through
graphical representation of their product process.
3. What is CIMPLICITY?
CIMPLICIT'Y is a SCADA package. It is based on a client-server
architecture consisting of servers and viewers. Servers are responsible for the
collection and distribution of data. Viewers connect into servers and have full
access to the collected data for viewing andcontrol actions.
3.64 computer Control of Process
11. Mention the various categories under the AI system.
Al system can be divided into three major categories
Natural language system
Perception system for vision, speech and touch
Expert or knowledge based systems
12. List the various types of information presented, to expert system.
The information presented to expert system may be factual, incomplete,
judgmental, speculative, experimental, uncertain, fuzzy, intuitive. Expert system
should derive conclusions based on such incomplete information, just like real
life human expert.
3.65
omputer as a Controller
Frames
Frames are templates or modules for holding clusters of related knowledge
about a particular narrow subjects.
(a) If { this happens} then do { that} or
(b) If { this is the case } then { that is true } or
(c) If { this is the case} then do { that}.
15. List down the methodologies used in knowledge representation.
The knowledge representation methodologies include
Semantic networks
In semantic network nodes and arcs form graphical notation to represent
objects (achons, events) and relationship among them.
Rules
Rules may be in one of the three forms.
AI systems
-search
-heuriatics
Solutions in the form of
-opinions
-conclusions
-logic solutions
Newknowledge
specific numerical-solutions
new data (result)
I relyon
Reasoning
Learnedfacts Experience
13. ' What is a domain knowledge?
Tho'domain knowledge is stored III the knowledge base of system..., The"
domain knowledge contains:
- fads
14. Draw the flow diagram of Human Decision making Process?
HumanDecisions
Ireiyon
judgement
16. Differentiate the two reasoning mechanisms.
The two main reasoning mechanisms include
Backward chaining ---7 stars with a goal (i.e.) conclusion which is most portable
and then tries to go backward and match the left hand side of rule i.e. conditions.
Forward chaining ---7 is a top down approach. It proceeds in the direction
until the goal, i.e. conclusion is reached.
17. List the goals for an ideal expert controller.
An ideal expert controller should be able to satisfy the following goals:
1. 'Ability to control a large class of processes which may be time varying,
non linear, with variety of disturbance.
2. Requirement of minimum prior knowledge about the process.
3. Ability to improve its performance with time, as it acquires more knowledge.
4. Ability to monitor the performance of the system and detect problems
with sensors, achitors, and other components.
, \
- Relation between facts
- Heuristics
3.66
Computer Control of Process
4.1 EVOLUTION OFPLC
CHAPTER - 4
Programmable Logic Controller
The PLC was originally designed and developed by a group of engineers
of general .motors corporation in 1968 to eliminate costly scrapping of
assembly-line-relays during model change overs of cars. These PLC's had to be
easily programmed and reprogrammed, preferably in plant, easily maintained
and repaired smaller than its relay equivalent, and cost-competitive with the
solid-state and relay panels then in use. This provoked great interest from
engineers of all disciplines using the PLC for industrial control. A microprocessor
based PLO was introduced in 1977 by Allen-Bradley corporation in the USA,
using an Intel 8080 microprocessor with circuitary to handle bit logic
instructions at high speed.
The early PLC's were designed only for logic based sequencing operations
(ON/OFF signals). Today there are hundreds of different PLC models in the
market. They differ in their memory size (from 256 bytes to several kilobytes
and megabytes) and input / output capacity (from few lines to thousands). The
difference also lies in the features they offer. The smallest PLC's serve just as
relay replacers with added timer and counter capabilities. This is an extremely
basic controller that is amazingly in expensive. This small dedicated controller
is enclosed in a single mounted hardened case. It provides reliable control to a
stand alone section of a process.
The modern medium-sized PLC's perform all the relay replacement
functions expected of it but also adds many other functions such as counting,
timing and complex mathematical applications, to its repertoire. Most
medium-sized PLCs perform P ~ feed forward and other control functions as
well. In addition medium-sized and largescale PLCs now have data high way
capabilities and they function well in distributed control system (DCS)
. environment.
Output
Plant
MUX
REVIEW QUESTIONS
1. List the functional requirements of a distributed process control system.
2. Sketch the structure of a Direct Digital Control system and explain the
functions of each block.
8. Enumerate the advantages of digital computer control of processes.
4. Write short notes on AI and expert system.
5. Write short notes of the following: (i) SCADA; (ii) Direct Digital Control
6. Write short notes on: (i) AI control system; (ii) Expert control system
20. Draw the structure of DDe?
18. Differentiate between analog controller and digital controller.
Analog controller though are faster than digital controllers, the later IS
preferred because the changes in the parameter values are possible -in digital
controller while not in analog controller.
19. Draw the block representation of expert controller?