Professional Documents
Culture Documents
Control Pid
Control Pid
Industrial Control
Reginald Gonye
JANUARY 2020
Course Outline
General Information
LECTURER Reginald Gonye
ACADEMIC YEAR ………………..
LEVEL Part V
Aim
1. To introduce students to practical control and automation in use today.
2. To instill skills of developing PLC based solutions for control situations into students.
Objectives
By the end of the course, candidates should be able to:
1. Understand the arrangement of typical control and automation systems
2. Understand the operation of a PLC
3. Be able to develop PLC-based solutions for various control situations
4. Be able to design a SCADA or DCS solution.
Course Duration
The course will last for 48 hours (24 lecture periods) made up of formal teaching (32 hours), industrial visits
(6 hours), tutorials (6 hours) and tests (4 hours).
Course Deliverance
1. There will be explanations by the lecturer in class.
2. Tutorials will be conducted for relevant topics.
3. Exercises in class for relevant topics.
4. Compiled lecture notes are available.
Assessment
1. Assessment is made up of continuous assessment contributing 25% to the overall mark and final
assessment contributing 75% to the overall mark.
2. Continuous assessment will consist of tests and assignments (NB: Attendance may also contribute to
the coursework mark).
3. Final assessment will consist of an examination at the end of the semester. The examination shall
comprise of six questions each carrying 25 marks. You will be required to attempt four of the six
questions.
i
Course Content
1. Introduction
1.1. Concepts of control and automation.
1.2. Examples of control and automation systems
2. Sensors and Transducers
2.1. Principles of sensor operation
2.2. Signal conditioning
2.3. Standard signals
2.4. Discrete sensors: plain switches, sourcing, sinking and TTL
2.5. Continuous sensors: characteristics, connection methods
3. Actuators and their Control
3.1. Actuator concepts (motion production, heat production, etc)
3.2. Use of electronic drives to control motors
3.3. Use of hydraulics in actuation equipment and control signals
3.4. Use of pneumatics in actuation equipment and control signals
4. Closed Loop Control
4.1. Characteristics and operation of loop controllers
4.2. Closed loop control configurations: Standalone operation, supervisory control, direct digital control,
distributed control
5. PLCs and control of sequencing systems
5.1. Architecture of a PLC
5.2. Interface modules: types and role of interface modules
5.3. Construction of PLCs: single unit, modular, remote I/O
5.4. Addressing in PLCs: I/O addressing and memory addressing
5.5. Programming methods: ladder, logic blocks, statement list
5.6. Latching, auxiliary relays and sequencing of event steps
6. Design of PLC Solutions
6.1. GRAFCET as a programming aid
6.2. Design of PLC-based solutions
7. SCADA and DCS
7.1. Introduction: what is SCADA, functions of a SCADA system, application areas.
7.2. Components of a SCADA system: field devices, RTUs, PLCs, Communication network, computers
(servers, SCADA database, operator terminals, MMI, SCADA software)
7.3. Distributed Control Systems:
7.4. Communication Protocols: MODBUS, PROFIBUS, DNP
ii
Introduction to Industrial Automation and
Control
Introduction
Definitions
Industry is a systematic economic activity that could be related to manufacture/service/trade.
Automation is a set of technologies that results in operation of machines and systems without
significant human intervention and achieves performance superior to manual operation.
Control is the act of making process variables and operational sequences behave in a particular way
or follow desired patterns of variations.
The main function of control systems is to ensure that outputs follow the set points
Automation systems may have much more functionality, such as computing set points for control
systems, monitoring system performance, plant start up or shut down, job and equipment
scheduling etc. Automation systems may include control systems (as constituent parts) but the
reverse is not true.
1
An example is mixing of raw materials for glass making, a process known as batching:
o Glass is produced from a mix of seven raw materials, sand being one of the major raw
materials. The raw materials are mixed according to certain weight ratios before they are
melted into molten glass.
o Raw materials are stored in respective silos each one of which has a spout arranged to
offload the raw material into a mixer.
o The mixer has ploughs that can be turned to mix the raw materials and rest on load cells to
monitor its weight. Raw materials are added into the mixer in turns whilst the mixer weight
is being monitored.
o Steps for adding a raw material are: note the initial weight, feed raw material into mixer at a
course speed; when close to required weight reduce feed rate to a finer rate; when within
tolerance range of the required weight, stop the feed. Meanwhile the ploughs will be
turning.
o When all raw materials have been added and mixed, the outlet of the mixer is opened to let
out the mix onto a conveyor belt. Weight is monitored throughout until the mixer is
recorded as empty.
o THE BATCHING MACHINE IS BUILT TO AUTOMATICALLY CARRY OUT THIS SEQUENCE OF
STEPS BY FOLLOWING A CERTAIN SEQUENCE OF STATES.
A second example is filling of a bottle for example at Delta Beverages:
o clamp bottle in position:
o open supply valve until 300ml have been delivered
o close supply valve
o release bottle to proceed along the conveyor belt.
o THE FILLING MACHINE IS DESIGNED TO CARRY OUT THIS SEQUENCE OF STEPS BY
FOLLOWING A CERTAIN SEQUENCE OF STATES.
A third example is stacking of crates for drinks:
o Six bottles are counted as they pass a counting point on a conveyor belt after which the six
are lifted and placed in a crate.
o The above step is repeated 4 times after which the crate is transferred out.
o The crate is lifted onto a conveyor belt after which the process repeats.
o THE PACKING MACHINE IS DESIGNED TO CARRY OUT THIS SEQUENCE OF STEPS BY
FOLLOWING A CERTAIN SEQUENCE OF STATES.
2
A final blow mould where the preform is blown into the final glass container product.
Mechanisms to perform the blowing operations, transfer preforms from the initial blow mould into
the final blow mould as well as to transfer the final product from the final blow mould onto a
conveyor belt that takes the product away.
Furnace
Furnace spout
Mechanisms on the
forming machine
3
There is also temperature control of the molten glass so that it is at the level suitable for the forming
stages of the containers.
There might also be some temperature control of the moulds
Sensing devices
Inputs
Outputs
and operator
switches
PLC Actuating devices
Figure 1.2
Fans
4
The zones on the entry side have heater elements so as to heat up the glassware. Zones in the middle have
both heater elements and fans so as to provide a precise temperature control in them. The next zones are in
the region when the glassware is now being cooled down and may have fans only. Zones towards the end
have natural cooling to take the glassware to room temperature.
Fan
Thermocouple
Thermocouple
Automation and IT
Industrial automation makes extensive use of Information Technology
Fig. 1.5 shows some of the major IT areas that are used in the context of Industrial Automation.
5
Figure 1.5
6
Sensors and Signal Conditioning
Introduction
As applied to instrumentation and control, a sensor or transducer is a device that changes a physical quantity
into an electrical quantity.
Voltage
Physical quantity Current
Temperature Sensor Resistance
Light intensity Inductance
Displacement Capacitance
Frequency
Figure 2.1
Typical non-electrical quantities that are transduced into electrical signals are temperature, light intensity,
displacement, weight and speed.
Electrical quantities that are produced by sensors are variations in voltage, current, resistance, inductance,
capacitance or frequency.
A sensor is made from a material that exhibits a particular variation on some electrical property owing to a
change in the physical measurand. Principles that are generally used are:
Change in resistance due to a change in the measurend, e.g., in RTD.
Generation of a voltage or current that depends on the level of the measurand, e.g., in a
thermocouple and a tachogenerator.
Change in capacitance owing to a change of the measurand.
Change in inductance owing to a change of the measurand.
Change of frequency owing to a change in the measurand.
Signal Conditioning
Signals from sensors are often in a form that cannot be directly input into a controller. Signal conditioning is
used transform sensor outputs into signals that can be used by other components in the system. Signal
conditioning involves one or the following as necessary:
Signal type conversion, e.g., resistance to voltage
Amplification
Filtering
Linearizing
Rectification
Attenuation
7
Mainly, operational amplifier circuits are employed as the signal conditioning circuits. A large number of
industrial sensors are built into a unit that contains both the sensing element and the signal conditioning
circuitry.
In general, the signal conditioning applied in sensor units produces output signals that conform to the
standard signal levels.
For discrete components, standard signal levels are 0/24VDC, 0/220VAC, 0/110VDC. For continuous
components, standard signal levels are 4-20mA, 3-15psi, 0-10V, 0-5V.
Characteristics of a sensor
1) Accuracy – the maximum difference between the output of the sensor and the actual value of the
measurand.
2) Resolution – the smallest change in the measurand that the sensor can detect.
3) Repeatability – standard deviation when more than one measurement is made on the same
magnitude of the measurand.
4) Precision – accuracy, resolution and repeatability of a sensor relative to others.
5) Linearity – a linear sensor is one which exhibits a linear relationship between the output and the
input.
6) Range – the limits of the measurand value in which the sensor works.
7) Dynamic response – frequency range of the sensor.
8) Environmental limits – limits of the environmental conditions in which the sensor operates, e.g.,
humidity, temperature.
9) Calibration – an act to determine or set the relationship between the input and the output of a
sensor. Calibration needs to be done at intervals to ensure the sensor is giving correct results.
10) Cost – rises with increasing precision.
Types of sensors
The two types of sensors are discrete sensors and continuous sensors. Discrete sensors give an output that
can assume only two possible levels, e.g., 0/24VDC as output. They are mainly used to detect state of a
process for example:
A production item has reached a desired point
Conveyor belt is moving
A machine arm has reached the extreme end
Examples are simple mechanical switches, limit switches, optical sensors and proximity switches. The
physical phenomena that is generally used includes:
Mechanical – detects objects by physical contact
Inductive proximity – detects magnetic objects
Capacitive proximity – detects dielectric objects
8
Optical presence – detects if a light beam has been broken or has been reflected.
Continuous sensors produce a signal whose magnitude varies with the magnitude of the measurand.
Examples are thermocouple, RTD, tachogenerator and a load cell. Examples of situations where they are
used are in measurement of:
Angular or linear position
Acceleration
Temperature
Pressure
Flow rate
Stress, strain, force
Light intensity
Sound
Plain switch
The sensor unit closes or opens a mechanical contact. In a NO switch, the contacts close when an object is
sensed. In a NC switch, the contacts open when an object is sensed. Connection of a plain switch is shown in
figure 2.2
Figure 2.2
9
For a simple mechanical switch, the switch is connected directly to the power supply so that when it closes it
applies a voltage input to or allows a current to flow into the controller.
Where a mechanical switch forms the output stage, the output contacts are connected in a supply circuit so
as to apply a voltage or current to the controller. The sensing part of the sensor requires a supply connection
as well.
Sourcing/sinking
The sensor unit output stage switches on or off a current signal based on having sensed presence or absence
of the object being sensed. Sinking and sourcing are terms describing the output stage.
A sinking output allows a current to flow into the sensor from a positive terminal. Normally, an NPN
transistor switch is used as the output stage. A sourcing output allows a current flow out of the sensor to a
negative terminal. Normally a PNP transistor switch is used as the output stage. Figure 2.3 illustrates
sourcing and sinking.
In sourcing and sinking, emphasis is on current flow. Use of current flow reduces effects of electrical noise.
10
Both the sensing element and the output stage need a power supply.
The current loop is shown by the dashed line. Opto-couplers inside the controller change the sensor output
into TTL levels for use by the internal circuitry.
The common line acts as both the sensor output and the common line. The sensor requires a small current
to operate. When the sensor is active, more current will flow. The input of the controller allows a small
11
current to flow when the sensor is inactive but is able to detect when the current exceeds a certain
threshold (that indicates the sensor is active).
Figure 2.5
TTL
Sensor gives a 0/5DC output.
Sensors that give TTL outputs need the controller to have a TTL input interface module.
Personal Investigations
Look at the various discrete sensors found in industry. Find out how they operate and are connected to the
controllers or to control circuits. Some sensors to look at are:
Contact switches
Reed switches
Optical (photoelectric) sensors
Capacitive sensors
Inductive sensors
Ultrasonic sensors
Hall effect sensors
Fluid flow sensors
Analog signals are prone to electrical noise. Techniques used to reduce electrical noise are:
Twisted pairs to reduce noise induced by magnetic fields
Shielding to reduce effects of electromagnetic interference
12
Figure 2.6 illustrates connections
Figure 2.6
Personal Investigations
Look at the various continuous sensors found in industry. Find out how they operate and are connected to the
controllers or to control circuits. Some sensors to look at are:
Potentiometers
Encoders
Tachogenerator
Linear variable displacement transformer (LVDT)
Differential transformer
Accelerometer
Strain gauge
Piezoelectric
Liquid and fluid pressure sensors
Venture valves
RTDs
Thermocouples
Thermistors
LDRs
13
Actuators and Actuator Control
Actuators
Actuators are used to bring about changes in the process variable, to effect a process state or to
effect a mechanism in a process. For example, heaters to change temperature of a furnace, hydraulic
cylinder to bring about movement of an arm in a machine.
The following are actuators widely used to effect the final actuation in industry:
Motors
Motors are primarily used to generate rotational motion from which other various types of
mechanical motion can be obtained. They are coupled to a variety of mechanical actuators to bring
about these other required kinds of mechanical actuation.
For rotational motion, e.g. to run conveyor belts, pumps, compressors and mixers, the motor is
generally coupled to a gearbox that changes speed and torque to levels suitable for the final
mechanical actuator. The gearbox is in turn coupled to the final mechanical actuator.
For linear motion, e.g. in machine table motion, the motor is coupled to a ball screw that converts
rotational motion to the linear motion.
For vibratory motion, e.g., in vibro feeders that offload solid materials from silos, the motor shaft is
coupled to an eccentric load (i.e., is offset) so that when it rotates it rocks forth and back bringing
about the vibratory motion.
For cooling applications, the motor is coupled to a cooling fan. A gearbox may be used between the
motor and the fan if necessary.
Heater Elements
They are used to generate heat energy from an electric current.
They are used to heat up materials.
Heat exchangers
Heat exchanges are used to transfer heat energy from one material to the other thereby bring about
heating or cooling of materials.
They are thus used for heating and cooling materials or environments.
A heat exchanger is basically made up of coiled tubes placed in a material or an environment which
it has to exchange heat with.
A fluid is made to flow the tube and this fluid acts as the medium for heat exchange.
As the fluid flows, the heat exchanger allows it to gain heat from or lose heat to the material or
environment in which it is placed.
Fuel Burners
These are used to burn chemical fuels so as to generate heat energy from them.
Gas burners, liquid fuel burners and solid fuel burners are in this category.
Coal is frequently used to generate steam, i.e., transfer heat energy from coal to steam. This is done
in a boiler. In this case, the heat generated from the coal is used to boil water in a boiler so as to
generate steam, which can then be used in further processes that require heating.
14
Hydraulic actuators
They use an incompressible liquid to generate forces so as to bring about mechanical forces required
in actuation of equipment. They are mainly used where large forces are required.
Examples of applications are to clamp items and to change positions of machine parts.
Pneumatic actuators
They use compressed air to actuate equipment.
Examples are in blowing processes and operations.
Pneumatic actuators may also be used to actuate other actuators for example hydraulic valves.
Actuator input,
generally power
input
Controller
output / Actuator
Control output to
actuator Actuator
interface process
command
input
(mA)
Figure 3.1
Discrete operation
The actuator is either on or off.
For electrical powered devices (heaters and motors), relays and/or contactors are used to switch on
or off electrical power input into the actuator.
Standard control signal levels are generally used as input control signals to the relays and contactors.
For gas/liquid burners, hydraulic actuators and pneumatic actuators, solenoid valves are used to
allow or block flow of the gas or fluid into the actuator.
Solenoid valves consist of a coil in which current can be passed to move a ferrous core attached to
the valve.
15
Figure 3.2
Continuous operation
The actuator is operated to give a variable output that depends on the input command to the
control interface.
For motors and heater elements, electronic power devices are used to vary electrical power input to
the actuator depending on the input control signal. Motors use devices know as drives (dc drives,
variable speed drives, variable frequency drives). Heaters use devices called thyristor firing cards.
Gas/liquid fuel burners, hydraulics and pneumatics use solenoid valves operated in continuous
mode. A variable input current to the solenoid valve opens the valve to a proportional level. They
thus vary gas flow rate, liquid flow rate or pneumatic pressure into the actuator.
Generally, the input command signal to these control interfaces is a 4-20mA current signal.
Figure 3.3
16
A second example for discrete systems is system to turn on motors in a railway locomotive: a 24V
signal energises a relay; the relay energises a 110V contactor; the 110V relay energises an air
contactor; the air contactor makes or breaks the power circuit to the traction motors.
The last actuator in the set is called the final actuator.
Electronic Drives
An electronic drive is used to modulate the electrical input into electric motors so as to make the
resulting mechanical motion meet particular requirements. Motors are typically required to run at
certain speeds and develop certain torque values so as to meet the requirements of the mechanical
load.
Two common drives used in industry are the variable frequency drive (VFD) and the variable speed
drive (VSD).
VFDs vary the speed of an ac motor by varying the frequency of the power supply to the motor. All
VFDs are used to vary speed of ac motors only.
VSDs vary the speed of motor by varying the voltage of the power supply to the motor. VSDs can be
used to vary speed of both ac and dc motors.
Figure 3.4
The power supply is generally ac. Low power drives may get the ac input as single phase 220V. The
rest of drives use 3-phase ac power supply: medium to low drives get power at 380V; higher ratings
may get power at 3.3kV, 6.6kV or 11kV.
The diode bridge rectifier converts the input ac power input into a dc voltage.
The inverter converts the dc voltage back to 3-phase ac output but at a required voltage, frequency
and current.
The voltage and frequency control receives the reference commands as well as feedback signals
(speed, frequency, voltage, current) and generates the necessary firing signals to the indicator so as
to give ac output to drive the motor at the desired frequency and voltage.
17
Principle of operation of a dc drive
These are drives used to power dc motors.
Are of VSD type only.
Figure 3.5 illustrates operation.
Figure 3.5
18
Programming interface
Communication interface
Hydraulics
Hydraulics is used as one of the prime movers in industry.
A hydraulic system is an enclosed incompressible high density liquid. The liquid is known as the
transmission media. The liquid can be used to generate mechanical forces.
Hydraulics is used where large constant forces are required.
19
Applications of hydraulic systems
The hydraulic systems are mainly used for precise control of larger forces. The main applications of hydraulic
system can be classified in five categories:
Industrial
Plastic processing machineries, steel making and primary metal extraction applications, automated
production lines, machine tool industries, paper industries, loaders, crushes, textile machineries, R & D
equipment and robotic systems etc.
Mobile hydraulics
Tractors, irrigation system, earthmoving equipment, material handling equipment, commercial vehicles,
tunnel boring equipment, rail equipment, building and construction machineries and drilling rigs etc.
Automobiles
It is used in the systems like brakes, shock absorbers, steering system, wind shield, lift and cleaning etc.
Marine applications
It mostly covers ocean going vessels, fishing boats and navel equipment.
Aerospace equipment
There are equipment and systems used for rudder control, landing gear, brakes, flight control and
transmission etc. which are used in airplanes, rockets and spaceships.
Figure 3.7
20
The filter removes unwanted particles from the liquid, e.g. dust particles.
The pressure regulator is used to regulate pressure of the liquid in the system. The pump to build up
pressure indefinitely. However, pressure is required to be below a certain limit to ensure safety of
both equipment and workmen. The pressure regulator achieves this goal. It essentially is a valve that
opens when pressure goes beyond a certain level and then allows oil to return to the tank and ease
the pressure.
The cylinder, piston and output shaft from the hydraulic actuator.
The cylinder allows the liquid pressure to exert a force on the piston so as to produce a motion in
the piston. The cylinder has two ports:
o When liquid flows into port A, the piston moves down. Port B allows the liquid pushed out
from below the piston to return to the tank.
o When liquid flows into port B, the piston moves up. Port B allows the liquid pushed out from
above the piston to return to the tank.
The output shaft is used to transfer the piston motion to the part requiring the motion, e.g., a mould
in plastic injection processes.
The control valve is used to direct the flow of the liquid. In this case:
o Position 1: valve makes the liquid to flow from the pump into port A and the liquid from the
cylinder to flow out from port B to the tank.
o Position 2: valve makes the liquid to flow from the pump into port B and the liquid from the
cylinder to flow out from port A to the tank.
o into the cylinder via port A and the liquid leaving the cylinder to
Accessories
The following accessories may be used to control the operation of the hydraulic system.
Flow control system for the liquid.
Travel limit control for the actuator.
Electric motor starter, control and overload protection.
Cooling of the oil (temperature control). When the liquid circulates in pipes without passing through
the actuator, the high pressure of the liquid causes heat generation. Cooling will be required to
extract this heat away.
Disadvantages
The material of storage tank, piping, cylinder and piston can be corroded with the hydraulic fluid.
Therefore, one must be careful while selecting materials and hydraulic fluid.
The structural weight and size of the system is more which makes it unsuitable for the smaller
instruments.
The small impurities in the hydraulic fluid can permanently damage the complete system, therefore
one should be careful and suitable filter must be installed.
21
The leakage of hydraulic fluid is also a critical issue and suitable prevention method and seals must
be adopted.
The hydraulic fluids, if not disposed properly, can be harmful to the environment.
Control Valves
Control valves are used to control hydraulic outputs (resulting mechanical motions) and ensure safe
operation.
There are basically three types of valves employed in hydraulic systems:
o Directional control valves
o Flow control valves
o Pressure control valves
The port that is connected through to the pump are called pressure (P) port. The port that is
connected to the tank (fluid return) is called the tank (T) port. The ports that are connected to
the actuator are called the actuator or working ports. They are named port A and port B.
The valve would have two or more switching positions. Each position gives a particular direction of
flow of the fluid. A valve with two switching positions is called a 2-position valve; a valve with three
switching positions is called da 3-position valve, e.t.c.
Valve positions are derived from the spool. The spool can be moved to change the ports that are
connected in the valve. The spring allows the spindle to move back when force on the spindle is
eased.
The convention for describing valves is to use a number of the format “SWITCHING
POSITIONS/NUMBER OF PORTS” for example:
o A 3/4 valve has three switching positions and 4 ports
o A 2/4 valve has two switching positions and four ports
22
There are also directional flow valves that are used to allow fluid flow in one direction only. These
ones are not operated from external but are operated by the pressure in the system. They are called
check valves.
Illustration using a 3/4 valve
5 openings but 4 ports because the two tanks ports are common.
A 3/4 valve is used to pressurise and exhaust two working ports alternately.
Neutral Position
Both valve spools not activated. All ports are open to each other.
Fluid can flow from port P to port T. Fluid cannot move actuator to a particular position. Actuator
position floats depending on its loading level.
Figure 3.9
Figure 3.10
23
Figure 3.11
Figure 3.12
Used when there is need to hold the hydraulic actuator in a particular position after shutting off the
P port.
Working ports are closed and the actuator maintains its previous position.
Build up of pressure in the port P chamber, results in the regulator valve causing fluid flow to flow
back into the tank.
24
Flow control valves
Flow control valves are used to regulate the fluid flow rate so as to in turn regulate the speed of the
resulting mechanical motion of the actuator.
The fluid flow is controlled by varying area of the valve opening through which fluid passes.
Figure 3.13
Figure 3.14
25
Pneumatics
Pneumatics use compressed air to bring about mechanical motion.
After use, the air is exhausted into the atmosphere.
Figure 3.15 shows the components of a pneumatic system.
Figure 3.15
Compressor – used to compress air so as to generate pressure. Air compressors may use diesel
engines or electrical motors for primary motion.
Air filters – used to filter out the contaminants from the air.
Air cooler – used to cool the air. During compression operation, air temperature increases, hence the
need to cool it.
Dryer – used to separate vapour and moisture from the air.
Receiver tank – used to store the compressed air. It also smoothens the pressure. Compressors
produce pulsating pressure. It has a pressure relief in case of pressure building beyond safe limits.
Control valves – used to regulate, control and monitor direction flow, pressure etc.
Air Actuator – air cylinders and motors used to obtain the required mechanical movements.
Pneumatic Actuators
The construction of hydraulic and pneumatic linear actuators is similar. However, they differ at their
operating pressure ranges. Typical pressure of hydraulic cylinders is about 100 bar and of pneumatic system
is around 10 bar.
26
Single acting cylinders
They produce work in one direction of motion.
Figure 3.16 illustrates.
Figure 3.16
The compressed air pushes the piston located in the cylindrical barrel causing the desired motion.
The return stroke takes place by the action of a spring.
Figure 3.17
27
The piston divides the cylinder into two chambers namely the rod end side and piston end side.
When the fluid is forced into the piston end, the rod extends. In the process, the rod chamber is
exhausted.
When the fluid is forced into the rod end, the rod extends. In the process, the piston chamber is
exhausted.
End cushioning is also provided to prevent the impact with end caps.
Motors
Air pressure may be used to produce rotation using a pneumatic motor.
Actuators
Pneumatics and hydraulics may be used to actuate other equipment. The pressure is used to provide
motions for actuator control.
28
Industrial Controllers
Introduction
Controllers are devices that are used to provide the control function in process control and in
automation.
A controller basically receives signals from sensors (for process feedback or process state) and
processes these signals into control signals that will be supplied to the actuators.
In addition, a typical controller may also provide the following functions:
o Display of process variables and controller parameters
o Configuration of operation mode (PID terms, SP, alarms etc)
o Communication with other devices or other control equipment
o User interface
Panel keys
(configurations, Display
user commands)
Computer
Communication
Controller link
Sensors
(feedback, Control signals
process states)
PLANT
Figure 4.1
29
Controllers can be closed loop controllers or logic controllers
Closed loop controllers are used to implement the control law in closed loop control systems
Logic controllers are used to sequence steps in an event-sequencing system.
Loop Controllers
A loop controller is basically used to implement the control in closed loop control systems. The
control law could be:
o 2-step control – actuator is either on or off depending on the process value as compared to
the set point.
o PID control
The SP is input via any input device like a keypad or an input potentiometer. It may also be obtained
from a remote device.
The controller also displays the control variable and generates alarms when the process variable
goes outside certain limits. The alarms can be in form of displays or output signals to input into
external devices.
It can receive external digital inputs and provide control functions that depend on their states.
It allows configuration of the operation mode of the controller.
In modern day, the loop controller is a microprocessor or microcontroller based device. It thus
basically, reads in the analog process variable input, converts it into digital, compare it to the set
point to generate an error, apply the control algorithm to generate the control action which is then
written out to the actuator(s). Figure 4.2 gives a block diagram of a loop controller.
Sensor Keypad
interface and user
and ADC switches
Digital
Remote SP
output
interface
interface
Figure 4.2
30
The processor is made up of a microprocessor, memory and ports interconnected by a system bus as
found in microprocessor-based systems.
All the interface circuits, the display and the keypad are connected to the I/O ports and are
controlled and operated under control of the microprocessor program.
If a microcontroller is used, some of the interface circuits may be implemented using the peripheral
circuits found within the microcontroller, for example ADC and communication may be handled by
peripherals within the microcontroller.
Connections to other external components are available via terminals usually located at the backside
of the controller. These are the control outputs, the communication link, external analog and digital
inputs, alarms, power supply, etc. Figure 4.3 illustrates.
31
Figure 4.4
Control outputs
Control outputs are generated from output modules. Depending on relationship between SP and PV,
a module generates an output to suit 2-step control, PID control or alarm generation.
A typical controller allows more than one output module to be used. These modules are generally
available as plug in cards. For any given application, the necessary modules are implemented.
Types of modules are:
o Relay output – the module opens or closes relay contacts depending on comparisons made
on the PV and the SP. It can be used in 2-step control, program event and alarms. The relay
can switch ac or dc circuits.
o Logic output – the module provides a logic voltage output depending on comparisons made
on the PV and SP. It can be used in 2-step control and in program event. E.g. 0/18V at 20mA.
o Triac output – the module turns on or off a triac depending on comparisons made on the PV
and SP. It can be used in 2-step control and in program event. The triac is used to switch ac
circuits.
o dc output – the module gives a variable dc output usually control action generated by the
PID control algorithm. The dc output is used to drive continuous actuators.
o Relay changeover – the module changes over the relay contacts depending on comparisons
made on the PV and SP. It can be used in 2-step control, alarms and in program event.
Each output module can be configured for “heating” or “cooling”. They will work in contra-
situations: heating when PV is below SP; cooling when PV is above the SP.
Two or three connection points are used for each output module.
Communication interface
A communication is available to enable communication with other control equipment, for example
linking to a computer.
Logical input
Takes in logical inputs, for example alarm acknowledge signal.
32
Set point input or retransmit
The device may have a module to receive the set point as an analog signal from a remote device.
It may also retransmit the SP to further controllers.
Voltage supply
The controller may be provided a supply point for 24VDC control equipment.
33
Figure 4.6 A controller with several module options
Figure 4.7
34
Configuration of the loop controller for operation
The controller with the needed modules is acquired or the necessary modules needed are installed
on available plug in slots of the device.
The device is configured in software via the control panel and the display (operation modes for each
module, SPs, e.t.c.). Alternatively, the device can be configured from a conventional computer via a
communication link.
35
Programmable Logic Controllers
Introduction
Programmable logic controllers (PLC) are logic industrial controllers that were developed mainly to control
event sequencing systems. Each step in an event sequencing system occurs only when certain conditions are
met and certain steps have occurred. This is equivalent to each output signal being active only when certain
input sensor states exist and/or certain event steps are in progress or have occurred.
A PLC receives signals from sensors, performs logic operations that define the outputs and then writes the
output signals to the actuators. Figure 5.1 illustrates the idea.
Inputs
Outputs
Sensing devices
PLC Actuating devices
Architecture of a PLC
Figure 5.2 shows the general architecture of a PLC.
The CPU
The CPU is in form of a microcontroller or a microprocessor. Its role is to control all operations in the PLC by
executing a program (or set of programs) stored in the memory.
PLC software
PLC programs consist of an operating system (OS) and a user program. The OS is a program that manages all
functions and all other programs in the PLC. The user program is a program that performs the logic
operations to switch outputs based on states of inputs.
Memory
Memory can be a mixture of ROM, RAM, EPROM, EEPROM flash RAM and battery backed RAM. Memory is
divided into the following groups that are used as follows:
1. Executive memory which is used to store the OS. Since the OS rarely needs changes after
development, this memory section is usually implemented as ROM.
2. System memory which is used to store system data. Mainly, system data is used by the OS. System
memory is implemented in RAM.
3. I/O status memory which is used to store input and output images. An image can be defined as a
copy of the states of the inputs or outputs on the PLC. I/O status memory is implemented in RAM.
36
4. Data memory which is used to store data associated with the user program. Functionalities like
timers, counters, numerical calculations, data storage and auxiliary relays require memory. This
memory is implemented in RAM.
5. User program which is used to store the user program. It can be implemented in EPROM, EEPROM,
flash RAM or battery backed RAM. The memory is required to be involatile because the program is
required as is until there is probably need to change the process being controlled. However, the
flexibility of changing the program is still required.
Figure 5.2
The address bus enables addressing of the memory and the I/O unit by the CPU. The data bus allows
exchange of data between the CPU and memory and I/O unit. The control bus is used to carry the necessary
control signals.
The I/O unit, the system I/0 bus and I/O devices
The I/O unit is used to interface the system I/O bus to the main system bus. The system I/O bus in turn
provides a link for communication between the I/O unit and the input devices and output devices.
Input devices are used to interface to input sensors. Output devices are used to interface to actuators. Once
connected, the sensors and actuators are mapped to some addresses by the I/O unit.
The input and output devices provide signal conditioning and isolation functions between the delicate
internal circuitry and the harsh industrial environment. They are also known as interface modules.
37
Interface Modules
The interface modules are constructed into standard devices that allow them to be directly connected to a
wide range of sensors and actuators. Different types of interface modules are available. Each module type is
suited for a particular function.
A digital input module has a number of input points - typically 8, 16 or 32 input points.
Input isolation
The main function of the digital input modules is to provide input isolation. Optical isolation is exploited.
Figure 5.3 illustrates optical isolation on a PLC input point.
38
(a)
(b)
(c)
Figure 5.3 Optical isolation of inputs: (a) opto isolator (b) DC input (c) AC input
The plant sensor (plain switch, sourcing or sinking type) applies a current signal to the input point. The
photodiode part of the opto isolator transfers this signal as light to the phototransistor part. The transistor in
turn switches internal PLC circuitry and hence transfers in the signal without a physical electrical connection.
39
Digital output modules
Digital output modules are used to interface to discrete actuators. The following are typical types of digital
modules:
1. 0/24V, 100mA DC
2. 0/110V, 1A DC
3. 0/220V, 1A AC (triac)
4. 0/220V, 1A AC (relay)
A digital output module has a number of input points - typically 8, 16 or 32 input points.
Inputs are also isolated using opto isolators. Figure 5.4 shows output isolation.
(a)
(b)
Figure 5.4 DC output circuits: (a) DC output circuit, current sourcing; (b) effect of current suppression diode
The opto isolator transfers signals from the PLC internal circuitry to the switch on the output point with no
physical electrical contact. Diode D1 is used to clip spikes due to noise. Noise interference can be more of a
problem on outputs because of the higher currents that are being controlled by the cards and the loads
themselves that are often inductive (e.g. solenoid and relay coils).
Figures 5.5 and 5.6 show the two basic types of output card, one with common supply and the other with
separate supply for each output.
40
(a)
(b)
Figure 5.5 Types of output cards: (a) output card with common supply; (b) output card with separate supplies
41
Figure 5.6 AC output circuit: (a) AC output stage; (b) effect of triac output
Resolution
Resolution is the smallest change in the analog input that causes a change in the digital output. It is the
amount of analog input corresponding to unity or binary one.
As an example, an 8-bit ADC can represent an integer in the range 0 – 255. If this was used to represent an
analogue signal measuring a flow with a span (range) from 0 to 1800 l/min, the resolution would be
approximately 7 l/min (given by 1800/255).
42
Analog output modules
Analog output modules perform analog to digital conversion of outputs so that they can be sent as analog
signals to actuators needing such signals. Each module has a number of output points – typically 4, 8 or 16
outputs.
where VADC is the value passed to the DAC, N is the output number in engineering units, HR/LR are
the high- and low-range values, n is the number of bits in the input value and Vs is the supply voltage
to the DAC (maximum possible output).
PLC construction
Single unit
Small PLCs are implemented in the form of a single unit. All the PLC components and modules are built into
one unit. Connection points are provided for connecting to the sensors and actuators. Limited expansion can
be achieved by adding a few more I/O modules. Figure 5.7 shows a typical single unit PLC.
Figure 5.7
Modular PLCs
Medium and large PLCs are implemented in modular form. A number of units each for a specific function are
built separately and then connected together to give the PLC. The units are mounted on a rack. Figures
5.8(a) and (b) show typical modular PLC constructions.
43
Figure 5.8 (a)
There can also be other types of cards mounted onto the rack.
44
Remote I/O
This is when I/O cards are mounted on racks that are a distance from the main PLC but local to the sensors
and actuators. The remote I/0 cards are connected to the main PLC using a communication channel, for
example an optic fibre or LAN cable. Sensors and actuators are wired to the remote cards using the usual
conducting wires.
The remote I/O card thus receives signals from sensors and multiplex them for transmission to the main PLC
via the communication channel. The cards also receive signals via the communication channel from the main
PLC, de-multiplex them and send them to the actuators.
Generally, a terminal is provided local to ach remote rack so that plant operation can be monitored local to
the plant devices.
Addressing
PLCs identify I/O devices and memory using some form of addressing. Different PLCs generally use different
ways of addressing. Allen Bradley addressing and Siemens addressing will be briefly explored.
Memory bits
In Allen Bradley PLCS, memory can be addressed as bits or words of certain bit width. Bits are addressed
using a similar approach as for I/O points. The identifier for memory bits is B. The format for a memory bit
address is BM/n where n denotes the bit and M denotes the file containing the bit. For example, B3/25
means bit 25 on file 3.
45
0 1 2 3 4 5 6 7
PLC
processor
0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7
O:26/05
I:35/02
Siemens addressing
Digital I/O in Siemens PLCs is arranged in groups of 8 bits, called a byte. An I/O signal is identified by its bit
number (0 – 7) and its byte number (0 – 127). Inputs are denoted in the form I<byte>.<bit> and outputs in
the form Q<byte>.<bit>. For example:
I9.4 means input with bit address 4 in byte 9
Q63.6 means output with bit address 6 in byte 63.
Like Allen Bradley, Siemens use card slots in one or more racks. The cards are available in 16-bit (2-byte) or
32-bit (4-byte) form.
Figure 5.10 shows the Siemens card layout and addressing. Figure 5.10 (a) shows fixed slot addressing. In
most systems, however, the user has the ability to assign the byte addresses. This is known as variable slot
addressing and is shown in figure 5.10 (b). The first byte address and the range (2-byte or 4-byte) can be set
independently for each slot by switches in the adaptor module in each rack.
46
Figure 5.10 Siemens card layout: (a) Fixed slot addressing; (b) Variable slot addressing
Memory addressing
Memory can be addressed as bits, bytes, words or double words.
Words are 16 bits wide while double bytes are 32 bits wide.
Memory bits use the identifier MB for example MB5.6 is bit 5 in memory at address 5.
Memory bytes use the identifier M for example M13 is byte at memory address 13.
Memory words use the identifier MW for example MW8 is word at memory address 6. The word
occupies two consecutive addresses, in this case addresses 6 and 7. Addresses of memory words are
therefore multiples of 2.
Memory double words use the identifier MD for example MD12 is word at memory address 12. The
word occupies four consecutive addresses, in this case addresses 12, 13, 14 and15. Addresses of
memory double words are therefore multiples of 4.
I/O can be accessed as bytes, words or double words in a similar manner to accessing bytes, words
and double words in memory. For example, Q7 is a byte output to output byte 7.
Operation of a PLC
The operation of a PLC can be explained using ladder logic.
47
Ladder logic
Ladder logic is a way of writing PLC programs that mimics relay switching circuits. Two vertical lines mimic
the power supply rails (24V and 0V). A switching circuit is connected between the two rails. The circuit has
inputs called contacts and at least one output called coil(s). A coil on a circuit is energised only when there
exists a path through the input contacts from the positive supply rail through the coil to the negative supply
rail.
Consider a hydraulic system that has an indicator lamp to indicate that the system is healthy. A hydraulic
system is said to be healthy when:
1. The pump is running (sensed by an auxiliary contact on a pump starter).
2. There is oil in the tank (sensed by a level switch which makes when the switch is covered).
3. There is oil pressure (sensed by a pressure switch which makes for adequate pressure).
The relay circuit that may be used is shown in figure 5.11 (a).
(a)
(b)
(c)
Figure 5.11
In a PLC application of the system, the sensors are all connected to input points on the PLC and the lamp to
an output point as shown in figure 5.11 (b). The circuit between the sensors and the actuator is
implemented by a software program running on the PLC. The program can be represented in the form of a
ladder rung as shown in figure 5.11 (c).
Generally, in event sequencing systems, each rung is associated with a process step. The ladder program
thus gives the sequence which should be followed and the conditions that should be met for each step to
occur.
48
A typical PLC program will contain a number of rungs as shown in figure 5.12. The term ladder is used
because the lines of a completed diagram resemble the rungs of a ladder. The two vertical lines are called
bus lines. Each horizontal line represents a program line.
Input contact connections other than series only may be made in the ladder. A ladder rung may consist of
series, parallel or series-parallel connected contacts that supply power to a relay coil.
The above set of steps is known as a PLC scan. The PLC will continuously go through scans and in the process
control a process. Figure 5.13 (a) illustrates a PLC scan.
(a) (b)
Figure 5.13 PLC program scan and memory organisation: (a) program sequence; (c) PLC memory organisation
49
Scan rate
Scan rate is the speed at which a PLC scans the memory. It is expressed in terms of the number of seconds
(or milliseconds) it takes to scan a given amount of memory, usually 1kB. The actual time to scan a program
depends on the scan rate, the length of the program and the types of functions used in the program. The
faster the scan rate the more often the inputs and outputs are checked.
Phasing errors
The CPU under the control of the operating system, scans the input image rather than the inputs
themselves. The input memory is not changed while the CPU is scanning it. Thus it is possible for an input
port to change its state from, say, off to on and back to off before the input image is updated. A phasing
error is said to have occurred when the CPU scan misses a change in the state of an input port.
PLC manufacturers offer many facilities to reduce the effect of scan times. Typical are high-speed
independent I/O cards and the ability to sectionalise the program into areas with different scan rates.
Figure 5.14 The effect of program scan and I/O scan cycles
PLC programming
There are three main methods that can be used for PLC programming. These are ladder logic, statement list
and logic symbols.
After the program has been written, it is converted into machine language that can run on a PLC. Programs
are loaded into the PLC’s memory using a program loader. These vary from hand held systems incorporating
a small keyboard and LCD to conventional computers.
50
Ladder programming
Ladder programming uses ladder logic to write PLC programs. A program is entered in a form that mimics
switching circuits.
Figure 5.15
Inputs can input points on PLC input cards (connected to the sensors), internal memory bits or the states of
output points on the PLC output cards (from the output image). Outputs can be output points on the PLC
output cards (connected to the actuators) or internal memory bits.
The inputs in a rung are connected together in such a way to give a logic condition that in turn turns on or
off the output(s) connected in the rung. The logic conditions may be series, parallel or series-parallel
connections of the contacts. Figure 5.16 gives examples of ladder rungs.
(a)
(b)
(c)
Figure 5.16 Ladder rungs
1. In (a) the output Y goes high (active) when input signals to X1 and X2 go high and input signal to X3
goes low. In Boolean logic, 𝑌5 = 𝑋1 ∙ 𝑋2 ∙ 𝑋3
51
2. In (b) the output Y goes high when any of the inputs X1, X2 and X3 go high. In Boolean logic, 𝑌 =
𝑋1 + 𝑋2 + 𝑋3
3. In (c) the output Y goes high when {C and Z are low, X is high} and either A and B are high or D is
high. In Boolean logic, 𝑌1 = ((𝐴 ∙ 𝐵) + 𝐴) ∙ 𝐶 ∙ 𝑋 ∙ 𝑍
The PLC rungs, thus basically perform Boolean logic operations.
Latching
A latch is used to maintain an output state even if the input contact which energised it is turned off. Figure
5.17 shows latching in a ladder rung.
When the Start contact makes, Step-1 is energised thereby making the Step-1 input contact. If Start later
opens, the output Step-1 is kept energised. The closed input Step-1 thus, keeps the output Step-1 energised
even if the input Start opens. In other words, the output latches itself.
Figure 5.17 (b) shows the application of latching in the start/stop control of an electric motor.
Auxiliary relays
These are memory bits that can be used to store single bit information about a process. They may represent
a step or a state in an event sequencing system, for example ‘standby pump running’, ‘system healthy’ and
‘lubrication fault’.
52
Sequencing of steps
To achieve sequencing states of rung outputs are made to depend on states of other rungs in such a way as
to generate the required sequence. Consider the ladder program for a two-step process shown in figure
5.18. Only one of the two steps is required at any given time. Step-1 and Step-2 are auxiliary relays that are
used to represent (and show the states) of the two steps. Start and stop are NO push to make switches
connected to a PLC input. When Start is momentarily pressed while the process state is 1, process goes into
step 2. If Stop is momentarily pressed while in step 2, the process goes into step 1.
Figure 5.18
53
The Step-1, Step-2 line on the input to the Step-1 relay bit keeps the Step-1 relay it energised
(latches it) thus process stays in step 1 unless and until Start is pressed.
It can be observed that each subsequent step kills the previous step. Whenever step 2 is switched on, step 2
is automatically switched out. Secondly entering a subsequent step only occurs when the process is in the
preceding step and conditions of entering the new step are satisfied. Step 2 is entered only when the
process is in step 1 and start is pressed. Step 1 is only entered when the process is in step 2 and stop is
pressed.
In general, each step on a ladder designed for sequencing consists of:
1. A path with conditions to go into a step.
2. A path to latch the current step as well as to kill the previous step.
Figure 5.19 PLC programming using logic symbols (Siemens notation): (a) an AND gate; (b) truth table for
AND gate: (c) hydraulic healthy lamp of figure 5.11 in logic notation; (d) an inverted input
A test to check if a signal is not true is denoted by a small circle ‘◦’ (this is equivalent to testing a normally
closed contact in ladder diagram notation). Hence the output Z of the AND gate in figure 5.19 (d) is true if
(and only if) A and C are true and B is not true.
Statement lists
A ladder diagram can be translated into a program consisting of instruction lines. Table 5.1 shows typical
instructions for a PLC.
54
Table 5.1 Typical instruction list
Instruction Description
LOAD Load contact
OR Logical OR operation
NOT Inversion
OUT Output
Different manufacturers may use different instructions but the logic is similar.
Figure 5.20 shows a simple operation in both ladder and logic formats for a Siemens PLC. The equivalent
statement list is given in Table 5.2.
55
Figure 5.21 and Table 5.3 show a more complex program in the three notations
07 :) Now at point X
56
Timers
Timers count pulses generated from the CPU’s internal clock. They count these pulses until they get to the
preset value, a point when some delay period would have been realised. Counters enable delay operations
to be implemented in control. The preset value of the timer is the delay period.
Figure 5.22 Different forms of timer: (a) on delay; (b) off delay; (c) fixed width pulse
Timer signals
The following are signals available on a timer:
Enable, EN – is a mimic of the timer input
Timer timing, TT – is energised whilst the timer is running (i.e. preset value hasn’t expired)
Time done, DN – indicates timer has finished (preset value has expired)
Figure 5.23 shows the signals as used on an Allen Bradley delay on timer (TON) and a delay off timer (TOF).
57
Using timers in programs
PLC manufacturers differ on how a timer is programmed. Most use the timer as a terminator for a rung, with
the timer signals being available as contacts for use elsewhere. Others use the timer as a delay block with
the preset being stored in a value block.
Most timers used are non-retentive (accumulated time goes back to zero when the input goes to zero); but
retentive timers (these require reset signal) are also available.
Figure 5.23 Allen Bradley timer notations: (a) TON timer; (b) TOF timer
Figure 5.24 Two types of time in the same application: (a) Allen Bradley notation; (b) Siemens logic notation
58
Counters
Counters are used to count externally generated pulses. A counter is, like a timer, associated with a preset
value. If the count value reaches the preset value, a count complete or count done signal is given. The count
value itself is also available for use in the program. A counter can be reset.
There are two types of counters: up-counters and the down-counters. Up-counters count up to the preset
value while a down-counters count down from the preset value to zero.
Most PLCs allow a counter to count up to 32767. Where larger counts are needed, counters can be cascaded
with the complete (or done) signal from the first counter being used to step the second counter and reset
the first. In a similar way, timers can also be cascaded with counters to get longer timer periods. Figure 5.25
is a variation of the same idea used to give a very long timer.
Numerical applications
Numeric representations
So far we have been primarily discussing single-bit operations. Numbers are also often part of a control
scheme; a PLC might need to calculate a production rate in units per hour averaged over a day, or give the
amount of liquid in a storage tank. Such operations require the ability to handle numeric data.
59
Functions are available to handle numeric data in the form of integers (16-bit words), long integer (two 16-
bit words) or floating point numbers that consist of two 16-bit words, which contain the mantissa (the
numerical portion) and the exponent.
Data movement
Numbers are often required to be moved from one location to another; a timer preset may be required to
be changed according to plant conditions, a counter value may need to be sent to an output card for
indication on a digital display or the result of some calculation may be used in another part of a program.
Functions (or instructions) are available for such data movements (Figure 5.26).
Data comparison
Numerical values often need to be compared in PLC programs: typical examples are a batch counter saying
the required number of items have been delivered, or alarm circuits indicating, say, a temperature has gone
above some safety level.
These comparisons are performed by elements which have the generalised form of Figure C.24, with two
numerical inputs corresponding to the values to be compared, and a binary (on/off) output which is true if
the specified condition is met.
Value 1
Compare Result
Value 2
60
Arithmetic operations
PLCs provide the ability to do mathematical operations such as add, subtract, multiply and divide (Figure
5.28).
GRAFCET
GRAFCET is a tool for describing a sequencing system. It, thus can be used in development of PLC programs
for these sequencing systems.
In the PLC application, a step represents a process state, actions represent the outputs to be turned on in a
particular step and a transition points represent the closing (or opening of) an input contact.
61
SCADA & DCS
Introduction
Definition
SCADA is an acronym that stands for Supervisory Control and Data Acquisition. It is a collection of equipment
that allows an operator at a remote location to monitor and perform supervisory control on a particular
piece of equipment or an entire system.
62
Application Areas
Examples of areas where SCADA is applied are:
1. Electric power generation, transmission and distribution: Electrical power utilities use SCADA
systems to monitor and control the generating plant as well as the distribution system. In
distribution systems, for example, SCADA enables remote operation of circuit breakers so as to take
sections of the power grid online or offline.
2. Water and sewage: State and municipal water utilities use SCADA to monitor and regulate water
flow, reservoir levels, pipe pressure and other factors.
3. Buildings, facilities and environments: Facility managers use SCADA to control, for example, HVAC,
refrigeration units, lighting and entry systems.
4. Manufacturing: SCADA systems manage parts inventories for just-in-time manufacturing, regulate
industrial automation and robots, and monitor process and quality control.
5. Mass transit: Transit authorities use SCADA to regulate electricity to subways, trams and trolley
buses; to automate traffic signals for rail systems; to track and locate trains and buses; and to
control railroad crossing gates.
6. Traffic signals: SCADA regulates traffic lights, controls traffic flow and detects out-of-order signals.
7. Gas and oil pipelines: SCADA is used to monitor and control the pipelines.
Figure 7.2
Field Devices
They comprise of sensing and actuating devices. Sensing devices acquire data from the field so as to get the
status of the processes in the field. Examples are reservoir level meters, water flow meters, valve position
transmitters, temperature transmitters, power consumption meters, and pressure meters.
Actuating devices effect actions in the field according to the requirements of the process. Examples are
electric valve actuators, motor control switchboards, and electronic chemical dosing facilities.
63
PLCs are used to control the operation of actuators in the field. They connect directly to field data interface
devices and incorporate programs mainly in the form of logic operations. The programs enable certain
actuators to run when certain process sate conditions are met. Examples of control operations carried out by
PLCs are pump control, conveyor belt control, mixing of raw materials.
RTUs basically provide interfacing while PLCs provide interfacing as well as control functions.
Communications Network
The communications network is the equipment responsible for the transfer of data between the RTUs / PLCs
and the central host servers as well as between the servers and the rest of the sites in the SCADA system.
The medium of communication can either be cable, telephone, fiber, power line carrier or radio. The media
used depends on comparative advantages and disadvantages of the methods in different situations:
Cable is usually implemented in a factory and where the geographical area is small.
Telephone lines are used when geographical area is large
o Proprietary and leased lines are used for systems requiring on-line connection with the
remote stations.
o Dial-up lines can be used on systems requiring updates at regular intervals (e.g., hourly
updates).
Radio is used when accessing remote areas where there are, for example, no telephone lines. An on-
line operation can also be implemented on the radio system.
Fiber and power line carrier can be used in same areas as where Telephone lines can be used. They
can be proprietary, leased or dial-up.
Operator Workstations
Operator workstations enable operators to interact with the system. They provide a platform for viewing the
process as well as to apply inputs into the process. Operator workstations are client computer terminals that
request and send information to the central host computer based on the request and action of the
operators. They are connected to the host computer using LAN/WAN.
Database
The database is used to store data pertaining to the process or plant. It is hosted on the host computer. The
constituent data elements are known as tags or points. Each tag is a data item representing a single input or
output value monitored or controlled by the system. The database is thus commonly referred to as a tag
database.
Tags can be either "hard" or "soft". A hard point is representative of an actual input or output connected to
the system. A soft point represents the result of a logic and mathematical operations applied to other hard
and soft points, for example total weight from 5 load cells, distance moved from speed. Most
implementations conceptually remove this distinction by making every tag a soft point that at its simplest
can be equal to a single hard point.
Tag values are normally stored as value-timestamp combination, that is the value of the tag and the
timestamp when the value was recorded or calculated. A series of value-timestamp combinations is the
history of that point. It is also common to store additional metadata such as path to field device and PLC
register, design time comments, and even alarming information with the tags.
64
The rest of the system obtains values/states of the plant from the tags in the database.
Man-machine Interface
The user interface or the man-machine interface (MMI) provides communication interface between an
operator and the machines making up the system. This allows the status of the plant to be presented to
operators in a form that can be easily understood. It also allows the system to accept commands from
operators. MMI can be summarized by figure 7.3.
A MMI consists of input devices such as a mouse, keypad and touch screen and output devices such as a
screen, audio, print-outs and mimic boards. Modern SCADA systems are able to offer high resolution
computer graphics to display a graphical user interface or mimic screen of the site or system in question.
SCADA Software
SCADA software is responsible for running the system. Software products typically used within a SCADA
system are as follows.
65
Communications network management software
This is software required to control the communications network and to allow the communications networks
themselves to be monitored for performance and failures.
As an example, in a power utility, DCS may be used for generation of power, while SCADA is used for the
distribution and transmission of power.
The computers that are at different control levels are connected via communication for:
receiving input data from transducers,
issuing control signals, and
interacting with an operator.
Control tasks
Seven independent computer tasks can be identified:
process instrumentation
process regulation
acquisition of measurement data
process supervision
protection and process safety
on/off process control
66
set-point process control (governing/tracking)
LEVEL 3
LANs such as Mainframes
Ethernet Gateway
LEVEL 2
Proprietary Supervisory minicomputers
networks
LEVEL 1
1 2 3 4 5 6 7 8 PLCs
LEVEL 0
Plant devices
(a)
Ethernet
PLC VAX
(b)
Figure 7.4 Control hierarchy: (a) a company-wide network; (b) a real system
In figure 7.4, the pulpit PLC issues broad commands to the lower level PLCs, and concerns itself mainly with
data gathering for the VAX system. The lower level machines concern themselves with running the plant and
monitoring for alarm conditions, passing any information the operator should be aware of back to the pulpit
PLC for display on VDU screens.
Control levels
Five independent levels of control are recognized in process control of figure 7.4:
Level 0 – actual plant level (process hardware, transducers, drives, etc.)
Level 1 – process controller level (PLCs and other controllers directly controlling the plant)
Level 2 – data acquisition, remote terminal unit, direct digital control
Level 3 – supervisory control or process control center (minicomputers)
Level 4 – management control or dispatching center (mainframes)
67
Data
presentation Management
and control Control
LEVEL 4
Supervisory
Supervisory
LEVEL 3 process data
Control
access
and control
Data acquisition
LEVEL 2 DDC; RTU
Process controller
LEVEL 1 Process
instrumentation
Level 1
Functions are:
Logic and protection functions
Control of basic process units
Coordination of a few basic process units
Calculation of complex process variables from given process signals
68
Standard serial interface to RTU
Level 2
Functions are:
Control of process variables
Communication with controller, complex process instruments, other RTUs and superimposed digital
computer
Level 3
Functions are:
Optimizing functions
Process data issuing
Data logging
Engineering calculations
Account issuance
Program compilation
Data supervision
Front-end processing towards level 4 system
Level 4
Functions are:
Optimize overall system performance
Account issuance
Off-line programs (simulation and modelling)
Program compilation
Advantages of DCS
1. modularity – resulting tree is conceptually simple, and as such is easy to design, commission,
maintain and modify/expand.
2. system integrity – a correctly designed system will be, for short periods, fault tolerant and can cope
in a limited mode with the failure of individual stations.
3. increased performance – lower level machines take the work off higher level machines allowing
machines to be specialized for operations at their operating levels and thus perform them more
superbly.
69
Communication Protocols
A communication protocol is the “electronic” language used to transmit data over a communication channel.
Communication protocols are needed to enable PLCs and RTUs to exchange data, either with other PLCs and
RTUs or SCADA Host platforms. Over the years, communication protocols have evolved from being
proprietary towards a single industry standard. Many manufacturers gravitated to MODBUS, but added on
proprietary elements to meet specific functionality requirements. In recent years, protocols have appeared
that are truly non-proprietary, such as DNP (Distributed Network Protocol).
70
SCADA PICTURES
71
Figure 7.8 SCADA Network
72
Figure 7.10 TYPICAL CONTROL ROOM
73
Figure 7.12 ENGINEERING AND RUNTIME ENVIRONMENTS
74