SMR1303
SMR1303
SMR1303
COURSE MATERIAL
1
UNIT 1 - PROGRAMMABLE LOGIC CONTROLLERS - SMR1303
INTRODUCTION
PLC stands for Programmable Logic Controllers.
A PLC is basically a microprocessor based device that is used for controlling any machine
(electrical, mechanical, and electronic). It is also used in assembly lines controlling in the industries. It is
similar to a computer. It is typically based on RISC architecture. It is programmed in specific languages
based on the real time purpose. It is connected to sensors, actuators, relays, contactors, etc. it is
characterized by the number and type of I/O ports they provide and by their I/O scan rate
A PLC is able to receive (input) and transmit (output) various types of electrical and
electronic signals and can control and monitor practically any kind of mechanical and/or electrical
system. Therefore, it has enormous flexibility in interfacing with computers, machines, and many
other peripheral systems or devices.
Control is the process in a system in which one or several input variables influence other
variables.
2
PLC architecture
The basic architecture of the PLC can be described as below:
3
Outputs:
Outputs are the devices which receive the signals given by the PLC and perform the actions
accordingly. The output devices can be listed down as:
Relays Contactors
Solenoid valves Lamp indicators. Input-output module:
The I/O modules connect the input devices with the controller. They convert the electrical signals
used in the devices into electronic signals that can be used by the control system and translate the real
world values to IO table values.
The number of I/O devices used within a control system is called its “point count”.
4
Programming device (keyboard and monitor):
Keyboard and monitor is used for programming the PLC. The data is entered in the processor
with the help of the keyboard in the form of ladder diagram. This ladder diagram can be seen on the
monitor screen. The programmer can communicate with the processor with the help of the programming
devices. The programming unit communicates with the processor of the PLC via a serial or parallel data
communication link.
The input signals are given to the Data Acquisition System (DAS) and then further sent to the
input module. Further the signals are sent to the processor. The processor is connected with the
programming devices. The signal from the processor is then sent to the output module and then from the
output module further to the output devices.
5
Number systems and codes
The integral operation of programmable controllers is largely based on numbers. Numbers
emulated by electronic circuitry are used to encode and store information that in turn se allow s these
devices to process instructions and data required to perform each and every operation.
PLC also relies on number systems to perform even the most basic operations and store
various information. The number systems commonly used in PLC are given below:
In PLC, decimal number system is usually used for timer and counter presets, math operations
and general numerical quantities.
Binary number system, bytes and words are the common units for storing digital information
in memory. They are used to represent letters, numbers, punctuation marks, machine instructions and
virtually any information type.
In PLC in many cases, base 8 is used for addressing memory and input/output terminal
locations. Using octal for numbering is convenient in these cases since memory is comprised of
groupings of 8 binary digits (bytes) and I /O modules are normally in one or more groups of eight
points per module.
Hex numbers easily express coded digital data which is otherwise expressed in binary. Such
codes are typically used when devices communicate. While the binary data may be easily interpreted
by the receiving device, hex coded characters are really used for convenience of human operators.
Automation:
Automation is basically the delegation of human control functions to technical equipment
aimed towards achieving higher productivity, superior quality of end product, efficient usage of energy
and raw materials, improved safety in working conditions etc.
6
Areas of application of PLC in automation:
Manufacturing/machining
Food/beverage
Textile industry
Travel industry
Aerospace
Printing industry
Memory System:
All PLCs contain both RAM and ROM in varying amounts depending upon the design of the
PLC. The use of PLC’s memory is determined again by the design of the unit. However, all PLC
memories can be subdivided into at least five major areas. A typical memory utilization map for a PLC
is depicted in the following figure.
a. Executive Memory:
The operating system or executive memory for the PLC is always in ROM since, once
programmed and developed by the manufacturer, it rarely needs changing. It is the one that actually
does the scanning in a PLC. The operating system is a special machine language program that runs the
PLC. It instructs the microprocessor to read each user instruction, helps the microprocessor to
interpret user programmed symbols and instructions , keeps the track of all the I/O status, and is
responsible for maintaining / monitoring the current status of the health of the system and all its
components.
b. System memory
In order for the operating system to function, a section of the memory is allotted for system
administration. As the executive program performs its duties, it often requires a place to store
intermediate results and information. A section of RAM is installed for this purpose. Normally this
area is allotted for use of the operating system only and is not available to the user for programming. It
might be thought of as a scratch pad for the operating system to doodle on as necessary. Some PLCs use
this area for storing the information w h i c h passes between programmer a n d operating system, e.g.
the operating system generates certain error codes store in the specific address in this area during the
execution of user program which can be read by user program; or the user may also give additional
information to the operating system before execution of user program by writing some codes in the
specific address in this area, etc.
7
c. I/O Status Memory - I/O Image Table
Another portion of RAM is allocated for the storage of current I/O status. Every single
input/output module has been assigned to it a particular location within the input/output image table. The
location within the input and output image tables are identified by addresses, each location has its own
unique address.
During the execution of user program, the microprocessor scans the user program and
interpret the user commands, the status of input modules used are read from the input image table
(not directly from the input module itself). Various output device status generated during the execution
of user program are stored in the output image table (not directly to output modules). (Find out about
input scan and output scan.)
d. Data Memory
Whenever timers, counters, mathematics and process parameters are required, an area of
memory must be set aside for data storage. The data storage portion of memory is allocated for the
storage of such items as timers or counter preset/accumulated values, mathematics instruction data
and results, and other miscellaneous data and information which will be used by any data
manipulation functions in the user program.
Some manufacturers subdivide the data memory area into two sub-memories, one for
fixed data and other for variable data. The fixed data portion can only be programmed via the
programming device. The CPU is not permitted to place data values in this area. The variable portion
of the data memory is available to the CPU for data storage.
Discrete I/O
A “discrete” data point is one with only two states on and off. Process switches, pushbutton
switches, limit switches, and proximity switches are all examples of discrete sensing devices. In order
for a PLC to be aware of a discrete sensor’s state, it must receive a signal from the sensor through a
discrete input channel.
8
Inside the discrete input module is (typically) a light-emitting diode (LED) which will be
energized when the corresponding sensing device turns on. Light from this LED shines on a photo-
sensitive device such as a phototransistor inside the module, which in turn activates a bit (a single
element of digital data) inside the PLC’s memory. This opto-coupled arrangement makes each input
channel of a PLC rather rugged, capable of isolating the sensitive computer circuitry of the PLC from
transient voltage “spikes” and other electrical phenomena capable of causing damage.
Indicator lamps, solenoid valves, and motor contactors (starters) are all examples of discrete
control devices. In a manner similar to discrete inputs, a PLC connects to any number of different
discrete final control devices through a discrete output channel. Discrete output modules typically use the
same form of opto-isolation to allow the PLC’s computer circuitry to send electrical power to loads: the
internal PLC circuitry driving an LED which then activates some form of photosensitive switching
device. Alternatively, small electro mechanical relays may be used to interface the PLC’s output bits to
real-world electrical control devices.
Analog I/O
In the early days of programmable logic controllers, processor speed and memory were too
limited to support anything but discrete (on/off) control functions. Consequently, the only I/O capability
found on early PLCs were discrete in nature2. Modern PLC technology, though, is powerful enough to
support the measurement, processing, and output of analog (continuously variable) signals.
All PLCs are digital devices at heart. Thus, in order to interface with an analog sensor or
control device, some “translation” is necessary between the analog and digital worlds. Inside every
analog input module is an ADC, or Analog-to-Digital Converter, circuit designed to convert an analog
electrical signal into a multi-bit binary word. Conversely, every analog output module contains a DAC,
or Digital-to-Analog Converter, circuit to convert the PLC’s digital command words into analog
electrical quantities.
Analog I/O is commonly available for modular PLCs for many different analog signal types,
including:
1. Voltage (0 to 10 volt, 0 to 5 volt) 2. Current (0 to 20 mA, 4 to 20 mA)
3. Thermocouple (millivoltage) 4. RTD (millivoltage) 5. Strain gauge (millivoltage)
Programming of PLC:
The PLC can be programmed in different ways. There are various methods for entering and
interconnecting various logic elements. Some of these can be explained as follows:
1. Entry of ladder logic diagram 2. Low level computer languages
3. High level computer languages 4. Functional blocks 5. Sequential function chart
9
1. Logic AND operation 2. Logic OR operation
(i). Ladder logic symbols (ii). Implementing the switching operations using ladder symbol
Ladder Diagram:
• First Step : Translate all of the items we're using into symbols the PLC understands.
• Second step : We must tell the PLC where everything is located. In other words we have
to give all the devices an address.
• Final step : We have to convert the schematic into a logical sequence of events.
10
First Step:
• The PLC doesn't understand terms like switch, relay, bell, etc.
• It prefers input, output, coil, contact, etc.
• It doesn't care what the actual input or output device actually is. It only cares that its an
input or an output.
• First we replace the battery with a symbol. This symbol is common to all ladder diagrams. We
draw what are called bus bars.
• These simply look like two vertical bars. One on each side of the diagram. Think of the left one
as being + voltage and the right one as being ground. Further think of the current (logic) flow as
being from left to right.
• Next we give the inputs a symbol. In this basic example we have one real world input. (i.e. the
switch).
• We give the input that the switch will be connected to the symbol shown below. This symbol
can also be used as the contact of a relay.
• Next we give the outputs a symbol. In this example we use one output (i.e. the bell).
• We give the output that the bell will be physically connected to the symbol shown below.
This symbol is used as the coil of a relay.
• The AC supply is an external supply so we don't put it in our ladder. The PLC only cares about
which output it turns on and not what's physically connected to it.
Second Step:
• We must tell the PLC where everything is located. In other words we have to give all the
devices an address.
• Where is the switch going to be physically connected to the PLC? How about the bell? We start
with a blank road map in the PLCs town and give each item an address.
• Could you find your friends if you didn't know their address? You know they live in the
same town but which house? The PLC town has a lot of houses (inputs and outputs) but we
have to figure out who lives where (what device is connected where).
• We'll get further into the addressing scheme later. The PLC manufacturers each do it a
different way! For now let's say that our input will be called "0000". The output will be called
"500".
Final Step:
• Convert the schematic into a logical sequence of events.
• The program we're going to write tells the PLC what to do when certain events take place.
• In our example we have to tell the PLC what to do when the operator turns on the switch.
• Final converted diagram.
• We eliminated the real world relay from needing a symbol as shown below.
11
Basic Instructions
Load:
• The load (LD) instruction is a normally open contact. It is sometimes also called examine if on
(XIO) (as in examine the input to see if its physically on). The symbol for a load instruction is
shown above.
• This is used when an input signal is needed to be present for the symbol to turn on.
• When the physical input is on we can say that the instruction is True.
• We examine the input for an on signal. If the input is physically on then the symbol is on.
• An on condition is also referred to as a logic 1 state.
Load Bar:
• The Load bar instruction is a normally closed contact. It is sometimes also called LoaDNot or
examine if closed (XIC) (as in examine the input to see if its physically closed) The symbol for
a load bar instruction is shown below.
• This is used when an input signal does not need to be present for the symbol to turn on.
• When the physical input is off we can say that the instruction is True.
• We examine the input for an off signal. If the input is physically off then the symbol is on.
• With most PLCs this instruction (Load or Load bar) MUST be the first symbol on the left of the
ladder.
Out:
• The Out instruction is sometimes also called an Output Energize instruction. The output
instruction is like a relay coil. Its symbol looks as shown below.
• When there is a path of True instructions preceding this on the ladder rung, it will also be True.
• When the instruction is True it is physically ON.
• We can think of this instruction as a normally open output.
12
Out Bar:
• The Outbar instruction is sometimes also called an OutNot instruction.
• The Outbar instruction is like a normally closed relay coil. Its symbol looks like that shown
below.
Among these, ladder logic diagram is most frequently used as whenever a personnel wants to
change the PLC, he does not have to learn an entirely new programming language. Only the knowledge
of the circuit diagram is enough.
This method includes the direct entry of the logic diagram into the PLC memory. This method
requires the use of a keyboard and a display screen with graphics capability to display the symbols of the
components and their inter relationships in the ladder logic diagram. Programming is accomplished by
inserting appropriate components in the rungs of the ladder diagram.
Ladder logic diagram uses graphic symbols similar to relay schematic circuit diagrams.
It consists of two vertical lines representing the power rails
Circuits are connected as horizontal lines between these two vertical lines. Such horizontal lines
are called as Rungs.
Each rung contains atleast one input and one output.
A particular input or output can appear in more than one rung of ladder.
Output is connected at right side and input is connected and input is connected at left side (for
each rung)
Output (which is on right side) cannot be directly connected with left side
The ladder logic diagram consists of two types of components: Contacts & Coils
The various devices that are based on the binary logic can be stated as follows:
DEVICE ONE / ZERO
INPUT
Limit switch Contact / no contact
Photo detector Contact / no contact
Pushbutton switch On /off
Timer On / off
Control relay Contact / no contact
Circuit breaker Contact / no contact
OUTPUT
Motor On / off
Alarm buzzer On / off
Control relay Contact / no contact
Lights On / off
Valves Closed / open
Clutch Engaged / not engaged
Solenoid Energized / not energized
• Contacts are used to represent loads such as motors, relays, solenoids, timers, counters, etc.
• The program is entered rung by rung in the logic diagram.
13
• Disadvantage: Ladder logic diagrams are based on the ON-OFF operation. They are entirely
based on the logic level 1 and logic level 0. This can be a disadvantage in using the ladder logic
programming.
A Simple Example 1:
• In the above circuit, the coil will be energized when there is a closed loop between the + and -
terminals of the battery.
• We can simulate this same circuit with a ladder diagram
Example 2:
Lighting control system:
A lighting control system is to be developed. The system will be controlled by four switches,
SWITCH1, SWITCH2, SWITCH3, and SWITCH4. These switches will control the lighting in a room
based on the following criteria:
1. Any of three of the switches SWITCH1, SWITCH2, and SWITCH3, if turned ON can turn the
lighting on, but all three switches must be OFF before the lighting will turn OFF.
2. The fourth switch SWITCH4 is a Master Control Switch. If this switch is in the ON position, the
lights will be OFF and none of the other three switches have any control.
The first item we may accomplish is the drawing of the controller wiring diagram. All we need
do is connect all switches to inputs and the lighting to an output and note the numbers of the inputs and
output associated with these connections.
14
The remainder of the task becomes developing the ladder diagram. The wiring diagram is
shown in Figure.
Notice that all four switches are shown as normally open selector switches and the output is
connected to a relay coil CR1. We are using the relay CR1 to operate the lights because generally the
current required to operate a bank of room lights is higher than the maximum current a PLC output can
carry.
15
The ladder was printed using graphics characters (extended ASCII characters).
Notice the normally closed contact for IN4. A normally closed contact represents an inversion of
the assigned element, in this case IN4, which is defined as SWITCH 4. Remember, SWITCH 4 has to
be in the OFF position before any of the other switches can take control. In the OFF position, SWITCH 4
is open.
This means that IN4 will be OFF (de -energize d). So, in order for an element assigned to IN4
to be closed with the switch in the OFF position, it must be shown as a normally closed contact. When
SWITCH 4 is turned ON, the input, IN4, will become active (energized). If IN4 is ON, a normally
closed IN4 contact will open.
With this contact open in the ladder diagram, none of the other switches will be able to control
the output.
REMEMBER: A normally closed switch will open when energized and will close when de -energized.
Example 3:
Devices:
Device Function
X0 X0=ON when the detected input signal from the bottle bottom is sheltered
X1 X1=ON when the detected input signal from the bottle neck is sheltered
Program description
If the bottle on the conveyor belt is upstanding, the input signal from the monitoring
photocell at both bottle bottom and bottle neck will be detected. I n this case, X0=ON and
X1=ON. The normally open (NO) contact X0 will be activated as w ell as the normally
closed (NC) contact X1. Y 0 remains OFF and pneumatic pushing pole will not perform
any action.
16
If the bottle from the conveyor belt is down, only the input signal from monitoring
photocell at the bottle bottom will be detected. I n this case, X0=ON, X1=O FF. The state
of the output Y 0 will be ON because the NO contact X activates and the NC contact X1
remains OFF. The pneumatic pushing pole will push the fallen bottle out of the conveyor
belt
Example 4:
Devices:
Device Function
X0 X0 turns ON when the bottom switch is turned to the right
Program Description
If the states of the bottom switch and the top switch are the same, both ON or OFF, the
light will be ON. I f different, one is ON and the other is OFF, the light will be OFF.
When the light is OFF, users can turn on the light by changing the state of either top
switch or the bottom switch of the stairs. Likewise, when the light is ON, users can turn
off the light by changing the state of one of the two switches.
Example 5:
A Level Application:
• We are controlling lubricating oil being dispensed from a tank.
• This is possible by using two sensors.
• We put one near the bottom and one near the top, as shown in the picture.
Here, we want the fill motor to pump lubricating oil into the tank until the high level sensor turns on.
At that point we want to turn off the motor until the level falls below the low level sensor. Then we
should turn on the fill motor and repeat the process.
17
Here we have a need for 3 I/O (i.e. Inputs/Outputs):
• 2 are inputs (the sensors) and 1 is an output (the fill motor).
• Both of our inputs will be NC (normally closed) fiber-optic level sensors. When they are
NOT immersed in liquid they will be ON. When they are immersed in liquid they will be
OFF.
Program Scan:
• Initially the tank is empty. Therefore, input 0000 is TRUE and input 0001 is also TRUE.
18
• Gradually the tank fills because 500(fill motor) is on.
• After 100 scans the oil level rises above the low level sensor and it becomes open. (i.e. FALSE).
• Even when the low level sensor is false there is still a path of true logic from left to right. This is
why we used an internal relay. Relay 1000 is latching the output (500) on. It will stay this way until
there is no true logic path from left to right.(i.e. when 0001 becomes false).
• Since there is no more true logic path, output 500 is no longer energized (true) and therefore
the motor turns off.
• Even though the high level sensor became true there still is NO continuous true logic path and
therefore coil 1000 remains false!.
19
• After 2000 scans the oil level falls below the low level sensor and it will also become true again.
• At this point the logic will appear the same as SCAN 1 above and the logic will repeat as
illustrated above.
Latch Instruction:
• The latching instructions let us use momentary switches and program the plc so that
when we push one the output turns on and when we push another the output turns off.
• Picture the remote control for your TV. It has a button for ON and another for OFF:
- When I push the ON button the TV turns on.
- When I push the OFF button the TV turns off.
• I don't have to keep pushing the ON button to keep the TV on. This would be the
function of a latching instruction.
• The latch instruction is often called a SET or OTL (output latch).
• The unlatch instruction is often called a RES (reset), OUT (output unlatch) or RST
(reset). The diagram below shows how to use them in a program.
20
Here we are using 2 momentary push button switches. One is physically connected to input 0000
while the other is physically connected to input 0001. When the operator pushes switch 0000 the
instruction "set 0500" will become true and output 0500 physically turns on. Even after the operator
stops pushing the switch, the output (0500) will remain on. It is latched on. The only way to turn off
output 0500 is turn on input 0001. This will cause the instruction "res 0500" to become true thereby
unlatching or resetting output 0500.
• What would happen if input 0000 and 0001 both turn on at the exact same time
• Will output 0500 be latched or unlatched?
• To answer this question we have to think about the scanning sequence. The ladder is always scanned
from top to bottom, left to right.
• The first thing in the scan is to physically look at the inputs.
• 0000 and 0001 are both physically on.
• Next the PLC executes the program.
• Starting from the top left, input 0000 is true therefore it should set 0500.
• Next it goes to the next rung and since input 0001 is true it should reset 0500.
• The last thing it said was to reset 0500. Therefore on the last part of the scan when it updates the
outputs it will keep 0500 off. (i.e. reset 0500).
21
PLC features and benefits
22
SCHOOL OF MECHANICAL ENGINEERING
COURSE MATERIAL
Timers
In many control tasks there is a need to control time. For example, a motor or a pump
might need to be controlled to operate for a particular interval of time, or perhaps be switched on
after some time interval. PLCs thus have timers as built-in devices. Timers count fractions of
seconds or seconds using the internal CPU clock.
PLC manufacturers differ on how timers should be programmed and hence how they can
be considered. A common approach is to consider timers to behave like relays with coils which
when energised result in the closure or opening of contacts after some preset time. The timer is
thus treated as an output for a rung with control being exercised over pairs of contacts elsewhere
(Figure 2.1 (a)). This is the predominant approach used in this book. Some treat a timer as a
delay block which when inserted in a rung delays signals in that rung reaching the output (Figure
2.1 (b)).
There are a number of different forms of timers that can be found with PLCs. With small
PLCs there is likely to be just one form, the on -delay timers. These are timers which come on
after a particular time delay (Figure 2.2 (a)). Off-delay timers are on for a fixed period of time
before turning off (Figure 2.2 (b)). Another type of timer that occurs is the pulse timer. This
timer switches on or off for a fixed period of time (Figure 2.2 (c)). Figure 2.3 shows the IEC
1131-3 standard symbols for timers. TON is used to denote on-delay, TOF off-delay. TP pulse
timers. On-delay is also represented by T− 0 and off-delay by 0− T. The time duration for which
a timer has been set is termed the preset and is set in multiples of the time base used. Some time
bases are typically 10 ms, 100 ms, 1 s, 10 s and 100 s. Thus a preset value of 5 with a time base
of 100 ms is a time of 500 ms. For convenience, where timers are involved in this text, a time
base of 1 s has been used.
Figure 2.3 IEC 1131-1 standards. BOOL indicates a Boolean input/output, i.e. on/off. IN is the
input. Q is the output. ET is the elapsed time output. PT is the input used to specify the time.
Programming timers
All PLCs generally have delay-on timers, small PLCs possibly having only this type of
timer. Figure 2.4 (a) shows a ladder rung diagram involving a delay-on timer. Figure 2.4 (a) is
typical of Mitsubishi. The timer is like a relay with a coil which is energized when the input In 1
occurs (rung 1). It then closes, after some preset time delay, its contacts on rung 2. Thus the
output occurs some preset time after the input In 1 occurs. Figure 2.4 (b) shows the timer to be a
delay item in a rung, rather than as a relay, the example being for Siemens. When the signal at
the timer’s start input changes from 0 to 1, the timer starts and runs for the programmed
duration, giving its output then to the output coil. The time value (TV) output can be used to
ascertain the amount of time remaining at any instant. A signal input of 1 at the reset input resets
the timer whether it is running or not. Techniques for the entry of preset time values vary. Often
it requires the entry of a constant K command followed by the time interval in multiples of the
time base used.
Figure 2.4 Timers: (a) Mitsubishi, (b) Siemens
Sequencing
As an illustration of the use of a timer, consider the ladder diagram shown in Figure 2.5
(a). When the input In 1 is on, the output Out 1 is switched on. The contacts associated with this
output then start the timer. The contacts of the timer will close after the preset time delay, in this
case 5.5 s. When this happens, output Out 2 is switched on. Thus, following the input In 1, Out 1
is switched on and followed 5.5 s later by Out 2. This illustrates how timed sequence of outputs
can be achieved. Figure 2.5 (b) shows the same operation where the format used by the PLC
manufacturer is for the timer to institute a signal delay.
In 1 Out 1 In 1 Out 1
Timer
Out 1 Timer
Preset Out 1 Out 2
TON
to 5.5 IN Q
Timer Out 2
Preset to 5.5 s
(a) (b)
Figure 2.6 shows two versions of how timers can be used to start three outputs, e.g. three
motors, in sequence following a single start button being pressed. In (a) the timers are
programmed as coils, whereas in (b) they are programmed as delays. When the start push button
is pressed there is an output from internal relay IR1. This latches the start input. It also starts
both the timers, T1 and T2, and motor 1. When the preset time for timer 1 has elapsed then its
contacts close and motor 2 starts. When the preset time for timer 2 has elapsed then its contacts
close and motor 3 starts. The three motors are all stopped by pressing the stop push button. Since
this is seen as a complete program, the end instruction has been used.
Figure 2.6 Motor sequence
Cascaded timers
Timers can be linked together, the term cascaded is used, to give longer delay times than
are possible with just one timer. Figure 2.7 (a) shows the ladder diagram for such an
arrangement. Thus we might have timer 1 with a delay time of 999 s. This timer is started when
there is an input to In 1. When the 999 s time is up, the contacts for timer 1 close. This then starts
timer 2. This has a delay of 100 s. When this time is up, the timer 2 contacts close and there is an
output from Out 1. Thus the output occurs 1099 s after the input to In 1. Figure 2.7 (b) shows the
Mitsubishi version of this ladder diagram and the program instructions for that ladder.
Figure 2.9 shows how the above ladder program would appear in the format used with a
timer considered as a delay, rather than as a coil. This might, for example, be with Siemens or
Toshiba. When input In 1 closes, the timer T1 starts. After its preset time, there is an output to
Out 1 and timer T2 starts. After its preset time there is an output to the internal relay IR1. This
opens its contacts and stops the output from Out 1. This then switches off timer T2. The entire
cycle can then repeat itself.
Programming
Figure 2.17 shows a basic counting circuit. When there is a pulse input to In 1, the
counter is reset. When there is an input to In 2, the counter starts counting. If the counter is set
for, say, 10 pulses, then when 10 pulse inputs have been received at In 2, the counter’s contacts
will close and there will be an output from Out 1. If at any time during the counting there is an
input to In 1, the counter will be reset and start all over again and count for 10 pulses.
Figure 2.18 (a) Using up- and down-counters, (b) Allen-Bradley program
Up-down counters are available as single entities. Figure 2.19 shows the IEC 1131-3
standard symbol. The counter has two inputs CU and CD and counts up the number of pulses
detected at the input CU and counts down the number of pulses detected at input CD. If the
counter input reaches zero, the QD output is set on and the counting down stops. If the count
reaches the maximum value PV, the QU output is set on and the counting up stops. CV is the
count value. LD can be used to preset the counter output CV with the value PV. The reset R
clears the counter input to zero.
Figure 2.19 IEC 1131-3 - standard symbol for up-down counter
Figure 2.20 shows how the above system might appear for a Siemens PLC and the
associated program instruction list. CU is the count up input and CD the count down. R is the
reset. The set accumulator value is loaded via F0.0, this being an internal relay.
COURSE MATERIAL
This is one of the important application of PLC in the bottle filling industry where
we want our bottles, which are moving on the conveyor belt, to be automatically detected at
the appropriate position and get it filled by any desired liquid and also after getting filled the
queued bottle gets chance to be filled. If this whole process is carried out manually it will
really take a long time and also the quantities will be quite lesser. So PLC becomes requisite
controller for these types of industry.
Here also just a small demonstration of the process was performed with the help of
PLC where a ladder diagram was created to control the process and the ladder diagram was
run the PLC trainer kit to see its justification.
Objective:-
We will implement a control program that detects the position of a bottle via a limit switch
then waits for 0.5 secs, and then fills the bottle until a photo detector detects the filled
condition of the bottle. After the bottle is filled, the buzzer sounds and the control program
will again wait for
0.7 secs. before moving to the next bottle .Until the limit switch signals ,the feed motor,M1
runs while there are fixed rollers which carries the filled bottles. Motor, M2 keeps running
after the process has been started.
Observation:-
Once the start button is pressed the green light (L1) turns ON and remains ON until stop button
is pressed. As light turns ON out feed motor (M2) starts running. After M2 runs and if either
limit switch (LS) has not signaled or filled bottle condition is fulfilled motor (M1) starts. After
limit switch has signaled timer, T1 gets activated. After T1 gives done (DN) signal and photo
eye detector (PE) is disabled, solenoid valve gets in operation. A s PE signals solenoid stops
and buzzer (B1) sounds after which timer, T2 gets enabled which stops the process for 0.7
seconds. Once the filled bottle condition is activated the cycle starts again.
The ladder diagram was successfully checked in the PLC simulator and all the prescribed
conditions were observed completely.
2. Batch mixing system
This is another commonly applied application of PLC where two liquids are mixed in required
proportion to form a batch .Rate of the flow is already fixed. We only control the time of the
flow. Level of the liquids in the tank are sensed by the level sensor switches
Objective:-
We try a simple blending of water and acid in a container where we only have three level
sensors(L1,L2, and L3) and two liquids flowing in through two solenoid valves, solenoid
a(water control) and solenoid b(acid control)and draining out through solenoid c(blend
outflow).The batch is to be controlled by timer. After required level of blend is sensed (by L1)
the mixer runs for 3 mins by the motor. They are mixed in ratio of 3:2. The process initiates
with the drain valve open, water and acid valves closed, mixer motor is off, and the tank is
empty.
A simple air conditioner consists of a single air compressor motor which gets switched
off when temperature of the space being controlled falls below the setting on the thermostat.
Thermostats are provided with a differential setting to avoid on and off of the compressor
motor. The three stage air conditioning system helps in conservation of electrical power.
Objective:-
There are two motors compressors in the system. One is of low horsepower and other
one is of high horsepower rating. These motors are designated as C1 and C2 in the case. The
system is installed in a hall to maintain the temperature between 200C-240C depending on the
number of viewers in the hall and the atmospheric temperature.
The motors of C1 and C2 are run on three conditions of the thermostats. The three
conditions described below are also the control requirements of the air conditioning system:-
1. Compressor 1 and compressor 2 should turn on when the temp. of the hall is above 280C .
2. Only compressor 2 should turned on when the temp of the hall is above 240C and below
280C.
3. Only compressor 1 is turned on when the temp. is above 200C and below 240C. A pre-
condition for running any compressor is that chilling water flow switch FS1 should be closed.
Chilling water flow necessary to take away heat from the compressed cooling water.
Three thermostat with different settings are used for the control of compressor motor
running in three different stages described above. The three thermostats T1, T2, T3, are set at
temp 200C, 240C and 280C respectively.
The control of three stages with three the thermostats and Flow switch (FS1) of air
conditioning system can be understood from the control circuit shown in fig.4.5.
The start push button, stop push button and overload contacts for compressor motor have not
been shown in the circuit for sake of simplicity.
(3) Closed contact of T3 will give a high input to terminal 1 of AND2 while the other terminal
2 is already high due to closure of FS1 AND2 thus gives a high output which is applied to both
OR1 and OR2,as each terminal of OR1andOR2 is now high, their output is also high. Output
from OR1 leads to energisation of contactor C1 and output from OR2 leads to energisation of
contactor C2 through their respective amplifiers. Thus compressor 1 and 2 will run when temp
in the hall will above 280C.
(4) When the hall temp is below 280C and above 240C, contact of thermostat T3 will open,
while contacts of T 1andT 2 are closed. Due to open contact of T3 there is low signal at
terminal 1 of AND2 and therefore its output is low. Output of AND1 is also low as closed
Contact of T2 gives a low signal at terminal 3 due to a not gate in series, in this case AND3
Will have a high output as its input terminal1 has high signal from the closed contact of
Thermostat T2, it is to be noted that supply to terminal1 of AND3 is taken prior to the NOT
Gate. High output from AND3 goes to terminal 2 of OR2 which then gives a high output. This
output energises contactor C2 through the amplifier. Thus compressor 2 will run only when the
temperature is above 240C but below 280C.
(5) When the temp. falls below 240C contact of thermostat T2 opens and output of AND3 will
Go low due to a low signal in its input terminal the open contact of T2 will however give a high
signal to terminal 3 of AND 1 (due to not gate in series), It will get switched on as its terminal 1
and 2 are already high. The high output from and1 then goes to terminal 1 of or1 which then
gives a high output to energise contactor C1.thus one compressor will run when temp is below
240C but above 200C. When temp falls below 200C, contact of thermostat T1 also opens and
terminal 1 of AND1 goes low and it is switched off .Thus Compressor 1 also stops when temp
falls below 200C.
(6) Compressor 1 continues to run if temp. In the hall remains 200C -240C, if due to more
viewers in the hall, compressor 1 is unable to maintain, temp. Below 240C. Compressor 1 will
be switched off. If the load is still more and compressor 2 alone cannot cope up and temp. Goes
above 280C then compressor 1 will also start to bring down the temperature.
Ladder diagram:-
Observation:-
The ladder diagram was satisfactorily realized in the lab and all the conditions were tested .The
outputs are same as expected
4. Control of Planar machine:-
(1) The motor is to be start manually by pressing start push-button. Once the motor starts it
reversed automatically at the end of right or left stroke by limit switches2LSand1LS.
(2) There should be provision of jogging the motor by jog push button.
(3) If the machine table is lying in between extreme position, machine should fail to start.
Selection of initial direction of travel should be possible through right and left push button,
PBR and PBL.
(4) There should be delay in starting the motor in left to right stroke so as to allow the tool To
get the feed for the fresh cut on the job.
(5) The machine should stop on pressing the stop push –button or on over load tripping of
motor.
(6) Interlocking of coolant pump motor (running) should be provided as a precondition for the
starting of machine.
Control circuit for the machine adhering to the above mentioned control requirement
shown in fig:-
Figure 4.8 logic control circuit for planar machine
There are two major sectors of this control circuit. One is the control of starting and
stopping of the motor, and the other is the automatic reversing control:-
Ladder diagram:-
Speed control of a motor means the intentional variation of speed according to the requirement
of the work-load connected with the motor. This can be done by mechanical means, such as by
using stepped pulleys, a set of change gears, a friction clutch mechanism, etc. However control
of speed by electrical means has greater advantages over mechanical speed controls. The dc
motors offer easy speed control and that’s why dc motors are preferred over other types of
motors in many applications. Various speed control method can be obtained from its expression
which is: N=V - IaRa/Kϕ, Whereas, N=speed of motor, Ia=armature current, Ra=armature
resistance, Φ=field flux, So it can be concluded that speed of dc motor depends upon
a. The applied voltage, b. The field flux, c. Drop in armature circuit resistance IaRa
And accordingly speed can be controlled by varying the above factors.
C. Speed control by controlling the voltage applied across the armature terminals:-
In this method of speed control the armature is supplied with a variable voltage with the help of
a motor-generator set since the supply voltage available from the electricity authority cannot be
varied at will. This system of speed control is also known as the Ward-Leonard system.
If a reversing switch is incorporated, by changing the polarity of the armature supply terminals,
speed can be varied in the opposite direction also. This system is advantageous over other
system in following ways:-
a. It provides smooth control of speed over a wide range in both directions
b. The system is more efficient at low speeds as there are no resistors connected in
Series with the armature circuit.
We apply this strategy only to control the motor speed as other methods are loss and
inefficient. Here instead of adding extra motor- generator set we control speed by PLC. The
PLC supplies control signals to the MOSFET switches .These control signals have variable
duty cycle that depends on the speed required. Depending on the duty cycle the motor gets the
average voltage and accordingly speed varies.
Consider the circuit shown below .Here we have a dc voltage source V, a resistor R,
inductor L, diode D, and a semiconductor switch Q (shown here as an N-channel insulated gate
MOSFET). The signal applied to the gate of the switch Q is a pulse train with constant
frequency f (and constant period T), but with varying pulse width t. The amplitude of the signal
applied to the gate will cause the switch to transition between cutoff and saturation with very
short rise and fall times. The relative values of R and L are selected such that the time constant
= L/R is at least 10 times the period T of the pulse train applied to the gate of Q. The long L/R
time constant will have a low-pass filtering effect on the chopped output of the switch Q, and
will effectively smooth the current into dc with very little ac component.
For generation of pulses, first whole time period is set in counter by any n-bit according
to resolution required. Now according to the percentage of rpm required with respected to
maximum rpm of the motor, the counter is also set at the same percentage (value with respect
to n-digit maximum value) as the voltage. We have comparator to check that value. Till fixed
value signals passes while it remains off for remaining period of the pulse. In this way we
generate signals of varying duty cycle pulses.
The ladder diagram when simulated gave the same result .Signal remained ON until the
counter finished counting and became off for rest period. The process is repeated in every time
period.
6. Traffic Light controller
If we wanted to describe a traffic lamp sequence, one way we could do this would be to
represent it as a sequence of functions or states such as red light state and green light state and
the inputs and outputs to each state. Figure illustrates this. State 0 has an input which is triggered
after the green light has been on for 1 minute and an output of red light on. State 1 has an input
which is triggered after the red light has been on for 1 minute and an output of green light on.
7. Automatic water filling in tank
SCHOOL OF MECHANICAL ENGINEERING
COURSE MATERIAL
Layered Tasks
To reduce the design complexity, most of the networks are organized as a series of layers or
levels, each one build upon one below it. The basic idea of a layered architecture is to divide the
design into small pieces. Each layer adds to the services provided by the lower layers in such a
manner that the highest layer is provided a full set of services to manage communications and
run the applications. The benefits of the layered models are modularity and clear
interfaces, i.e. Open architecture and comparability between the different providers'
components. A basic principle is to ensure independence of layers by defining services
provided by each layer to the next higher layer without defining how the services are to be
performed. This permits changes in a layer without affecting other layers. The basic elements of
a layered model are services, protocols and interfaces. A service is a set of actions that a layer
offers to another (higher) layer.
Protocol is a set of rules that a layer uses to exchange information with a peer entity.
These rules concern both the contents and the order of the messages used. Between the layers
service interfaces are defined. The messages from one layer to another are sent through those
interfaces.
OSI MODEL
The OSI model is based on a proposal developed by the International Standards Organization
(ISO) as a first step toward international standardization of the protocols used in the various
layers (Day and Zimmermann, 1983). It was revised in 1995(Day, 1995). The model is
called the ISO-OSI (Open Systems Interconnection) Reference Model because it deals with
connecting open systems—that is, systems that are open for communication with other systems.
The OSI model is a layered framework for the design of network systems that allows
communication between all types of computer systems. It consists of seven separate but related
layers, each of which defines a part of the process of moving information across a network.
Figure 4.2:
The OSI model is composed of seven ordered layers: physical (layer 1), data link (layer 2),
network (layer 3), transport (layer 4), session (layer 5), presentation (layer 6), and application
(layer 7). Figure below shows the layers involved when a message is sent from device A
to device B. As the message travels from A to B, it may pass through many intermediate
nodes. These intermediate nodes usually involve only the first three layers of the OSI model.
1. Physical Layer
The physical layer coordinates the functions required to carry a bit stream over a physical
medium. It deals with the mechanical and electrical specifications of the interface and
transmission medium. It also defines the procedures and functions that physical devices and
interfaces have to perform for transmission to occur. Figure 4.3:
3. Network Layer
The network layer is responsible for the source-to-destination delivery of a packet,
possibly across multiple networks (links). Whereas the data link layer oversees the delivery of
the packet between two systems on the same network (links), the network layer ensures that
each packet gets from its point of origin to its final destination. If two systems are connected to
the same link, there is usually no need for a network layer. However, if the two systems are
attached to different networks (links) with connecting devices between the networks (links),
there is often a need for the network layer to accomplish source-to-destination delivery.
4. Transport Layer
The transport layer is responsible for process-to-process delivery of the entire message. A
process is an application program running on a host. Whereas the network layer oversees
source- to-destination delivery of individual packets, it does not recognize any relationship
between those packets. It treats each one independently, as though each piece belonged to a
separate message, whether or not it does. The transport layer, on the other hand, ensures that the
whole message arrives intact and in order, overseeing both error control and flow control at the
source- to-destination level.
Other responsibilities of the transport layer include the following:
o Service-point addressing. Computers often run several programs at the same time. For this
reason, source-to-destination delivery means delivery not only from one computer to the next
but also from a specific process (running program) on one computer to a specific process
(running program) on the other. The transport layer header must therefore include a type of
address called a service-point address (or port address). The network layer gets each packet to
the correct computer; the transport layer gets the entire message to the correct process on that
computer.
o Segmentation and reassembly. A message is divided into transmittable segments, with
each segment containing a sequence number. These numbers enable the transport layer to
reassemble the message correctly upon arriving at the destination and to identify and replace
packets that were lost in transmission.
o Connection control. The transport layer can be either connectionless or connection
oriented. A connectionless transport layer treats each segment as an independent packet and
delivers it to the transport layer at the destination machine. A connection oriented transport
layer makes a connection with the transport layer at the destination machine first before
delivering the packets. After all the data are transferred, the connection is terminated.
o Flow control. Like the data link layer, the transport layer is responsible for flow control.
However, flow control at this layer is performed end to end rather than across a single link.
o Error control. Like the data link layer, the transport layer is responsible for error control.
However, error control at this layer is performed process-to-process rather than across a single
link. The sending transport layer makes sure that the entire message arrives at the receiving
transport layer without error (damage, loss, or duplication). Error correction is usually achieved
through retransmission.
5. Session Layer
The services provided by the first three layers (physical, data link, and network) are not
sufficient for some processes. The session layer is the network dialog controller. It establishes,
maintains, and synchronizes the interaction among communicating systems.
Specific responsibilities of the session layer include the following:
o Dialog control. The session layer allows two systems to enter into a dialog. It allows the
communication between two processes to take place in either half duplex (one way at a time) or
full-duplex (two ways at a time) mode.
o Synchronization. The session layer allows a process to add checkpoints, or synchronization
points, to a stream of data.
6. Presentation Layer
The presentation layer is concerned with the syntax and semantics of the information exchanged
between two systems. Specific responsibilities of the presentation layer include the
following:
o Translation. The processes (running programs) in two systems are usually exchanging
information in the form of character strings, numbers, and so on. The information must be
changed to bit streams before being transmitted. Because different computers use different
encoding systems, the presentation layer is responsible for interoperability between these
different encoding methods. The presentation layer at the sender changes the information
from its sender-dependent format into a common format. The presentation layer at the
receiving machine changes the common format into its receiver-dependent format.
o Encryption. To carry sensitive information, a system must be able to ensure privacy.
Encryption means that the sender transforms the original information to another form and sends
the resulting message out over the network. Decryption reverses the original process to
transform the message back to its original form.
o Compression. Data compression reduces the number of bits contained in the information.
Data compression becomes particularly important in the transmission of multimedia such
as text, audio, and video.
7. Application Layer
The application layer enables the user, whether human or software, to access the network.
It provides user interfaces and support for services such as electronic mail, remote file access
and transfer, shared database management, and other types of distributed information services.
Specific services provided by the application layer include the following: o Network virtual
terminal. A network virtual terminal is a software version of a physical terminal, and it allows a
user to log on to a remote host.
o File transfer, access, and management. This application allows a user to access files in a
remote host (to make changes or read data), to retrieve files from a remote computer for use
in the local computer, and to manage or control files in a remote computer locally.
o Mail services. This application provides the basis for e-mail forwarding and storage.
o Directory services. This application provides distributed database sources and access
for global information about various objects and services.
Field Bus
Introduction to Fieldbus Systems
Fieldbus is consisting of two terms, Field and Bus [Fieldbus Introduction]. To start, the
meaning of Field, as defined in industrial world, is a geographical or contextual limited area.
From the industry point of view the Field is an abstraction of the plant levels. As for the term
Bus is a well-known word in computer science as a set of common line that electrically (or even
optically) connects various units (circuits) in order to transfer the data among them.
The origin of the fieldbus was to replace any point-to-point links between the field
devices (Field Devices are simply the Sensors and Actuators of the plant) and their controllers
(PLC's) by a digital single link on which all the information is transmitted serially and
multiplexed in time. We will see that the fieldbus transfers, in most cases, this information in
small-sized packets in serial manner. Choosing the serial transmission has many merits in
comparison with other kinds of transmission like parallel transmission. For instance, the
sequential or serial transmission reduces the total required number of the connecting lines over
greater distances than that of the point-to-point or even parallel transmissions.
A set of rules must be defined in order to accomplish data transfer between the units
along the bus. This set of rules is called Communication Protocol or just the Protocol. This is
unlike the case of the ordinary point-to-point transmission where any two connected entities send
and receive data from each other whenever the data is available. The protocol is responsible for
two important rules on the bus, the mechanism that any unit can acquire or size the bus, and the
synchronization between those multi-units on the bus.
Concept of Field bus technology and layers: The seven layers of the OSI model are
1- Application layer which provides the services that are required by specific
applications.
2- Presentation layer is responsible for the data interpretation, which allows
interoperability among different equipments.
3- Session layer is concerned with execution of any remote actions.
4- Transport layer is responsible for the end-to-end communication control.
5- Network layer is concerned with logical addressing process of nodes and routing
schemes.
6- Data link layer is responsible for the access to the communication medium, and for the
logical transfer of the data.
7- Physical layer is concerned with the way that the communication is done.
Any communication system that is based on the OSI seven layers will provide higher
flexibility and compatibility with products from different vendors. Modification to the MAP
project was necessary as the node implementation become more complex in order to support all
the services of the OSI reference model. The modification allowed the short length control data
packets, which occurs at high rates, to be directly transmitted through the application layer to the
data link layer. The resulting field bus is referred to as a 3-layered Architecture. These layers
are: the Application layer, the Data link layer, the Physical layer.
One may assume that the other four layers of the OSI model that are not available in the
fieldbus hierarchy have disappeared along with their own functions and services. The main
function of the presentation layer is to support the interoperability between different equipments
which is currently done by the application layer in the field bus. The assembling and
disassembling of data packets which was the function of the transport layer is done now by the
data link layer in the fieldbus network. If routers to be used in some fieldbus networks, then the
routing service, which was assigned to the network layer, is done by the application layer in
most cases in the fieldbus.
Figure 4.4: (a) The OSI 7-layers reference model, and (b) The reduced fieldbus 3-layer structure
There are several protocols and services that are laid in the 3-layerd hierarchy of the
fieldbus network. This will lead to a great difficulty in evaluating one and unique international
fieldbus standard. There are several fieldbus protocols in the world. The designer of the DCCS
communications system has multi -option solutions to fulfill his system requirements. These
requirements are varied from one situation to another. In many situations the quality of services
and the system throughput are the common requirements in all the DCCS systems. Also a fast
response time is usually required by the real-time computer controlled networks designers.
Controller Controller
RS485 IS RS485 IS
Remote I/O Remote I/O
Figure 4.5: RS485 IS Topologies
In the MBP-IS version, this transmission technology is especially suitable for use in
hazardous areas in Process Automation, and is therefore widely used in applications of the
chemical, oil and gas industries. Explosion protection is implemented via limiting power in the
incoming bus supply or more frequently in the installation components in the field. Working on
field devices during active operation is made possible, for example, by means of intrinsically
safe ignition protection. Linear and tree structures and combinations of both are thus possible. In
practice, the "trunk & spur topology" (Fig) has established itself as the de-facto standard, as it is
especially clear and well-laid-out.
SINGLE LINE TOPOLOGY
DP/PA Link
Figure 4.6: Single Line Topology
REDUNDANT MASTER and DP TOPOLOGY
RS485 MBP IS
Active Field
Distributor AF
AFD AFD D
Supervisory control
SCADA is an acronym for Supervisory Control and Data Acquisition. SCADA systems are used
to monitor and control a plant or equipment in industries such as telecommunications, water and
waste control, energy, oil and gas refining and transportation. These systems encompass the
transfer of data between a SCADA central host computer and a number of Remote Terminal
Units (RTUs) and/or Programmable Logic Controllers (PLCs), and the central host and the
operator terminals.
Components of SCADA
1. Human Machine Interface (HMI): It is an interface which presents process data to a human
operator, and through this, the human operator monitors and controls the process.
2. Supervisory (computer) system: It gathers data on the process and sending commands (or
control) to the process.
3. Remote Terminal Units (RTUs): It connects to sensors in the process, converting sensor
signals to digital data and sending digital data to the supervisory system.
4. Programmable Logic Controller (PLCs): It is used as field devices because they are more
economical, versatile, flexible, and configurable than special-purpose RTUs.
5. Communication infrastructure: It provides connectivity to the supervisory system to the
Remote Terminal Units.
Architecture of SCADA
The block diagram of SCADA system shown in the figure represents the basic SCADA
architecture. The SCADA (supervisory control and data acquisition) systems are different from
distributed control systems that are commonly found in plant sites. When distributed control
systems cover the plant site, SCADA system cover much larger geographic areas.
The below figure depicts an integrated SCADA architecture which supports TCP/IP,
UDP and other IP based communication protocols as well as industrial protocols like Modbus
TCP, Modbus over TCP or Modbus over UDP. These all work over cellular, private radio or
satellite networks.
The cost and size of the station were reduced compared to the first generation system, as each
system of the second generation was responsible for performing a particular task with reduced
size and cost.
Applications of SCADA
SCADA systems are used for monitoring a variety of data like flows, currents, voltages,
pressures, temperatures, water levels, and etc.,
Manufacturing Industries
Waste Water Treatment and Distribution Plants
SCADA in Power System
Scheduling control
Scheduling refers to a set of policies and mechanisms to control the order of work to be
performed by a computer system
Of all the resources in a computer system that are scheduled before use, the CPU is by far
the most important
Multiprogramming is the (efficient) scheduling of the CPU
The basic idea is to keep the CPU busy as much as possible by executing a (user) process
until it must wait for an event, and then switch to another process
Scheduler
In multiprogramming systems, when there is more than one run able process (i.e., ready), the
operating system must decide which one to activate. The decision is made by the part of the
operating system called the scheduler, using a scheduling algorithm.
In the beginning—there was no need for scheduling, since the users of computers lined up in
front of the computer room or gave their job to an operator.
Batch processing—the jobs were executed in first come first served manner.
Multiprogramming—life became complicated! The scheduler is concerned with deciding policy,
not providing a mechanism.
Types of scheduling
Short-term scheduling
Medium-term scheduling
Long-term scheduling
Short-term scheduling
Short-term scheduler, also known as the process or CPU scheduler, controls the CPU sharing
among the ‘‘ready’’ processes. The selection of a process to execute next is done by the short-
term scheduler. Usually, a new process is selected under the following circumstances:
• When a process must wait for an event.
• When an event occurs (e.g., I/O completed, quantum expired).
• When a process terminates.
Medium-term scheduling
Medium-term scheduling involves suspending or resuming processes by swapping (rolling) them
out of or into memory
Long-term scheduling
Long term scheduling is done when a new process is created. It initiates processes and so
controls the degree of multi-programming (number of processes in memory).
Simple policies for long term scheduling are:
Simple First Come First Served (FCFS): it's essentially a FIFO scheme. All job requests
(e.g. a submission of a batch program, or an user trying to log in in a time shared system) are
honoured up to a fixed system load limit, further requests being refused tout court, or enquired
for later processing.
Priority schemes. Note that in the context of long term scheduling ``priority'' has a
different meaning than in dispatching: here it affects the choice of a program to be entered the
system as a process, there the choice of which ready process should be executed.
Digital control interfacing - process inputs, outputs interface
An interface is the common point at which two or more systems communicate with each
other. Digital I/O interfaces are commonly used in PC based DAQ systems to provide
monitoring and control for industrial processes, generate patterns for testing in the laboratory
and communicate with peripheral equipment such as data loggers and printers which have
parallel digital I/O capabilities. It is clear that these types of digital, or discrete, inputs and
outputs (I/O) are much easier for microprocessor-based data acquisition systems to deal with
than analog signals as the computer has a fully binary environment. Similar to analog-to-digital
converters used for analog I/O, digital I/O is designed to deal directly with Transistor-to-
Transistor Logic (TTL) level voltage changes. TTL typically sets the low-voltage level between
0 and 0.8 V and the high-voltage level between 2.0 and 5.0 V. Voltage levels between 0.8 and
2.0 V are not allowed. A voltage change, then, from the high range to the low range (or vice
versa) represents a digital change of state from high to low, on to off, etc. and because acquiring
an analog signal is more complex than acquiring a digital one, analog I/O channels also are more
expensive.
Data Logger
Data loggers are is stand-alone devices that can record information electronically from internal
or external sensors or other equipment that provide digital or serial outputs.
Features
(a) Stand-alone Operation: Most data loggers are normally configured with a PC, some
models can be configured from the front panel provided by the manufacturer. Once the data
loggers are configured, they don’t need the PC to operate.
(b) Support for Multiple Sensor Types: Data loggers often have universal input type which can
accept input from common sensors like thermocouple, RTD, humidity, voltage, etc.
(c) Local Data Storage: All data loggers have local data storage or internal memory unit, so all
the measured data is stored within the logger for later transfer to a PC.
(d) Automatic Data Collection: Data loggers are designed to collect data at regular intervals,
24 hours a day and 365 days a year if necessary, and the collection mode is often configurable.
Data logging and recording are both analog terms in the field of measurement. Data
logging is basically measuring and recording of any physical phenomena or electrical parameter
over a period of time. The physical phenomena can be temperature, strain, displacement, flow,
pressure, voltage, current, resistance, power, and many other parameters
The data logger collects information about the state of any physical system from the sensors.
Then the data logger converts this signal into a digital form with the help of an A/D converter.
This digital signal is then stored in some electronic storage unit, which can be easily transferred
to the computer for further the analysis.
Signal Conditioning
Most sensors and transducers generate signals that must be conditioned before a
measurement or DAQ device can reliably and accurately acquire the signal. This front-end
processing is referred to as signal conditioning.
A signal conditioner may create excitation for certain transducers such as strain gauges and
resistance temperature detectors, which require external excitation voltages or currents.
The main tasks performed by signal conditioning are as follows: Filtering, Amplification,
Linearisation, Isolation, Excitation.
PC
The PC used in a data acquisition system can greatly affect the speeds at which data can
be continuously and accurately acquired, processed, and stored for a particular application.
Where high-speed data acquisition is performed with a plug-in expansion board, the throughput
provided by bus architectures, such as the PCI expansion bus, is higher than that delivered by the
standard ISA or EISA expansion bus of the PC.
The particular application, the microprocessor speed, hard-disk access time, disk capacity
and the types of data transfer available, can all have an impact on the speed at which the
computer is able to continuously acquire data. All PCs, for example, are capable of programmed
I/O and interrupt-driven data transfers. The use of Direct Memory Access (DMA), in which
dedicated hardware is used to transfer data directly into the computer’s memory, greatly
increases the system throughput and leaves the computer’s microprocessor free for other tasks.
In normal operation, the data acquired, from a plug-in data acquisition board or other DAQ
hardware (e.g. data logger), is stored directly to system memory. Where the available system
memory exceeds the amount of data to be acquired, data can be transferred to permanent storage,
such as a hard disk, at any time. The speed at which the data is transferred to permanent storage
does not affect the overall throughput of the data acquisition system.
A/D Conversion
A process of converting an analog signal into a digital signal comprises measuring the
amplitude of the analog signal at consistent time intervals and producing a set of signals
representing the measured digital value. The information in the digital signals and the known
time interval enables one to convert the digital signal back to the analog signal. Analog to digital
conversion of a continuous input signal normally occurs in two steps: sampling and quantisation.
The sampler takes a time-varying analog input signal and converts it to a fixed voltage, current,
electrical charge, or other output level. The quantiser takes the constant sampled level and
compares it to the closest level from a discrete range of values called quantisation levels.
D/A Conversion
A digital-to-analog converter, or simply DAC, is a semiconductor device that is used to
convert a digital code into an analog signal. Digital-to-analog conversion is the primary means
by which digital equipment such as computer-based systems are able to translate digital data into
real-world signals that are more understandable to or useable by humans, such as music, speech,
pictures, video, and the like.
Display devices
After collecting information about the state of some process, the next consideration is
how to present it in a form where it can be readily used and analysed. Standards of good practice
for presenting data in either graphical or tabular form are covered, using either paper or a
computer monitor screen as the display medium.
Example: Recorders, CRT
Advantages
Reduced data redundancy
Reduced updating errors and increased consistency
Greater data integrity and independence from applications programs
Improved data access to users through use of host and query languages
Improved data security
Reduced data entry, storage, and retrieval costs
Facilitated development of new applications program
Disadvantages
Database systems are complex, difficult, and time-consuming to design
Substantial hardware and software start-up costs
Damage to database affects virtually all applications programs
Extensive conversion costs in moving form a file-based system to a database system
Initial training required for all programmers and users
1. Explain DC motor?
A DC motor has coils of wire mounted in slots on a cylinder of ferromagnetic material, this
being termed the armature. The armature is mounted on bearings and is free to rotate. It is
mounted in the magnetic field produced by permanent magnets or current passing through coils
of wire, these being termed the field coils. When a current passes through the armature coil,
forces act on the coil and result in rotation. Brushes and a commutator are used to reverse the
current through the coil every half rotation and so keep the coil rotating. The speed of rotation
can be changed by changing the size of the current to the armature coil. However, because fixed
voltage supplies are generally used as the input to the coils, the required variable current is often
obtained by an electronic circuit. This can control the average value of the voltage, and hence
current, by varying the time for which the constant DC voltage is switched on. The term pulse
width modulation (PWM) is used since the width of the voltage pulses is used to control the
average DC voltage applied to the armature. A PLC might thus control the speed of rotation of a
motor by controlling the electronic circuit used to control the width of the voltage pulses.
2. Explain which form of logic gate system is given by a ladder diagram with a rung
having two normally open sets of contacts in parallel? (Explain AND gate?)
Figure (a) shows a situation where an output is not energized unless two, normally open,
switches are both closed. Switch A and switch B have both to be closed, which thus gives an
AND logic situation. We can think of this as representing a control system with two inputs A and
B (Figure (b)). Only when A and B are both on is there an output. Thus if we use 1 to indicate an
on signal and 0 to represent an off signal, then for there to be a 1 output we must have A and B
both 1. Such an operation is said to be controlled by a logic gate and the relationship between the
inputs to a logic gate and the outputs is tabulated in a form known as a truth table.
3. Explain which form of logic gate system is given by a ladder diagram with a rung
having two normally closed gates in parallel? (Explain OR gate?)
Figure (a) shows an electrical circuit where an output is energized when switch A or B, both
normally open, are closed. This describes an OR logic gate (Figure (b)) in that input A or input B
must be on for there to be an output. The truth table is:
Figure (a) shows an OR logic gate system on a ladder diagram, Figure (b) showing an equivalent
alternative way of drawing the same diagram. The ladder diagram starts with | |, normally open
contacts labelled input A, to represent switch A and in parallel with it | |, normally open contacts
labelled input B, to represent switch B. Either input A or input B have to be closed for the output
to be energized (Figure (c)). The line then terminates with O to represent the output. In general:
Alternative paths provided by vertical paths from the main rung of a ladder diagram, i.e. paths in
parallel, represent logical OR operations.
4. Explain which form of logic gate system is given by a ladder diagram with a rung
having two normally open gates in series? (Explain NAND gate?)
Suppose we follow an AND gate with a NOT gate (Figure (a)). The consequence of having the
NOT gate is to invert all the outputs from the AND gate. An alternative, which gives exactly the
same results, is to put a NOT gate on each input and then follow that with OR (Figure (b)). The
same truth table occurs, namely:
Both the inputs A and B have to be 0 for there to be a 1 output. There is an output when input A
and input B are not 1. The combination of these gates is termed a NAND gate.
5. Explain which form of logic gate system is given by a ladder diagram with a rung
having two normally closed gates in series? (Explain NOR gate?)
Suppose we follow an OR gate by a NOT gate (Figure (a)). The consequence of having the NOT
gate is to invert the outputs of the OR gate. An alternative, which gives exactly the same results,
is to put a NOT gate on each input and then an AND gate for the resulting inverted inputs
(Figure (b)). The following is the resulting truth table:
The combination of OR and NOT gates is termed a NOR gate. There is an output when neither
input A or input B is 1. Figure shows a ladder diagram of a NOR system. When input A and
input B are both not activated, there is a 1 output.
6. Explain SCADA?
----------------------------------------------------------------------------------------------------------------
Part-B
If we wanted to describe a traffic lamp sequence, one way we could do this would be to
represent it as a sequence of functions or states such as red light state and green light state and
the inputs and outputs to each state. Figure illustrates this. State 0 has an input which is triggered
after the green light has been on for 1 minute and an output of red light on. State 1 has an input
which is triggered after the red light has been on for 1 minute and an output of green light on.
2. Design a PLC Ladder for Automatic water filling in tank.
This is one of the important application of PLC in the bottle filling industry where we want our
bottles, which are moving on the conveyor belt, to be automatically detected at the appropriate
position and get it filled by any desired liquid and also after getting filled the queued bottle gets
chance to be filled. If this whole process is carried out manually it will really take a long time
and also the quantities will be quite lesser. So PLC becomes requisite controller for these types
of industry.
Here also just a small demonstration of the process was performed with the help of PLC where a
ladder diagram was created to control the process and the ladder diagram was run the PLC
trainer kit to see its justification.
Objective:- We will implement a control program that detects the position of a bottle via a limit
switch then waits for 0.5 secs, and then fills the bottle until a photo detector detects the filled
condition of the bottle. After the bottle is filled, the buzzer sounds and the control program will
again wait for 0.7 secs. Before moving to the next bottle .Until the limit switch signals, the feed
motor, M1 runs while there are fixed rollers which carries the filled bottles. Motor, M2 keeps
running after the process has been started.
4. Design a PLC Ladder for automatic controlling the Conveyor belt.
Consider a conveyor belt that is to be used to transport goods from a loading machine to a
packaging area (Figure). When an item is loaded onto the conveyor belt, a contact switch might
be used to indicate that the item is on the belt and start the conveyor motor. The motor then has
to keep running until the item reaches the far end of the conveyor and falls off into the
packaging area. When it does this, a switch might be activated which has the effect of switching
off the conveyor motor. The motor is then to remain off until the next item is loaded onto the
belt. Thus the inputs to a PLC controlling the conveyor are from two switches and the output is
to a motor.
Conveyor
6. Explain the basic components of data acquisition system with neat diagram.
COURSE MATERIAL
System redundancy:
DCS facilitates system availability when needed by redundant feature at every level.
Resuming of the steady state operation after any outages, whether planned or unplanned is
somewhat better compared to other automation control devices. Redundancy raises the system
reliability by maintaining system operation continuously even in some abnormalities while
system is in operation.
Scalable platform:
Structure of DCS can be scalable based on the number I/O’s from small to large server
system by adding more number of clients and servers in communication system and also by
adding more I/O modules in distributed controllers.
System security:
Access to control various processes leads to plant safety. DCS design offers perfect
secured system to handle system functions for better factory automation control. Security is also
provided at different levels such as engineer level, entrepreneur level, operator level, etc.
OPERATOR INTERFACES
The control and communication equipment performs the bulk of the automated functions
that are required for operating an industrial process For this automated equipment to be used in a
safe and effective manner, however, it is absolutely necessary to have a well-engineered human
interface system to permit error-free interactions between the humans and the automated system
Two distinct groups of plant personnel interact with the control system on a regular basis
Instrumentation and control system engineers—These people are responsible for setting up the
control system initially and adjusting and maintaining it from time to time afterwards Plant
operators—These people are responsible for monitoring, supervising, and running the process
through the control system during startup, operation, and shutdown conditions As the generalized
distributed control system architecture, a human interface capability can be provided at one or
both of two levels Through a low-level human interface (LLHI) connected directly to the local
control unit or data input/output unit (DI/OU) via dedicated cabling, Through a high-level human
interface (HLHI) connected to an LCU .or DI/OU only through the shared communications
facility. The low-level human interface equipment used in distributed control systems usually
resembles the panelboard instrumentation (stations, indicators, and recorders) and tuning devices
used in conventional electric analog control systems. The HLHI equipment makes maximum use
of the latest display technology (e.g., CRTs or flat-panel displays) and peripheral devices (e.g.,
printers and magnetic storage) that are available on the market; it is configured in a console
arrangement that allows operator and engineer to be seated during use. When it is included in the
system configuration, the LLHI generally is located geographically close to (within 100—200
feet of) the LCU or DI/OU to which it is connected On the other hand, the HLHI can be located
anywhere in the plant, including the central control room. The needs of the application will
determine whether the particular installation has one or both levels of interface Figures shows
some examples of typical installations and their corresponding equipment configurations. Figure
5.1 illustrates a relatively small and simple installation A single LCU located in the plant
equipment room (sometimes called the relay room) performs all of the required control functions
Low-level human interface units located in the equipment room and the plant control room
provide the complete operator and instrument engineer interface for the control system This type
of equipment configuration is typical of d stand- alone control system for a small process or of a
small digital control system installed in a plant controlled primarily with conventional electrical
analog or pneumatic equipment
Figure shows a typical structure of a complete plantwide control system Several LCUs
are used to implement the functions required in controlling the process, therefore, the control is
functionally distributed However, the LCUs are all located in a central equipment room area, and
so it is not a geographically distributed control system Both high-level and low-level human
interface devices are located in the control room area for operational purposes Most of the
operator control functions are performed using the high-level interface, the low-level interface is
included in the configuration primarily to serve as a backup in case the high-level interface fails
A high evel human interface is located in the instrument engineer’s area so that control system
monitoring and analysis can be done without disturbing plant operations This type of installation
is typical of early distributed control system configurations in which equipment location and
operator interface design followed conventional practices
Figure shows a fully distributed control system configuration In this case, each LCU is
located in the plant area closest to the portion of the process that it controls Associated low-level
human interface equipment (if provided) is also located in this area The control room and
instrument engineering areas contain high-level human interface units, which are used to perform
all of the primary operational and engineering functions The low-level units are used only as
manual backup controls in case the high-level equipment fails or needs maintenance This
configuration takes advantage of two areas of equipment savings that result from a totally
distributed system
Architecture, reduction in control room size (by eliminating panelboard equipment), and
reduction in field wiring costs (by placing LCUs near the process).
OPERATOR INTERFACE REQUIREMENTS
Despite the continuing trend toward increased automation in process control and less
reliance on the operator, the basic responsibilities of the operator have remained largely the same
in the last fifty years. Most of the changes have come in the relative emphasis on the various
operator functions and the means provided to accomplish them. As a result, the operator interface
in a distributed control system must allow the operator to perform tasks in the following
traditional areas of responsibility process monitoring, process control, process diagnostics, and
process record keeping. In addition, it is important to design the operator interface system using
human factors design principles (also called ergonomics) to ensure that the operator can perform
these tasks in an effective manner with minimum risk of confusion or error. The following
paragraphs provide a discussion of the key functional requirements in each of these areas
Process Monitoring
A basic function of the operator interface system is to allow operator (whether one or
more) to observe and monitor the current state of the process this function includes the following
specific requirements.
The current values of all process variables of interest in the system must be available for
the operator to view at any time This includes both continuous process variables (e g , flows,
temperatures, and pressures) and logical process variables (e g , pump on/off status and switch
positions) The operator must have rapid access to any variable, and the values displayed must be
accurate and current If the information provided is not valid for some reason (e g , a sensor has
failed or has been taken out of service for maintenance), this condition should be readily visible
to the operator.
Each process variable, rather than being identified by a hardware address only, must be
identifiable by a “tag” or name assigned by the instrument engineer, a descriptor that expands on
and describes the tagged variable must be associated with the tag The tag and descriptor give the
variable a meaning relative to the process, an example might be to label a certain temperature
with a tag of TT075B and a corresponding descriptor “COLUMN TEMPERATURE 75 IN
AREA B.”
The value of the process variable must be in engineering units that are meaningful to the
operator, and those units must be displayed along with the variable values. In the temperature
example just given, the engineering units might be in degrees Fahrenheit or Celsius.
In many cases, the operator is interested in variables that are functions of or combinations
of the basic process variables being measured (e.g. an average of several temperatures, a
maximum of several flows, or a computed enthalpy). The operator must have these computed
variables available at all times in the same formats as the basic variables (i e, tags, descriptors,
and engineering units).
Another monitoring function of the operator interface is to detect abnormalities in the state of the
process and to report them to the operator. In its simplest form, this is the familiar function of
alarming. Some of the specific requirements of this function are the following:
The control and computing hardware in the distributed system identifies the alarm
statuses of individual variables in the process. The operator interface system must report these
statuses to the operator in a clear manner Types of alarms for each variable—such as high, low,
and deviation (from a nominal value)—must be differentiated clearly True alarms must be
differentiated from indications of process equipment status that do not denote an abnormal
condition requiring operator action.
The operator interface must also report similar alarm statuses for computed variables 3
the operator interface must either display the alarm limits along with the process variable or
make them easily accessible to the operator.
When the system has detected an alarm condition, the interface must alert the operator to
this condition in unambiguous terms and require the operator to acknowledge the existence of the
alarm.
If the system detects multiple alarm conditions within a short time period, the operator
interface must inform the operator that multiple alarms have occurred, preferably with some
indication of the priority of the various alarm conditions.
In some processes, “abnormal operation” can be detected only by looking at a
combination of several process variables and noting if this combination is within an allowable
region of operation In this case, the operator interface system must provide an appropriate
mechanism to allow the operator to view this multivariable alarm status condition and interpret it
properly.
When monitoring the process, an operator is interested in not only the current value of a
process variable but also its trend in time. This gives the operator an idea of the direction in
which the process is moving and whether or not there is trouble ahead. For this reason, the
operator interface system must provide the operator with fast access to the recent history of
selected process variables in the plant; these variables are called trended variables. Some specific
requirements in trending are that:
It must be possible to group the trended variables by related process function as well as
by similarities in time scale of interest. For example, it might make sense to group all
temperatures that are associated with a particular portion of the process.
The trend graph must clearly label the engineering units, time increments, and absolute
time of day of the trended variables.
The operator must be able to obtain a precise reading (in engineering units) of both the
current value as well as past values of the trended variable.
If at all possible, the same graph displaying the trend should also show auxiliary
information that would help the operator evaluate the status of the trended variable. This
information might include the nominal value of the variable, the set point of the associated
control loop, the allowed range of the variable, or the allowed rate of change.
Process Control
The process monitoring capabilities just described provide the necessary information for
the operator’s primary function— process control. The following specific operator interface
requirements come under the category of process control
The operator interface must allow the operator to have rapid access to all of the
continuous control loops and logic sequences in the process control system.
For each continuous control loop, the interface must allow the operator to perform all of
the normal control functions changing control modes (e g , automatic, manual, or cascade),
changing control outputs in manual mode, changing set points in automatic mode, and
monitoring the results of these actions.
The interface must allow the operator to perform such logic control operations as starting
and stopping pumps or opening and closing valves. If interlocking logic is included in these
operations, the interface must allow the operator to observe the status of the most recently
requested command, the current logic state of the process, and the status of any permissives
(interlocking signals) that may be preventing execution of the requested command.
In the case of a batch control sequence, the operator interface must allow the operator to
observe the current status of the sequence and to interact with it to initiate new steps or halt the
sequence, as required.
In both the continuous and sequential control cases, the interface system must allow the
operator to have access to and be able to manipulate the control outputs despite any singlepoint
failure in the equipment between the operator interface and the control outputs.
Process Diagnostics
Monitoring and controlling the process under normal operating conditions are relatively
simple functions compared to operation under abnormal or hazardous conditions caused by
failures in plant equipment or in the instrumentation and control system. The operator interface
system must provide enough information during these unusual conditions to allow the operator to
identify the equipment causing the problem, take measures to correct it, and move the process
back to its normal operating state. The first step in this sequence is to determine whether it is the
instrumentation and control equipment that is causing the problem To this end, the distributed
control system should provide the following diagnostic features and make the results of the
diagnostic tests available to the operator.
Ongoing tests and reasonableness checks on the sensors and analyzers that measure the
process variables of interest.
Ongoing self-tests on the components and modules within the distributed control system
itself controllers, communication elements, computing devices, and the human interface
equipment itself. Historically, diagnosing problems within the process itself has been a manual
function left to the operator. Operator interface systems have been designed to display all of the
available process information (both relevant and irrelevant), and the operator has had to sort it all
out and come up with the right diagnosis. This was not a bad approach when the operator had to
contend with small processes, those characterized by only a few hundred process variables. More
recently, however, processes have grown to such a size that describing them takes 5,000—
10,000 process variables (many of which may be strongly interacting). It has become extremely
difficult for an operator to identify the source and nature of a fault in an item of process
equipment in this environment. A conventional alarming system, for example, may indicate the
most immediate failure symptom but provide few clues as to the original source of the alarm
condition. As a result, diagnostic functions that automatically detect process faults are now often
required in distributed control systems. These functions may include:
First-out alarming functions, which tell the operator which alarm in a sequence occurred
first,
Priority alarming functions, which rank the current alarms by their importance to process
operation, allowing the operator to safely ignore the less important ones, at least temporarily,
More advanced diagnostic functions that use a combination of alarming information and
data on process variables to identify the item of failed process equipment and (in some cases) the
mode of failure.
Many of these advanced alarming and diagnostic functions are application- oriented ones that the
designer must configure for the specific process of interest, however, the distributed control
system must support the implementation of these functions.
One of the more tedious duties that operating people in a process plant must perform has
been to walk the board, that is, to take a pencil and clipboard and periodically note and record the
current values of all process variables in the plant Depending on the pro- cess, the frequency for
doing this has ranged from once an hour to once every several hours This logged information,
along with the trend recordings obtained automatically, serves as a useful record of plant
operating status during each shift The record-keeping burden has increased significantly in recent
years due (in part, at least) to governmental reporting requirements related to pollution
monitoring, product liability, and worker safety regulations. Record-keeping was one of the first
functions to be automated using conventional computer systems In state-of-the-art distributed
control systems, this function often can be implemented in the operator interface system without
the use of a separate computer Specific record-keeping requirements include the following
Recording of short-term trending information—to record in real time mode.
Manual input of process data—the operator must be able to enter manually collected
process information into the system for record- keeping purposes. This information includes both
numeric data and operator notes and journal entries.
Recording of alarms—these are logged on a printer, a data storage device, or both, as
they occur. Often, the return-to-normal status and operator acknowledgments must also be
logged. The information recorded includes the tag name of the process variable, the time of
alarm, and the type of alarm (high, low, or deviation). There must also be a mechanism that
allows convenient review of the alarm in- formation.
Periodic records of process variable information—The values of selected variables are
logged on a printer, data storage device, or both, on a periodic basis every few minutes or every
hour, depending on the dynamics of the variable The operator or instrument engineer may decide
to store an averaged value Over the sampling period in- stead of the instantaneous value.
Long-term storage and retrieval of information—the alarms and periodic logs as
described above are accessible for short periods of time, commonly, for a single eight-hour shift
or a single day. In addition, the same information, or a smoothed or filtered version of it, must be
stored on a long-term basis (months or years). The system must include a mechanism for easy
retrieval or ‘‘instant replay’‘ of such information
Recording of operator control actions—Some process plants require the actions of the
operator affecting control of the process to be recorded automatically These include changes in
control mode, set point, manual output, or logic command Clearly this recording function must
be implemented in such a way that the operator cannot deactivate it.
Guidelines for Human Factors Design
In the past, equipment used for operator interfacing has often been designed more for the
convenience of the equipment vendor or architect-engineer than for ease of use by the operator
In recent years, it has become clear that a small investment made in the proper design of human
interfacing equipment pays handsome dividends fever operator errors (which can cause plant
downtime or damage to equipment), less operator fatigue (which can cause a loss in
productivity), and more efficient use of operating personnel. Some general design guidelines for
designing operator interface systems for industrial control include the following:
Consider the full range of expected operator population (e.g. , male and female, large and
small, right-handers and left-handers).
Take into account common minor disabilities in operators (e.g., color blindness and
nearsightedness).
Design the system for operators, not for computer programmers or engineers.
Allow rapid access to all necessary controls and displays
Arrange equipment and displays to make sense from an operational point of view, cluster
with respect to process unit, functional operation, or both
Make consistent use of colors, symbols, labels, and positions to minimize operator
confusion
Do not flood the operator with a lot of parallel information that is not structured in any
way, the information should be prioritized, organized in a meaningful manner, and reported only
when it changes significantly
Ensure that the operator’s short-term memory is not overtaxed when performing a
complex sequence of operations provide aids such as operator guides, menus, prompts, or
interactive sequences for assistance in these operations These aids are particularly important in
stressful situations, during which short-term memory is not a reliable source of operating
information
As much as possible, design the system to detect and filter out erroneous operator inputs,
when an error occurs, the system must tell the operator what the input error was and what to do
next
Make sure the control room environment (e g, light, sound levels, and layout) is
consistent with the selection and design of the control room equipment In some respects, these
guidelines may only seem to state obvious, common-sense design principles, however, a glance
at existing operator interface designs shows that these principles are very often violated, either
for design expediency or through ignorance of these ergonomic issues.
Figure illustrates a control station for a logic control or sequential control system. It
consists simply of a set of pushbuttons and indicating lights that are assigned different meanings
(through labels) depending on the logic functions being implemented. This type of station is used
to turn pumps on and off, start automatic sequences, or provide permissives or other operator
inputs to the logic system. In some systems, the logic control station performs a manual backup
function similar to that performed by the continuous control station in case of a failure of an
LCU. More often, however, the logic station acts simply as a low-cost operator interface; if the
LCU fails, the logic outputs revert to their default or safe states. Smart Annunciators Alarm
annunciators in distributed control systems are often microprocessor-based, providing a level of
functionality beyond the capability of conventional hard-wired annunciator systems. These smart
annunciators can provide such functions as: Alarm prioritization—The annunciator differentiates
between status annunciation and true alarms (and how critical the alarms are); Annunciation and
acknowledgment mode options—The operator receives a variety of audible and visible alarm
annunciation signals (e g, horns, buzzers, flashing lights, and voice messages) A range of alarm
acknowledgment and silencing modes also can be provided. First-out annunciation—the
annunciator displays the first alarm that appears within a selected group. Alarm “cutout”—the
annunciator suppresses an alarm condition if other specified status conditions are fulfilled. The
last function is valuable in minimizing meaningless ‘‘nuisance ’‘alarms. For example, if a pump
fails and triggers an alarm, the pump-failed status signal can be used to lock out other related
alarms such as ‘‘low flow’‘ or ‘‘pump speed low,” since they are not meaningful given the failed
operating status of the pump of course, the four alarm logic functions previously listed also can
be accomplished within the LCUs in the distributed system itself; however, in some applications
it may be convenient to incorporate the functions externally in the annunciators.
Chart Recorders
Although conventional round chart or strip chart recorders are often used to record
process variables in a distributed control system, digital recorders which use microprocessors are
becoming more cost-effective and popular The digital recorder gathers trend data in its memory
and displays the data to the operator using a liquid crystal panel or other flat display device For
hard-copy output, the recorder uses an impact- or heat-type of printing mechanism instead of
pen-and-ink to record the information. In some models, the recorder draws the chart scales as it
is recording, so that plain paper instead of chart paper can be used. The recorder often provides
such functions as automatically labeling time and range of variable directly on the chart, using
alphabetic or numeric characters. Also, each process variable can he recorded using a different
symbol or color to allow the operator to distinguish between the variables easily. Because of the
flexibility of the printing mechanism and the memory capabilities of the recorder, intermittent
printing of the process variables can supplement the display output without losing any of the
stored information.
Architectural Alternatives
All high-level operator interface units in distributed control systems are composed of
similar elements operator display, keyboard or other input device, main processor and memory,
disk memory storage, interface to the shar4d communication facility; and hard-copy devices and
other peripherals. However, the architectures of the various HLOIs on the market vary
significantly depending on the way in which these common elements are structured.
Figure shows architecture used in computer-based control systems and early distributed
systems. In this architecture, there is a single central processing unit (and associated random-
access memory) that performs all of the calculations, database management and transfer
operations, and CRT-and-keyboard interfacing functions for the entire HLOI system. A separate
communications controller interfaces the central processor with the shared communications
facility. There are several advantages to this configuration. First, there is a single database of
plant information that is updated from the communication system As a result, each of the CRTs
has access to any of the control loops or data points in the system This is desirable, since it
means that the CRTs are all redundant and can be used to back each other up in case of a failure.
Other advantage is that the peripherals can be shared and need not be dedicated to any particular
CRT/keyboard combination.
This can reduce the number of peripherals required in some situations. The disadvantages
of this configuration are similar to those of all centralized computer system. It is an “all eggs in
one basket” configuration, and so is vulnerable to single-point failures. In some cases, redundant
elements can be provided; but this approach can lead to complex peripheral-switching and
memory-sharing implementations. Any single-processor, single-memory configuration has
limitations on the number of loops and data points it can handle before its throughput or memory
capacity runs out. In many operator interface systems of this type, the display response times are
long and the size of system that can be handled is severely limited. The centralized architecture
is not easily scalable for cost-effectiveness: if it is designed properly to handle large systems, it
may be too expensive for small ones.
Because of these limitations, most distributed control systems use a decentralized HLOI
design. That is, several HLOI units provide the operator interface for the entire system. In this
context, an HLOI unit refers to a single element or node that makes use of the shared
communication facility. Each unit may include one or more CRTs, keyboards, or penpherals
such as printers or disk memories. When the operator interface is distributed in this manner, the
issue arises of how to partition the responsibilities of each unit to cover the entire process
Usually, each unit is designed to be cost-effective when monitoring and controlling a relatively
small process (say, 400 control loops and 1 ,000 data acquisition points) However, this means
that several of these units must be used to monitor and control a larger process (say, 2,000
control loops and 5,000 data acquisition points) For example, five units of the capacity indicated
(400 loops and I ,000 points) could just cover the 2,000—loop system In this case, however, if
one of the control units failed, the operator interface for one—fifth of the process would be lost
To avoid this situation, the HLOI units usually are configured for significant overlap in the
portions of the process each unit covers.
.
Fig. Overlap in HLOI Scope of control
Figure illustrates a two—to—one overlap configuration, in which three HLOI units
control and monitor a 600—loop process With this approach, the loss of any single HLOI unit
does not affect the capability of the operator interface system to control the process Overlap
obviously is not an issue if each HLOI is designed to be large enough to accommodate all of the
points in an installation (say, 5,000 to 10,000 points) This design approach results in a more
expensive version of an HLOI than one designed to handle a smaller number of points. How
ever, in this case each HLOI unit is capable of backing up any other unit in the system. The first
versions of distributed HLOI systems introduced to the marketplace had a relatively fixed
configuration of elements, such as that shown below.
That is, a single HLOI unit consisted of a communications controller, main processor,
CRT and keyboard, and associated mass storage. The only option for the user was whether to
include a printer or other hard-copy device Because of this fixed configuration of elements, the
scope of control and data acquisition of the HLOI unit also was fixed. Later versions of HLOI
units have been designed to be modular the user can buy the base configuration at minimum cost
or expand it to handle a larger number of control loops and data points. Figure shows one
example of a modular HLOI configuration.
Fig. Modular HLOI configuration
The base set of hardware in this case is a communications controller, main processor,
single CRT and keyboard, and mass storage unit. However, the system is designed to
accommodate optional hardware such as: One or more additional CRTs to allow monitoring of a
portion of the process (for example) while the primary CRT is being used for control purposes.
Additional keyboards for configuration or backup purposes. Hard-copy devices such as printers
or CRT screen copiers. Additional mass storage devices for long—term data storage and retrieval
Interfaces to trend recorders, voice alarm systems, or other external hardware Interface ports to
any special communication systems such as back- door networks to other HLOI units or
diagnostic equipment Backups to critical HLOI elements such as the main processor,
communications controller, or shared memory The modular approach to HLOI unit design
significantly improves configuration flexibility The user can select the base configuration for
small applications and add the optional hardware as the user sees fit Of course, the performance
of the main processor and other hardware must be ad- equate to provide the display update and
response capability required, even with the maximum size hardware configuration. 5.3.1
Hardware Elements in the Operator Interface since the HLOI system is based on digital
technology, many of the hard- ware elements that go into the system are similar to those used in
other portions of the distributed control system (e g, the microprocessors and the memory and
communications components). However, the performance requirements of the HLOI place
special demands on its elements; also, the on-line human interface functions performed by the
HLOI require display and input hardware that is unique to this subsystem. Microprocessor and
Memory Components.
The high-level operator interface is the most complex subsystem in the distributed control
hierarchy As a result, the microprocessors used in its implementation must be faster and more
powerful than microprocessors used elsewhere in the distributed system.
The microprocessor hardware selected for use in the HLOI in commercially available
systems tends to have the following characteristics : It uses one or more standard 16- or 32-bit
microprocessors available from multiple vendors; these are not single-sourced special
components Its processors are members of a family of standard processors and related support
chips It is designed to operate in a multiprocessor configuration, using a standard bus for
communication between processors and an efficient real-time operating s stem as an environment
for application software. The last characteristic is important, since to accomplish the desired
computing and data control functions at the speeds required by the real-time operating
environment, most HLOI configurations must use multiple processors. The HLOI requires the
same types of semiconductor memory devices as used in the LCUs and the shared
communications facility RAM for temporary storage of changing data (e g , current values of
process variables), ROM for storage of predetermined, unchanging information (e g standard
display formats and computational algorithms), and nonvolatile, alterable memory for storage of
data that changes only infrequently (e g custom graphic display formats).
The main differences between the memory requirements for the HLOI and those for the
LCU are that the HLOI requires shorter access times and greater amounts of memory to meet its
high performance and large data storage requirements.
The primary function of the HLOI subsystem is to allow communications between the
operator and the automatic portions of the distributed control system. Therefore, the particular
data input and output devices selected are vital to the usability of the system and its acceptance
by operating personnel. A great variety of operator input devices have been considered for use in
industrial control systems: Keyboard—There are two kinds of keyboard in use: the conventional
electric typewriter type and the flat-panel type; Light pen—This device allows a person to ‘‘draw
’‘electronically on a CRT screen. In industrial control systems, the light pen is more often used
by the operator to select among various options displayed on a CRT screen Cursor-movement
devices—these allow the user to move a cursor (position indicator) around on a CRT screen.
Types of devices used include joy sticks (such as those used in video games), track balls
(imbedded in a keyboard), and the “mouse” (a hand-held device that the operator moves around
on a flat surface) Touch screens—There are CRTs with associated hardware that allows the user
to select from menus or to “draw” on the screen by directly pointing with a finger. Voice-input
devices—these devices allow a user to speak directly to the HLOI and be understood. They are
most useful for specific commands such as selecting displays or acknowledging alarms. Many of
these devices were originally developed for use in other applications, such as military or
aerospace systems or in terminals for computers or computer-aided design systems In evaluating
these devices, the designer of an industrial control system must remember that the needs,
background and training of an operator in a process control environment differ substantially from
those of an astronaut, military aviator, or engineer. For example, the use of hand-held devices
such as light pens or mice in industrial applications has been criticized on the grounds that
operators prefer not to use any devices that require a separate operation— removal from or return
to storage—for their use. As a result, the most popular input device technologies in industrial
control systems are keyboards and touch screens. CRTs—this still is the dominant technology in
the area of operator displays, CRTs come in either color or monochrome versions Flat-panel
displays—these include gas plasma, vacuum fluorescent, liquid-crystal, and electroluminescent
displays, most are mono chrome only. Voice-output devices—usually these are used to generate
alarm messages that the operator will hear under selected plant conditions. The messages can be
prerecorded on tape or computer generated by voice synthesizer.
In industrial distributed control systems, the CRT has been and continues to be the
predominant visual display device used in HLOI systems. Some flat-pane1 display devices have
been used in aerospace and military applications; however, in general they have not yet reached
the point of development at which their performance— cost ratio seriously threatens that of the
CRT The main features that differentiate the various CRTs on the market include: 1. Size of
screen; 2 Number of colors available, 3 Resolution of pixels on the screen, 4 Character oriented
versus bit-mapped displays.
Peripherals:
In addition to the processing, memory, input, and display devices required to perform the
basic operator interface functions, the HLOI configuration must include the following additional
peripheral devices to implement the full range of functions: Fixed disk drives—This type of mass
memory uses non removable memory media to store large amounts of information that must be
accessed rapidly (such as standard and graphical display formats) or to provide a location for
temporary storage of historical data. One example of such a memory device is the Winchester
disk, a magnetic memory disk with a capacity in the 5—100 Mbyte range Another is the
read/write optical disk, which is used for even higher density storage (500—1 ,000 Mbytes)
Removable mass memory—This type of mass memory, typified by the floppy disk, uses
removable memory disks for storage of information that is to be downloaded to other elements in
the distributed system (such as control configurations, tuning parameters, and custom programs)
It also can be used for long-term storage of small quantities of historical data, magnetic tape can
be used for large quantities Read-only optical disks, such as those in commercial video
applications, are useful for storage of large amounts of unchanging information, such as text used
in operator guides. Printers and plotters—.At least one printer is required to implement the
logging and alarm recording functions The printer can also pro- vide a hard copy of the CRT
displays, or a separate printer can be dedicated to that function A black-and-white dot matrix
printer is the most prevalent type used, since it can implement either function Pen plotters, ink-
jet printers, or thermal transfer printers can provide full-color hard copies of CRT displays.
Since these devices tend to be slow, it as important that the HLOI be designed so that the
keyboard and CRT are active and available to the operator while the printing or plotting process
is going on.
ENGINEERING INTERFACES
The functions that the plant’s instrument and control system engineer performs are
usually quite different and separate from those that the operator performs. This separation arises
due to standard plant practices or even union contracts, which spell out the responsibilities of
each group of workers. Because of this, many vendors of distributed control systems provide an
engineering interface that is totally independent of the operator interface. Other vendors
recognize that there are many common features and functions that both the operator and
engineering interfaces require. As a result, these vendors combine the functions in a single set of
hardware, but allow the hardware to take on different ‘‘personalities” depending on its current
user. As in the case of the operator interface, vendors normally provide the user a choice between
two levels of engineering interface hardware: Low-level, minimum-function devices that are
inexpensive and justifiable for small systems High-level, full-function devices that are more
powerful (and expensive), but which are needed and justifiable for medium and large sized
distributed control systems.
In the past, defining and setting up a monitoring and control system consisting of
conventional discrete analog and sequential modules has involved a tremendous amount of
engineering labor The instrument engineers had to select and procure the control and data
acquisition modules, mount them in cabinets, and do a significant amount of custom wiring
between modules. Then the engineers had to test and check out the entire system manually prior
to field installation. Similarly, they had to select operator interface instrumentation, mount it in
panel boards, wire it up, and test it. They had to prepare documentation for the entire
configuration of control and operator interface hardware and the corresponding control logic
diagrams, usually from manually generated drawings When errors in the control system were
found, new modules had to be obtained, wiring redone, and documentation laboriously updated.
A small number of general-purpose, microprocessor-based modules have replaced dozens of
dedicated function hardware modules. The use of shared communication links has reduced or
eliminated custom inter module wiring. Control system logic has been expressed in function
block logic diagrams instead of hardware schematics CRT-based operator consoles have
replaced huge panel boards filled with arrays of stations, indicators, annunciators, and recorders
As a result of these simplifications in the architecture of industrial control systems, the process of
engineering such a system has become simpler in a corresponding manner.
However, a significant amount of engineering work is still necessary to put a distributed
control system out into the field Special hardware has been developed as a part of the distributed
control system architecture to make this process as painless as possible. This engineering
interface hardware must perform functions in the following categories
General Requirements
The engineering interfaces in a distributed control system must be designed for the
appropriate class of users of the equipment. These ergonomic requirements and several other
requirements dealing with the specific functions of the engineering interface are as follows:
Access security—the engineering interface defines and modifies the control logic and
tuning parameters (among other items) of the process control system. Therefore, the system must
include a security mechanism to keep unauthorized users from getting access to the system
configuration through the engineering interface.
Cost-effectiveness—the cost to the user of the engineering interface must be small when
compared to the total installed cost of the control system.
Setting up any process control system requires a certain amount of manual work
determining control system requirements, selecting and procuring hardware, physically
assembling the various modules and other elements into cabinets, and connecting external wiring
between transmitters and field termination points in the control cabinets However, the
introduction of distributed control systems has made it possible to automate quite a number of
system configuration functions The degree of automation depends on the level of sophistication
of the engineering interface equipment used. Whatever the level, the engineer must perform the
following system configuration functions (as a minimum) in implementing a distributed process
control system: The engineer must define the addresses of input and output points in the system
with respect to their location in the shared communications facility (e.g. , by identifying the point
number within the module, the module number within the cabinet, and the cabinet number within
the communication hierarchy) This is equivalent to assigning telephone numbers (by area code,.
exchange, and number) to people in a country so that you know where to reach them.
The engineer must define the tag names and associated descriptors that humans will use
to identify certain (not necessarily all) points in the system, and relate these tags to the hardware
addresses. (It is much more convenient for a human to describe a thermocouple input point as
‘‘TT 106—Reflux Temperature ‘‘than as point number 27—5—18.”). The engineer must define
any signal conditioning that needs to be done with the input points in the system: e.g.,
linearization, zero and span shifting, or conversion to engineering units Similar conditioning
functions may need to be defined for control outputs to compensate for non linear control drive
characteristics, for example. The engineer must select, configure, and tune the control and
computational algorithms in the system. Data to enter and verify include PID and other control
algorithms, tuning constants, alarm limits, logic sequences, batch control recipes, and high-level
language statements (e g , in BASIC or FORTRAN) The engineer also must select any auxiliary
functions that the system is to perform on certain points, such as trending, logging, and long-term
data storage and Retrieval . When the implementation of the control and computational
algorithms in item (4) requires transmitting data through the shared communications facility, the
engineer must define the linkages from one element to another.
Documentation Requirements.
Documenting the hardware configuration and functional logic diagrams of an industrial
process control system is one of the most painful and costly aspects of engineering the system. In
conventional control systems, almost all of this documentation is accomplished manually.
Distributed control systems that include engineering interfaces can change this situation
significantly In these systems the instrumentation engineer enters the bulk of the configuration
information through the engineering interface and stores it in a mass data storage facility For this
reason a great potential clearly exists for automating the documentation function This potential
can be realized if the engineering interface meets the following requirements The engineering
interface system must include a hard-copy device such as a printer to support the documentation
function. The documentation system must support both tabular and graphical data formats. The
formats must be adjustable so that the user can adhere to the company’s in-house documentation
conventions.
One of the most difficult tasks of the instrumentation engineer is to keep track of field changes to
the control system. The documentation function in the engineering interface must handle these
changes as well as handle the original engineering design As much as possible, the
documentation process should be automatic, requiring no special actions on the part of the
instrumentation engineer. Experience has shown that documentation will not be done if it is too
much trouble.
Diagnosis of System
The increased intelligence of the individual devices in a distributed control system allows
them to implement self-diagnostic algorithms and report any failures directly to the maintenance
personnel in the plant. The engineering interface unit is one of the key mechanisms by which this
failure information is reported to the instrumentation and control system engineer. The
engineering interface unit can also be a very useful tool in debugging and troubleshooting control
logic. To support the diagnosis of system problems, the engineering interface system must meet
the following requirements:
There must be mechanisms that allow the instrumentation engineer to identify any failed
devices in the system down to the level of repairable elements These include modules, sensors,
power supplies, and communication devices
If a partial failure of an element occurs, there must be a mechanism that allows the
instrumentation engineer to determine the severity and nature of the partial failure in order to
identify the best course of action to solve the problem
There must be mechanisms to expedite troubleshooting of control s stems during initial
checkout as well as during on-line operation These mechanisms must be applicable to
continuous, sequential, and batch control systems
Diagnosis of process problems is not within the scope of the engineering interface
system. This diagnosis is important, but it is an application-oriented function implemented within
the distributed control and computing system itself
System Configuration
When the system provides only an LLEI, the hardware in the system is selected and
configured manually. To simplify this task, most vendors of distributed systems provide a
systems engineering guide or similar document that leads the user in a step-by-step manner
through the hardware configuration procedure
In this situation, the primary purpose of the LLEI Is to provide a tool for configuring the
algorithms in the system controllers (i e , entering control strategies, setting tuning parameters,
selecting alarm limits, and so forth). Some low-level interfaces have a removable mass memory
device (such as a small cassette, diskette drive, or magnetic strip) incorporated in their designs
for storage of control configurations When connected to a power supply, the engineer can then
use the interface to develop and edit control strategies even if the controller itself is not
connected All that is required is that the configuration limitations of the target controller be
stored in the engineering interface device. The availability of mass memory also makes it
possible to download control configurations into the target module from the engineering
interface, or conversely to “upload” the configurations from the controller. This function is very
convenient when it is necessary to install a control configuration in a spare controller used to
replace a failed controller. In general, the LLEI is not designed to support generation and editing
of high-level language programs such as BASIC and FORTRAN. A separate terminal or HLEI is
required to provide this capability.
The distributed control systems that require only a low—level engineering interface
generally are small ones involving a limited number of control loops In this type of system, the
operator interface also is simple, usually consisting of a small number of dedicated panelboard
instrumentation devices (with no shared CRT-based console). Therefore, all configuration of the
operator interface is done manually.
As in the case of all panelboard instrumentation, the connections between the stations and
indicators and the controllers in these small systems are established through the manual process
of hard wiring or cabling. Assigning tags to the control loops and system inputs and labeling the
stations and indicators with these tags and the corresponding engineering units also are manual
operations. These tasks can he very time consuming and prone to error. Also, changes are
difficult to make, since there is a significant lead time involved in procuring the new panelboard
hardware, cabling, and labels needed to implement the changes.
Documentation
In a small system that requires only a low-level engineering interface, the vendor usually
provides the user with very little or no help in automating the process of documenting the
hardware and control configurations All documentation is a manual process, sometimes with the
help of standard forms in the system engineering guide When changes are made to a system of
this type in the field after initial start-up, documenting these changes is a manual process that can
be hazard. It requires great discipline for the user organization to ensure that these field changes
are tracked and identified accurately.
Diagnosis of System Problems
The LLEI, since it is not always connected to the distributed control system and often is
not even located in the control room, provides little help in the way of notifying the operator of
hardware failures in the control system. The operator must rely on the self-diagnostic capabilities
of the distributed equipment itself to detect and make known the failure to the operator. Failures
of this equipment generally are indicated at the control cabinets through alarm lights on the
individual pieces of equipment. The failures are alarmed in the control room either through a
conventional annunciator panel or through indications on the panelboard instrumentation.
However, the LLEI can be very useful in helping the instrumentation and control system
engineer identify the specific location and nature of the failure. For example, the LLEI can
interrogate a controller or other element that has failed; the element, if it still can communicate,
can report on the specific problem that caused the failure through the engineering interface Also,
the instrument engineer can use the LLEI as a digital voltmeter to trace through the control logic
and identify problems. Some LLEIs are equipped with a verify function that allows an automatic
comparison of the actual configuration in the controller with the correct one stored in the
interface’s mass memory. This function can be very helpful in checking out a controller during
initial start-up and in making sure the configuration hasn’t changed after it has been in use in the
field for some time.
HIGH LEVEL ENGINEERING INTERFACES
The high-level engineering interface allows a user to reap the full benefits of the
flexibility and control capabilities of a distributed control system while minimizing the system
engineering costs associated with such a system. The HLEI is implemented in the form of a
CRT-based console, or VDU, similar to the high-level operator interface unit. The internal
architecture of the VDU is modular, using multiple microprocessors. This approach provides a
significant amount of flexibility in accommodating hardware options for engineering purposes
(e.g., special keyboards or printers).
Dual-Console Functions:
In a few distributed systems, the engineering console is a specialized device that is
dedicated to the engineering function. In most offerings, however, the engineering console can
also be used as an operator’s console; a key lock on the console implements the switch between
the two console “personalities The first position permits only operator functions (e.g. , display
selection, control operations such as mode selection and set-point modification., and trend-graph
selection). The second position allows engineering functions (such as control logic configuration,
modification and tuning, and system documentation) as well as operator functions.
Some systems provide a third key-lock position that allows the user to perform tuning
operations but does not allow the user to modify the control logic structure Implementing dual
console ‘personalities” in a single piece of hardware is very cost-effective for the user, since the
engineering functions are needed only during initial system start up and occasionally thereafter
when system modifications are made. During the other periods of time, the hardware is put to
good use as an operator s console. However, the console is always connected to the system and is
conveniently available when engineering functions need to be performed. The incorporation of a
key lock ensures that the system configuration is secure while allowing authorized plant
personnel access to the system.
System Configuration
Because of its computational, display and data storage capabilities, the HLEI can play a major
role in automating the process of configuring a distributed control system. The entire database
that defines the configuration of the hardware, control structures, and computational algorithms
of the distributed system can be stored in the HLEI.
The following information dealing with the system hardware configuration can be entered by
means of an interactive dialog between the engineering interface and the instrument engineer:
Number, type, and location (relative to the shared communications facility) of each
hardware module in the LCUs and DI/OUs in the distributed system;
Definition of each input point (by type and hardware address) in each of the hardware
modules;
Number, type, and location of all operator and engineering consoles in the system;
Number, type, and location of any other devices in the system that communicate using
the shared communications facility (e.g., computer interfaces, and special logging or computing
devices). While the instrumentation engineer enters most of this information manually, the HLEI
can acquire some of the data (such as the addresses and types of devices using the shared
communications facility) automatically. It can do this by means of a sequence of broadcast
messages through the communications facility asking any devices that are listening to identify
themselves and transmit any configuration information that they have When implemented, this
approach can save a substantial amount of the engineer’ s time and effort and cut down
dramatically on the number of configuration errors introduced.
In either case, once this information is entered in the system, the engineer uses the HLEI
to make reasonableness and consistency checks on the information, save it on a mass memory
medium, and document it in a printed format. During normal operation, this information is not
used anywhere else in the distributed system. It is saved to document the hardware configuration
installed in the plant for the instrument engineers’ use and for downloading in case of hardware
failure and replacement.
The additional functions that configuration storage allows include the following:
The engineer can use the interface to configure the control logics and computational
algorithms without the presence of the target LC1 In this situation, the configurations are stored
directly into the mass memory of the interface. Of course, the interface must be aware of the
limitations of the target LCU (in terms of memory size and co4utational speed, for example) and
ensure that the configurations entered do not exceed these limitations. After storage, the engineer
can then download the configurations at a later time to the LCUs once this hardware becomes
available This feature can dramatically cut the time necessary to deliver a control system, since
the job engineering can begin and the control logics can be configured and stored long before the
actual target hardware is available.
The HLEI can be used to verify that the engineer has correctly entered the control logic
and algorithms into the LCU and that they have not been altered; the HLEI does this by
performing a bulk comparison of the logic in the LCU with that stored in the mass memory Any
mismatches are displayed for the engineer, who can correct them immediately If an LCU or other
element of the system fails, it can be replaced by a new element. The appropriate control and
computational algorithms can then be downloaded from the mass memory to the new or repaired
element. This results in a very short mean time to repair for that element and a minimum
downtime of the function performed by that element.
The engineering interface also should support the uploading of database information from
a hardware device to the interface this capability helps in documenting functions performed by
modules or elements that are removed from service or moved from one control system to
another.
Graphic symbols:
The engineer must define the new graphic symbols to be used in the operator interface
displays Usually, the system vendor supplies a base set of symbols that represent standard items
of process equipment These include symbols for piping, valves, pumps, and so forth The ISA
standard provides a typical list of these symbols However, each user generally has a need to
configure additional symbols that are appropriate to the particular application The symbol library
is expanded to include these new symbols along with the standard ones, they are then also
available for incorporation in the user’s displays.
Static background elements:
These are elements in the display (both graphic and alphanumeric) that do not change
with time These usually include the major items of process equipment, the interconnecting
piping, the equipment labels, and engineering unit identifiers The information required for each
element includes its shape, size, and color
Control stations:
If the graphics display structure supports continuous or sequential control operations (or
both), the engineer must define the controllable elements in the graphic display and label them
with tag numbers, reference numbers, or both. This allows the operator to call up the appropriate
control stations on the graphics display and connect them to these controllable elements
Poke points:
If the operator’s console provides a touch screen input capability, the display
specification will include the definition of poke points or fields that will be sensitive to operator
inputs. As in the case of the dynamic display elements, the engineer must link each poke point to
the corresponding tag that represents a push- button input from the operator.
Documentation:
The high-level engineering interface can provide the user significant benefits in the area
of documentation. After the configuration process has been completed, all information defining
the hardware, control logic, computational algorithms, and displays for the system is stored in
mass memory in the engineering interface. This makes it possible to completely automate the
process of documenting this information in a hard-copy format. Ideally, the intelligence and
printing and plotting hardware in the HLEI should be designed to generate the following
documentation automatically:
Lists of hardware modules in the distributed system, including their location by number
of LCU or DI/OU.
Documentation of the control configuration and associated tuning parameters for each
LCU, in both listing and graphic formats showing the control system structure, listing includes
any high-level language programs or batch control recipes executed in the LCUs.
Listing of the tags in the distributed system, along with the associated tag descriptor
information and the hardware addresses of the physical inputs or module outputs that correspond
to these tags.
Listing of the special operator interface functions that are associated with each tag, such
as trending, logging, and long-term storage and retrieval functions.
Definition of the operator displays in the system, including a drawing of the display
hierarchy, a listing of the displays in the hierarchy, and a printout of the formats of each display.
Diagnosis of System Problems:
Most of the hardware is microprocessor-based and has the intelligence to perform on-line
selfdiagnostics to evaluate its own “health.” When a failure or other problem occurs, this
hardware is aware of it and reports the problem to the higher-level elements in the distributed
system.
Figure shows an example of the highest level of display in this hierarchy This display shows a
map of the nodes or drops on the shared communications facility, these contain the major
hardware elements that exist in the distributed system Any failure in the elements within a node
are reported on this display If a failure or problem is identified at this level the operator or
instrument engineer can call up the next lower level of display to determine the cause of the
problem in the individual module or element within a node Through this method, the user can
trace the failure down to an individual hardware element, which then can be replaced or repaired.
Since the information on failures and problems is available within the distributed system through
this diagnostic hierarchy, it can also be logged on a printer and saved in a long-term data storage
file. This allows the user to accumulate statistics on the rates and modes of failure of the various
pieces of hardware in the distributed system. This information is essential to planning a cost
effective strategy for maintaining a spare-parts inventory and in providing inputs to an overall
program for managing plant maintenance.
IMPORTANT QUESTIONS from UNIT - 5
Part-A
1. What is meant by geographically centralized and geographically distributed control
system?
2. What is functionally distributed control system?
3. What are the responsibilities of a plant operator?
4. Mention the requirement of operator interface.
5. What are the motivations for using LLOI?
6. Mention some of the devices used for LLOI interface.
7. Explain about different types of operator display.
8. Compare LLOI and HLOI. 9. What is a Plant level display?
10. What you mean by area level display?
11. What are the requirements of engineering interface?
12. What is a Low Level Engineering Interface?
13. Mention some of applications of DCS.
14. What is the need of General purpose computer in DCS?
15. Define operator interface.
16. Mansion the significance of computers in Modern control system
17. What are the common input output devices used for interfacing with computers
18. Write the features present in operator level interface
19. Mention the protocol to be used for communication between a PC Drive/operator Pannel.
20. What are the main responsibilities of a Low level operator?
Part-B
1. Explain in detail about operator interfaces and its requirements.
2. Explain in detail about low level operator interfaces.
3. Explain in detail about low and High level operator interfaces in DCS
4. Explain in detail about High level engineering interfaces.
5. Explain in detail about low level engineering interfaces.
6. Explain General purpose computers in DCS.
7. Explain about the operator displays.
8. Mention the adv of low level and high level operator interfaces. Also explain the
importance operator display used in process industry
9. Mention the role of general purpose computer in DCS; also evaluate low level and high
level engineering interfaces
10. What are the different types of displays in DCS? Explain with examples.