Sie sind auf Seite 1von 23

EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems

Unit III - COMPUTER CONTROLLED SYSTEMS


Syllabus
Basic building blocks of computer controlled systems – Data acquisition system –
Supervisory control – Direct digital control- SCADA:- Hardware and software, Remote
terminal units, Master Station and Communication architectures.
3.0 Introduction

Figure 1. Centralized control system


Centralized control (in Figure 1) is used when several machines or processes are
controlled by one central controller. The control layout uses a single, large control system to
control many diverse manufacturing processes and operations. Each individual step in the
manufacturing process is handled by a central control system controller. No exchange of
controller status or data is sent to other controllers.
One disadvantage of centralized control is that, if the main controller fails, the whole
process stops. A central control system is especially useful in a large, interdependent process
plant where many different process must be control for efficient use of facilities and raw
materials.

The Distributive Control System (in Figure 2) differs from the centralized system in
that each machine is handled by a dedicated control system.

Figure 2. Distributed Control System

__________________________________________________________________________________
St. Joseph's College of Engineering 1 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
Each dedicated control (PLC) is totally independent and could be removed from the
overall control scheme if it were not for the manufacturing functions it performs. Distributive
control involves two or more computers communicating with each other to accomplish the
complete control task. This type of control typically employs local area networks (LANs), in
which several computers control different stages or processes locally and are constantly
exchanging information and reporting the status on the process. Communications among
computers is done through single coaxial cables or fiber optics at very high speed.
Distributive control drastically reduces field wiring and heightens performance because
it places the controller and I/O close to the machine process being controlled. Because of their
flexibility, distributive control systems have emerged as the system of choice for numerous
batch and continuous process automation requirements.
3.1 Basic Building Blocks of Computer Controlled System
The basic functions of computer aided process control system are:
 Measurement and acquisition.
 Data conversion with scaling and checking.
 Data accumulation and formatting.
 Visual display.
 Comparing with limits and alarm raising.
 Recording and monitoring of events, sequence and trends.
 Data logging and computation.
 Control action.

Figure 3. Schematic diagram of Computer aided process control system


As shown in figure 3, 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 predetermined frequency so as to achieve the closed-loop
computer control of the process.
3.1.1 Analog and Digital I/O Modules
Analog input signals are received from sensors and signal conditioner and represent the
value of measurand like flow, position, displacement, temperature, etc. the role of a sensor is
to measure the parameter for which it is constructed and present an equivalent electrical signal
as output. The signal conditioner takes as input the output of sensor and suitably conditions
them to be acceptable to real-time systems. The signal may be amplified, filtered or/and
isolated in signal conditioner depending on the sensor type and its electrical characteristics.

__________________________________________________________________________________
St. Joseph's College of Engineering 2 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
Digital input signals refer to the ON-OFF states of various valves, limit switches, etc.
one digital input signal represents status of the limit switch or valve and is represented by on
bit of information for real-time systems. Normally digital input signals are compatible to real-
time systems and can be inputted directly.
3.1.1.1 Analog Input Module
The module continuously scans the analog inputs signals in the pre-defined order and
frequency, converts them into the digital and then sends these values to processor and memory
module for processing. The analog input module may also provide signal conditioning for some
standard transducers like thermocouples, LVDTs, strain gauges etc. in such cases, analog input
modules may be different for different types of transducers.

Figure 4. Analog Input module


The analog input module (in Figure 4) operates under the command from processor in the
following manner:
 The processor initiates multiplexer by sending the address of input channel.
 The multiplexer connects the particular channel to the ADC.
 The processor sends the start convert signal to ADC. The ADC converts the analog
signal to digital, puts it at the output and issues end of conversion signal.
 The processor on receipt of the end of conversion signal reads the ADC output and
stores in memory.
 The operation is repeated by processor by sending the address of next channel to
multiplexer.
3.1.1.2 Digital Input Module

Figure 5. Digital Input module


__________________________________________________________________________________
St. Joseph's College of Engineering 3 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
The digital inputs can be accepted directly by the processor. Thus no analog to digital
converter is required in digital input module. The figure 5 shows each digital input channel
consists of n bits which are transferred in parallel.
3.1.1.3 Analog Output module
The objective of analog output module is to provide appropriate control signals to
different control valves. The structure of analog output module which is derived by reversing
the analog input module shown in figure 6. The demultiplexer switches the digital output
received from the master processor to the output channel whose address is specified. The digital
to analog converter of particular channel will convert the input digital value to equivalent
analog signal which is connected to control valve, motor etc.

Figure 6. Analog Output module


3.1.2 Timer/Counter Module
Timer/counter module basically consists of a number of times/counters which may be
cascaded or used independently. Each timer/counter may be programmed in different modes in
which case the timer/counter output will be different. The modes may be interrupt on zero
count, rate generator, monoshot etc. We shall not discuss the modes of timer/counter here. The
structure of a timer/counter is shown in Figure 7.

Figure 7. Timer / Counter module


The processor loads the count in the form of data byte/words. The clock may be derived
from processor clock or may be provided externally. The gate signal is used to enable/disable
the counter operation. The processor may read the current counter value at any instant by
stopping the counter using gate signal or read it on the Fly, i.e., without stopping the counter.
The output may be used to interrupt the processor or in any other way as programmed.

__________________________________________________________________________________
St. Joseph's College of Engineering 4 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
3.1.3 Display Control Module
Display control module consists of following independent sub-modules.
 Manual entry sub-module
 CRT controller sub-module
 LED/LCD control sub-module
 Alarm annunciator sub-module
 Printer controller sub-module
The manual entry to the system may be via thumb wheel switches, various ON-OFF
command switches and / or keyboard. The keyboard may be a full ASCII keyboard or a
specialized numeric and task-oriented keyboard. There are both advantages and disadvantages
in using any manual entry sub modules. Basically, manual entry sub-modules have built in
buffer to store current setting of thumb wheel switches and last command/data entered through
keyboard. The processor may read these values on its own or may be interrupted whenever a
new data/command is entered.
CRT controller sub-module interfaces main processor to Visual Display Unit, which is
used to show the status of process by displaying transducers values, present set points entered
through manual entry sub-module, historical trend of various parameters, mimic diagram of
process, alarm status etc. All the above display tasks are provided in the main processor through
software. LED/LCD control sub-module interfaces array of LED/LCD to main processor. This
sub-module accepts data bytes/word from main processor and displays it on LED/LCD. Alarm
annunciator controller sub-module generates ON-OFF signal for each type of alarm. The
processor may send an alarm byte/word to the alarm annunciator controller sub-module which
decodes byte/word and sends ON-OFF signals for various types of alarms. These alarm
modules are separate and require only digital signal to light the incandescent bulbs and/or audio
alarms. Printer controller sub-module is printer interface to main processor. Generally it has
local intelligence for printer control, a data buffer to store the data for printing etc. It accepts
the data bytes/words from main processor and prints it for the benefit of operator. The
interaction with main processor may be through periodic direct memory access or under the
direct control of main processor.
3.2 Role of Computers in Measurement and Control
The figure 8 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.
Digital computer control application exists today for two major areas in the process
industries passive and active applications. Passive application involves acquisition and
manipulation of process data whereas; 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 available 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 control computer. The smart instruments ensure that the actuator, transmitter or
sensor function according to design.
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
__________________________________________________________________________________
St. Joseph's College of Engineering 5 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
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.

Figure 8. Computer based control system


3.3 Data Acquisition System (DAQ)
Data acquisition systems (DAS) shown in Figure 9. DAS interface between the real
world of physical parameters, which are analog, and the artificial world of digital computation
and control. With current emphasis on digital systems, the interfacing function has become an
important one; digital systems are used widely because complex circuits are low cost, accurate,
and relatively simple to implement.
In addition, there is rapid growth in the use of microcomputers to perform difficult
digital control and measurement functions. Computerized feedback control systems are used
in many different industries today in order to achieve greater productivity in our modern
industrial societies. Industries that presently employ such automatic systems include steel
making, food processing, paper production, oil refining, chemical manufacturing, textile
production, cement manufacturing, and others.

__________________________________________________________________________________
St. Joseph's College of Engineering 6 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems

Figure 9. Block diagram of Data Acquisition System


The devices that perform the interfacing function between analog and digital worlds are
analog-to-digital (A/D) and digital-to-analog (D/A) converters, which together are known as
data converters. Some of the specific applications in which data converters are used include
data telemetry systems, pulse code modulated communications, automatic test systems,
computer display systems, video signal processing systems, data logging systems, and sampled
data control systems. In addition, every laboratory digital multimeter or digital panel meter
contains an A/D converter.
Obtaining proper results from a PC-based DAQ system (in Figure 10) depends on each
of the following system elements.
• Personal computer
• Transducers
• Signal conditioning
• DAQ Hardware
• DAQ Software

Figure 10. Typical PC based DAQ system


3.3.1 Personal Computer
The computer used for your data acquisition system can drastically affect the maximum
speeds at which you are able to continuously acquire data. Today’s technology boasts Pentium
and Power PC class processors coupled with the higher performance PCI bus architecture as
well as the traditional ISA bus and USB. With the advent of PCMCIA, portable data acquisition
is rapidly becoming a more flexible alternative to desktop PC based data acquisition systems.
For remote data acquisition applications that use RS-232 or RS-485 serial communication, your
data throughput will usually be limited by the serial communication rates.

__________________________________________________________________________________
St. Joseph's College of Engineering 7 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
3.3.2 Transducers
Transducers sense physical phenomena and provide electrical signals that the DAQ
system can measure. For example, thermocouples, RTDs, thermistors, and IC sensors convert
temperature into an analog signal that an ADC can measure. Other examples include strain
gauges, flow transducers, and pressure transducers, which measure force, rate of flow, and
pressure, respectively. In each case, the electrical signals produced are proportional to the
physical parameters they are monitoring.
3.3.3 Signal Conditioning
The electrical signals generated by the transducers must be optimized for the input
range of the DAQ board. Signal conditioning accessories can amplify low-level signals, and
then isolate and filter them for more accurate measurements. In addition, some transducers
require voltage or current excitation to generate a voltage output. Signal conditioning has the
following applications:
i) Amplification, ii) Isolation, iii) Filtering, iv) Excitation and v) Linearization.
3.3.3.1 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.
3.3.3.2 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 plug-in DAQ board 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 a potential difference in
the two grounds. This difference can lead to what is known as a 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 will eliminate the ground loop and ensure
that the signals are accurately acquired.
3.3.3.3 Filtering
The purpose of a filter is to remove unwanted signals from the signal that you are trying
to measure. A noise filter is used on DC-class signals such as temperature to attenuate higher
frequency signals that can reduce the accuracy of your measurement. AC-class signals such as
vibration often require a different type of filter known as an antialiasing filter. Like the noise
filter, the antialiasing filter is also a low pass filter; however, it must have a very steep cut off
rate, so that it almost completely removes all frequencies of the signal that are higher than the
input bandwidth of the board. If the signals were not removed, they would erroneously appear
as signals within the input bandwidth of the board.
3.3.3.4 Excitation
Signal conditioning also generates excitation for some transducers. Strain gauges,
thermistors, and RTDs, for example, require external voltage or current excitation signals.
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, which are very low-resistance devices, typically are
used in a Wheatstone bridge configuration with a voltage excitation source.

__________________________________________________________________________________
St. Joseph's College of Engineering 8 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
3.3.3.5 Linearization
Another common signal conditioning function is linearization. Many transducers, such
as thermocouples, have a nonlinear response to changes in the phenomena being measured.
Therefore, application software includes linearization routines for thermocouples, strain
gauges, and RTDs.
3.3.4 DAQ Hardware
Data acquisition hardware includes the following functions.
3.3.4.1 Analog Inputs
The analog input specifications can give you information on both the capabilities and
the accuracy of the DAQ product. Basic specifications, which are available on most DAQ
products, tell you 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 all referenced to a common
ground point. These inputs are typically used when the input signals are high level (greater than
1 V), the leads from the signal source to the analog input hardware are short (less than 15 ft.),
and all input signals share a common ground reference. If the signals do not meet these criteria,
you should use differential inputs. With differential inputs, each input has its own ground
reference. Noise errors are reduced because the common-mode noise picked up by the leads is
cancelled out.
3.3.4.2 Sampling Rate
This parameter determines how often conversions can take place. A faster sampling
rate acquires more points in a given time and can therefore often form a better representation
of the original signal.

Figure 11. Effect of too low a Sampling Rate


For example, audio signals converted to electrical signals by a microphone commonly
have frequency components up to 20 kHz. To properly digitize this signal for analysis, the
Nyquist sampling theorem tells us that we must sample at more than twice the rate of the
maximum frequency component we want to detect. So, a board with a sampling rate greater
than 40 kS/s is needed to properly acquire this signal.
3.3.4.3 Multiplexing
A common technique for measuring several signals with a single ADC is multiplexing.
The ADC samples one channel, switches to the next channel, samples it, switches to the next
channel, and so on. Because the same ADC is sampling many channels instead of one, the
effective rate of each individual channel is inversely proportional to the number of channels
sampled.
3.3.4.4 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 range is broken into, and
therefore, the smaller the detectable voltage changes.

__________________________________________________________________________________
St. Joseph's College of Engineering 9 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems

Figure 12. Digitized sine wave with 3-bit Resolution.


Figure 12 shows a sine wave and its corresponding digital image as obtained by an ideal
3-bit ADC. A 3-bit converter (which is actually seldom used but a convenient example) divides
the analog range into 23, or 8 divisions. Each division is represented by a binary code between
000 and 111. Clearly, the digital representation is not a good representation of the original
analog signal because information has been lost in the conversion. By increasing the resolution
to 16 bits, however, the number of codes from the ADC increases from 8 to 65,536, and you
can therefore obtain an extremely accurate digital representation of the analog signal if the rest
of the analog input circuitry is designed properly.
3.3.5 DAQ Software
Data acquisition software transforms the PC and DAQ hardware into a complete DAQ,
analysis, and display system. DAQ hardware without software is useless and DAQ hardware
with poor software is almost useless. The following two types of software is used: i) Driver
Software and ii) Application Software.
3.3.5.1 Driver Software
The majority of DAQ applications use driver software. Driver software is the layer of
software that directly programs the registers of the DAQ hardware, managing its operation and
its integration with the computer resources, such as processor interrupts, DMA, and memory.
Driver software hides the low-level, complicated details of hardware programming, providing
the user with an easy-to-understand interface.
Driver functions for controlling DAQ hardware can be grouped into analog I/O, digital
I/O, and timing I/O. Although most drivers will have this basic functionality, you will want to
make sure that the driver can do more than simply get data on and off the board. Make sure the
driver has the functionality to:
• Acquire data at specified sampling rates.
• Acquire data in the background while processing in the foreground.
• Use programmed I/O, interrupts, and DMA to transfer data.
• Stream data to and from disk.
• Perform several functions simultaneously.
• Integrate more than one DAQ board.
• Integrate seamlessly with signal conditioning equipment.
3.3.5.2 Application Software
An additional way to program DAQ hardware is to use application software. But even
if you use application software, it is important to know the answers to the previous questions,
because the application software will use driver software to control the DAQ hardware.
Application software adds analysis and presentation capabilities to the driver software.
Application software also integrates instrument control such as GPIB (General Purpose
Interface Bus), RS-232, PXI (Peripheral component interact Extensions for Instrumentation),
and VXI (Virtual Extension for Instrumentation) with data acquisition.
__________________________________________________________________________________
St. Joseph's College of Engineering 10 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
3.4 Supervisory Control
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 shown in figure 13.
The analog controllers and specialised controllers were called level 2 and level 1 control
respectively. The 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.

Figure 13. Supervisory Computer Control


3.5 Direct Digital Control
Digital Data Control (DDC) is the automated control of a condition or process by a
digital device (computer). DDC takes a centralized network-oriented approach. All
instrumentation is gathered by various analog and digital converters which use the network to
transport these signals to the central controller.
The centralized computer then follows all of its production rules (which may
incorporate sense points anywhere in the structure) and causes actions to be sent via the same
network to valves, actuators, and other HVAC components that can be adjusted.
3.5.1 Direct Digital Control (DDC) Structure
The DDC (Direct Digital Control) directly interfaces to the process for 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 + D control strategy. At the same
time, the interface to control valve should also be part of DDC.

__________________________________________________________________________________
St. Joseph's College of Engineering 11 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems

Figure 14. Direct Digital Control


Figure 14 shows the various functional blocks of a direct digital control system. These
functional blocks have been described in number of books 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.

The microprocessor performs the following tasks:


• It reads the various process variables from different transmitters through multiplexer
and ADC.
• It determines the error for each control loop and executes control strategy for each
loop.
• It outputs correction value to control valve through DAC.
3.5.2 Direct Digital Control (DDC) Software
The main part, DDC software is program for control loops. There are two algorithms
for programming a three-mode PID control loop:
i) Position algorithm and ii) Velocity algorithm.
3.5.2.1 Position Algorithm
The three-mode controller can be represented by,
e 1
n

t K I 0
Yn  K P .en  K D .  e.t  Y0 ------ (1)

Where,
Yn - valve position at time n
Yo - median valve position
KP - proportional constant = l00 / PB (where, PB - proportional band in per cent),
KI - integral constant = 1/TI (where TI - integral time constant)
KD - derivative constant =TD (where TD - derivative constant)
en - error at instant tn = (S - Vn)
Vn - value of controlled variable at instant tn
S - set-point
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

__________________________________________________________________________________
St. Joseph's College of Engineering 12 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
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 integral
term can be represented as
1 n
 et .t
K I t 0
and the differential term, KI . Δe/Δt 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 instant tn-1.

Figure 15. Flow chart of PID Control.


Thus, with these modifications the three-mode controller equation will become:
e e 1 n
Yn  K P .en  K D . n n1 
t
 et .t  Y0
K I t 0
------ (2)

The integral and the differential control forces are dependent upon the interval between
the two consecutive errors. 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.
The flowchart for calculating PID control output based on above equation (Eq. 2) is
shown in Figure 15.
3.5.2.2 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
__________________________________________________________________________________
St. Joseph's College of Engineering 13 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
specifying the change in valve position. Thus output of position algorithm cannot be used, since
it gives the new position of the valve, in absolute term. In velocity algorithm, the computer
calculates 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 with slide wire arrangement can be used. The same function can be performed by an
integrating amplifier.
3.6 Supervisory Control And Data Acquisition (SCADA)
SCADA stands for supervisory control and data acquisition. The SCADA system is
based on Hardware and Software. The hardware included “Master Terminal Unit (MTU),
Remote Terminal Units (RTUs)” or / and actuators, and sensors. The software included Human
Machine Interface (HMI) or other user software that provides communication interface
between SCADA hardware and software.

Figure 16. General Architecture of SCADA


Human Machine Interface (HMI) also provides facility to visualized entire SCADA
communication included controlling and monitoring. Master Terminal Unit (MTU) is located
at control center or perform the services of control station and connected with one or more
Remote Terminal Units (RTUs), that may geographically distributed over remote sites (wide
area network) or within Local Area Network (LAN) using communication link / media such as
radio signals, telephone line, cable connection, satellite and micro waves media. Typically,
physical environment is connected with actuators or/and sensors and actuators / sensors are
connected with Remote Terminal Units (RTUs). The RTUs have been collecting
data/information from actuators/sensors and then process to Master Terminal Station (MTU)
for monitoring and controlling the entire SCADA system. Usually, SCADA system is divided
into five main components / parts:
i) Master Terminal Unit (MTU),
ii) Remote Terminal Unit (RTU),
iii) Human Machine Interface (HMI),
iv) SCADA communication media or link, and
v) Field instrumentation
__________________________________________________________________________________
St. Joseph's College of Engineering 14 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
3.6.1 SCADA System
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 an SCADA system are:
 Channel scanning
 Conversion into engineering units
 Data processing.

Figure 17. Supervisory control and data acquisition system


The figure 17 shows the block diagram of SCADA. Before considering other features of
SCADA, let us discuss the basic functions.
3.6.1.1 Channel Scanning
There are many ways in which microprocessor can address the various channels and
read the data.
3.6.1.1.1 Polling
The microprocessor scans the channels 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 any particular order decided by the
designer. It is also possible to assign priority to some channels over others, i.e. some channels
can be 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, i.e. make 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 reading 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 do not require this data) for the time
which is equal to or greater than conversion time of ADC and then read ADC 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.

__________________________________________________________________________________
St. Joseph's College of Engineering 15 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
The channels can be polled
sequentially, in which case the channel
address in first step above increase by one
every time or they may be scanned in some
other order. In the latter case, a channel
Scan Array can he maintained in memory.
The scan array contains the addresses of the
channels in the order in which they should
he addressed. The ASCN array 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. . . pointer reaches the
last entry in the array, 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 than others.
This gives them higher priority over others.
Figure 18. Channel scan array In Figure 18 shows the channel 9 is scanned
3 times, channel, 2 is scanned 2 times while
other channels are scanned once during a
cycle.

Figure 19 shows the flowchart for


one scan cycle. 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 at time gap
between two channels as variable. This
would require a n x 2 dimension scan array
as shown in Figure below. The Interrupt
Service Routine fetches time gap value for
next channel, timer/counter with the value
and initiates the timer/counter before
returning to main program.

Figure 19. Scan cycle flow chart

__________________________________________________________________________________
St. Joseph's College of Engineering 16 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
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 transducer
connected to channel 9 has generated some
fault, then he might take decision to bypass
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 be able insert new scan array at any
time. This facility may be provided through
a key switch, which may be connected to
Figure 20. Scan array with time interrupt request input of processor. The
The scan array may he decided at Interrupt Servicing Routine will accept new
the design stage of SCADA and fused scan array and store in place of the old one.

3.6.1.1.2 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 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, come back within pre-specified limits. This allows a detailed analysis of the
system and the problems by the SCADA system.

Figure 21. Interrupt request generation on limit violation


The limit checking circuit for one channel is shown in Figure. 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
construed as alarm condition, but the condition for the start of any abnormality which may
__________________________________________________________________________________
St. Joseph's College of Engineering 17 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
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.6.1.2 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.
 Calibration of transmitters.
 ADC mode and digital output lines.
The transmitter output should be in the range of 0-5 V or 4-20 mA range. Depending
on the input range of measured value for transmitter, a calibration factor is determined. If a
transmitter is capable of measuring parameter within the input range Xl and X2 and provides 0-
5 V signal at output then calibration factor is
𝑋2 − 𝑋1
1𝑉𝑜𝑙𝑡 = 𝑢𝑛𝑖𝑡𝑠
5
If we are converting this signal to digital through an 8-bit ADC (Input range 0-5 V) in unipolar
mode then 5 V = 255 and 0 V =0, i.e.1 Volt =255/5.
Thus the conversion factor is ADC output
255/5 = X2- Xl / 5 engineering units.
ADC output 1 = X2- Xl / 255 engineering units.
If the ADC output is Y then the corresponding value in engineering units will be
Y(X2 - Xl) / 255.
Conversion factor is therefore (X2- Xl ) / 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 he 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.6.1.3 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. When
any of the two limits is violated for any
channel, appropriate action like alarm
generation, printing, etc. is initiated.
The limit array shown in Figure,
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.
Figure 22. Limit array

3.7 Master Terminal Unit (MTU)


Master terminal units (MTU) in SCADA system is a device that issues the commands
to the Remote Terminal Unit (RTUs) which are located at remote places from the control,
gathers the required data, stores the information, and process the information and display the
information in the form of pictures, curves and tables to human interface and helps to take

__________________________________________________________________________________
St. Joseph's College of Engineering 18 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
control decisions. This is the operation of the Master Terminal Unit (MTU) located in the
control center.
Communication between the MTU and RTU is bidirectional, however the major
difference is RTU cannot initiate the conversation, and RTU simply collects the data from the
field and stores the data. Communication between the MTU and RTUs are initiated by the
programs with in the MTU which are triggered either by operator instructions or automatically
triggered. 99% of the instructions and messages to the RTUs from MTUs are automatically
triggered. When Master Terminal Unit (MTU) asks the desired information RTU sends it.
So MTU is considered as master and RTU is the Slave. After receiving the data required MTU
communicates to the printers and CRTs which are operator interface through necessary
protocols. At this level of communication it will be of the form peer-to-peer communication
rather than master slave communication unlike communication between MTUs and RTUs.
Thus in SCADA system Master Terminal Unit (MTU) acts as heart of the system.
3.8 Remote Terminal Unit (RTU)
The Remote Terminal Units (RTUs) are basically distributed SCADA based systems
used in remote locations in applications like oil pipelining, irrigation canals, oil drilling
platforms etc. They are rugged and should be able to work unattended for a long duration.
There are two modes in which Remote Terminal Units work.
1. Under command from central computer
2. Standalone mode
Since these RTU's have to operate for a long duration unattended, the basic
requirements would be that they consume minimum power and have considerable self-
diagnostic facility. Following are the main parts of remote terminal units; Input / Output
modules, and Communication module.
3.8.1 Input / Output Modules
Input / Output modules contain analog input modules, analog output modules, digital
input modules and digital output modules.
3.8.2 Communication Module
The communication module is the most important portion of remote terminal unit and
has the interface available with 2-wire/4-wire communication line. Some of the RTUs may also
have built-in transceivers and modems. Following are the basic communication strategies that
a RTU may use depending on the application need:
3.8.2.1 Wireline communications
The wireline communication may have number of options and these options can be
selected depending upon the distance between central computer and RTU or between two
RTUs. These options are enlisted here:
(i) Option l-RS-232C/442. RTU can support communication via standard RS-
232C/442. The I/O ports can select the average levels as well as the baud rates.
(ii) Option 2-Switch line modem. When the user wants to use the existing telephone
lines for communication, the switch line modem can be effective. Such RTUs contain the
facilities like auto answer, auto dial and auto select baud rates. The modem is ideal for data
networks configured in time or event reporting RTUs and for master station polling networks.
(iii) Option 3-2-wire or 4-wire communication. The modem residents in the RTU can
be configured to 2 or 4-wire communication on dedicated lines. The same communication
protocol is used for all devices making the actual network configuration transparent to the user.
3.8.2.2 Terrestrial UHF/VHF radio with store and forward capability
The RTU may support a complete line of UHF/VHF terrestrial radios. The
communication protocol in these RTUs is transparent to the user and supports CRC
intelligence, error checking, and packet protocol for error free data transmission. The store and
Forward capability of the RTU minimizes the required input in large numbers.
__________________________________________________________________________________
St. Joseph's College of Engineering 19 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
3.8.2.3 Satellite communications
In the applications where wireline and terrestrial radio communications are impossible
or cost prohibitive, the satellite communications may be desirable. Some of the latest RTUs
provide the facility to be interfaced to one-way or two-way satellite communication using Very
Small Aperture Termina1s (VSATs). These terminals use one metre antennas and have data
rates from 50 to 60 Kbps (Kilobits per second).
3.8.2.4 Fibre-optic communications
For applications where electromagnetic interferences or hazardous electrica1 potentials
exist, the RTU can be networked using fibre-optic cables. The same communication protocols
and networking concepts available for wireline and radio are used for fibre-optic
communication.
3.9 Distributed SCADA System
In any application, if the number of channels is quite large then in order to interface
these to processor, one has to use multiplexers at different levels.

Figure 23. 256 Channel SCADA with single microprocessor


Figure 23 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 processes 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.

__________________________________________________________________________________
St. Joseph's College of Engineering 20 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems

(a) Star configuration

(b) Daisy chain configuration


Figure 24. Distributed SCADA structure
Figures 24 (a) and (b) shows 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
__________________________________________________________________________________
St. Joseph's College of Engineering 21 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
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 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 are not required at this level. On the other hand, histogram on the input and
output material flow and the fuel consumption etc. may he more helpful. 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.
3.10 Data Logger
A data logger (also data logger or data recorder) is an electronic device that records
data over time or in relation to location either with a built in instrument or sensor or via external
instruments and sensors. Increasingly, but not entirely, they are based on a digital processor (or
computer). They generally are small, battery powered, portable, and equipped with a
microprocessor, internal memory for data storage, and sensors. Some data loggers interface
with a personal computer and utilize software to activate the data logger and view and analyze
the collected data, while others have a local interface device (keypad, LCD) and can be used
as a stand-alone device.

Figure 25. Data logger or Data recorder


Data loggers vary between general purpose types for a range of measurement
applications to very specific devices for measuring in one environment or application type only.
It is common for general purpose types to be programmable; however, many remain as static
machines with only a limited number or no changeable parameters. Electronic data loggers
have replaced chart recorders in many applications.
One of the primary benefits of using data loggers is the ability to automatically collect
data on a 24-hour basis. Upon activation, data loggers are typically deployed and left
unattended to measure and record information for the duration of the monitoring period. This
__________________________________________________________________________________
St. Joseph's College of Engineering 22 Department of EIE
EI6702 Logic and Distributed Control System Unit III Computer Controlled Systems
allows for a comprehensive, accurate picture of the environmental conditions being monitored,
such as air temperature and relative humidity.
The cost of data loggers has been declining over the years as technology improves and
costs are reduced. Simple single channel data loggers cost as little as $25. More complicated
loggers may costs hundreds or thousands of dollars.
3.10.1 Applications
Applications of data logging include:
 Unattended weather station recording (such as wind speed/direction, temperature, relative
humidity, solar radiation).
 Unattended hydrographic recording (such as water level, water depth, water flow, water
pH, water conductivity).
 Unattended soil moisture level recording.
 Unattended gas pressure recording.
 Offshore buoys for recording a variety of environmental conditions.
 Road traffic counting.
 Measure temperatures (humidity, etc.) of perishables during shipments: Cold chain.
 Measure variations in light intensity.
 Process monitoring for maintenance and troubleshooting applications.
 Process monitoring to verify warranty conditions
 Wildlife research with pop-up archival tags
 Measure vibration and handling shock (drop height) environment of distribution
packaging.
 Tank level monitoring.
 Deformation monitoring of any object with geodetic or geotechnical sensors controlled by
an automatic deformation monitoring system.
 Environmental monitoring.
 Vehicle Testing (including crash testing)
 Motor Racing
 Monitoring of relay status in railway signalling.
 For science education enabling 'measurement', 'scientific investigation' and an appreciation
of 'change'
 Record trend data at regular intervals in veterinary vital signs monitoring.
 Load profile recording for energy consumption management.
 Temperature, Humidity and Power use for Heating and Air conditioning efficiency studies.
 Water level monitoring for groundwater studies.
 Digital electronic bus sniffer for debug and validation.

__________________________________________________________________________________
St. Joseph's College of Engineering 23 Department of EIE

Das könnte Ihnen auch gefallen