PLC and SCADA Powerpoint
PLC and SCADA Powerpoint
Outlines
Control Systems
Continuous Control Systems
Sequential (Logic) Control Systems
Synchronous Control Systems
Asynchronous Control Systems
Mixed Synchronous/Asynchronous Control Systems
Implementation of Synchronous Control Systems
Relay Control systems
Control Systems
Control Systems
Remember:
A sensor is a device that converts a physical signal (such as
heat, light, sound or movement) into an electrical signal.
An actuator is a device that converts an electrical signal into
a physical signal (such as heat, light, sound or movement).
Actuators and sensors are both devices that change one kind
of signal into a different kind of signal.
Control Systems
The controller should be designed with some objective in
mind.
Typical objectives are:
fastest response - reach the setpoint as fast as possible
(e.g., hard drive speed)
smooth response - reduce acceleration and jerks (e.g.,
elevators)
energy efficient - minimize energy usage (e.g., industrial
oven)
noise immunity - ignores disturbances in the system (e.g.,
variable wind gusts)
Synchronous Control
In a fully synchronous control system all of the events in the
sequence take place at set points in time, regardless of any
external change.
Synchronous control systems are used where the control of
a sequence of events must take place at pre-set time
intervals.
Such a system doesn’t take any account of events outside it,
only the time between events is important.
Therefore it doesn’t need any sensors; it is an open loop
control system.
Central heating timers are synchronous controllers; the
points at which the heating and hot water systems are
turned on and off are fixed in time.
Once the heating or hot water is turned on, that part of the
sequence is usually a continuous system; temperature is
continuously monitored to control the heating system.
Asynchronous Control
Mechanical Systems
All mechanical timers are different kinds of cam timer.
Here a motor turning at a constant speed is used to turn lots
of cams.
As the cams turn they push on switches to turn them on or
off.
Central heating and washing machine timers always used to
be made from cam timers.
In industry too, cam timers have
been used widely - though they are
being rapidly replaced by electronic
timers these days.
Electronic Systems
There are a number of different electronic systems that can
be used.
A dedicated circuit uses an oscillator to give electronic clock
pulses.
Further circuitry, often involving the use of logic gates, is
then used to control a sequence of switching.
Programmable Logic Controllers (PLCs) are commonly used
in industry.
A PLC contains the same kind of microprocessor as a
computer.
However it is designed to be used in an industrial setting so
is very robust.
Electronic Systems
The timing sequence can be programmed either through a
computer or with a small, hand held, programmer.
PLCs are replacing cam timers in most places in industry.
Electronic Systems
An important thing to note about these electronic systems is
that they all use low voltages and currents.
They also need to be able switch powerful outputs.
So they will need some kind of output interface that protects
the circuit and provides power.
Relays are very often used for this.
BUT
Relays continue to be used as output devices being ideal
for the conversion of small signals to higher current /
voltage driving signal.
Pneumatic System
Relay Ladder Logic
Control
Amplifier
Sensors
Sensors are input transducers used for detecting and
often measuring the magnitude of something. They
convert mechanical, magnetic, thermal, optical, and
chemical variations into electric voltages and currents.
Photoelectric
sensor
Gas
sensor
Microphone
Probe
Proximity Sensor
Barrel type
Block diagram
As the target
moves into the
sensing area,
the sensor
switches
the output ON
Target
L1 L2
Load
Control
output
Load is connected
Load between the positive
supply and sensor
Control
output
Input
module
The use of a bleeder
resistor allows enough
Proximity current for the sensor
sensor to operate but not
enough to turn on the
input of the PLC
Bleeder resistor
Magnet
N S
NO The switch is
NC actuated by a
Common
magnet.
Solar cell
Ohms
20 Ohms Light resistance
5,000 Ohms Dark resistance
Diffused-reflective
Retro-reflective typetype
Operating
Operating
Emitter/receiver range
range
Target
Reflector
Operating
Emitter Receiver
range
Target
PLC
Ultrasonic Sensor
An ultrasonic sensor operates by
sending sound waves towards the
target and measuring the time it
takes for the pulses to bounce back.
Hopper
Wire type Force Controller
The force applied to the gauge causes the
The load cell provides gauge to bend. This bending action also
ON/OFF
Chute
sensor input to the distorts the physical size of the gauge,
Control
controller, which which in turn changes its resistance.
displays the weight
and controls the
hopper chute.
Load cell
Temperature Sensors
Temperature sensors convert heat into an electric
signal. There are four basic types used: thermocouple,
resistance temperature detector (RTD), thermistor, and
IC sensor.
The thermocouple consists of a pair
of dissimilar conductors fused
together at one end to form the
"hot" or measuring junction, with the
free ends available for connection to
the "cold" reference junction. A
temperature difference between the
measuring and reference junction
generates a small DC signal voltage.
RTD
Temperature Sensors
Temperature sensors convert heat into an electric
signal. There are four basic types used: thermocouple,
resistance temperature detector (RTD), thermistor, and
IC sensor.
Flow Measurement
The usual approach used in
measuring fluid flow is to
convert the kinetic energy that
the fluid has into some other
measurable form.
Turbine Flow Meter
Coil
The turbine blades turn at
Flow a rate proportional to the
Magnet fluid velocity and are
Turbine magnetized to induce
voltage pulses coil.
Velocity/RPM Sensors
A tachometer is a small permanent
magnet DC generator which when
rotated produces a voltage that is
directly proportional to the speed at
which it is driven.
Tachometers coupled
Controller
to motors are
commonly used in
M motor speed control
Motor applications to provide
a feedback voltage to
Tach the controller that is
proportional to motor
speed.
Solenoid Solenoid
Control Alarm
Pilot light relay valve
AIR
Coil
Solenoid Valve
A solenoid valve is a combination of:
a solenoid with its core or plunger
a valve body containing an orifice
in which a disc or plug is positioned
to restrict or allow flow
Forward motion of piston When SOL A is energized, the valve
spool is shifted to redirect the fluid
and move the cylinder forward
Directional
solenoid
valve
CR
FWD
SOL A
SOL A
CR
Stepper-motor Step
Module translator motor
Communicates
with the PLC and Enables control
responds with of the stepper motor The motor will move
pulse trains one step for each pulse
received
Outlines
Introduction
Advantages of PLC Control Systems
PLC Versus Other Types of Control
Typical Areas of PLC Applications
PLC Product Application Ranges
Structure and Hardware
PLC Scan Process
PLC Programming
Modes of Operation
PLC and Networks
Introduction
PLCs are used in both SCADA and DCS systems as the control
components of an overall hierarchical system to provide local
management of processes through feedback control
Introduction
Machines that
process thousands of
items per second and
objects that spend only a
fraction of a second in
front of a sensor require
the PLC’s quick response
capability.
It is easier to
create and change a
program in a PLC than
to wire and rewire a
circuit. End-users can
modify the program in
the field.
Generally, if an
application requires
more than about 6
control relays, it will
usually be less
expensive to install a
PLC.
They can be
networked to perform
such functions as:
supervisory control, data
gathering, monitoring
devices and process
parameters, and
downloading and
uploading of programs.
The
control program
can be watched
in real-time as it
executes to find
and fix problems
HMI
The A, B, and C
overlapping areas
reflect enhancements,
by adding options, of
the standard features
of the PLCs within a
particular segment.
Power Supply
PLCs are usually powered directly from 120 or 240Vac
The power supply converts the AC into DC voltages for the
internal microprocessor components
It may also provide the user with a source of reduced
voltage to drive switches, small relays, indicator lamps, and
the like
Processor (CPU)
The processor is the brain of the
PLC
The processor is a
microprocessor-based CPU and
is the part of the PLC that is
capable of reading and executing
the program instructions, one-
by-one (such as the rungs of a Processor
Module
ladder logic program)
Processor (CPU)
A special program called the operating system controls
the actions of the CPU and consequently the execution
of the user’s program
The operating system is supplied by the PLC
manufacturer and is permanently held in memory.
A PLC operating system is designed to scan image
memory and the main memory which stores the ladder
diagram program
Memories
The program memory receives and holds the downloaded
program instructions from the programming device
This memory is usually an EEPROM (electrically erasable
programmable ROM) or a battery-backup RAM, both of
which are capable of retaining data
Data memory is RAM memory used as a “scratch pad” by
the processor to temporarily store internal and external
program-generated data
Memories
Input/Output Modules
The I/O modules are interfaces to the outside world
These control ports may be built into the PLC unit or, more
typically, are packaged as separate plug-in modules, where each
module contains a set of ports
The most common type of I/O is called discrete I/O and deals
with on-off devices
Analog I/O modules allow the PLC to handle analog signals
Input/Output Modules
Input/Output Modules
Input/Output Modules
Specialized modules that perform particular functions are
available for many PLCs. Examples include:
Thermocouple module — Interfaces a thermocouple to the
PLC.
Motion-control module — Runs independently to control
muti-axis motion in a device such as a robot
Communication module — Connects the PLC to a
network
High-speed counter module — Counts the number of
input pulses for a fixed period of time
PID module — An independently running PID self-
contained controller (PID control can also be implemented
with software, as described later in this chapter)
Input/Output Modules
Environmental:
Ambient Temperature Rating.
Humidity.
Expansion Modules
Most PLCs are expandable
Expansion modules contain additional inputs and outputs
These are connected to the base unit using a ribbon
connector
BIG PICTURE
PLC Programming
The term PLC programming language refers to the method by
which the user communicates information to the PLC.
A PLC program is not actually a wiring diagram but a way to
describe the logical relationship between inputs and outputs
The PLC programming languages are:
– Sequential Control and State Graph (Graph)
– Sequential Function Chart (SFC)
– Structured Text (ST)
– Instruction List (IL)
– Function Block Diagram (FBD)
– Ladder Diagram (LD)
The most common is LD, FBD, and IL but the most use is the LD.
PLC Programming
PLC Programming
Structured Text
Instruction List
PLC Programming
Ladder Diagram
PLC Programming
Ladder Diagram
A LAD (special kind of wiring diagram) was developed to
document electromechanical control circuits.
Ladder diagram programs are highly symbolic and are the
result of years of evolution of industrial control circuit
diagrams
This type of diagram has two vertical wires (rails) on either
side of the drawing to supply the power
Each rung of the ladder diagram connects from one rail to
the other and is a separate circuit, which typically consists
of some combination of switches, relay contacts, relay coils,
and motors
It is common for the coil of a relay to be in one rung and the
contacts to be in another
Ladder Diagram
PLC Programming
Ladder Diagram
Ladder rung
Ladder rail
Control scheme is drawn
between two vertical
supply lines.
PLC Programming
Relay-Type Instructions
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
Ladder Rung
Rung Continuity
PLC Programming
Rung Continuity
Example
PLC Programming
PLC Programming
PLC Programming
PLC Programming
Programming for Different Scan
Patterns
PLC Programming
PLC Programming
PLC Programming
On-Delay Timer
Off-Delay Timer
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
PLC Programming
LESS likely
LEAST likely
Modes of Operation
Three levels
of networks
Control Problem
The PLC task is to move the
piston in and out. When
switch SW1 is momentarily
turned on, piston A is to
move out of the cylinder in
A+ direction. When switch
SW2 is momentarily turned
on, piston A is to move into
the cylinder in A- direction.
Control Problem
The PLC task is to operate piston A followed by
piston B followed by piston C. The sequence is A+,
A-, B+, B-, C+, C- is to be repeated when switch
SW1 is turned on
Control Problem
The PLC task is to control a simple
machine which counts and batches
components moving along a conveyor. It
is required that ten components be
channeled down route A and twenty
components down route B. A reset facility
is required
Control Problem
The PLC task is to detect and reject faulty components. Components are
transported on a conveyor past a retro-reflective type photoelectric switch. The
photoelectric switch is positioned at a height (H) above the conveyor where (H)
represents a tolerance value for component height. Good components pass
underneath the photoelectric switch and no signal is generated. Faulty
components break the light beam twice as they pass the photoelectric switch.
If the system does not reject faulty components, what would be the
possible reasons?
• The photoelectric switch is too high (H is too big)
• The photoelectric switch does not work
• The pneumatic blower does not work
• The ladder diagram is not properly written
• The faulty components is not as described in the drawing
Control Problem
The PLC task is to:
a) move the gripper to X+ position
b) close the gripper so that it takes hold of a component
c) rotate the gripper through 180o to the Θ+ position
d) Release the component
e) Rotate the gripper back to the Θ- position so that the pick and place
operation may be repeated
Control Problem
The PLC task is to organize the production process. Cans filled with fluid and
capped before passing into a conveyor. The photoelectric switches P1 and P2 are
used to check that each can has a cap. Photoelectric switch P3 provides a trigger
for the ink jet printer which prints a batch number on each can. Photoelectric
switch P4 is used to count three cans into the palletizing machine that transports
three cans through a machine which heat shrinks a plastic wrapping over them.
All photoelectric switches on the production line are of the retro reflective type.
PB1 PB2
Drill
A simple drilling operation requires motor
the drill press to turn on only if Switches
there is a part present and the
operator has one hand on each of
the start switches. This precaution
will ensure that the operator's
hands are not in the way of the
drill.
Part sensor
A simple drilling operation requires the drill press to turn on only if there is a
part present and the operator has one hand on each of the start switches. This
precaution will ensure that the operator's hands are not in the way of the drill.
PL Standby
Solenoid
Level PL Full
switch
Photo
Motor
switch
START
STOP
Outlines
Introduction
ICS Operation
ICS Key Components
SCADA Systems
DCS Systems
RTU
Telemetry
Modems
SCADA Systems Examples
Introduction
SCADA systems are highly distributed systems used to
control geographically dispersed assets, often scattered
over thousands of square kilometers, where centralized
data acquisition and control are critical to system operation.
They are used in distribution systems such as water
distribution and wastewater collection systems, oil and
natural gas pipelines, electrical power grids, and railway
transportation systems.
A SCADA control center performs centralized monitoring
and control for field sites over long-distance
communications networks, including monitoring alarms and
processing status data.
Introduction
DCS are used to control industrial processes such as electric
power generation, oil refineries, water and wastewater
treatment, and chemical, food, and automotive production.
DCS are integrated as a control architecture containing a
supervisory level of control overseeing multiple, integrated
sub-systems that are responsible for controlling the details
of a localized process.
Product and process control are usually achieved by
deploying feedback or feedforward control loops whereby
key product and/or process conditions are automatically
maintained around a desired set point.
Introduction
PLCs are computer-based solid-state devices that control
industrial equipment and processes.
While PLCs are control system components used throughout
SCADA and DCS systems, they are often the primary
components in smaller control system configurations used
to provide operational control of discrete processes such as
automobile assembly lines and power plant soot blower
controls.
PLCs are used extensively in almost all industrial processes.
Introduction
In fact, SCADA systems are specifically designed to handle
long-distance communication challenges such as delays and
data loss posed by the various communication media used.
DCS and PLC systems usually employ greater degrees of
closed loop control than SCADA systems because the
control of industrial processes is typically more complicated
than the supervisory control of distribution processes.
Introduction
ICS have unique performance and reliability requirements
and often use operating systems and applications that may
be considered unconventional to typical IT personnel.
Furthermore, the goals of safety and efficiency sometimes
conflict with security in the design and operation of control
systems.
ICS implementations were susceptible primarily to local
threats because many of their components were in
physically secured areas and the components were not
connected to IT networks or systems.
However, the trend toward integrating ICS systems with IT
networks provides significantly less isolation for ICS from the
outside world than predecessor systems, creating a greater
need to secure these systems from remote, external threats.
Introduction
It is essential for a cross-functional cyber (internet) security
team to share their varied domain knowledge and
experience to evaluate and mitigate risk to the ICS.
The cyber security team should consist of a member of the
organization’s IT staff, control engineer, control system
operator, network and system security expert, a member of
the management staff, and a member of the physical
security department at a minimum.
For continuity and completeness, the cyber security team
should consult with the control system vendor and/or
system integrator as well.
ICS Operation
ICS Operation
2. Human-Machine Interface (HMI). Operators and engineers
use HMIs to monitor and configure set points, control
algorithms, and adjust and establish parameters in the
controller.
The HMI also displays process status information and
historical information.
3. Remote Diagnostics and Maintenance Utilities. Diagnostics
and maintenance utilities are used to prevent, identify and
recover from abnormal operation or failures.
A typical ICS contains a propagation of control loops, HMIs, and remote
diagnostics and maintenance tools built using an array of network
protocols on layered network architectures
SCADA Systems
SCADA is not a full control system, but rather focuses on the
supervisory level.
SCADA is used for gathering, analyzing and to storage real
time data.
SCADA systems consist of both hardware and software.
Typical hardware includes an MTU placed at a control
center, communications equipment (e.g., radio, telephone
line, cable, or satellite), and one or more geographically
distributed field sites consisting of either an RTU or a PLC,
which controls actuators and/or monitors sensors.
The MTU stores and processes the information from RTU
inputs and outputs, while the RTU or PLC controls the local
process
SCADA Systems
IEDs may be directly polled and controlled by the SCADA Server and in
most cases have local programming that allows for the IED to act
without direct instructions from the SCADA control center.
SCADA systems are usually designed to be fault-tolerant systems with
significant redundancy built into the system architecture.
SCADA Systems
Field sites are often equipped with a remote access
capability to allow field operators to perform remote
diagnostics and repairs usually over a separate dial up
modem or WAN connection.
Standard and proprietary communication protocols running
over serial communications are used to transport
information between the control center and field sites using
telemetry techniques such as telephone line, cable, fiber,
and radio frequency such as broadcast, microwave and
satellite.
SCADA Systems
Basic SCADA
Communication Topologies
SCADA Systems
Large SCADA
Communication Topology
SCADA System
Implementation
Example
(Distribution
Monitoring And
Control)
SCADA Systems
This particular SCADA system consists of a primary control
center and three field sites.
A second backup control center provides redundancy in the
event of a primary control center malfunction.
Point-to-point connections are used for all control center to
field site communications, with two connections using radio
telemetry.
The third field site is local to the control center and uses the
wide area network (WAN) for communications.
A regional control center resides above the primary control
center for a higher level of supervisory control.
SCADA Systems
SCADA Systems
In addition, the SCADA system monitors conditions at the
individual rail sections and issues commands based on these
conditions (e.g., shut down a train to prevent it from
entering an area that has been determined to be flooded or
occupied by another train based on condition monitoring).
Example
SCADA Systems
Calculate a scan interval for a SCADA system that:
- Has 20 RTUs
- Every RTU has a point count of 180 status points, 30 alarm
points, 10 meters (at 16 bits each), and 10 analog points (at
16 bits each).
- The MTU sends information to the RTU of 150 discrete
control signals to valves and motors, 6 stepping motors (16
bits each), and 10 valve controller set points (16 bits each)
- Data rate for communication is 1200bps.
- Communication efficiency is 40%.
Solution
Total Points is 920, therefore the total amount of data is 20 x
920 = 18,400bits and the data rate is 18,400b/1200bps =~
15sec at 100% efficiency but at 40% efficiency, the scan
interval is 15sec/0.4 =~ 38sec.
DCS
RTU - Types
There are two basic types of RTU
1. The “single board RTU” which is compact, and contains all
I/O on a single board
2. The “modular RTU” which has a separate CPU module, and
can have other modules added, normally by plugging into a
common “backplane” (a bit like a PC motherboard and plug in
peripheral cards).
The single board RTU normally has fixed I/O (e.g., 16 digital
inputs, 8 digital outputs, 8 analogue inputs, and say 4 analogue
outputs). It is normally not possible to expand its capability.
The modular RTU is designed to be expanded by adding
additional modules. Typical modules may be a 8 analog in
module, a 8 digital out module. Some specialized modules such
as a GPS time stamp module may be available.
RTU - Sizes
Medium Systems that are dedicated single board industrial
computers, including IBM-PC or compatible computers
either in desk-top enclosures or industrial configurations
such as VME, MultiBus, STD bus, PC104, etc….
Large Systems for complete Plant control with all the bells
and whistles. These are usually in Distributed Control
Systems (DCSs) in Plants, and often communicate over high
speed LANs. Timing may be very critical.
RTU – Comparison
A PLC is a small industrial computer which originally replaced
relay logic. It had inputs and outputs similar to those an RTU
has.
It contained a program which executed a loop, scanning the
inputs and taking actions based on these inputs.
Originally the PLC had no communications capability, but they
began to be used in situations where communications was a
desirable feature.
So communications modules were developed for PLC's,
supporting ethernet (for use in DCSs) and the Modbus
communications protocol for use over dedicated (wire) links.
As time goes on we will see PLC's support more sophisticated
communications protocols.
RTU – Comparison
RTU differs from a PLC in that RTUs are more suitable for
wide geographical telemetry, often using wireless
communications, while PLCs are more suitable for local area
control (plants, production lines, etc.) where the system
utilizes physical media for control
The terms SCADA, DCS, PLC and smart instrument are all
applications of the telemetry concept.
Modems
The telephone system, landline communication systems, and
radio systems cannot directly transport digital information
without some distortion in the signal due to the bandwidth
limitation inherent in the connecting medium.
A conversion device, called a modem (modulator/demodulator),
is thus required to convert the digital signals into an analog form
suitable for transmission over a telephone network.
This converts the digital signals generated by a computer into an
analog form suitable for long distance transmission over the
cable or radio system.
The demodulation portion of the modem receives this analog
information and converts it back into the original digital
information generated by the transmitting computer.
Modems - Types
There are two types of modem available today:
Modems
Modems