Professional Documents
Culture Documents
FACTORY AUTOMATION
BOOK 02
BOOK 02
FACTORY AUTOMATION
DMX7304
DMX7304 – FACTORY AUTOMATION
Published by the
Open University of Sri Lanka
Session 15: Overview of industrial communication systems
Session 15
Overview of industrial communication
systems
Content
15.1 Basic Information ............................................................................ 2
15.1.1 History ...................................................................................... 2
15.1.2 Classification ............................................................................ 2
15.1.3 Requirements in Industrial Automation Networks ................... 3
15.2 Virtual Automation Networks.......................................................... 4
15.2.1 Definition, Characterization, Architectures .............................. 4
15.2.2 Domains .................................................................................... 5
15.2.3 Interfaces, network Transitions, Transmission Technologies .. 5
15.3 Wired Industrial Communications ................................................... 6
15.3.1 Sensor/Actuator Networks ........................................................ 7
15.3.2 Fieldbus Systems ...................................................................... 9
15.3.3 Controller Networks ............................................................... 12
15.4 Wireless Industrial Communications ............................................. 18
15.4.1 Wireless Local Area Networks (WLAN) ............................... 19
15.4.2 Wireless Sensor/Actuator Networks ....................................... 19
15.5 Wide Area Communications .......................................................... 21
15.6 Emerging Trends ............................................................................ 25
1
Session 15: Overview of industrial communication systems
15.1.1 History
2
Session 15: Overview of industrial communication systems
3
Session 15: Overview of industrial communication systems
4
Session 15: Overview of industrial communication systems
15.2.2 Domains
Figure 0.2 Network transitions (local area networks (LAN), wire- less LAN (WL), wired/wireless
(W/WL), real-time Ethernet (RTE), metropolitan area network (MAN), wide area network (WAN))
5
Session 15: Overview of industrial communication systems
6
Session 15: Overview of industrial communication systems
At this level, several well established and widely adopted protocols are
available:
HART (HART Communication Foundation): high- way addressable
remote transducer, coupling analog process devices with engineering
tools [15.5]
ASi (ASi Club): actuator sensor interface, coupling binary sensors in
factory automation with control devices [15.6].
Additionally, CAN-based solutions (CAN in automation (CIA)) are used for
wide-spread application fields, coupling decentralized devices with
centralized devices based on physical and MAC layers of the controller area
network [15.7]. Recently, IO Link has been specified for bi-directional digital
transmission of parameters between simple sensor/actuator devices in factory
automation [15.8, 9].
HART
HART Communication [15.5] is a protocol specification, which performs a
bi-directional digital trans- mission of parameters (used for configuration and
parameterization of intelligent field instruments by a host system) over analog
transmission lines. The host system may be a distributed control system
(DCS), a programmable logic controller (PLC), an asset management system,
a safety system, or a handheld device. HART technology is easy to use and
very reliable. The HART protocol uses the Bell 202 Frequency Shift Keying
(FSK) standard to superimpose digital communication signals at a low level
on top of the 4–20 mA analog signal. The HART protocol communicates at
1200 bps without interrupting the 4–20 mA signal and allows a host
application (master) to get two or more digital updates per second from a field
device. As the digital FSK signal is phase continuous, there is no interference
with the 4–20 mA signal. The HART protocol permits all digital
communication with field devices in either point-to-point or multidrop
network configurations. HART provides for up to two masters (primary and
7
Session 15: Overview of industrial communication systems
8
Session 15: Overview of industrial communication systems
PROFIBUS
PROFIBUS is a universal fieldbus for plantwide use across all sectors of the
manufacturing and process industries based on the IEC 61158 and IEC 61784
standards. Different transmission technologies are sup- ported [15.10]:
RS 485: Type of medium attachment unit (MAU) corresponding to
[15.13]. Suited mainly for factory automation. Technical details see
[15.10, 13]. Number of stations: 32 (master stations, slave stations or
repeaters); Data rates: 9.6/19.2/45.45/93.75/
187.5/500/1500/3000/6000/12 000 kb/s.
Manchester bus powered (MBP). Type of MAU suited for process
automation: line, tree, and star topology with two wire transmission;
9
Session 15: Overview of industrial communication systems
31.25 kBd (preferred), high speed variants w/o bus powering and
intrinsic safety; synchronous transmission (Manchester encoding);
optional: bus powered de- vices ( 10 mA per device; low power
option); optional: intrinsic safety (Ex-i) via additional constraints
according to the FISCO model. Intrinsic safety means a type of
protection in which a portion of the electrical system contains only
intrinsically safe equipment (apparatus, circuits, and wiring) that is
incapable of causing ignition in the surrounding atmosphere. No
single device or wiring is intrinsically safe by itself (except for
battery- operated self-contained apparatus such as portable pagers,
transceivers, gas detectors, etc., which are specifically designed as
intrinsically safe self- contained devices) but is intrinsically safe only
when employed in properly designed intrinsically safe system. There
are couplers/link devices to couple MBP and RS485 transmission
technologies.
Fibre optics.
There are two medium access control (MAC) mechanisms (Fig. 15.4):
1. Master–master traffic using token passing
2. Master–slave traffic using polling.
PROFIBUS differentiates between two types of masters:
1. Master class 1, which is basically a central controller that cyclically
exchanges information with the distributed stations (slaves) at a
specified message cycle.
2. Master class 2, which are engineering, configuration, or operating
devices. The slave-to-slave communication is based on the application
model publisher/subscriber using the same MAC mechanisms.
The dominating PROFIBUS protocol is the applica- tion protocol DP
(decentralized periphery), embedded into the protocol suite (Fig. 15.5).
Depending upon the functionality of the masters, there are different volumes
of DP specifications. There are various profiles, which are grouped as
follows:
1. Common application profiles (regarding functional safety,
synchronization, redundancy etc.)
2. Application field specific profiles (e.g. process automation,
semiconductor industries, motion control).
These profiles reflect the broad experience of the PROFIBUS International
organization.
DeviceNet
10
Session 15: Overview of industrial communication systems
The data link layer is defined by the CAN specification and by the
implementation of CAN controller chips. The CAN specification [15.7]
defines two bus states called dominant (logic 0) and recessive (logic 1). Any
transmitter can drive the bus to a dominant state. The bus can only be in the
recessive state when no transmitter is in the dominant state. A connection with
a device must first be established in order to exchange information with that
device. To establish a connection, each DeviceNet node will implement either
an unconnected message manager (UCMM) or a Group 2 unconnected port.
11
Session 15: Overview of industrial communication systems
At this point, all the protocol variants of the DeviceNet I/O message are
contained within the 11-bit CAN identifier. CIP is strictly object oriented.
Each object has attributes (data), services (commands), and behavior
(reaction to events). Two different types of objects are defined in the CIP
specification: communication objects and application-specific objects.
Vendor-specific objects can also be defined by vendors for situations where
a product requires functionality that is not in the specification. For a given
device type, a minimum set of common objects will be implemented. An
important advantage of using CIP is that for other CIP-based networks the
application data remains the same regardless of which network hosts the de-
vice. The application programmer does not even need to know to which
network a device is connected.
CIP also defines device profiles, which identifies the minimum set of objects,
configuration options, and the I/O data formats for different types of devices.
Devices that follow one of the standard profiles will have the same I/O data
and configuration options, will respond to all the same commands, and will
have the same behavior as other devices that follow that same profile. For
more information on DeviceNet readers are referred to www.odva.org.
12
Session 15: Overview of industrial communication systems
13
Session 15: Overview of industrial communication systems
device, linking device, I/O gate- way, and field device. These devices share
the tasks of the system using distributed function block applications.
PROFINET (PNO PROFIBUS User Organization, Siemens) [15.19]. uses
object model CBA (component based architecture) and DCOM wire protocol
with the remote procedure call mechanisms (DCE RPC) (OSF C 706) to
transmit the soft real-time data. An open source code and various exemplary
implementations/portations for different operating systems are available on
the PNO web site.
P-N et on IP (Process Data) [15.20]. Based on P-Net Fieldbus standard IEC
61158 Type 4 [15.11], P-Net on IP contains the mechanism to use P-Net in
an IP environment. Therefore, P-Net PDUs are wrapped into UDP/IP
packages, which can be routed through IP net- works. Nodes on the IP
network are addressed with two P-Net route elements. P-Net clients (master)
can access servers on an IP network without knowing anything about IP
addresses.
All of the above mentioned approaches are able to support widely used office
domain protocols, such as SMTP, SNMP, and HTTP. Some of the approaches
support BOOTP and DHCP for web access and/or for engineering data
exchange. But the object models of the approaches differ.
Deterministic Real-Time Approaches (Real-Time Class 2)
These approaches use a middleware on top of the MAC layer to implement
scheduling and smoothing functions. The middleware is normally represented
by a software implementation. Industrial examples include the following.
PROFINET (PROFIBUS International, Siemens) [15.19]. This variant of the
Ethernet-based PROFINET IO system (using the main application model
background of the Fieldbus PROFIBUS DP) uses the object model IO
(input/output). Figure 15.7 roughly depicts the PROFINET protocol suite,
containing the connection establishment for PROFINET/CBA via
connection- oriented RPC on the left side, as well as for the PROFINET IO
via connectionless RPC on the right side. The exchange of (mostly cyclic)
productive data uses the real-time functions in the center.
The PROFINET IO service definition and protocol specification [15.21]
covers the communication between programmable logical controllers (PLCs),
supervisory systems, and field devices or remote input and output devices.
The PROFINET IO specification complies with IEC 61158, Parts 5 and 6,
specially the Fieldbus application layer (FAL). The PROFINET protocol is
defined by a set of protocol machines.
14
Session 15: Overview of industrial communication systems
Figure 0.7 PROFINET protocol suite of PROFINET (active control connection object (ACCO),
connection-oriented (CO), connectionless (CL), remote procedure call (RPC))
15
Session 15: Overview of industrial communication systems
The application layer FAL contains three types of proto- col machines:
the FSPM FAL service protocol machine, ARPMs application
relationship protocol machines, and the DMPM data link layer mapping
protocol machine. For real-time data transfer, the data link layer offers
three services:
1. Connection-less DL service
2. DL-SAP management service
3. DL management service.
Real-time and non-real-time traffic scheduling is located on top of the MAC
layer. Therefore, one or more timeslots can be used within a macro-cycle
(depending on the service subtype). The data can be ordered by four priorities:
urgent, high, normal, time available. Each node has its own synchronized
macro-cycle. The data link layer is responsible for clock synchronization.
Isochronous Real-Time Approaches (Real-Time Class 3)
The main examples are as follows.
Powerlink (Ethernet PowerLink Standardization Group (EPSG), Bernecker
and Rainer), developed for motion control [15.25]. Powerlink offers two
modes: protected mode and open mode. The protected mode uses a
proprietary (B&R) real-time protocol on top of the shared Ethernet for
protected subnet- works. These subnetworks can be connected to an open
standard network via a router. Within the protected subnetwork the nodes
cyclically exchange real-time data avoiding collisions. The scheduling
mechanism is a time-division scheme. Every node uses its own time slot [slot
communication network management (SCNM)] to send its data. The
mechanism uses a man- ager node, which acts comparably with a bus master,
and managed nodes act similar to a slave. This mechanism avoids Ethernet
collisions. The Powerlink protocol transfers the real-time data isochronously.
The open mode can be used for TCP(UDP)/IP based applications. The
network normally uses switches. The traffic has to be transmitted within an
asynchronous period of the cycle.
EtherCAT [EtherCAT Technology Group (ETG), Beckhoff] developed as a
fast backplane communication system [15.26]. EtherCAT distinguishes two
modes: direct mode and open mode. Using the direct mode, a master device
uses a standard Ethernet port between the Ethernet master and an EtherCAT
segment. EtherCAT uses a ring topology within the segment. The medium
access control adopts the master/slave principle, where the master node
(typically the control system) sends the Ethernet frame to the slave nodes
(Ethernet device). One single Ethernet device is the head node of an Ether-
CAT segment consisting of a large number of EtherCAT slaves with their
own transmission technology. The Ethernet MAC address of the first node of
a segment is used for addressing the EtherCAT segment. For the segment,
16
Session 15: Overview of industrial communication systems
special hardware can be used. The Ethernet frame passes each node. Each
node identifies its subframe and receives/sends the suitable information using
that sub- frame. Within the EtherCAT segment, the EtherCAT slave devices
extract data from and insert data into these frames. Using the open mode, one
or several Ether- CAT segments can be connected via switches with one or
more master devices and Ethernet-based basic slave devices.
PROFINET IO/Isochronous Technology (PROFIBUS User Organization,
Siemens) developed for any industrial application [15.27]. PROFINET
IO/Isochronous Technology uses a middleware on top of the Ethernet MAC
layer to enable high-performance transfers, cyclic data exchange and event-
controlled signal transmission. The layer 7 functionality is directly linked to
the middleware. The middleware itself contains the scheduling and smoothing
functions. This means that TCP/IP does not influence the PDU structure. A
special Ethertype is used to identify real-time PDUs (only one PDU type for
real-time communication). This enables easy hardware support for the real-
time PDUs. The technical back- ground is a 100 Mbps full duplex Ethernet
(switched Ethernet). PROFINET IO adds an isochronous real-time channel to
the RT channels of real-time class 2 option channels. This channel enables a
high-performance transfer of cyclic data in an isochronous mode [15.28].
Time synchronization and node scheduling mechanisms are located within
and on top of the Ethernet MAC layer. The offered bandwidth is separated
for cyclic hard real-time and soft/non real-time traffic. This means that within
a cycle there are separate time domains for cyclic hard real-time, for soft/non
real-time over TCP/IP traffic, and for the synchronization mechanism, see
also Fig. 15.8.
Figure 0.8 LMPM MAC access used in PROFINET IO (cyclic real-time (cRT), acyclic real-time
(aRT), nonreal-time (non RT), medium access control (MAC), link layer mapping protocol machine
(LMPM))
The cycle time should be in the range of 250 μs (35 nodes) up to 1 ms (150
nodes) when simultaneously TCP/IP traffic of about 6 Mbps is transmitted.
The jitter will be less than 1 μs. PROFINET IO/IRT uses switched Ethernet
(full duplex). Special four-port and two-port switch ASICs have been
developed and allow the integration of the switches into the devices (nodes)
substituting the legacy communication controllers of Fieldbus systems.
Distances of 100 m per segment (electrical) and 3 km per segment (fiber-
optical) can be bridged.
17
Session 15: Overview of industrial communication systems
18
Session 15: Overview of industrial communication systems
The term WLAN refers to a wireless version of the Ethernet used to build
computer networks for office and home applications. The original standard
(IEEE802.11) specified an infrared, a direct sequence spread spectrum
(DSSS) and a frequency hopping spread spectrum (FHSS) physical layer.
There is an approval for WLAN to use special frequency bands, however it
has to share the medium with other users. The Wi-Fi Alliance was founded to
assure interoperability between WLAN clients and access points of different
vendors. There- fore, a certification procedure and a Wi-Fi logo are provided.
WLANs use a license-free frequency band, and no service provider is
necessary.
WLAN is a mature technology, and it is implemented in PCs, laptops, and
PDAs. Modules for embedded systems development are also available.
WLAN can be used almost worldwide. Embedded WLAN de- vices need a
powerful microcontroller. WLAN enables wireless access to Ethernet based
LANs and is helpful for the vertical integration in an automated
manufacturing environment. It offers high speed data transmission that can
be used to transmit productive data and management data in parallel. The
WLAN propagation characteristics fit into a number of possible automation
applications. WLAN enables more flexibility and a cost-effective installation
in automation associated with mobility and localization. The transition to
Ethernet is simple and other gateways are possible. The largest part of the
implementation is achieved in hardware; however, improvements can be
made above the MAC layer.
15.4.2 Wireless Sensor/Actuator Networks
19
Session 15: Overview of industrial communication systems
20
Session 15: Overview of industrial communication systems
TSMP supports star, tree, as well as mesh topologies. All nodes have the
complete routing function (contrary to ZigBee). A self-organization
mechanism enables devices to acquire information of neighboring nodes and
to establish connections between them. The messages have their own network
identifier. Thus, different networks can work together in the same radio area.
Each node has its own list of neighbors, which can be actualized when failures
have been recognized.
To support security, TSMP uses mechanisms for encryption (128-bit
symmetric key), authentication (32 bit MIC for source address), and integrity
(32 bit MIC for message content). Additionally, the frequency hopping
mechanism improves the security features. For detailed information see
[15.46].
21
Session 15: Overview of industrial communication systems
Figure 0.9 Remote communication channels over WAN (input/ output (IO); communication relation
(CR))
22
Session 15: Overview of industrial communication systems
23
Session 15: Overview of industrial communication systems
24
Session 15: Overview of industrial communication systems
25
Session 15: Overview of industrial communication systems
26
Session 16: Communication for distributed control systems
Session 16
Communication for distributed control
systems
Content
Introduction ............................................................................................... 28
16.1 Motivations for the Fieldbus .......................................................... 28
16.2 Fieldbus Topology ......................................................................... 31
16.3 Architecture of the Fieldbus .......................................................... 32
16.4 The Physical Layer ........................................................................ 33
16.5 The Data Link Layer ...................................................................... 34
16.5.1 The Link Active Scheduler (LAS).......................................... 35
16.5.2 Cyclic Communication ........................................................... 36
16.5.3 Acyclic/Unscheduled Communication ................................... 37
16.5.4 Macro Cycle and Elementary Cycle ....................................... 38
16.6 The Application Layer ................................................................... 39
16.6.1 Fieldbus Access Sublayer ....................................................... 39
16.6.2 The Fieldbus Message Sublayer (FMS) .................................40
16.7 Fieldbus Devices ............................................................................ 41
16.7.1 Communications Stack ........................................................... 41
16.7.2 Transducer Block .................................................................... 42
16.7.3 Resource Block ....................................................................... 42
16.7.4 Function Block ....................................................................... 42
16.8 Network Management Structure .................................................... 46
16.9 System Management Functions ..................................................... 46
16.10 Device Description ..................................................................... 47
27
Session 16: Communication for distributed control systems
Introduction
Among the major motivations for the Fieldbus are the following.
Replacement of analog and digital (serial) point-to-point
communication technology with much superior digital
communication network for high speed ubiquitous and reliable
communication within a harsh industrial environment.
Enhanced data availability from smart field bus devices needed for
advanced automation functions such as control, monitoring,
supervision etc.
Easy configurability and interoperability of system components
leading to an easily installable, maintainable and upgradeable open
system that leverages the computing and networking hardware and
software solutions
In industrial automation systems, the field signals have been traditionally
transmitted to the control room using point-to-point communication methods
that employ analog technologies such as the 4-20 mA current loop or, more
recently, digital ones such as the RS-422 or RS-485. The main disadvantages
of this are the highly increased cost of cabling due to the need for a separate
pair of wires for each device connected to the mainframe. Apart from this,
with 4 -20 mA analog current loop, signals can be transmitted only in one
direction. With the need for more complex monitoring and control of a
process plant, installation and maintenance of these point to point
communication media and their signal integrity become more and more
difficult. As an alternative the network communication architecture presents
an attractive option. Firstly, the cabling requirements are marginally
28
Session 16: Communication for distributed control systems
increased as more and more devices are added to the network. Secondly, a
vast array of high-speed networking technologies is available at attractive
costs from the computer market. Thirdly, with the addition of intelligent
devices, such a system enables advanced monitoring supervision and control,
leading to improvements in productivity, quality and reliability of industrial
operations.
Figure 0.1 Wiring system for conventional point-to-point communication systems and the Fieldbus
29
Session 16: Communication for distributed control systems
Table 16.1 compares some of the key features of 4-20mA and Fieldbus
technology. It should be mentioned that Fieldbus becomes cost-effective only
beyond a certain scale of operations.
Table 0.1 Comparison of Fieldbus with 4-20mA current loop
30
Session 16: Communication for distributed control systems
The Physical Layer of the Protocol was designed from the outset to
cope with installed cables and flammable atmospheres (hazardous
areas).
Both precise cyclic updates as well as acyclic and sporadic
communications are catered for within the Protocol.
Each variable transmitted on the Fieldbus carries with it tags
indicating the current health of the source. Using this information,
recipient Devices can take appropriate action immediately (for
example switch to Manual, Off-line, etc.).
As shown in Figure 16.1, Fieldbus generally uses one of the two topologies -
Bus and Tree. With the Bus Topology, devices are connected to the network
'back-bone'. Either through a 'Drop Cable' Device or are directly connected to
the Bus by a 'Splice' connection. The Tree arrangement is used where a
number of Devices share a similar location remote from the equipment room.
A junction box, installed at the geographic center of gravity of the Devices,
communicates with each Device is connected to it via a cable. In general
Fieldbuses can use a combination of both topologies. Thus, trees can be hung
from network buses.
31
Session 16: Communication for distributed control systems
32
Session 16: Communication for distributed control systems
Fieldbus allows options for three types of communication media at this layer,
namely, Wire, Fiber-optic and Radio. The Physical Layer is sub-divided into
an upper section (the Media Independent Sub-Layer MIS) and a lower section
which is media specific.
The MIS ensures that the selected Media interfaces in a consistent way with
the Data Link Layer (2), regardless of the media used. The lower sections
define the communications mechanism and media. For example, for wire
33
Session 16: Communication for distributed control systems
The maximum number of nodes per bus segment amounts to 32. More lines
can connect under one another through performance enhancements
(repeaters) whereby it is noted that each repeater counts as a node. In total a
maximum of 128 nodes are connectable (over all bus segments).
34
Session 16: Communication for distributed control systems
It defines three types of data link layer entities, a Link Master(LM), a Basic
Device(BD), and a bridge. Link master devices are capable of assuming the
role of the bus master, called the link active scheduler (LAS). At any point of
time only one of the LM devices act as the LAS. This is depicted in Figure
16.3.
Figure 0.5 Link Active Scheduler, Link Masters and Basic Devices for a Fieldbus implemented on a
High-Speed Ethernet
Basic devices are those devices not capable of becoming the LAS. They
receive and send published data, and they receive and use tokens. When they
hold the token, they are capable of initiating communications with all devices
on the network.
Bridge devices connect link segments together. Bridged networks are
configured into a spanning tree in which there is a single root link segment
and a series of downstream link segments. Bridges interconnect the link
segments. Each bridge may have a single upstream port (in the direction of
the root) and multiple downstream ports (away from the root). The root port
behaves as a basic device and the downstream ports are each the LAS for their
downstream link.
Bridges are responsible for republishing scheduled transfers and forwarding
all other traffic. Configured republishing and forwarding tables identify the
packets that are to receive and republish or forward. Bridges are also
responsible for synchronizing time messages received on their root port
before regenerating them on their downstream ports.
16.5.1 The Link Active Scheduler (LAS)
One of the devices connected to the Fieldbus acts as the Link Active
Scheduler (LAS). This decides which Device transmits next and for how long,
thereby avoiding the collision of messages on the Bus. The LAS is
responsible for the following list of tasks.
35
Session 16: Communication for distributed control systems
The device transmitting the data is referred to as the "Publisher" and those
who take copies are called "Subscribers". The publisher may not know which
36
Session 16: Communication for distributed control systems
Once the requirements for cyclic data transmission have been met, the LAS
will issue a Pass Token (PT) to each device in turn, thereby allowing them
37
Session 16: Communication for distributed control systems
access to the bus to transmit data (a DT) or request data from another device,
utilizing the bus up to an allocated time limit.
16.5.4 Macro Cycle and Elementary Cycle
38
Session 16: Communication for distributed control systems
case). Similarly, the longest update time sets the MC period (1 Second. in this
case).
The CD for Device 1 is generated at the beginning of each Elementary Cycle
and the CD for Device 2 at the second time slot of alternate Elementary
Cycles. In the 'free time' in each Elementary Cycle the LAS transmits PT's to
devices on the Fieldbus segment in turn, allowing them to transmit
unscheduled information. This is the unscheduled portion of the Elementary
Cycle. There may be insufficient free time for all Devices to receive a PT
before the end of the Elementary Cycle. In this case the LAS continues from
where it left off in subsequent cycles.
Note that the time available for unscheduled traffic varies from one
Elementary Cycle to another. For example, in the first EC of an MC in the
example, both periodic updates take place, while in the second EC only one
does, since the update requirement of device 2 is lower. Also, the CD's
requiring the shortest update intervals are dealt with first in each Elementary
Cycle. Thereby ensuring the interval between subsequent updates remains
constant.
The objective of the Application Layer is to convert data and requests for
services coming from the User Application (Layer 8), into demands on the
communication system in the Layers below, and to provide the reverse service
for received messages. Thus, the application layer abstracts the technical
details of the network from the user layer which can view the network devices
to which communication is needed as if they are connected by virtual point
to point communication channels. The Application Layer is subdivided into
two sublayers namely the Fieldbus Access Sublayer (FAS) and the Fieldbus
Message Sublayer (FMS). These are described below.
16.6.1 Fieldbus Access Sublayer
The FAS sits in-between the FMS and the DLL. The FAS provides three
fundamental kinds of Version 2 EE IIT, Kharagpur 13 communications. The
services offered by the higher layers such as the FMS are realized by the FAS
using one of these modes of communication. They are described below.
39
Session 16: Communication for distributed control systems
The FMS acts as the interface between the User Layer and FAS. There is a
logical framework called Virtual Field Device (VFD), which manages various
functions and parameters at the user layer.
40
Session 16: Communication for distributed control systems
A Fieldbus Device must have at least two VFD's, one for administering the
network, the other for the control of the system or function blocks. The former
has the parameters related to setting up the communication, the latter has the
parameters related to Function Blocks defined by user layer and required by
the control application.
The process control oriented VFD in a Fieldbus device is its Function Block
Application Process (FBAP). Conceptually the Fieldbus specification allows
for the development of other Application Processes in the future, for example
a PLC Application Process might be defined.
In one field device, there are hundreds of parameters, such as the name of
apparatus, an address, status variables and operating modes, function blocks,
and those composed of data files. These parameters are defined as the objects
in a VFD. They can be treated systematically and are independent of the
specification of the physical device.
Each VFD is an "object" and within it there are other objects. An index of
these objects referred to as the Object Dictionary (OD) is provided within the
VFD. It details each object within the VFD, their data types and definition.
When another device, say an HMI host, wishes to access this data it can
interrogate the VFD to determine what is available, its format etc. This facility
aids interoperability as well as automated configurability.
41
Session 16: Communication for distributed control systems
Resource Block contains the resource information for hardware and software
within the Fieldbus device. For example, the device type, the manufacturer’s
name and data such as, serial number and available memory capacity - are
stored as parameters. Only one resource block exists in each Fieldbus device.
16.7.4 Function Block
The primary purpose of a field device is to perform low level I/O and control
operations. The Function Block Application Process (FBAP), as defined by
the Fieldbus Foundation, models these operations of a field device. The
structure of an FBAP is shown in Figure 16.8. The FBAP is composed of a
set of function blocks configured to communicate with each other. Outputs
from one function block are linked to the inputs of another through
configuration parameters called link objects. Function blocks may be linked
within a device, or across the network. Function blocks are scheduled to
execute their algorithms at predefined times that are coordinated with the
transfer of their inputs and outputs. During the execution of the function
block, the algorithm may detect events and trend parameter values (collect a
series of values for subsequent reporting). Reporting of events and trends can
be performed by multicasting them onto the bus to a group of devices. In
addition, some other types of objects such as View Objects, Alert Objects etc.
may also be associated with an FBAP. These objects perform typical tasks
related to the Function Blocks in the device. For example,
The 'Alert Object' monitors the status of various kinds of blocks, and
reports to the upper system with a time stamp, if a configured alarm
or event is detected.
42
Session 16: Communication for distributed control systems
The ‘Trend Object' stores trend data within a device and sends it in
one file upon request. This improves the communication efficiency.
Similarly, the 'View Objects' construct dynamic files of variables,
status indications etc., collected from various blocks, and required by
external devices for monitoring and control purposes. By bundling
together, the required information it can be sent in a single
transmission, thereby saving communication time.
Finally, the 'Link Object'. Interfaces the function blocks and the
objects to the FMS for implementing the configured Virtual
Communication Channels between FBAPs residing within network
devices
A function block is essentially a program that contains a set of network visible
input parameters, output parameters, internally contained parameters, and an
algorithm to process them. Parameters are identified by an index or a name
(not recommended) that locates them in the object dictionary associated with
the function block application. The object dictionary contains information
used to encode and decode parameters, such as type and length, and also is
used to map the parameter index to a local memory address. To promote
interoperability, interface devices can access the object dictionary.
Function blocks are connected to the physical hardware they represent
through transducer blocks. Devices can be configured across the network
through the use of contained block parameters. Contained block parameters
are those that can be written to the device by interface devices. Interface
devices are not able to write values to input and output parameters.
Figure 16.10 shows how a communication relating to a physical variable takes
place over the network. The value of the local physical variable is acquired
by the function block through the transducer block firmware. This is
processed by the function block and the output is communicated to another
field device with the help of the Link Object. The Link object locates, from
the object directory, the network address of the destination device as well as
the mode of communication service to be used for the communication task.
These are then realized by the FMS and the FAS sub-layers, in turn using the
lower layers.
43
Session 16: Communication for distributed control systems
44
Session 16: Communication for distributed control systems
Figure 0.10 Access to function block parameters through the object dictionary
Figure 0.11 Function Block execution and communication sequence for a control loop.
45
Session 16: Communication for distributed control systems
46
Session 16: Communication for distributed control systems
47
Session 17: Communication protocols for building automation
Session 17
Communication protocols for building
automation
Content
17.1 Introduction .................................................................................... 49
17.2 Building services, automation, and integration ............................. 50
17.2.1 Building Services .................................................................... 52
17.2.2 System Integration .................................................................. 56
17.2.3 Automation and Control ......................................................... 57
17.2.4 Automation Hierarchy ............................................................ 59
17.3 Building automation and control networks .................................... 61
17.3.1 Basic Characteristics............................................................... 62
17.3.2 Application Model and Services............................................. 64
17.3.3 Network Architecture ............................................................. 68
17.3.4 Network Interconnection ........................................................ 70
17.4 Standards overview ........................................................................ 74
17.4.1 Subsystem Solutions ............................................................... 76
17.4.2 Open Management Integration ............................................... 78
17.5 Open system solutions ................................................................... 79
17.5.1 BACnet ................................................................................... 79
17.5.2 LonWorks ............................................................................... 85
17.5.3 EIB/KNX ................................................................................ 90
48
Session 17: Communication protocols for building automation
17.1 Introduction
Home and building automation systems are in the broadest sense concerned
with improving interaction with and between devices typically found in an
indoor habitat. As such, they provide a topic with many facets and range from
small networks with only a handful of devices to very large installations with
thousands of devices. This paper, however, narrows its focus on the
automation of large functional buildings, which in the following will be
referred to as “buildings” for simplicity. Examples include office buildings,
hospitals, warehouses, or department stores as well as large, distributed
complexes of smaller installations such as retail chains or gas stations. These
types of buildings are especially interesting since their size, scale, and
complexity hold considerable potential for optimization, but also challenges.
The key driver of the building automation market is the promise of increased
user comfort at reduced operation cost. To this end, building automation
systems (BAS) make use of optimized control schemes for heating,
ventilation, and air-conditioning (HVAC) systems, lighting, and shading.
Improvements in energy efficiency will also contribute to environmental
protection. For this reason, related regulations sometimes mandate the use of
BAS.
Costs can further be reduced by providing access to all building service
systems in a centralized monitoring and control center. This allows abnormal
or faulty conditions to be detected, localized and corrected at an early stage
and with minimum personnel effort. This is especially true when access to the
site is offered through a remote connection. A unified visualization scheme
for all systems further eases the task of the operator. Direct access to BAS
data from the corporate management level eases data acquisition for facility
management tasks such as cost allocation and accounting.
Besides the immediate savings, indirect benefits may be expected due to
higher expected workforce productivity or by the increased perceived value
of the automated building (the “prestige factor,” for both building owner and
tenant).
Although investment in building automation systems will result in higher
construction cost, their use is mostly eco-nomically feasible as soon as the
entire building life cycle is considered. Typically, the operational cost of a
building over its lifetime is about seven times the initial investment for
construction. Therefore, it is important to choose a building concept that
ensures optimal life-cycle cost, not minimum in-vestment cost. The
considerable number of available performance contracting offers strongly
emphasizes that advanced BAS are indeed economical. In these models, the
contractor takes the financial risk that prospective savings will offset the
investment within a given time.
49
Session 17: Communication protocols for building automation
Benefits both in terms of (life cycle) cost and functionality will be maximized
as more systems are combined. This requires that expertise from different
fields is brought together. Integrating fire alarm and security functions is
particularly challenging due to the high demands made on their depend-
ability. Engineers and consultants who used to work separately are forced to
collaborate with each other and the design engineer as a team.
Integration is obviously far easier when systems that shall be joined talk the
same language. For example, unified presentation is achieved at no additional
engineering effort this way, potentially reducing investment cost. Especially
large corporations with hundreds or thousands of establishments spread out
over large distances certainly would want to harmonize their building network
infrastructure by using a certain standard technology throughout. Yet this goal
is effectively out of reach as long as different manufacturers’ systems use
proprietary communication interfaces, with no manufacturer covering the
entire spectrum of applications. Here, open standards try to close the gap,
which step into the breach, which moreover help avoid vendor lock-in
situations.
In the past years’ LAN technologies have been pushing down the network
hierarchy from the management level while fieldbus technologies are pushing
upwards. This battle is still not over but what has already emerged from this
rivalry is a new trend of combining fieldbus protocols with LAN technologies
to better utilize an existing LAN infra-structure. Most approaches follow the
principle of running the upper protocol layers of the fieldbus protocol over
the lower layers of a typical LAN protocol such as IP over Ethernet. The
synergies arising out of this very attractive combination are manifold.
For example, most corporations have established their own Intranet and are
now able to leverage this infrastructure for managing their buildings. Still, all
the device profiles developed with great effort over many years can be reused.
Also, technicians trained on particular tools for many years do not find their
existing knowledge rendered worthless de-spite the switch to IP-based
building automation networks. IP-based communication also opens up new
dimensions in remote management and remote maintenance.
50
Session 17: Communication protocols for building automation
51
Session 17: Communication protocols for building automation
Buildings should provide supportive conditions for people to work and relax.
This means they will usually be tuned toward human comfort parameters
(comfort HVAC). Some-times, zones or entire buildings are optimized for the
particular demands of machines, processes, or goods, which may differ from
human comfort (industrial HVAC). In any case, the environment needs to be
safe, secure and provide the necessary infrastructure, including
52
Session 17: Communication protocols for building automation
53
Session 17: Communication protocols for building automation
to remove dust and smoke particles, a humidifier and the necessary dampers
and pressure sensors to control the amount of air exchange with the outside.
With variable air volume (VAV) boxes instead of fixed outlets it is possible
to finely control the amount of air released into the conditioned space in
addition to its temperature, which allows saving energy.
The amount of air which needs to be exchanged to maintain proper air quality
varies with the number of people present. Most frequently, a static value is
assumed for smaller rooms and manual intervention is required for larger ones
like lecture halls. Nevertheless, air quality sensors (cf.) are available for
automation.
Not all sections of a building can (or need to) be treated equally with respect
to environmental conditioning. As an example, for access spaces like
stairways, thermal comfort parameters are relaxed in comparison with
habitable spaces.
Table 0.1 Building Service Domains
Also, the sunlit south side of a building may require different treatment than
the one facing north. Therefore, and for reasons of manageability in large
complexes, buildings are split into control zones. With room control, every
room forms a zone of its own. Conditions can then be optimized for taste or
presence, using presence buttons or detectors.
Good HVAC control strategies can optimize the consumption of primary
energy by capitalizing on information about thermal comfort conditions as
well as properties of the building structure (e.g., high or low thermal inertia)
and systems. Comprehensive sensor data and provisions for fine-grained
control also work toward this goal.
Lighting systems fall into two subdomains: artificial lighting, where
luminaires are switched and dimmed (by means of load switches,
incandescent dimmers, and controllable ballasts) and daylighting. The latter
is concerned with limiting the amount of daylight which enters the interior to
avoid excessive light intensity and glare. Motorized blinds allow automation
of this task. Lighting is traditionally dominated by simple open-loop control
relationships in response to manual switches. Only recently, complexity has
increased. Artificial light can be centrally switched off during nonoffice
hours, also automatically on a given schedule. In this period, a time-limited
mode of operation can be entered. Presence detector devices can be used to
54
Session 17: Communication protocols for building automation
automatically turn off the lights in unused rooms. Both luminaires and blinds
can be adjusted for the sun position according to the time of day. Advanced
daylighting systems follow the sun to adjust mirrors which reflect daylight
into interior zones. Also, luminaires and blinds can adapt to sky conditions to
yield constant lighting conditions with optimum energy efficiency. Lumen
maintenance can be achieved both in an open-loop (using a rooftop daylight
detector) or a closed-loop manner (with lighting sensors placed in the
interior). Anemometers and weathervanes allow determining when outside
blinds have to be retracted to avoid damage. Recently, electrochromic
windows have become available commercially. The translucence of
electrochromic glass is continuously adjustable by applying a low voltage.
In safety and security alarm systems, no closed control loops exist. Alarm
conditions have to be detected and passed on to appropriate receiving
instances. This includes local alarms as well as automatically alerting an
appropriate intervention force. Precisely distinguishing nonalarm from alarm
situations is essential. Example sensors are motion and glass break sensors
from the security domain; water sensors for false floors from the property
safety domain; and smoke detectors, heat detectors and gas sensors from the
life safety domain. Emergency communication can include klaxons or
playback of prerecorded evacuation messages. Emergency lighting is also
related to this field. Generally, high reliability is required in this domain, the
exact requirements depending on the precise application. The requirements
are highest for handling life-threatening conditions in the safety domain, most
notably fire alarms. Also, no system components can be allowed to fail
without being noticed. The inspections necessary to ensure this can be aided
by automatic monitoring.
Like BAS, alarm systems gradually have implemented communication
capabilities that reduce the cost of installation and operation. Traditionally,
sensors had their alarm limits preset in hardware and were daisy-chained into
loops. An alarm was triggered whenever a sensor broke the current loop, with
the precise location and reason unknown to the system. This technique is still
used in smaller systems. More recent systems allow communication with
individual sensors, which may provide even more detailed information about
the alarm condition this way, for example the gas concentration measured.
Provides an overview on safety and security system technologies. As a final
example, conveying systems are of significant complexity in their own right
regarding control. Yet there is no need for modification of most of their
parameters (like car speed or light level) in response to daily changes in
building use, like it is the case in HVAC. Therefore, control interaction occurs
on a high level only. Examples include putting the system into a reduced
operation mode during night hours or controlled shutdown in case of a fire
alarm. Additionally, signaling equipment on the landings (e.g., hall and
direction lanterns) could be accessed through an open interface.
55
Session 17: Communication protocols for building automation
56
Session 17: Communication protocols for building automation
57
Session 17: Communication protocols for building automation
58
Session 17: Communication protocols for building automation
59
Session 17: Communication protocols for building automation
60
Session 17: Communication protocols for building automation
61
Session 17: Communication protocols for building automation
62
Session 17: Communication protocols for building automation
The network should also provide appropriate noise immunity (and not
generate unacceptable levels of noise itself). Robustness in this respect is
desirable especially at the field level, where cables are laid in the immediate
vicinity of the mains wiring. Apart from this, the environment of BACS
networks is not particularly noisy, especially in office buildings.
Table 0.2 Selected Service Requirements and Related Mechanisms in Industrial and Building
Automation
63
Session 17: Communication protocols for building automation
that a door was unlocked; however, only a trusted entity should be able to do
so.
Securing connection points for remote access is of particular importance.
Since they often allow access to management level functions, attacks on them
will have a higher chance of global effect. BACS field networks are exposed
to (inside) attack as well, especially when run through publicly accessible
spaces.6 Open media such as wireless and powerline signaling further
increase vulnerability, since access to the medium can be gained in an
unobtrusive manner. Further, the shift to open systems reduces the knowledge
barrier for intruders.
Considering cost, many sensors and actuators (e.g., light switches or
controllable breakers) are cheap. Providing them with fieldbus connectivity
must not be inappropriately expensive. Costs are also an issue in manpower
involved. There-fore, installation and configuration have to be as simple as
possible.
Wiring can be significantly simplified when a network supports free
topology. One can think of free topology as increasing the stub length in a
bus topology until the bus character disappears. The two bus terminators in a
bus topology will be replaced by a single bus terminator for the free topology
network installed anywhere on the network. Cables should also be easy to run
through ducts. Supplying power to the nodes over the network cable (also
known as link power) both saves additional power wires and allows compact,
inexpensive power supplies. For inaccessible or hazardous areas or special
aesthetical requirements, wireless technologies are deployed. Wireless access
is also interesting for management functions like log file access for service
technicians or presenting user interfaces to tenants on their personal mobile
devices. Retrofit applications will also profit from the ability to use power-
line communication.
17.3.2 Application Model and Services
64
Session 17: Communication protocols for building automation
points are the logical representation of the underlying physical process, which
control net-work nodes drive or measure. Each node can be associated with
one or more data points. In the logical view each data point represents a single
datum of the application. It can correspond to an aspect of the real world (such
as a certain room temperature or the state of a switch) or be of more abstract
nature (e.g., a temperature set point).
The data points are connected through a directed graph, distinguishing output
points and input points. The application is defined by this graph and a set of
processing rules describing the interactions caused by the change of a point
value. The logical links which this graph defines can be entirely different
from the physical connections between the nodes.
The main characteristic of a data point is its present value. How the digital
value is represented is determined by the basic point type, such as integer,
floating point, Boolean or enumeration types. To further qualify their value,
data points are associated with additional meta data (attributes), which are
important in the context of the control application.
A unit attribute adds a semantic meaning to the present value by describing
the engineering unit of the value. This attribute is often implied by a certain
complex point type de-fined for a specific application, such as
“Temperature.” These type attributes are often used to ensure compatible
connections between data points.
A precision attribute specifies the smallest increment that can be represented.
Attributes such as minimum value, maximum value, and resolution may
describe the observable value range of the data point more precisely. The
resolution can be the actual resolution of the physical sensor and may be less
than the precision.
A key attribute is the location of a point, which is often correlated to a name.
Building planners may de-sign the point name space according to
geographical aspects, such as building, floor or room and/or according to
functional domain aspects, such as air conditioning or heating. The name
space hierarchy need not correspond with the network topology (although it
often does, especially with a geographic hierarchy). An example pattern is
Facility/System/Point, e.g., “Depot/Chiller1/Flow Temperature.”
Often, alarm indicator attributes are used. By presetting certain bounds on a
data point value, the data point can switch from normal mode to alarm mode,
e.g., when a temperature limit has been exceeded. This attribute can be
persistent so that it can be used to detect alarms also after the value has
returned to be in bounds again.
65
Session 17: Communication protocols for building automation
Figure 0.3 An example for a data point graph using different functional blocks and aggregation.
66
Session 17: Communication protocols for building automation
Since the time characteristics of horizontal traffic are known at the design
stage, the application can be subjected to a priori performance analysis
discusses how to quantify the amount of such identified data in building
automation applications.
As one output data point will often be bound to multiple input data points,
horizontal communication benefits from protocol support for multicast
relationships. Such support also may facilitate obtaining set coherence
(which, for example, can be of interest when switching groups of luminaires).
Since the multicast destination groups will be static as well, labeling them
with logical identifiers can simplify addressing. This also enables a
publisher–subscriber style of communication where producers and consumers
of information need not be aware of each other.
Generally, producer consumer relationships seem most suitable for horizontal
communication. For the node application programmer, a shared-variable
model is particularly convenient. On every change of a specially designated
variable (possibly holding the present value of an output data point), the
nodes’ system software will automatically initiate the necessary message
exchange to propagate the updated value to the appropriate receivers.
When bindings can be defined without changing the node application, the
latter can be created independent of its particular use in the overall system.
This is especially useful for smart field devices. Unlike DDC stations, their
programming is more or less fixed due to resource limitations.
Standardization of the functional blocks they represent (“device profiles”) is
instrumental for enabling interworking between such nodes.
Table 0.3 Horizontal Versus Vertical Communication
67
Session 17: Communication protocols for building automation
Although the three-level model from Fig. 17.2 suggests a matching three-
level hierarchical network architecture, strictly implementing this concept is
not appropriate in many cases. It was already discussed that devices
implement a mix of appropriate functionality from all three levels. Network
architectures have to cater to this mix of services and appropriate
requirements.
68
Session 17: Communication protocols for building automation
69
Session 17: Communication protocols for building automation
70
Session 17: Communication protocols for building automation
Figure 0.4 System with control network islands and horizontal proxy nodes/gateways.
71
Session 17: Communication protocols for building automation
More frequently, both control networks use gateways for vertical connection
to a third, common standard. This may be the backbone network or also a
software platform on a management server. This is more frequently done,
since accepted common standards for integration exist. Thus, different control
networks only need to provide one mapping to the common standard each
instead of multiples to each other to achieve integration. Fig. 17.5 illustrates
this concept.
Figure 0.5 System with control network islands and a common backbone.
72
Session 17: Communication protocols for building automation
73
Session 17: Communication protocols for building automation
74
Session 17: Communication protocols for building automation
Official standards bodies ensure that the standards they maintain and publish
fulfill the conditions of open systems as outlined, i.e., nondiscriminatory
access to specification and licensing. Hence, adherence of equipment to such
formal standards is required in an increasing number of tenders. Standards
directly related to building automation system technology are created in the
United States10 and in a number of European and international standards
bodies.
ISO TC 20511 (Building Environment Design) is publishing a series of
international standards under the general title of Building Automation and
Control Systems (BACS). The series includes a generic system model
describing hardware, functions, applications and project
specification/implementation of a BACS (the latter parts still to appear). It
also contains the BACnet standard discussed in the following section.
CEN12 TC 247 (Building Automation, Controls, and Building Management)
is responsible for paving the way in European BA protocol standardization
through cumulative prestandards of industry-standard protocols for the
automation and field level [18], [19] which also included a collection of
standardized object types for the field level. TC 247 also made significant
contributions.
CENELEC13 TC 205 (Home and Building Electronic Systems, HBES)
oversees the EN 50090 series, a standard for all aspects of HBES tightly
coupled to KNX (which will also be presented in the following section). Its
scope is the integration of a wide spectrum of control applications and the
control and management aspects of other applications in and around homes
and buildings, including the gateways to different transmission media and
public networks.14 Moreover it takes into account all matters of EMC and
electrical and functional safety.
ISO/IEC JTC1 SC25 WG115 (Information Technology, Home Electronic
System) focuses on the standardization of control communication within
homes. Its work specifically includes residential gateways between the
internal Home Electronic System network and external wide-area networks
such as the Internet. Despite its focus on the home environment, the work of
WG1 may be relevant since it also looks at similar management functions in
commercial buildings.
A number of standards—closed and open company standards as well as
formal ones—further contribute to the overall picture by providing important
directions for BACS subsystems. These will be covered in the remainder of
this section.
75
Session 17: Communication protocols for building automation
IEEE 802.15.4 defines physical and medium access layers for low-rate
wireless personal area networks. It contains methods to provide
76
Session 17: Communication protocols for building automation
(cumulatively) long periods of deep sleep, which are necessary to save power
(making use of the quick transitions between sleep mode and active state
possible with current silicon). A coordinator periodically can transmit beacon
frames, which among other things are used to synchronize attached devices.
Devices which expect data (periodically, at an application-defined rate, e.g.,
sensors) can wake up only for the beacon frame, which indicates whether data
is actually available for them. Devices which only intermittently have data to
transmit (at an applica-tion/external stimulus defined rate, e.g., light switches)
can wake up, synchronize with the beacon, transmit and go to sleep again.
Small packets and CSMA ensure that nodes only transmit when necessary.
The Zigbee alliance adds additional layers (whose specification is not openly
available) to IEEE 802.15.4. They provide network layer functionality with
additional security including AES (Advanced Encryption Standard) and
routing functionality for extending the typical 50 m range of a “segment” by
supporting mesh topologies for dynamic creation, consolidation and splits.
Zigbee also adds an application support layer with discovery and binding plus
“application objects” (functional blocks), which currently cover building
automation, plant control and home control applications. Latencies of 15 ms
from sleep to actual transmit are achieved and a significantly smaller and less
re-source-consuming stack than with Bluetooth are advertised.
As for standards covering specific building service do-mains only, Digital
Addressable Lighting Interface (DALI) is an IEC standard and widely
accepted for lighting applications. Its primary focus is on replacing the
traditional 0–10 V interface for dimmable electronic ballasts. A DALI loop
can contain up to 64 individually addressable devices. Addition-ally, each
device can be a member of 16 possible groups. De-vices can store lighting
levels for power-on, system failure and 16 scene values, plus fading times.
There are also immediate commands (without store functionality) and
commands for information recall (like lamp status). Loops can be up to 300
m long, with free topology. The data rate is 2400 b/s using a master–slave-
based protocol.
DALI also accommodates operation buttons, light and presence detectors.
Addresses and all other settings are assigned over the bus. The necessary
functionality can be provided by hand-held programming devices, gateways,
or wall-box controllers which add it to their operation button functionality.
Finally, for remote meter reading, M-Bus has gained a certain degree of
importance in Europe. Its application layer supports various metering
applications and includes support for advanced functionality like multiple
tariffs. It operates on low-cost twisted pair cabling, with the data link layer
based on the IEC 870-5-1/-5-2 standard for telecontrol transmission
protocols. A serial master–slave protocol with data rates be-tween 300 and
9600 b/s is used. A segment can contain up to 250 devices and cover a
maximum distance of 1000 m (multiple segments are possible). In the master-
77
Session 17: Communication protocols for building automation
One of the first open standards for accessing process data using an object-
oriented approach which found broader acceptance by different vendors is
open process control (OPC). OPC, which is based on DCOM, is also widely
used in building automation. The OPC gateway acts as a server providing data
from the control network to the client. The namespace is organized as a tree.
78
Session 17: Communication protocols for building automation
Services implemented are not limited to data access and exchange, but also
include alarms and events and historical data access. A number of PC-based
OPC servers and clients (e.g., visualization tools) for BAS are available.
The main disadvantage of plain OPC is its tight relation to Windows-based
systems. Because of this platform-dependence a new trend of standardization
focuses on SOAP/XML to access the data objects in the building. In the recent
past a number of initiatives are producing platform-independent gateway
standards based on XML/SOAP.
For the OPC data access services the OPC XML/DA standard enables the
access of data on an OPC server through web services. Two upcoming
standards designed specifically for the building automation domain are of
particular interest and find support by important manufacturers in the area:
oBIX [33] and BACnet/WS (covered in the following section).
BACnet, LonWorks and EIB/KNX are open systems claiming the ability to
cover BA applications in their entirety. They all have achieved considerable
significance in the worldwide market (in case of BACnet and LonWorks) or
in the European market (in the case of EIB/KNX) and are often chosen by
both customers and system integrators for complete system solutions.
This section introduces the following aspects of these systems:
standardization and certification; physical characteristics including supported
media and network topologies; communication paradigms; application data
model; and services. In addition, standard hardware components and
commissioning tools are discussed where appropriate.
17.5.1 BACnet
79
Session 17: Communication protocols for building automation
The development effort was finally completed in 1995, when BACnet was
first published as an ANSI/ASHRAE standard. In 2003 BACnet was adopted
as both a CEN and ISO standard and has been, or will be, adopted as a national
standard by the 28 member countries of the EU pursuant to CEN regulations.
It has also been adopted as a national standard by Korea and is presently under
active consideration in many other countries including Russia, China and
Japan.
The BACnet specification is under continuous maintenance and further
development. It is maintained by
ASHRAE Standing Standard Project Committee (SSPC) 135. SSPC members
represent all sectors of the industry. Additionally, participation in the
development process is completely open. Any interested parties are actively
encouraged to provide comments and suggested changes.
Based on surveys conducted in the United States, Europe, and Japan in 2003,
there are now more than 28 000 installations in 82 countries and on all
continents. The use of BACnet is free of any licenses or fees.
“BACnet Interest Groups” (BIGs) exist in Europe (BIG-EU), North America
(BIG-NA), AustralAsia (BIG-AA) and the Middle East (BIG-ME).
Additional BIGs are in various stages of development in China, Japan, Russia
and Sweden. The Swedish group may expand to include the other
Scandinavian countries. Each BIG has its own unique character: while the
majority of BIG-EU members represent corporations, for example, almost all
members of BIG-NA come from colleges and universities. In the United
States, BACnet manufacturers have formed the BACnet Manufacturers
Association (BMA) which, in turn, operates the BACnet Testing Laboratories
(BTL). All these organizations are, to varying degrees, active in promotional
activities, educational programs, the exchange of practical field experiences,
interoperability issues, testing and certification and, last but not least,
standards development.
While BACnet messages can, in principle, be conveyed over any network, a
small number of network types were standardized for BACnet’s use in order
to maximize the probability that any two devices of comparable functionality
would use the same type. The network types chosen to cover a range of speed
and throughput. They are Ethernet, ARCNET, Master–Slave/Token-Passing
(MS/TP), LonTalk, and Point-to-Point (PTP). Each local area network type,
except MS/TP and PTP, is a standard, off-the-shelf technology. MS/TP
addresses connectivity over twisted pairs using EIA-485 signaling while PTP
supports dial-up communications and other point-to-point applications using
EIA-232 and, possibly, modems or other data communication equipment.
Note that the use of the LonTalk protocol is limited to transporting BACnet-
specific messages. In particular, BACnet does not make use of the LON
standard network variable type (SNVT) concept. An analysis of MS/TP
80
Session 17: Communication protocols for building automation
81
Session 17: Communication protocols for building automation
will first of all have a “present-value” property (which is associated with the
actual space temperature read from the physical input). Other properties
describe the sensor, minimum and maximum values of the input, resolution
and engineering units of the value, and indicate the reliability status of the
sensor. The definition of each object type indicates via a “conformance code”
whether a given property is required or optional, read-only, or required to be
writable.
BACnet presently defines 25 different object types. They include simple
object types such as binary input and output, analog input and output,
multistate inputs and outputs, as well as a number of more complex (yet still
generic) types related to scheduling, trending, alarming, and life safety
capabilities.
Any given building automation device may have zero, one, or many objects
of each object type with the exception of the “Device” object, which must be
present in every device. This object is used to present or control various
characteristics of the device and, among other things, contains an enumeration
of all other objects existing in the device. The properties “object-identifier”
(unique to each object in a given BACnet device), “object-name” and “object-
type” have to be present in every object. Nearly two hundred standard
properties, and their use in each of the standard object types, are currently
defined.
The BACnet object model can be easily extended to include new objects or
properties as needed. This can be done by any implementer without obtaining
anyone’s approval and such new capabilities will not interfere with similar
extensions made by others provided the implementer makes use of its “vendor
ID,” freely available from ASHRAE.
While objects provide an abstract representation of the “network-visible”
portion of a building automation device, BACnet services provide messages
for accessing and manipulating this information as well as providing
additional functionality. Communication follows a client/server model.
BACnet currently defines 40 application services which are grouped into five
categories: Alarm and Event, File Access, Object Access, Remote Device
Management, and Virtual Terminal, although these latter services have
largely been supplanted by web-based tools.
Among the Object Access services are ReadProperty (the only service
mandatory for all devices), WriteProperty, ReadPropertyMultiple and
WritePropertyMultiple, which collectively can read or manipulate any
individual or group of property values.
BACnet provides three distinct, but complementary, methods for handling
“events,” including those considered important enough to be designated as
“alarms.” The first is called “Intrinsic Reporting” and makes use of
82
Session 17: Communication protocols for building automation
83
Session 17: Communication protocols for building automation
The BACnet application layer also directly supports other services relevant
to BA tasks such as the prioritized writing of start/stop commands, setpoint
changes, time of day scheduling, and trend log processing.
While the BACnet standard defines a sizable set of ser-vices, only a subset is
necessary for most devices. Requiring them all to be implemented would
unnecessarily increase complexity and cost without providing any particular
benefit. In order to be able to concisely describe the capabilities offered by,
or required in, a particular device, the concept of BIBBs (BACnet
Interoperability Building Blocks) was introduced to the standard18 in 2000.
A BIBB describes a particular functional capability in one of five
interoperability areas: data sharing, alarm and event management, scheduling,
trending and device and network management.
BIBBs come in client/server pairs (designated A and B), allowing the precise
specification of whether a given device functions as the initiator of a service
request, the responder to a service request, or both. A BIBB may also require
the presence of one or more objects, or that specific properties be supported.
For example, the BIBB “Trending-Viewing and Modifying Trends Internal-
B” requires that the server side of the ReadRange-Service be implemented
and that a Trend Log object be provided.
To ease the work of specifiers, several standard BACnet device profiles have
been defined. Each profile is a collection of BIBBs that is intended to map to
commonly available BA equipment: operator workstations; building
controllers; advanced application controllers; application specific controllers;
smart actuators; and smart sensors. The BIBBs were selected to serve as a
baseline for the given type of device. In order to claim conformance to a given
profile, a manufacturer must offer at least the capabilities contained in the
profile—but is free to add any additional functionality that is appropriate to
the intended application of the device. De-tails about the portions of BACnet
that are implemented in a device are documented in its protocol
implementation conformance statement (PICS). This includes the precise set
of services implemented in client or server role, proprietary and optional
objects and properties, supported network media, and support for the dynamic
creation and deletion of objects, among other things.
Interoperability testing and certification programs have been pursued by both
the BMA and BIG-EU. The BMA’s testing program began in 2002. BIG-EU
followed two years later with its own test lab. Both testing programs have
been harmonized and test results are expected to be mutually recognized.
The main focus of both groups has been to develop suitable software tools to
test BACnet products and the procedures that will be used for specific kinds
of devices. The procedures are mostly based on the companion testing
standard to BACnet. In an effort to go beyond simply verifying that a device
has implemented its BACnet capabilities correctly and to actually improve
84
Session 17: Communication protocols for building automation
85
Session 17: Communication protocols for building automation
86
Session 17: Communication protocols for building automation
87
Session 17: Communication protocols for building automation
88
Session 17: Communication protocols for building automation
It should be noted that entirely non open systems can be (and are being) built
using LonWorks technology. The LonMark Interoperability Association
(now LonMark International) founded in 1994 defines guidelines to
manufacture and to integrate interoperable devices. These guidelines shall
89
Session 17: Communication protocols for building automation
90
Session 17: Communication protocols for building automation
91
Session 17: Communication protocols for building automation
As outlined above, the basic building block of an EIB network is the line,
which holds up to 254 devices in free topology. Following a three-level tree
structure, sublines are connected by main lines via routers (termed line
couplers) to form a zone. Zones can in turn be coupled by a backbone line, as
illustrated in Fig. 17.10. Network partitions on open media are typically
linked into the topology as a separate line or zone. IP tunneling is typically
used for main lines and the backbone, with EIBnet/IP routers acting as
couplers. Overall, the network can contain roughly 60 000 devices at
maximum.
92
Session 17: Communication protocols for building automation
93
Session 17: Communication protocols for building automation
94
Session 17: Communication protocols for building automation
95
Session 17: Communication protocols for building automation
provided for dimming and control of motorized blinds to ensure a base level
of inter-changeability. Such an approach is no longer viable with the E- and
A-Modes. Therefore, numerous semantic data type and functional block
definitions for various application domains are being added to the KNX
specification. E- and A-Modes always link group objects and interface object
properties at the granularity of these functional blocks (or channels of
multiple blocks).
96
Session 18: Overview of Programmable controllers and PLCs
Session 18
Overview of Programmable controllers and
PLCs
Content
18.1 What is Sequence and Logic control? ............................................ 98
18.2 Industrial Example of Discrete Sensors and Actuators ................. 99
18.3 Comparing Logic and Sequence Control with Analog Control ... 102
18.4 Programmable Logic Controllers (PLC)...................................... 102
18.5 Evolution of the PLC ................................................................... 103
18.6 Application Areas ........................................................................ 104
18.7 Architecture of PLCs ................................................................... 105
18.8 Central controller ......................................................................... 106
18.9 Central Processing units............................................................... 106
18.10 Communications processors..................................................... 107
18.11 Program and Data memory ...................................................... 107
18.12 Expansion units ........................................................................ 107
18.13 Input/Output Units.................................................................... 108
18.14 Programmers ............................................................................ 109
18.15 Components of PLC ................................................................. 109
18.16 Processor Module ..................................................................... 110
18.17 Input Module ............................................................................ 111
18.18 Analog input modules .............................................................. 112
18.19 Digital Input Modules .............................................................. 113
18.20 Output Modules ........................................................................ 113
18.21 Analog Output Module............................................................. 114
18.22 Digital Output Module ............................................................. 115
18.23 Function Modules..................................................................... 116
18.24 Count Module........................................................................... 116
97
Session 18: Overview of Programmable controllers and PLCs
Many control applications do not involve analog process variables, that is, the
ones which can assume a continuous range of values, but instead variables
that are set valued, that is they only assume values belonging to a finite set.
The simplest examples of such variables are binary variables, that can have
either of two possible values, (such as 1 or 0, on or off, open or closed etc.).
These control systems operate by turning on and off switches, motors, valves,
and other devices in response to operating conditions and as a function of
time. Such systems are referred to as sequence/logic control systems. For
example, in the operation of transfer lines and automated assembly machines,
sequence control is used to coordinate the various actions of the production
system (e.g., transfer of parts, changing of the tool, feeding of the metal
cutting tool, etc.).
Typically, the control problem is to cause/ prevent occurrence of
98
Session 18: Overview of Programmable controllers and PLCs
There are many industrial sensors which provide discrete outputs which may
be interpreted as the presence/absence of an object in close proximity, passing
of parts on a conveyor, For example, tables 18.1 and 18.2 below show a set
of typical sensors which provide a discrete set of output corresponding to
process variables.
Table 0.1 Discrete Sensors
99
Session 18: Overview of Programmable controllers and PLCs
100
Session 18: Overview of Programmable controllers and PLCs
The die stamping process is shown in figure below. This process consists of
a metal stamping die fixed to the end of a piston. The piston is extended to
stamp a work piece and retracted to allow the work piece to be removed. The
process has 2 actuators: an up solenoid and a down solenoid, which
respectively control the hydraulics for the extension and retraction of the
stamping piston and die. The process also has 2 sensors: an upper limit switch
that indicates when the piston is fully retracted and a lower limit switch that
indicates when the piston is fully extended. Lastly, the process has a master
switch which is used to start the process and to shut it down.
The control computer for the process has 3 inputs (2 from the limit sensors
and 1 from the master switch) and controls 2 outputs (1 to each actuator
solenoid).
The desired control algorithm for the process is simply as follows. When the
master switch is turned on the die-stamping piston is to reciprocate between
the extended and retracted positions, stamping parts that have been placed in
the machine. When the master switch is switched off, the piston is to return
to a shutdown configuration with the actuators off and the piston fully
retracted.
101
Session 18: Overview of Programmable controllers and PLCs
102
Session 18: Overview of Programmable controllers and PLCs
103
Session 18: Overview of Programmable controllers and PLCs
Figure 0.4 The structure of Relay Ladder Logic Programs for PLCs
104
Session 18: Overview of Programmable controllers and PLCs
The components of the PLC subsystem shown in Fig. 18.5 are described
below.
105
Session 18: Overview of Programmable controllers and PLCs
The central controller (CC) contains the modules necessary for the main
computing operation of the Programmable controller (PC). The central
controller can be equipped with the following:
Memory modules with RAM or EPROM (in the memory sub
modules) for the program (main memory).
Interface modules for programmers, expansion units, standard
peripherals etc.
Communications processors for operator communication and
visualization, communication with other systems and configuring of
local area networks.
A bus connects the CPUs with the other modules.
106
Session 18: Overview of Programmable controllers and PLCs
The program and data needed for execution are stored in RAM or EPROM
sub modules. These sub modules are plugged into the processors. Additional
RAM memory modules can also be connected.
Modules for the input and output of signals are plugged into expansion units.
The latter are connected to the central controller via interface modules.
Expansion units can be connected in two configurations.
A. Centralized configuration
The expansion units (EU) are located in the same cabinet as the central
controllers or in an adjacent cabinet in the centralized configuration, several
expansion units can be connected to one central controller. The length of the
cable from the central controller to the most distant expansion unit is often
limited based on data transfer speeds.
B. Distributed configuration
The expansion units can be located at a distance of up to 1000 m from the
central controller. In the distributed configuration, up to 16 expansion units
can be connected to one central controller. Four additional expansion units
107
Session 18: Overview of Programmable controllers and PLCs
A host of input and output modules are connected to the PLC bus to exchange
data with the processor unit. These can be broadly categorized into Digital
Input Modules, Digital Output Modules, Analog Input Modules, Analog
Output Modules and Special Purpose Modules.
Digital Input Modules
The digital inputs modules convert the external binary signals from the
process to the internal digital signal level of programmable controllers.
Digital Output Modules
The digital output modules convert the internal signal levels of the
programmable controllers into the binary signal levels required externally by
the process.
Analog Input Modules
The analog input modules convert the analog signals from the process into
digital values which are then processed by the programmable controller.
Analog Output Modules
The analog output modules convert digital values from the programmable
controller into the analog signals required by the process.
Special Purpose Modules
These may include special units for:
108
Session 18: Overview of Programmable controllers and PLCs
18.14 Programmers
109
Session 18: Overview of Programmable controllers and PLCs
common mode voltages. I/O modules may also prevent over voltages
to reach the CPU or low level TTL.
D. Indicator lights - These indicate the status of the PLC including power
on, program running, and a fault. These are essential when diagnosing
problems.
E. Rack, Slot, Backplane – These physically house and connect the
electronic components of a PLC.
110
Session 18: Overview of Programmable controllers and PLCs
Typical specifications for a high end and a low end PLC processor module
for a rack-based PLC system are given below.
Table 0.5 Typical Features of high end and low-end processor modules
Input modules convert process level signals from sensors (e.g. voltage face
Contacts, 0-24v Dc, 4– 20mA), to processor level digital signals such as 5V
or 3.3 V. They also accept direct inputs from thermocouples and RTDs in the
analog case, and limit switches or encoders in the digital case. Naturally,
therefore these modules include circuitry for galvanic isolation, such as those
using optocouplers.
Galvanic isolation-
111
Session 18: Overview of Programmable controllers and PLCs
Analog input modules convert analog process level signals to digital values,
which are then processed by the digital electronic hardware of the
programmable controller. A set of typical parameters that define an analog
input module are shown in Table 22.2. The analog modules sense 8/16 analog
signals in the range ± 5 V, ± 10 V or 0 to 10 V. Each channel can either be
single-ended, or differential. For single ended channels only one wire is
connected to a channel terminal. The analog voltage on each channel terminal
that is sensed is referred to a common ground. In the case of differential
channels, each channel terminal involves two wires and the voltage between
the pair of wires is sensed. Thus, both the wires can be at different voltages
and only their difference is sensed and converted to digital. Differential
channels are more accurate but consume more electronic resources of the
module for their processing. Often these modules also house channels that
output analog/digital signals, as well as excitation circuitry for sensors such
as RTDs.
An analog module typically contains:
¾ Analog to digital (A/D) converters
¾ Analog multiplexers and simultaneous sample-hold (S/H)
¾ Analog Signal termination
¾ PLC bus ports
¾ Synchronization
112
Session 18: Overview of Programmable controllers and PLCs
The digital inputs modules convert the external binary signals from the
process to the internal digital signal level of programmable controllers.
Digital input channel processing involves isolation and signal conditioning
before inputting to a comparator for conversion to a 0 or a 1. The typical
parameters that define a digital input module are shown in tabular form along
with typical values in Table.
Table 0.7 Typical Parameters for a Digital Input Module
113
Session 18: Overview of Programmable controllers and PLCs
Analog output modules convert digital values from the PLC processor module
into an analog signal required by the process. These modules therefore require
a D/A converter for providing analog outputs. However, typically, servo-
amplifiers for power amplification, required for driving high current loads
directly, are not integrated on-board. Front connectors are used for
terminating the signal cables. Modules and front connectors may be inserted
and removed under power. The output signals can be disabled by means of an
enable input. The last value then remains latched. Typical parameters that
define an analog output module are shown in Table 18.8 along with typical
values.
114
Session 18: Overview of Programmable controllers and PLCs
The typical parameters that define a digital output module are shown in Table
18.9 along with typical values.
Table 0.9 Typical Parameters for a Digital Output Module
115
Session 18: Overview of Programmable controllers and PLCs
For high speed i/o tasks such as one required to measure speed by counting
pulses from shaft angle encoders, or for precision position control
applications, independent i/o modules that execute tasks independently of the
central processor are required to meet the timing requirements of the i/o. The
signal preprocessing “intelligent” I/O- modules make it possible to count fast
impulse trains, to acquire and process travel increments, speed and time
measure etc., i.e. they take on the critical timing control tasks which normally
can’t be carried out fast enough by the central processor with its
programmable logic control, as well as its primary logic control functions.
These modules not only relieve the central processor of additional tasks, but
they also provide fast and specialized solutions to some common control
problems. The processing of the signals is carried out primarily by the
appropriate I/O- modules, which frequently operate with their own processor.
Below we discuss two such modules, which are used with PLCs to handle
specific high-performance automation functions.
A. A Count Module is employed where pulses at high frequency have
to be counted, i.e. when machines run fast. It can also be applied to
output fast pulse trains or realize accurate timing signals.
B. A Loop Controller Module is primarily used where high speed
closed loop control is required, such as with controlled drives. The
preprogrammed, parameterized functions available with the module
(e.g. for ramp-function generation, speed regulation, signal limit
monitoring) can be easily parameterized via graphical interfaces by a
programmer.
A count module senses fast pulses, from sources such as shaft angle encoders,
through several input ports. Counting frequency can be as high as 2 MHz and
a typically, a counter of length 16 bit or more can count up and down. Counter
modules can often also be applied for time and frequency measurement and
as a frequency divider.
116
Session 18: Overview of Programmable controllers and PLCs
117
Session 19: PLC hardware selection and Programming
Session 19
PLC hardware selection and Programming
Content
19.1 Structure of a PLC Program......................................................... 119
19.2 Program Execution ...................................................................... 120
19.3 Interrupt Driven and Clock Driven Execution Modes ................. 121
19.4 The Relay Ladder Logic (RLL) Diagram .................................... 121
19.5 RLL Programming Paradigms: Merits and Demerits .................. 122
19.5.1 Example: Forward Reverse Control ..................................... 123
19.6 Inputs I, Output Q ........................................................................ 124
19.7 Internal Variable Operands or Flags ............................................ 125
19.8 Timer ............................................................................................ 125
19.9 Counter......................................................................................... 131
19.10 Addressing ................................................................................ 132
19.11 IEC 1131-3: The International Programmable Controller
Language Standard ................................................................................. 132
19.12 Major Features of IEC 1131-3 ................................................. 133
19.13 IEC 1131-3 Programming Languages ...................................... 133
19.14 Function Block Diagram (FBD) ............................................... 134
19.15 Structured Text (ST)................................................................. 134
19.16 Instruction List (IL) .................................................................. 135
19.17 Sequential Function Chart (SFC) ............................................. 135
19.18 Steps ......................................................................................... 136
19.19 Transitions ................................................................................ 137
19.20 Simple Sequence ...................................................................... 138
19.21 SFC-based Implementation of the Stamping Process Controller
139
118
Session 19: PLC hardware selection and Programming
119
Session 19: PLC hardware selection and Programming
There are different ways and means of executing a user program. Normally a
cyclic execution program is preferred and this cyclic operators are given due
priorities. Program processing in a PLC happens cyclically with the following
execution:
1. After the PLC is initialized, the processor reads the individual inputs.
This status of the input is stored in the process- image input table (PII).
2. This processor processes the program stored in the program memory.
This consists of a list of logic functions and instructions, which are
successively processed, so that the required input information will
already be accessed before the read in PII and the matching results are
written into a process-image output table (PIQ). Also, other storage
areas for counters, timers and memory bits will be accessed during
program processing by the processor if necessary.
3. In the third step after the processing of the user program, the status
from the PIQ will transfer to the outputs and then be switched on
and/or off. Afterwards it begins the execution of the next cycle from
step 1.
The same cyclic process also acts upon an RLL program.
The time required by the microprocessor to complete one cycle is known as
the scan time. After all rungs have been tested, the PLC then starts over again
with the first rung. Of course, the scan time for a particular processor is a
function of the processor speed, the number of rungs, and the complexity of
each rung.
120
Session 19: PLC hardware selection and Programming
121
Session 19: PLC hardware selection and Programming
consist of a set of inputs on the left end of the rung and a single output at the
right end of each rung. The structure of a rung is shown below in Fig. 19.2(a)
& (b). Fig. 19.2 shows the internal structure of a simple rung in terms its
element contacts connected in a series parallel circuit.
Figure 0.2 (a) The structure of Relay Ladder Logic Programs for PLCs, (b) The internal structure of a
simple Rung
For the programs of small PLC systems, RLL programming technique has
been regarded as the best choice because a programmer can understand the
relations of the contacts and coils intuitively. Additionally, a maintenance
engineer can easily monitor the operation of the RLL program on its graphical
representation because most PLC manufacturers provide an animated display
that clearly identifies the states of the contacts and coils. Although RLL is
still an important language of IEC 1131 -3, as the memory size of today's PLC
systems increases, a large-sized RLL program brings some significant
problems because RLL is not particularly suitable for the well-structured
programming: It is difficult to structure an RLL program hierarchically.
122
Session 19: PLC hardware selection and Programming
Figure 0.3 RLL Diagram for the Forward Reverse Control Problem
This example explains the control process of moving a motor either in the
forward direction or in the reverse direction. The direction of the motor
depends on the polarity of the supply. So in order to control the motor, either
in the forward direction or in the reverse direction, we have to provide the
supply with the corresponding polarity. The Fig 19.3 depicts the procedure to
achieve this using Relay Ladder Logic. Here, the Ladder consists of two rungs
corresponding to forward and reverse motions.
The rung corresponding to forward motion consists of
1. A normally closed stop push-button (IN001),
2. A normally opened forward run push-button (IN002) in parallel with
a normally opened auxiliary contact (OP001),
3. A normally closed auxiliary contact (OP002) and
4. The contactor for coil (OP001).
Similarly, the rung corresponding to reverse motion consists of
1. A normally closed stop push-button (IN001),
2. A normally opened forward run push-button (IN003) in parallel with
a normally opened auxiliary contact (OP002),
3. A normally closed auxiliary contact (OP001) and
4. The contactor for coil (OP002).
Operation: The push- buttons (PB) represented by IN--- are real input push-
buttons, which are to be manually operated. The auxiliary contacts are
operated through program. Initially the machine is at standstill, no voltage
supply is present in the coils, and the PBs are as shown in the fig. The stop
PB is initially closed, the motor will not move until the forward run
PB/reverse run PB is closed. Suppose we want to run the motor in the forward
direction from standstill, the outputs of the coil’s contactors have logic ‘0’
123
Session 19: PLC hardware selection and Programming
and hence both the auxiliary contacts are turned on. If we press and release
the forward run PB, the positive voltage from the +ve voltage rail is passed
to the coil. Once the coil contactor gives the logic ‘1’, the following
consequences takes place simultaneously
A. The auxiliary contact OP001 in the second rung becomes opened,
which stops the voltage for reverse motion of the motor. At this stage,
the second rung is not turned on even the reverse run PB is pressed by
mistake.
B. The auxiliary contact OP001 is the first rung is on, which provides the
path for the positive voltage until the stop PB is pressed. Here the
auxiliary contact OP001 acts as a ‘latch’, which facilitates even to
remove the PB IN002 once the coil OP001 is on.
If we want to rotate the motor in the reverse direction, the stop PB is to be
pressed so that no voltage in the coil is present, then we can turn on the PB
corresponding to reverse run. This is a simple example of ‘interlocking’,
where each rung locks the operation of the other rung.
There are several other programming paradigms for PLCs. Two of them are
mentioned here for briefly.
Generally, the operands of a PLC program can be classified as inputs (I) and
outputs (Q). The input operands refer to external signals of the controlled
system, whose values are acquired from the input signal modules. The
operating system of the PLC assigns the signal status of the input and output
modules into the process image of the inputs and outputs at the beginning of
the program. The operand area is located within the process image of the
central controller RAM. Within the program, the signal status of the operand
area is scanned and processed into logic functions in accordance with the user
program; the individual bits within the process output image are fixed. When
the program has been executed the operating system transfers the signal status
of the process image independently to the output modules. This method
enables faster program execution because access to the process image is
executed much faster than access to the I/O – modules.
In RLL Programs, inputs are represented as contacts. Two types of contacts
are used, namely, normally open and normally closed contacts. The difference
in the sense of interpretation between these contacts is shown below.
The switch shown here is a NO contact, i.e. it is closed when it is active.
124
Session 19: PLC hardware selection and Programming
The switch shown here is a NC contact. i.e. it is closed when it is not active.
19.8 Timer
These are special operands of a PLC, which represent a time delay relay in a
relay logic system. The time functions are a fixed component of the central
processing unit. The number of these varies from manufacturer to
manufacturer and from product to product. It is possible to achieve time
delays in the range of few milliseconds to few hours.
125
Session 19: PLC hardware selection and Programming
Representation for timers is shown in Fig. 19.5. Timers have a preset register
value, which represent the maximum count it can hold and can be set using
software/program. The figure shown below has a ‘enable reset logic’ and ‘run
logic’ in connection with the timer. The counter does not work and the register
consists of ‘zero’ until the enable reset logic is ‘on’. Once the ‘enable reset
logic’ is ‘on’, the counter starts counting when the ‘run logic’ is ‘on’. The
output is ‘on’ only when the counter reaches the maximum count.
Various kinds of timers are explained as follows.
On delay timer: The input and output signals of the on-delay timer are as
shown in the Fig. 19.7. When the input signal becomes on, the output signal
becomes on with certain delay. But when the input signal becomes off, the
output signal also becomes off at the same instant. If the input becomes on
and off with the time which less than the delay time, there is no change in the
output and remains in the ‘off’ condition even the input is turned on and off
i.e., output is not observed until the input pulse width is greater than the delay
time.
126
Session 19: PLC hardware selection and Programming
127
Session 19: PLC hardware selection and Programming
128
Session 19: PLC hardware selection and Programming
Fixed pulse width timer: The input and output signals of the fixed pulse
width timer are as shown in the Fig 19.10. When the input signal becomes on,
the output signal becomes on at the same time and remains on for a fixed time
then become ‘off’. The output pulse width is independent of input pulse
width.
Figure 0.10 A Typical Input output waveform for a Fixed Width Timer
129
Session 19: PLC hardware selection and Programming
Figure 0.11 The realization of a Fixed width timer from a general timer.
Retentive timer: The input and output signals of the retentive timer are as
shown in the 19.12. This is also implemented internally in a register as in the
previous case. When the input is ‘on’ , the internal counter starts counting
until the input is ‘off’ and at this time, the counter holds the value till next
input pulse is applied and then starts counting starting with the value existing
in the register. Hence it is named as ‘retentive’ timer. The output is ‘on’ only
when the counter reaches its ‘terminal count’.
Non-retentive timer: The input and output signals of the non-retentive timer
are as shown in the Fig. 19.12. This is implemented internally in a register.
When the input is ‘on’, the internal counter starts counting until the input is
‘off’ and at this time the value in the counter is reset to zero. Hence it is named
130
Session 19: PLC hardware selection and Programming
as non-retentive timer. The output is ‘on’ only when the counter reaches its
‘terminal count’.
Figure 0.13 A Typical Input output waveform for a Fixed Width Timer
19.9 Counter
The counting functions (C) operate as hardware counters but are a fixed
component of the central processing unit. The number of these varies for each
of the programmable controllers. It is possible to count up as well as to count
down. The counting range is from 0 to 999. The count is either dual or BCD
coded for further processing.
131
Session 19: PLC hardware selection and Programming
19.10 Addressing
132
Session 19: PLC hardware selection and Programming
simultaneously, thus enabling the program developer to use the language best
suited to each control task.
133
Session 19: PLC hardware selection and Programming
The function block diagram is a key product of the standard IEC 1131-3. FBD
is a graphical language that lets users easily describe complex procedures by
simply wiring together function blocks, much like drawing a circuit diagram
with the help of a graphical editor. Function blocks are basically algorithms
that can retain their internal state and compute their outputs using the
persistent internal state and the input arguments. Thus, while a static
mathematical function will always return the same output given the same
input (e.g. sine, cosine), a function block can return a different value given
the same input, depending on its internal state (e.g. filters, PID control). This
graphical language clearly indicates the information or data flow among the
different computational blocks and how the overall computation is
decomposed among smaller blocks, each computing a well-defined operation.
It also provides good program documentation. The IEC 1131 standard
includes a wide range of standard function blocks for performing a variety of
operations, and both users and vendors can create their own. A typical simple
function block is shown below in Fig. 19.15.
134
Session 19: PLC hardware selection and Programming
135
Session 19: PLC hardware selection and Programming
19.18 Steps
Figure 0.18 An initial step (a) and a regular step (b) in an SFC
The initial step is executed the first time the SFC block is executed or as a
result of a reset operation performed by a special function named
SFC_RESET. There can be one and only one initial step in an SFC. The initial
step cannot appear within a simultaneous branch construct, (which is
described later in this section) but it may appear anywhere else.
A regular step is executed if the transitional logic preceding the step makes
the step active. There can be one or many regular steps in an SFC network,
136
Session 19: PLC hardware selection and Programming
one or more of which may be active at a time. Only the active steps are
evaluated during a scan.
Each step may have action logic consisting, say, of zero or more rungs
programmed in Relay Ladder Diagram (RLD) logic language. Action Logic
is the logic associated with a step, i.e., the logic, programmed by RLL or any
other logic, which is executed when the step is active. When a step becomes
inactive, its state is initialized to its default state. A collection of steps may be
labeled together as a macro-step.
Figure 0.19 A step with action logic (a) and a macro-step (b) in an SFC
19.19 Transitions
137
Session 19: PLC hardware selection and Programming
The SFC in Fig. 19.20 shows how the transitions connect steps in an SFC.
Initially, step S1 is active. Thus, transition T1 is also active. When the
transition variable T1 becomes true, immediately, S1 becomes inactive, S2
becomes active while T1 becomes inactive and T2 becomes active.
Figure 0.21 A simple sequence in an SFC (a) and its execution over scans (b)
The table in Fig. 19.21 (b) indicates the status (A: active; I: inactive) of the
steps and transitions over scan cycles.
Figure 0.22 The State Diagram for the industrial stamping press
138
Session 19: PLC hardware selection and Programming
Figure 0.23 The Output Table for the industrial stamping press
The SFC for the industrial stamping process control problem is shown in Fig.
19.24. It is seen to be identical to the state diagram drawn for the process in
Fig. 19.22, except possibly for graphical syntax used in the two diagrams.
Thus, for strictly sequential processes the SFC is nothing but the state
diagram. However, it can also model concurrency, which cannot be captured
in a simple FSM. There exist many DES modelling formalisms that capture
concurrent FSM dynamics (such as State charts, widely used to model
software dynamic modelling under Unified Modelling Language Formalism).
One can now develop the logic for the step’s transitions and actions. In this
lesson RLL is used for this purpose. Some of the ladder logic for the SFC is
shown in Figure 19.25.
139
Session 19: PLC hardware selection and Programming
140
Session 19: PLC hardware selection and Programming
Note the following distinctions of the SFC based implementation with that of
one the state-based implementation with pure RLL.
A. The initialization logic can now be organized within the initial step of
the SFC, which is explicitly meant for this purpose. Note that in the
RLL implementation this had to be included within the logic for State
1. The SFC-based implementation is cleaner in this respect.
B. The order of execution of the state and transition logic is determined
by SFC execution semantics. Thus, there is no need to worry about
the order in which these program segments are physically ordered
within the overall program.
C. In the RLL implementation each and every step, transition and action
logic is evaluated in every scan cycle. In SFC only the active states,
their action logic and the active transitions are evaluated. This results
in significant saving in processor time, which may be utilized in the
system for other purposes.
D. The ladder logic includes a new instruction, EOT, which will tell the
PLC when a transition has completed. When the rung of ladder logic
with the EOT output becomes true the SFC will move to the next step
or transition.
141
Session 20: Industrial controllers - selection of hardware
Session 20
Industrial controllers-selection of
hardware
Content
20.1 Fans: Characteristics and Operation ............................................ 143
20.2 On-Off Control ............................................................................ 146
20.3 Outlet Dampers ............................................................................ 147
20.4 Variable Speed Drive ................................................................... 148
20.5 Energy Savings by Different Flow Control Methods Outlet
Damper.................................................................................................... 149
20.6 Variable Speed Drive ................................................................... 150
20.7 Pumps: Characteristics and Operation ......................................... 151
20.8 Flow Control ................................................................................ 153
20.9 Throttling ..................................................................................... 153
20.10 Variable Speed Drive ............................................................... 153
20.11 Static Head ............................................................................... 155
20.12 Introduction to Electrical Actuators ......................................... 157
20.12.1 DC Servomotors ................................................................... 158
20.12.2 Mechanical Construction ...................................................... 158
20.13 Equivalent Circuit .................................................................... 160
20.14 Torque-Speed Curve ................................................................ 161
20.15 Speed Control ........................................................................... 162
20.16 Variable-Voltage, Constant-Frequency Operation................... 162
20.17 Variable-Frequency Operation ................................................. 163
20.18 Variable Voltage Variable Frequency Supply ......................... 164
20.19 Voltage-source Inverter-driven Induction Motor ..................... 166
20.20 Square wave inverters .............................................................. 166
20.21 PWM Principle ......................................................................... 169
20.22 Sinusoidal PWM ...................................................................... 169
20.23 Implementation of a constant voltage/constant frequency
strategy 170
142
Session 20: Industrial controllers - selection of hardware
Introduction
The AC induction motor is the major converter of electrical energy into
mechanical and other useable forms. For this purpose, about two thirds of the
electrical energy produced is fed to motors. Much of the power that is
consumed by AC motors goes into the operation of fans, blowers and pumps.
It has been estimated that approximately 50% of the motors in use are for
these types of loads. These particular loads — fans, blowers and pumps, are
particularly attractive to look at for energy savings. Several alternate methods
of control for fans and pumps have been advanced recently that show
substantial energy savings over traditional methods.
Basically, fans and pumps are designed to be capable of meeting the
maximum demand of the system in which they are installed. However, quite
often the actual demand could vary and be much less than the designed
capacity. These conditions are accommodated by adding outlet dampers to
fans or throttling valves to pumps. These control methods are effective,
inexpensive and simple, but severely affect the efficiency of the system.
Others forms of control are now available to adapt fans and pumps to varying
demands, which do not decrease the efficiency of the system as much. Newer
methods include direct variable speed control of the fan or pump motor. This
method produces a more efficient means of flow control than the existing
methods. In addition, adjustable frequency drives offer a distinct advantage
over other forms of variable speed control.
Large fans and blowers are routinely used in central air conditioning systems,
boilers, drives and the chemical operations. The most common fan is the
centrifugal fan that imparts energy into air by centrifugal force. This results
in an increase in pressure and produces air flow at the outlet of the fan.
143
Session 20: Industrial controllers - selection of hardware
Fig. 20.1 is a plot of outlet pressure versus the flow of air of a typical
centrifugal fan at a given speed. Standard fan curves usually show a number
of curves for different fan speeds and include the loci of constant fan
efficiencies and power requirements on the operating characteristics. These
are all useful for selecting the optimum fan for any application. They also are
needed to predict fan operation and other parameters when the fan operation
is changed. Appendix 1 gives an example of a typical fan curve for an
industrial fan.
Fig. 20.2 shows a typical system pressure-flow characteristics curve
intersecting a typical fan curve.
144
Session 20: Industrial controllers - selection of hardware
The system curve shows the requirements of the vent system that the fan is
used on. It shows how much pressure is required from the fan to overcome
system losses and produce airflow. The fan curve is a plot of fan capability
independent of a system. The system curve is a plot of "load" requirement
independent of the fan. The intersection of these two curves is the natural
operating point. It is the actual pressure and flow that will occur at the fan
outlet when this system is operated. Without external control, the fan will
operate at this point.
Many systems however require operation at a wide variety of points. Fig. 20.3
shows a profile of the typical variations in flow experienced in a typical
system.
145
Session 20: Industrial controllers - selection of hardware
There are several methods used to modulate or vary the flow to achieve the
optimum points. Apart from the method of cycling, the other methods affect
either the system curve or the fan curve to produce a different natural
operating point. In so doing, they also may change the fan's efficiency and the
power requirements. Below these methods are explained in brief.
This is typically done in home heating systems and air conditioners. Here,
depending on temperature of the space in question and the desired
temperature setting, the fan is switched on and off, cyclically. Although the
average temperature can be maintained by this method, this produces erratic
airflow, causes temperature to oscillate and is generally unacceptable for
commercial or industrial use.
146
Session 20: Industrial controllers - selection of hardware
The outlet dampers affect the system curve by increasing the resistance to air
flow. The system curve is a simple function that can be stated as
P=K×Q2,
where P is the pressure required to produce a given flow Q in the system. K
is a characteristic of the system that represents the resistance to airflow. For
different values of outlet vane opening, different values of K are obtained.
Fig. 20.5 shows several different system curves indicating different outlet
damper positions.
Figure 0.5 Variations of system pressure - Flow characteristics with outlet dampers
The power requirement can be derived from computing the rectangular areas
shown in Fig. 20.5 at any operating point. Figure 20.7 shows the
corresponding variations in power requirement for this type of operation.
147
Session 20: Industrial controllers - selection of hardware
From the figure it can be seen that the power decreases gradually as the flow
is decreased.
This method changes fan curve by changing the speed of the fan. For a given
load on the fan the pressures and flows at two different speeds, N1 and N2
are given as follows:
148
Session 20: Industrial controllers - selection of hardware
In this section the power consumption for two of the above methods, namely
the variable speed method and the outlet damper method, and their associated
costs of operation are estimated for a given load profile and a fan curve
(shown in Appendix 1). Assume the fan selected has a rated speed of 300
RPM and 100% flow is to equal 100,000 CFM as shown on the chart. Assume
the following load profile.
149
Session 20: Industrial controllers - selection of hardware
For each operating point, one can obtain the required power from the fan
curve by locating the corresponding fan pressure. Note that, at all these
operating points the speed is assumed constant. This power is multiplied by
the fraction of the total time, for which the fan operates at this point. These
"weighted horse powers" are then summed to produce an average horsepower
that represents the average energy consumption of the fan.
These calculated values do match the points available on the fan curve. Now
it is possible to calculate the average horsepower.
150
Session 20: Industrial controllers - selection of hardware
Comparing the above figure with that calculated for the outlet damper method
indicates the difference in energy consumption. The variable speed method
requires less than half the energy of the outlet damper method (based on the
typical duty cycle).
As an example of the cost difference between these methods, let's assume the
system operates twenty-four hours per day (730 hours per month), and the
cost of electricity is Rs. 2.00 per kilowatt-hour.
The cost of electricity is determined in terms of the energy in kilowatt hour
per month.
There is over a 20,000 Rs. per month savings available by using the variable
speed method in-stead of the outlet damper method.
This example only takes into account the operation of the fan. In practice the
motor efficiency and the drive efficiency should also be taken into account.
It is impractical to list or chart the motor and drive efficiencies in this lesson
for all possible load conditions that could occur. However, since the same
motor would be used in both examples shown here, the difference in motor
efficiencies would be minimized and not significantly affect the results
shown.
Pumps are generally grouped into two broad categories, positive displacement
pumps and centrifugal pumps. Positive displacement pumps use mechanical
means to vary the size (or move), the fluid chamber to cause the fluid to flow.
Centrifugal pumps impart a momentum in the fluid by rotating impellers
immersed in the fluid. The momentum produces an increase in pressure or
151
Session 20: Industrial controllers - selection of hardware
flow at the pump outlet. The vast majority of pumps used today are of the
centrifugal type. Only centrifugal pumps are discussed here.
Fig. 20.8 again shows two independent curves. One is the pump curve which
is solely a function of the physical characteristics of the pump. The other
curve is the system curve. This curve is completely dependent on the size of
pipe, the length of pipe, the number and location of elbows, etc.
Where these two curves intersect is called the natural operating point. That is
where the pump pressure matches the system losses, and everything is
balanced. Note that this balance only occurs at one point (or at least should
for stable system operation). If that point does occur at or at least come close
to the desired point of operation, then the system is acceptable. If it does not
come close enough then either the pump or the system physical arrangement
has to be altered to correct to the desired point.
The following laws govern, similar to the case of fans, the operation of
centrifugal pump characteristics at various pump speeds.
152
Session 20: Industrial controllers - selection of hardware
Similar to the case of fans, there are two main methods of flow control in
pumps, namely, use of a control or throttling valve and variable speed control
of the pump. In view of the similarity, these are described in brief below.
20.9 Throttling
Consider a throttling system shown in Fig. 20.9. Two conditions of the system
curve are shown, one with the valve open and the other with the valve
throttled or partially closed. The result is that when the flow in the system is
decreased, the pump head increases.
153
Session 20: Industrial controllers - selection of hardware
154
Session 20: Industrial controllers - selection of hardware
155
Session 20: Industrial controllers - selection of hardware
change with static head. The static head does part of the work for the throttling
valve. However, note that the horsepower requirement for this method
remains above that of the variable speed method.
Figure 0.11 Pump operation for a system with varying static head
156
Session 20: Industrial controllers - selection of hardware
Motion control and drives are very important actuation subsystems for
Process and Discrete Manufacturing Industries. The motion control systems
are critical for product quality in discrete manufacturing, while variable speed
drives lead to significant energy savings in common industrial loads such as
pumps, compressors and fans.
Variable speed drives can be categorized into Adjustable Speed Drives and
Servo Drives. In adjustable speed drives the speed set points are changed
relatively infrequently, in response to changes in process operating pints.
Therefore, transient response of the drive system is not of consequence. In
servo drives, as in CNC machines, set points change constantly (as in
contouring systems).
While ac motors have replaced dc motors in most of the adjustable speed drive
applications. For servo drive applications, dc motors are still used, although
they are also being replaced by BLDC motors. In this lesson we discuss speed
157
Session 20: Industrial controllers - selection of hardware
and position control with dc motors. The next lesson discusses adjustable
speed drives using induction motors, while Lesson 35 discusses BLDC servo
drives.
20.12.1 DC Servomotors
Direct current servomotors are used as feed actuators in many machine tool
industries. These motors are generally of the permanent magnet (PM) type in
which the stator magnetic flux remains essentially constant at all levels of the
armature current and the speed-torque relationship is linear.
Direct current servomotors have a high peak torque for quick accelerations.
A cross-sectional view of a typical permanent magnet dc servomotor is shown
in Fig. 20.13.
20.12.2Mechanical Construction
Stator consists of Yoke and Poles and provides mechanical support to the
machine. The yoke provides a highly permeable path for magnetic flux. It is
made of cast steel. Field poles are made of thin laminations stacked together.
This is done to minimize the magnetic losses due to the armature flux. The
cross-sectional area of the field pole is less than that of the pole shoe.
The pole shoe helps to establish a uniform flux density around the air gap.
Field winding: DC excitations are provided to field windings wound on pole
shoes to create electromagnetic poles of alternating polarity. Depending on
the connections of field windings DC motors may be termed as shunt, series,
compound or separately excited. Shunt motors have field winding connected
in parallel with the armature winding while series motors have the field
winding connected in series with the armature winding. A compound dc
machine may have both field windings wound on the same pole. Smaller DC
servomotors generally have permanent magnets for poles.
Armature: The rotating part of a dc machine is called the armature. The
length of the armature is usually the same as that of the pole. It is made of
thin, highly permeable, and electrically insulated circular steel laminations
that are stacked together and rigidly mounted on the shaft. The laminations
have axial slots on their periphery to house the armature coils. Insulated
copper wires are typically used for the armature coils to achieve a low
armature resistance.
Commutator: The commutator is made of wedge – shaped hard-drawn
copper segments. Sheets of mica insulate the copper segments from one
another. One end of the armature coil is electrically connected to a copper
segment of the commutator. The commutators rotate with the armature
keeping a sliding contact with the brushes, which remain stationary.
158
Session 20: Industrial controllers - selection of hardware
Brushes: Brushes are held in a fixed position by means of brush holders and
remain in sliding contact with the commutator segments. An adjustable spring
inside the brush holder exerts a constant pressure on the brush in order to
maintain a proper contact between the brush and the commutator. The brushes
are connected to the armature terminals of the machine. The material for the
brush is normally carbon or carbon-graphite.
159
Session 20: Industrial controllers - selection of hardware
Figure 20.15 shows the equivalent circuit with respect to the stator, where Ir
is given as
and parameters Rr and Llr stand for the resistance and inductance parameters
referred to the stator.
Since the output power is the product of developed electrical torque Te and
speed ωm, Te can be expressed as
160
Session 20: Industrial controllers - selection of hardware
161
Session 20: Industrial controllers - selection of hardware
From the torque speed characteristics in Fig. 20.16, it can be seen that at any
rotor speed the magnitude and/or frequency of the supply voltage can be
controlled for obtaining a desired torque. The three possible modes of speed
control are discussed below.
162
Session 20: Industrial controllers - selection of hardware
Figure 20.18 shows the torque-speed curve, if the stator supply frequency is
increased with constant supply voltage, where ωe is the base angular speed.
Note, however, that beyond the rated frequency ωb , there is fall in maximum
torque developed, while the speed rises.
Figure 20.19 shows the torque-speed curves for constant V/f operation. Note
that the maximum torque Tem remains approximately constant. Since the air
163
Session 20: Industrial controllers - selection of hardware
gap flux of the machine is kept at the rated value, the torque per ampere is
high. Therefore, fast variations in acceleration can be achieved by stator
current control. Since the supply frequency is lowered at low speeds, the
machine operates at low slip always, so the energy efficiency does not suffer.
The variable voltage variable frequency supply for an induction motor drive
consists of a uncontrolled (Fig. 20.20) or controlled rectifier (Fig. 20.21)
(fixed voltage fixed frequency ac to variable/fixed voltage dc) and an inverter
(dc to variable voltage/variable frequency ac). If rectification is uncontrolled,
as in diode rectifiers, the voltage and frequency can both be controlled in a
pulse-width-modulated (PWM) inverter as shown in Figure 20.20. The dc link
filter consists of a capacitor to keep the input voltage to the inverter stable
and ripple-free.
164
Session 20: Industrial controllers - selection of hardware
On the other hand, a controlled rectifier can be used to vary the dc link
voltage, while a square wave inverter can be used to change the frequency.
This configuration is shown in Fig. 20.21.
165
Session 20: Industrial controllers - selection of hardware
The gating signals and the resulting line voltages for square wave switching
are shown in Figure 20.25. The phase voltages are derived from the line
voltages assuming a balanced three-phase system.
166
Session 20: Industrial controllers - selection of hardware
167
Session 20: Industrial controllers - selection of hardware
Figure 0.25 Inverter gate (base) signals and line-and phase-voltage waveforms
The square wave inverter control is simple and the switching frequency and
consequently, switching losses are low. However, significant energies of the
lower order harmonics and large distortions in current wave require bulky
low-pass filters. Moreover, this scheme can only achieve frequency control.
For voltage control a controlled rectifier is needed, which offsets some of the
cost advantages of the simple inverter.
168
Session 20: Industrial controllers - selection of hardware
It is possible to control the output voltage and frequency of the PWM inverter
simultaneously, as well as optimize the harmonics by performing multiple
switching within the inverter major cycle which determines frequency. For
example, the fundamental voltage for a square wave has the maximum
amplitude (4Vd/π) but by intermediate switching, as shown in Fig. 20.26, the
magnitude can be reduced. This determines the principle of simultaneous
voltage control by PWM. Different possible strategies for PWM switching
exist. They have different harmonic contents. In the following only a
sinusoidal PWM is discussed.
169
Session 20: Industrial controllers - selection of hardware
where Vp = peak value of the modulating wave and VT = peak value of the
carrier wave. Ideally, m can be varied between 0 and 1 to give a linear relation
between the modulating and output wave. The inverter basically acts as a
linear amplifier. The line voltage waveform is shown in Fig. 20.27(b).
170
Session 20: Industrial controllers - selection of hardware
Figure 0.28 Closed-loop induction motor drive with constant volts/Hz control strategy.
An outer speed PI control loop in the induction motor drive, shown in Figure
20.28 computes the frequency and voltage set points for the inverter and the
converter respectively. The limiter ensures that the slip-speed command is
within the maximum allowable slip speed of the induction motor. The slip-
speed command is added to electrical rotor speed to obtain the stator
frequency command. Thereafter, the stator frequency command is processed
in an open-loop drive. Kdc is the constant of proportionality between the dc
load voltage and the stator frequency.
171
Session 21: Overview of DCS
Session 21
Overview of DCS
Content
Introduction ............................................................................................. 173
21.1 Historical Review ........................................................................ 173
21.2 Modes of Computer control ......................................................... 174
21.3 Computer Control Networks ........................................................ 175
21.3.1 Small Computer Network ..................................................... 175
21.3.2 Programmable Logic Controllers ......................................... 176
21.3.3 Commercial Distributed Control Systems ............................ 177
21.4 Description of the DCS elements ................................................. 179
21.5 The advantages of DCS systems .................................................. 180
21.6 Important consideration regarding DCS systems. ....................... 180
21.6.1 The control loops .................................................................. 180
21.6.2 The basic units of a digital computer ................................... 181
21.6.3 Digital control software ........................................................ 185
21.7 Conclusion ................................................................................... 186
172
Session 21: Overview of DCS
Introduction
To fully appreciate and select the current status of affairs in industrial practice
it is of interest to understand the historical perspective on the evolution of
control systems implementation philosophy and hardware elements. The
evolution concerns the heart of any control system which is how information
flow and decision making advanced.
1. Pneumatic Implementation: In the early implementation of automatic
control systems, information flow was accomplished by pneumatic
transmission, and computation was done by mechanical devices using
bellows, spring etc. The pneumatic controller has high margin for
safety since they are explosion proof. However, there are two
fundamental problems associated with pneumatic implementation:
Transmission: the signals transmitted pneumatically (via air
pressure) are slow responding and susceptible to interference.
Calculation: Mechanical computation devices must be
relatively simple and tend to wear out quickly.
2. Electron analog implementation: Electrons are used as the medium of
transmission in his type of implementation mode. Computation
devices are still the same as before. Electrical signals to pressure
signals converter (E/P transducers) and vice versa (P/E transducers)
are used to communicate between the mechanical devices and electron
flow. The primary problems associated with electronic analog
implementation are:
Transmission: analog signals are susceptible to contamination
from stray fields, and signal quality tends to degrade over long
transmission line.
173
Session 21: Overview of DCS
174
Session 21: Overview of DCS
175
Session 21: Overview of DCS
176
Session 21: Overview of DCS
PLCs can handle thousands of digital I/O and hundreds of analog I/O and
continuous PID control. PLC has many features besides the digital system
capabilities. However, PLC lacks the flexibility for expansion and
reconfiguration. The operator interface in PLC systems is also limited.
Moreover, programming PLC by a higher-level language and/or capability of
implementing advanced control algorithms is also limited.
PLCs are not typical in a traditional process plant, but there some operations,
such as sequencing, and interlock operations, that can use the powerful
capabilities of a PLC. They are also quite frequently a cost-effective
alternative to DCSs (discussed next) where sophisticated process control
strategies are not needed. Nevertheless, PLCs and DCSs can be combined in
a hybrid system where PLC connected through link to a controller or
connected directly to network.
21.3.3 Commercial Distributed Control Systems
In more complex pilot plants and full-scale plants, the control loops are of the
order of hundreds. For such large processes, the commercial distributed
control system is more appropriate. There are many vendors who provide
these DCS systems such as Baily, Foxboro, Honeywell, Rosemont,
Yokogawa, etc. In the following only an overview of the role of DCS is
outlined.
Conceptually, the DCS is similar to the simple PC network. However, there
are some differences. First, the hardware and software of the DCS is made
more flexible, i.e. easy to modify and configure, and to be able to handle a
large number of loops. Secondly, the modern DCS are equipped with
optimization, high-performance model-building and control software as
options. Therefore, an imaginative engineer who has theoretical background
on modern control systems can quickly configure the DCS network to
implement high performance controllers.
A schematic of the DCS network is shown in figure 21.3. Basically, various
parts of the plant processes and several parts of the DCS network elements
are connected to each other’s via the data highway (fieldbus). Although figure
3 shows one data highway, in practice there could be several levels of data
highways. A large number of local data acquisition, video display and
computers can be found distributed around the plant. They all communicate
to each other’s through the data highway. These distributed elements may
vary in their responsibilities. For example, those closest to the process handle
high raw data traffic to the local computers while those farther away from the
process deal only with processed data but for a wider audience.
The data highway is thus the backbone for the DCS system. It provides
information to the multi-displays on various operator control panels sends
177
Session 21: Overview of DCS
new data and retrieve historical data from archival storage and serves as a
data link between the main control computer and other parts of the network.
On the top of the hierarchy, a supervisory (host) computer is set. The host
computer is responsible for performing many higher-level functions. These
could include optimization of the process operation over varying time
horizons (days, weeks, or months), carrying out special control procedure
such as plant start up or product grade transition, and providing feedback on
economic performance.
A DCS is then a powerful tool for any large commercial plant. The engineer
or operator can immediately utilize such a system to:
Access a large amount of current information from the data highway.
See trends of past process conditions by calling archival data storage.
Readily install new on-line measurements together with local
computers for data acquisition and then use the new data immediately
for controlling all loops of the process.
Alternate quickly among standard control strategies and readjust
controller parameters in software.
A sight full engineer can use the flexibility of the framework to
implement his latest controller design ideas on the host computer or
on the main control computer.
178
Session 21: Overview of DCS
The typical DCS system shown in Figure 3 can consists of one or more of the
following elements:
Local Control Unit (LCU). This is denoted as local computer in Figure
21.3. This unit can handle 8 to 16 individual PID loops, with 16 to 32
analog input lines, 8 to 16 analog output signals and some a limited
number of digital inputs and outputs.
Data Acquisition Unit. This unit may contain 2 to 16 times as many
analog input/outputs channels as the LCU. Digital (discrete) and
analog I/O can be handled. Typically, no control functions are
available.
Batch Sequencing Unit. Typically, this unit contains a number of
external events, timing counters, arbitrary function generators, and
internal logic.
Local Display. This device usually provides analog display stations,
analog trend recorder, and sometime video display for readout.
Bulk Memory Unit. This unit is used to store and recall process data.
Usually mass storage disks or magnetic tape are used.
General Purpose Computer. This unit is programmed by a customer
or third party to perform sophisticated functions such as optimization,
advance control, expert system, etc.
Central Operator Display. This unit typically will contain one or more
consoles for operator communication with the system, and multiple
video color graphics display units.
Data Highway. A serial digital data transmission link connecting all
other components in the system may consist of coaxial cable. Most
commercial DCS allow for redundant data highway to reduce the risk
of data loss.
Local area Network (LAN). Many manufacturers supply a port device
to allow connection to remote devices through a standard local area
network.
179
Session 21: Overview of DCS
The control loop remains the same as the conventional feedback control loop,
but with the addition of some digital components. Figure 21.4 shows a typical
single direct digital control-loop. Digital computer is used to take care of all
180
Session 21: Overview of DCS
control calculations. Since the computer is a digital (binary) machine and the
information coming out of the process in an analog for, they had to be
digitized before entering the computer. Similarly, the commands issued by
the computer are in binary, they should be converted to analog (continuous)
signals before implemented on the final control element. This is the
philosophy behind installing the A/D and D/A converter on the control loop.
Signal conditioning is used to remove noise and smooth transmitted data.
Amplifier can also be used to scale the transmitted data if the signals gain is
small. Signal generators (transducer) are used to convert the process
measurements into analog signals. The most common analog signals used are
0-5 Volts and 4 -20mA. Some of the process variables are represented in
millivolts such as those form thermocouples, strain gauges, pH meters, etc.
Multiplexers are often used to switch selectively a number of analog signals.
181
Session 21: Overview of DCS
The memory unit is used for storing data and programs. Typical computers
have Random-Access-Memory (RAM) and Read-Only-Memory (ROM). The
final unit is the input/output interface. The I/O interface is necessary for the
computer to communicate with the external world. This interface is the most
important in the control implementation. The process information is fed to the
computer through the I/O interface and the commands made by the computer
are sent to the final control element through the I/O interface.
182
Session 21: Overview of DCS
Each single bit consists of binary elements, i.e. 0 or 1. Therefore, any integer
number from 0 to 7 can be represented by a three-bit word as follows:
183
Session 21: Overview of DCS
divided over 15 points, i.e. sixteen equally spaced values between 0 and 1 can
be recognized, and the error in resolution will be in the order of 1/30. Most
current control-oriented ADC and DAC utilize a 10 to 12-bit representation
(resolution better than 0.1%). Since most micro- and minicomputers utilize at
least a 16-bit word, the value of an analog variable can be stored in one
memory word. New computers are capable of using 32-bit word. Therefore,
new generation of ADC and DAC with higher resolution (up to 16 to 20 bit)
are emerging.
Table 0.1 Representation of a 0 to 1volt analog variable using a 3-bit word
Process interface
A typical plant with large number of variables contains abundance of process
information (data). Therefore, process information can be classified under
several classes (groups). Then a specialized device can be used to transfer all
information of a specific class into and out of the computer. This way
designing different I/O interface for each I/O device to be connected to the
computer is avoided. In fact, most process data can be grouped into four major
categories as listed in Table 21.2.
Table 0.2 Categories of process information
The digital input/output signals can be easily handled because the match the
computer representation format. The digital interface can be designed to have
multiple registers, each with the same number of bits as the basic computer
184
Session 21: Overview of DCS
word. In this way a full word of 16-bit can represent 16 separate process
binary variables and can be transmitted to the computer at one time and
stored. Each bit will determine the state of a specific process input lie. For
example, a state of 1 means the input is on and 0 means off or vice versa.
The generalized digital information usually uses binary coded decimal and
ranges from 0000 to 9999. Hence, a 16-bit register can be used as interface
device to transmit 4 digits of result because four-bits are necessary to
represent one digit (0-9) of binary coded decimal.
In the input pulse information case, a single register (interface device) is
designed for each input line. The register ordinarily consists of pulse counter.
The accumulated pulses over a specified length of time are transferred to the
computer in binary or BCD count. The output pulse interface consists of a
device to generate a continuous train of pulses followed by a gate. The gate
is turned on and off by the computer.
The analog input information must be digitized by ADC before fed to the
computer. Since the process has a large number of analog sensing devices, a
multiplexer is used to switch selectively among various analog signals. The
main purpose of a multiplexer is to avoid the necessity of using a single ADC
for each input line. The DAC devise performs the reverse operation. Each
analog output line from the computer has its own dedicated DAC. The DAC
is designed such that it holds (freeze) a previous output signal until another
command is issued by the computer.
Timing
The control computer must be able to keep track of time (real time) in order
to be able to initiate data acquisition operations and calculate control outputs
or to initiate supervisory optimization on a desired schedule. Hence, all
control computers will contain at least one hardware timing device. The so-
called real-time clock represents one technique. This device is nothing more
than a pulse generator that interrupts the computer on a periodic basis and
identifies itself as interrupting device.
Operator interface.
The operator interface is generally a terminal upon which the operator can
communicate with the system. Such terminals usually permit displaying
graphical information. Often these display consoles are color terminals for
better visibility and recognition of key variables. The operator will use the
keyboard portion of the terminal to perform specific tasks. For example, the
operator can type in requests for information or displaying trends, changing
controller parameters or set points, adding new control loop, and so on.
21.6.3 Digital control software
185
Session 21: Overview of DCS
21.7 Conclusion
186
Session 22: DCS integration with PLC and computers
Session 22
DCS integration with PLC and computers
Content
Introduction ............................................................................................. 188
22.1 Comparative Study of Different Techniques in Automation .......189
22.1.1 Relay and Contactor Logic ................................................... 189
22.1.2 Supervisory Control and Data Acquisition (SCADA) .........190
22.1.3 Distributed Control System (DCS) ....................................... 191
22.2 Programmable Logic Controllers (PLC)...................................... 192
22.2.1 The Program Memory .......................................................... 193
22.2.2 The Data Memory ................................................................. 193
22.2.3 The Input Devices................................................................. 193
22.2.4 The Output Devices .............................................................. 193
22.3 Elements of Ladder Logic and a Practical Example .................... 195
22.4 Conclusions .................................................................................. 198
187
Session 22: DCS integration with PLC and computers
Introduction
188
Session 22: DCS integration with PLC and computers
From the literature, it is very clear that every process for its effective
operation need specific set of instructions and necessary infrastructure. The
processes operated by human or non-automated yield lesser productivity and
may not be energy efficient, but such practices were inevitable till the advent
of the concept automation. The Automation brought the revolution in every
field of application to a greater extent incorporating technologies and
machines to do activities in efficient manner by reducing human intervention.
In the following paragraph comparative study of such methods is done.
22.1.1 Relay and Contactor Logic
Relay and contactor logic use relay which is an electromagnetic switch which
opens and closes the contacts to control electrical circuit like as shown in
Figure 22.1. The energized coil with a suitable supply controls the circuit. A
simple RC circuit is usually installed across the coil to dissipate and absorb
the spikes of voltages which may damage the coil winding. Similar to this a
contactor is an electrically controlled switch used for switching a power
circuit activated by a control input. Contactors unlike a circuit breaker are not
intended to interrupt a short circuit current. A contactor generally consists of
Power Contacts, Auxiliary Contacts and Contact Springs etc.
The electromagnet is the main driving element which closes the contacts.
Generally, it is enclosed in a housing made up of insulating materials. The
major drawback of relay and contactor logic is it needs immediate
rectification on failure and it does not possess any redundant system.
189
Session 22: DCS integration with PLC and computers
190
Session 22: DCS integration with PLC and computers
191
Session 22: DCS integration with PLC and computers
192
Session 22: DCS integration with PLC and computers
It is the memory space where the program instructions for the logical control
sequence is stored.
22.2.2 The Data Memory
These are the hardware/software inputs from the field from the industrial
process. The signals may be from sensors, switches, proximity detectors and
interlock settings etc. These inputs trigger the sequences in user program for
the required output or a process. For example, Emergency stop input is always
monitored by the PLC program and as when this switch is hit by incident or
accident the whole PLC process is suspended to a halt situation.
The solenoid valves and pneumatic actuators, motors, heaters, cooling fan
motors, alarm indicator and buzzers are the typical output devices. These
devices drive the industrial processes. The alarm indicator output mostly with
audio visual warn the operator of the process for the unexpected happening
in the sequential process currently running for the proper attention. In order
to program the PLC a programming unit is necessary which may be a personal
computer with suitable software to interface the PLC. The programming unit
helps to build, test and edit the logical sequences that the PLC will execute
repeatedly in the real process. The IEC 61131-3 standard explains the
193
Session 22: DCS integration with PLC and computers
194
Session 22: DCS integration with PLC and computers
Thus, the output devices are activated accordingly during the output scan.
Finally, a PLC checks each of its input with intention to see which one has
status on or off and the action might be activation of certain outputs.
Changes are performed based on the input status that has been read during the
first step and based on the result of the program execution in step two
following execution of step three PLC returns a beginning of the cycle and
continually repeats these steps as shown in Figure 6.
The basic components in a ladder logic program are the contact and the coil.
The contact is the name given to a general input device set by an external
switch, an internally set logic or timer function. Coil is the name given to an
output device and is used to drive relays, contactor, motors, solenoids and
other process actuators. Figure 22.7 shows the few such contacts used in
Ladder programming namely, normally open, normally closed, logic high out
and logic low out. A typical oil tank level control mechanism as shown in
Figure 22.8 is taken for a study example for the understanding of the working
of PLC. Chosen inputs and outputs for the example are listed in Table 1.
Initially the tank is empty. The status of low level and high-level probes is
195
Session 22: DCS integration with PLC and computers
logic High (No Oil). Therefore, input 0000 is TRUE (Logic High) and input
0001 is also TRUE (Logic High). A sample ladder diagram is as shown
below.
196
Session 22: DCS integration with PLC and computers
Figure 22.9 to Figure 22.14 show step wise logic conditions and execution of
Ladder steps to setup output and turns OFF once the tank is full. The gradual
filling up of tank takes place because of output 500 (Pump motor). After the
oil level rises above the low-level sensor and it becomes open (FALSE) there
is still a path of TRUE logic from left to right. This is because of internal
relay. Relay 1000 is latching the output 500 “ON”. It will stay ON until there
is no true logic path from left to right (or when 0001 becomes false). After
the oil level rises above the high-level sensor it becomes open (FALSE).
Since there is no more TRUE logic path, output 500 is no longer energized
(TRUE) and therefore the motor turns OFF. After the oil level falls below the
high-level sensor and it will become TRUE again the entire sequence repeats
again. Table 22.2 shows the overall comparison of different control methods
for the respective choice in automation.
197
Session 22: DCS integration with PLC and computers
Table 0.3 Pros and cons associated with each control methods
22.4 Conclusions
The good automation and process control is very necessary in the competitive
world. Rapid production changes and attainment of good production with
minimal waste is really challenging. The PLC based automation works will
surely turn the production activities into profit. The complex operations and
reduction in set up time can be greatly reduced by making use of PLC based
automation. The works in ceramic, cement, chemical, a food processing,
packaging industry and so on strongly requires the use of PLC systems for
the great profit and performance. The comparative study of historical growth
198
Session 22: DCS integration with PLC and computers
in automation evidenced the current world and its challenges with PLC. The
innovative developments and opportunities to invest in such automation is the
hurdle right now with the related economy. Present work explored the control
schemes for industrial automation and system monitoring to improve system
operation, system reliability etc. Various types of automation systems such as
relays, contactor logic, PLCs, SCADA and DCS have been discussed also,
Pros and cons associated with each control methods have been summarized
in Table 3. The DCS, SCADA and communication systems integrate
protection, control and monitoring together to maximize the benefits. Truly,
automation and system monitoring are the logical choice to improve system
performance and to achieve customers and shareholder’s satisfactions.
199
Session 23: Features and advantages of DCS
Session 23
Features and advantages of DCS
Content
Introduction ............................................................................................. 201
23.1 Evolution of traditional control systems ...................................... 202
23.1.1 Pneumatic control ................................................................. 202
23.1.2 Electronic analog control ...................................................... 203
23.1.3 Digital control ....................................................................... 203
23.1.4 Modes of computer control .................................................. 204
23.1.5 Direct digital control ............................................................. 204
23.1.6 Supervisory control .............................................................. 205
23.1.7 Hierarchical computer control system .................................. 207
23.2 Distributed control systems ......................................................... 208
23.2.1 Programmable logic controllers............................................ 208
23.2.2 Distributed control systems .................................................. 209
23.2.3 DCS design considerations ................................................... 213
23.2.4 Hierarchy of plant operations ............................................... 215
23.3 Functional components of DCS ................................................... 217
23.3.1 Field communication ............................................................ 219
23.4 Functional features of DCS.......................................................... 222
23.4.1 System configuration/programming ..................................... 222
23.4.2 Communications ................................................................... 224
23.4.3 Control .................................................................................. 226
23.4.4 Alarms and events ................................................................ 226
200
Session 23: Features and advantages of DCS
Introduction
201
Session 23: Features and advantages of DCS
202
Session 23: Features and advantages of DCS
Over time, electronic analog control was introduced. Electrical signals were
used as the mode of trans-mission in this implementation. As in pneumatic
control, computation devices are mechanical. Electrical signals to pressure
signals converter (E/P transducers) and pressure to electrical (P/E
transducers) are used to transmit signals to enable coexistence of pneumatic
and electrical signals. Disadvantage with analog signals is the susceptible to
contamination from stray fields, leading to degradation in signal quality over
long distances.
The most common standard electrical signal is the 4–20 mA current signals.
With this signal, a transmitter sends a small current through a set of wires.
The current signal is a kind of gauge in which 4 mA represents the lowest
possible measurement, or zero, and 20 mA represents the highest possible
measurement.
23.1.3 Digital control
In this mode, the transmission medium is still an electrical signal, but the
signals are transmitted in binary form. Digital signals are discrete levels or
values that are combined in specific ways to represent process variables and
also carry diagnostic information. The methodology used to combine the
digital signals is referred to as protocol. Manufacturers may use either an open
or a proprietary digital proto-col. Open protocols are those that anyone who
is developing a control device can use. Proprietary protocols are owned by
specific companies and may be used only with their permission. Open digital
protocols include the HART® (highway addressable remote transducer)
protocol, FOUNDATION™ FieldBus, Profibus, DeviceNet, and the
Modbus® protocol.
Digital signals are far less sensitive to noise. In digital signaling, we look for
two levels of signals, and the magnitude of the signals is expressed as a
combination of 1 and 0, corresponding to the magnitude expressed as a binary
number. Therefore, the impact of noise is reduced compared to an analog
signal. The computational devices are digital computers embedded processors
with real time operating systems. Digital computers are more flexible because
they are programmable. They are more versatile because there is virtually no
limitation to the complexity of the computations it can carry out. The
limitation is on the computing power of the computer, how many
computations it can perform in a given unit of time. Moreover, it is possible
to carry out computation with a single computing device, or with a network
of such devices.
203
Session 23: Features and advantages of DCS
In DDC, a digital computer computes control signals that directly operate the
control devices. A single computer digitally performs signal processing,
indication, and control functions and therefore the name “direct digital
control.” Initially computers were very large and housed in large buildings
with substantial environment controls. As the electronics evolved, and
medium scale integration (MSI) and large-scale integration (LSI) integrated
circuits (ICs) became available, powerful and relatively small mini computers
became a reality. These mini computers were first deployed to realize DDC
(Figure 23.1).
23.1.5.1 Disadvantages of DDC
The following are some of the disadvantages of a DDC:
Centralized control – a single central processor is used to perform
several tasks necessary for control:
o IO scanning
o Data logging
o Control execution
o Alarm generation
o Database update
o Serving operator display updates
o Periodic and on-demand report generation
o Serve peripherals such as printers and recorders
o Process optimization
In addition, DDC systems support software systems (compilers)
configuration and engineering functions.
204
Session 23: Features and advantages of DCS
205
Session 23: Features and advantages of DCS
206
Session 23: Features and advantages of DCS
All vendors who later started offering DCS offered both DDC and
supervisory control options. In the earlier versions, both versions coexisted
with the DCS. Many of the current DCS control technologies had their origins
in DDC and supervisory control systems. However, DDC is rarely used in
current industrial automation scenarios.
23.1.7 Hierarchical computer control system
207
Session 23: Features and advantages of DCS
208
Session 23: Features and advantages of DCS
in the places where there is a large number of discrete operations and small
number of analog controls. PLC architectures have always focused on flexible
and fast local control. Recent advancements in PLC technology have added
process control features. When PLCs and HMI software packages are
integrated, the result looks a lot like a DCS.
PLCs and DCSs can be combined by design in a hybrid system where PLCs
are connected through a link to a controller forming part of a larger DCS or
are connected directly to network of the DCS.
23.2.2 Distributed control systems
209
Session 23: Features and advantages of DCS
210
Session 23: Features and advantages of DCS
211
Session 23: Features and advantages of DCS
212
Session 23: Features and advantages of DCS
The field Instrumentation also plays a role in terms of the architecture of the
DCS due to the evolution of various protocols.
23.2.3 DCS design considerations
Any modern DCS is expected to meet the following requirements from plant
operations and maintenance perspective. These form the considerations
during the design of the DCS:
High Reliability: Any control or hardware component failure could
have devastating consequences leading to loss of life and property.
Therefore, reliability of the control system is a life-critical
requirement. During design, development and manufacturing, all
electronic components of the DCS are normally subjected to extensive
periods of cycling at temperatures exceeding the extremes listed in
equipment specifications. This process weeds out the components
most likely to fail. Suppliers provide redundancy in their design, and
as a redundant component in the architecture because reliability is still
probable. Power supplies, data highways, traffic directors, and
controller electronics are important single points of failure in the
system and are considered as candidates for having redundancy. It is
essential to have automatic transfer between redundant parts, so that
if one fails the other takes over without disturbance of the operation
or output. At the same time, there must be some form of alarm to alert
the operator to draw his attention to the fact that a failure has occurred.
High Availability: High availability is as important as reliability.
Defining availability as the ratio of mean time between failure
(MTBF) to mean time between failure plus mean time to repair
(MTBF + MTTR), it is clear that a system is most available when it is
very reliable (high MTBF) and can be quickly repaired (low MTTR).
Since distributed control equipment is highly modular and contains
213
Session 23: Features and advantages of DCS
many printed circuit cards, time to repair can be very short if sufficient
spare parts are available and the components can be quickly brought
into service and the necessary software updated online without
affecting the control functions in any way.
Low Cost: If we consider together the initial purchase price, cost of
initial implementation, and the cost of making subsequent changes to
the system over time, the DCS can be much less expensive. The total
project costs include the expenses required to build a working solution
that accomplishes the long-term goal of effective process control.
Maintenance costs and costs of changes to accommodate growth of
operations over time are key factors to consider while estimating the
cost of the system. This is called life cycle cost. This life cycle cost
turns out to be lower in case of DCS compared to providing
comparable level of functionality using PLCs because the built-in
functions and inherent integration capabilities available in a DCS
enable implementation and maintenance of a more effective system
with reduced labor, plant life cycle cost while avoiding degradation in
functionality over time.
High Alarm Management Capability: DCS systems must be capable
of intelligent alarm management to aid in abnormal situation
management. Alarm management is necessary in a manufacturing
process environment using a control system, such as a DCS or a
system of PLCs. Such a system may have hundreds of individual
alarms that up until very recently have probably been configured with
limited consideration of the interdependencies among all alarms in the
system. Humans can pay attention to a limited number of stimuli and
messages at a time. Therefore, we need a way to ensure that alarms
are presented at a rate that can be assimilated and acted upon by a
human operator, particularly when the plant is in a disturbed state or
in an emergency condition. Alarms also need to be capable of
directing the operator’s attention to the most important problem that
he or she needs to act upon methodically, using a prioritization
scheme. The capabilities of alarm management in the system must go
beyond the basic level of utilizing multiple alarm priority levels. It is
to be noted that alarm priority itself is often dynamic. Likewise,
disabling an alarm based on unit association or suppressing audible
annunciation based on priority do not meet operational requirements
in a complex plant. We need dynamic, selective alarm annunciation
in such cases. DCSs are designed with an alarm management system
that dynamically filters the process alarms based on the current plant
operation and conditions so that only the currently significant alarms
are annunciated.
Scalability: A small SCADA/PLC system is easy to design and
configure. As the system grows bigger, the effort involved to properly
engineer and configure the system grows in a nonlinear fashion. It also
214
Session 23: Features and advantages of DCS
215
Session 23: Features and advantages of DCS
216
Session 23: Features and advantages of DCS
control; therefore, even if the latency is higher than at the control level, it can
be tolerated.
Plant diagnostics and integration are often referred as applications. Plant
diagnostics offers a smart-er way of viewing things that are happening in the
plant. For instance, plant diagnostics could include an application that
consolidates all the alarms that are happening in the lower layers, to warn the
user about a trend in the alarms that could lead to a potential process failure.
It may include a historian just dedicated to collect the entire history over the
plant and maintain it to derive various conclusions for the data that is stored.
Integration refers to communicating with third party devices over
technologies such as OPC, a common example is data from one DCS vendor
to another is transferred over OPC. The distinction be-tween integration and
control level are with respect to criticality; delay in transferring and receiving
data cannot be tolerated at the supervisory layer whereas at the control layer
it is tolerated to certain extent. And data available at the control layer is
filtered and made noncritical, when compared to supervisory systems layer,
for security reasons. The control layer that normally runs over IT local area
network (LAN) has higher risk of getting hacked. Hence, noncritical controls
or purely supervisory data such as history is transferred through OPC.
The enterprise level is where process information flows into the office
management world, for example, to aid ordering and billing via service access
point (SAP) or production planning. This is the world of supply chain
management that collates and evaluates such information as the quantities of
raw materials in store, the amount of water being used every day, the energy
used in heating and refrigeration, the quantities of product being processed,
and the amount that can be sold within the next day, week, or month.
217
Session 23: Features and advantages of DCS
direct sensors, are located in the field. Smart field devices can communicate
on an IO buses while performing control calculations, alarming functions, and
other control functions locally. Control strategies that reside in field-mounted
controllers send their signals over the hardwired cables or over the field buses
to the final control elements, which they control.
IO subsystems perform a variety of functions such as analog-to-digital
conversion, conversion to engineering values, limit checking, quality tagging,
and so on. They also enable assignment of addresses to the field signals for
use by the controllers.
Controllers subsystems execute the control logic once in a fixed interval of
time, which constitutes the controller cycle time. During the engineering
process, the tools ensure that the given package of control logic can be
executed in a deterministic way within the cycle time of the controller.
The controllers consist of a base firmware that enables the controllers to
communicate on the network, exchange data, and commands among
themselves or with the operator and supervisory interfaces. The application
programs are plant specific and are engineered for every plant where the DCS
is being implemented. The engineering tools enable the creation and
validation of the application program. The application programs are
downloaded into the controllers after the validation process and are typically
stored and executed from a designed separate memory area in the controller.
Information from the field devices and the controller are transmitted to the
operator workstations, application workstations, data historians, report
generators, centralized databases, and so on over the plant control network.
These workstations run applications that enable the operator to perform a
variety of operations. An operator may interact with the system through the
displays and keyboards to change control parameters, view the current state
of the process, or access and acknowledge alarms that are generated by field
devices and controllers. The operator can also change the control software
executing in the controllers and in some of the field devices. Some systems
also support process simulation for training personnel or for testing the
process control software.
Information from the operator workstations is passed on to the other
workstations, which execute a variety of higher-level applications. The
operator workstations and the supervisory workstations exchange data
through the PIN. The PIN could also be part of the enterprise network,
although there are substantial safeguards to prevent unauthorized access to
the networks in the realm of the control systems. Figure 23.6 provides the
integrated view of a typical closed loop as seen from different sub systems of
a DCS.
218
Session 23: Features and advantages of DCS
219
Session 23: Features and advantages of DCS
220
Session 23: Features and advantages of DCS
221
Session 23: Features and advantages of DCS
the need for special applications software for each protocol, which would be
too difficult to manage.
Every DCS controller is a computer, although not endowed with all the
peripherals of a computer system, images of which one tends to conjure up
when the word “computer” is mentioned. The controllers therefore need
instructions to execute the control actions. Two distinct terms must be
distinguished here – programming and configuration. Every controller comes
with inbuilt firmware. In addition, an application program is downloaded into
another partition of the controller memory. In some cases, manufacturers
provide the application programs also and a way to set certain parameters to
make the generic logic work in the particular plant. For example, a DCS
manufacturer may provide an application program to control a set of three
compressors. The same controller might be sold by the same vendor with an-
other application program say for control of a set of pumps. At the field, it is
just a matter of defining the minimum and maximum pressures, the number
and type of relay contacts to be operated, and the measurement range for field
signals. This process is called configuration. Consider the case where the
DCS vendor provides the controller with the application program memory in
a blank state. DCS users can write custom application programs to cater to
specific logic; this process is termed as programming.
Engineering tools enable configuration programming of controllers,
depending on the applications. The actual features might be controlled by
licensing mechanisms. The engineering tools also hide the complexities of
222
Session 23: Features and advantages of DCS
223
Session 23: Features and advantages of DCS
23.4.2 Communications
DCS systems vary in size from very small to very large, depending on the
size and complexity of the plant being controlled. Today’s systems are
enabled with integrated web services for plant integration while supporting a
variety of open standards, such as OPC, for communicating with data sources
external to the system.
224
Session 23: Features and advantages of DCS
The data highway is the communication medium that allows a DCS to permit
distribution of the controlling function through a large plant area.
Depending on the speed of transmission, bandwidth supported, and physical
characteristics of the medium of the data highway, the highway length could
vary. However, data highways are designed as segments with suitable
bridges/extenders connecting segments so that the length of a segment of data
highway is not a limiting factor. The most popular physical medium is
Ethernet CAT5 cable. However, several suppliers still offer communication
over twisted and shielded coax cables. Several modern DCS also have
implemented the data highway using fiber optic cables. Some of them also
have successfully incorporated wireless exchange of data instead of a physical
medium such as the data highway.
Optic fiber cables are used most commonly for point-to-point connection
between switches and hubs. Optical fiber is attractive for use as a data
highway medium because it eliminates problems of electromagnetic and
radiofrequency interference, ground loops, and common mode voltages. It is
safe in explosive or flammable environments. It can carry more information
than copper conductors. It is inert to most chemicals and is lighter and easier
to handle than coaxial cable. However, special equipment and skilled labor
are needed to terminate and connect optical fibers.
225
Session 23: Features and advantages of DCS
23.4.3 Control
The DCS is connected to field sensors and actuators and uses set-point control
to control the process in the plant. The most common example is a set-point
control loop consisting of a pressure sensor, controller, and control valve.
Pressure or flow measurements are transmitted to the controller, usually
through transmitted and signal conditioning I/O cards. When the measured
variable reaches a certain point, the controller instructs a valve or actuation
device in the field to open or close until the fluidic flow process reaches the
desired set-point. Large oil refineries have many thousands of I/O points and
employ very large DCSs. This is a typical example where processes are not
limited to fluidic flow through pipes. DCS controls can also include things
such as paper machines and their associated quality controls, variable speed
drives, and motor control centers. DCS are widely used in control of cement
kilns, mining operations, and ore-processing facilities, among others.
A typical DCS consists of functionally and/or geographically distributed
digital controllers capable of executing several (actual numbers depend upon
the model of the controller and the complexity of the individual loops)
regulatory control loops in one controller. The I/O devices can be either
collocated with the controller or located remotely via a field network. Today’s
controllers have extensive computational capabilities and, in addition to PID
control, can generally perform logic and sequential control. Modern DCSs
also support neural networks and fuzzy applications.
23.4.4 Alarms and events
A critical part of the DCS is the integrated alarms and events processing
subsystem. The engineering software is used to configure to get notified of
significant system states. This enables monitoring the system states and
acknowledging them. Priorities can also be associated with the events so as
to monitor the events in the plant. Events represent significant changes in state
for which some action is potentially required. An active state indicates that
the condition that caused the event still exists. When an operator has seen the
message and acknowledges the same, the event enters the acknowledged
state.
In most DCS event types can also be defined. The event type specifies the
message to be displayed to an operator for the various alarm states and the
associated attributes whose value should be captured when an event of this
type occurs. Event priorities can also be defined. An event priority type
defines the priority of an event for each of its possible states.
Many DCS systems also support device and equipment alerts. Like process
alarms, alerts can be assigned priority, can be acknowledged, and convey
226
Session 23: Features and advantages of DCS
information related to the condition that caused them. Unlike process alarms,
however, these alerts are generated by the DCS hardware or devices and
equipment external to the DCS. Alarms and alerts are presented to the
operators in alarm ban-ners and summaries. Operators use these specialized
interfaces, to quickly observe and respond to conditions. They then typically
navigate to a specific display to view additional details and take ap-propriate
actions. Operators can also suppress and filter alarms. Alarm suppression is
typically used to temporarily remove alarms from the system for which some
condition exists that the operator knows about (e.g., a piece of equipment has
been shut down or is under maintenance). Alarm filtering pro-vides a way for
the operator to view collections of alarms and efficiently manage alarms when
there is a flood of alarm messages and to suppress several alarms which result
as a consequence of a basic alarm condition.
Alarms are the most vital part of a system. In facts alarms are a subset of
alerts. Alerts can be broadly classified into three categories:
Alarms
Events
Messages
Alarms, events, and messages attract user attention with high priority when
they appear in the system. Alarms are classified based on the priority;
priorities can be urgent, high, and low. They should have a provision of audio
and display annunciation.
The difference between alarms and annunciation is that alarms appear in the
system by default and the user has to do some engineering to dedicate an
annunciation panel for the same. Annunciating panel comprises of the
following:
Hooter
Push button switches with lights for visual indication.
Hooter provides the audio alerts for alarms. Push button switches with visual
indication provide the option of acknowledging the alarms for the panel, on
seeing what the indication is against.
Alarms that are of much lesser priority can be configured as an event; events
are dedicated for certain operations as per system design. For example, a user
logging in with a certain privilege is logged as an event or if a new batch for
manufacturing is started it is generated as an event; this is as per system
configuration and user has no control over it. Alternately, noncritical process
or equipment malfunction generating annoying alarms can be marked as only
to be reported as events. Also, there is an advanced feature available in case
of nuisance alarms. These alarms can be hidden for certain period to avoid
unnecessary attention. The groups of alarms that are a result of equipment
227
Session 23: Features and advantages of DCS
228
Session 23: Features and advantages of DCS
However, there is a flipside to the alarms, events, and messages. Like history
it is important to maintain the record of events; in fact, when a process glitch
is seen in trend it is events that help users understand what went wrong with
the process. Hence, they play a very vital role in diagnosis. But again,
maintenance of event records comes at the cost of disk space. Therefore, if
there are too many events, alarms, and messages over a period, the system is
likely to get overloaded. Hence, users are advised to limit their rate of alerts
by the DCS manufacturer.
229
Session 24: Overview of modelling and simulation
Session 24
Overview of modelling and simulation
Content
24.1 Introduction .................................................................................. 231
24.1.1 Review Methodology ........................................................... 231
24.1.2 Definitions ............................................................................ 232
24.1.3 The Historical Trends of the Evolution of Simulation ......... 232
24.1.4 Types of Simulation Models ................................................ 234
24.2 Simulation in product and production lifecycles ......................... 235
24.3 Product and Production Lifecycle ................................................ 235
24.3.1 Product and Production Lifecycle Tools .............................. 237
24.4 Future trends ................................................................................ 247
230
Session 24: Overview of modelling and simulation
24.1 Introduction
231
Session 24: Overview of modelling and simulation
supervisory control and data acquisition and supply chain. As a result, the
literature was organized based on keywords enabling the distinction between
the relevant and irrelevant topics of academic papers (Figure 24.2).
24.1.2 Definitions
232
Session 24: Overview of modelling and simulation
They also introduce the three-phase method for timing executives, publishes
the first textbook in simulation “The Art of Simulation” (1963) and developed
the wheel chart or activity-cycle diagram (ACD) (1964). During the period
1960-1961, Gordon introduces the General Purpose Simulation System
(GPSS). With use of light, sound motion and even smell to immerse the user
in a motorcycle ride, Heilig designed the Sensorama ride, which is considered
as a predecessor of Virtual Reality (VR). Simultaneously, Nygaard and Dahl
initiate work on SIMULA and they finally release it in 1963 and Kiviat
develops the General Activity Simulation Program (GASP). In 1963, the first
version of SIMSCRIPT is presented for non-experts and OPS-3 is developed
by MIT. Sutherlend presents manipulation of objects on a computer screen
with a pointing device. Although, a significant evolution of simulation is
noticed, there are still problems concerning model construction and model
analysis which are mentioned and addressed by Conway et al. General
Precision Equipment Corporation and NASA uses analogue and digital
computers to develop Gemini simulators. Lackner proposes the system theory
as a basis for simulation modelling. In 1968, Kiviat introduces the
entity/attribute/set concept in SIMSCRIPT II. At the same time, Sutherland
constructs head-mounted computer graphics display that also track the
position of the users’ head movements and the Grope project explores real-
time force feedback. Two years later, power plant simulators are introduced.
In 1972, an explanatory theory of simulation based on systems-theoretic
concepts is presented by Zeigler. In 1973, Pritsker and Hurst introduce the
capability for combined simulation in GASP IV and Fishman composes the
state-of-the-art on random number generation, random variate generation and
output analysis with his two classical texts. Clementson extended ECSL
(Extended Control and Simulation Language) with the Computer Aided
programming System using ACD representation and Mathewson develops
several versions of DRAFT to produce different programming language
executable representations in 1975. In 1976, Delfosse introduces the
capability for combined simulation in SIMSCRIPT II.5 as C-SIMSCRIPT
233
Session 24: Overview of modelling and simulation
and a year later, user interface is added to it. Moreover, Bryant initiates
parallel simulation. In 1978, computer imaging with the introduction of
digital image generation is a significant contribution to the advancement of
simulation. In the beginning of the 1980s, major breakthroughs take place,
military flight simulators, naval and submarine simulators are produced, and
NASA develops relatively low-cost VR equipment. Nance introduces an
object-oriented representational approach in order to join theoretical
modelling issues with program-generation techniques and with software
engineering concepts. Balci and Sargent contribute to formal verification and
validation. Law and Kelton contribute with their first edition which includes
advanced methodologies concerning random number generation, random
variate generation and output analysis. Furthermore, Schruben develops event
graphs in 1983. While, Visual Interactive Simulation is initiated in 1976 by
Hurrion and becomes commercially available in 1979 through SEE-WHY, it
is properly described in methodological terms, contrasting the active and
passive forms in model development and experimentation, by Bell and
O’Keefe in 1994. In early 1990s, real-time simulations and interactive
graphics become possible due to the increased computer power and
commercial VR applications become feasible. In 1990, as well, Cota and
Sargent develop a graphical model representation for the process world view,
named Control Flow Graphs which are subsequently extended to Hierarchical
Control Flow Graphs in order to help the control of representational
complexity by Fritz and Sargent in 1995. In addition, the development of
high-resolution graphics focuses on gaming industry surpassing in that way
the military industry. In 1997, Knuth describes comprehensively the random
number generation techniques and tests for randomness. The historic
evolution of simulation is also depicted in (Figure 24.3).
234
Session 24: Overview of modelling and simulation
simulation depends on the time factor or not, it can be classified into static
and dynamic. A static simulation is independent of time while dynamic
simulation evolves over time. Dynamic simulation can be further categorised
to continuous and discrete. In discrete simulation, changes occur at discrete
points in time while in continuous, the variable of time is continuous.
In addition, discrete simulation is divided to time-stepped and event driven.
Time-stepped consists of regular time intervals and alterations take place after
the passing of a specific amount of time. On the other hand, in event-driven
simulation, updates are linked to scheduled events and time intervals are
irregular. As far as the dimension randomness is concerned simulation can be
deterministic or stochastic. Deterministic means that the repetition of the
same simulation will result to the same output, whereas, stochastic simulation
means that the repetition of the same simulation will not always produce the
same output. Last but not least, simulation is classified to grid-based and
mesh-free according to data organisation. Grid-based means that data are
associated with discrete cells at specific locations in a grid and updates take
place to each cell according to its previous state and those of its neighbours.
On the other hand, mesh free relates with data of individual particles and
updates look at each pair of particles.
Initially, the basic concept or idea for a product is conceived considering the
initial request from a customer and, subsequently, it is transformed into a
working prototype. Satisfaction of the initial customer request is followed by
marketing appraisal of the product in relation to its potential demand from
additional customers. If no further demand if foreseeable, then the product is
retained in the design- and- build facility in order to relate the customers’
voice to product design requirements, and translate these into characteristics
of parts, manufacturing operations, and production requirements.
235
Session 24: Overview of modelling and simulation
Figure 0.4 Mapping of Key-Enabling Technologies on Product and Production lifecycle [lifecycle
phases adapted from EFFRA FoF 2020 Consultation Document]
The aim of the product development process is to ensure that the product and
its components meet the required specifications. Thereinafter, innovative
engineering allows collaborating teams to streamline the engineering of the
product and of the production process engineering. The digital factory
concept enables the integration of CAD designs and CAE information and the
synchronisation of the engineering processes that require the participation of
the entire value chain accessing all product information needed. Moreover, it
provides the opportunity to all product-related teams to work together
effectively without regard to physical location.
Following the production of the product, maintenance ensures that a system
continually performs its intended functions at its designed level of reliability
and safety. At the end of product lifecycle, the product is recycled which
means that the product retains its geometrical form and it is reused either for
the same purpose as during its original life- cycle or for secondary purposes.
Instead of recycling, remanufacturing is used. Used or broken-down products
or components are restored to useful life.
As far as production lifecycle is concerned, at first, the design stage starts
with a stakeholder analysis to identify the constraints and degrees of freedom
for the design. It should be mentioned that stakeholders have different
interests in and requirements to the system.
After the specification of the requirements the design and redesign of
manufacturing systems follows which is summarized as manufacturing
system engineering (MSE). It is a complex, multi-disciplinary process that
236
Session 24: Overview of modelling and simulation
involves not only people located at different production sites, but also a
variety of tools that support special subtasks of the process.
During the process development phase, the rough solutions from the design
phase are refined to a level that allows investigation with analysis tools. If
system dimensions are fixed, first contact with suppliers is established to
integrate them in the further system definition. In the final system definition
phase, one solution is refined to a detail that allows to start system
implementation. This phase is characterised by system integration, where
previously identified subsystems are composed to a complete system. Fine
tuning of subsystem cooperation and fixing of last details lead to the final
system definition and emission of orders to suppliers.
As soon as the integration is completed the production ramp-up begins. It is
defined as the period between the end of product development and full
capacity production. Two conflicting factors are characteristic of this period:
low production capacity, and high demand.
Finally, to face environmental problems, manufacturers undertake efforts on
recycling namely, recovering materials or components of used equipment in
order to make them available for new products or processes.
24.3.1 Product and Production Lifecycle Tools
237
Session 24: Overview of modelling and simulation
a product design, a fiducial marker is sent to the customer which can be used
for AR visualisation via handheld devices. Each AR marker is mapped to
specific 3D models and functionalities. AR was applied through integrating a
hybrid rendering of volume data, vision-based calibration, accurate real-time
tracking methods, tangible interfaces, multimedia annotations, and
distributed computation and communications at DaimlerChrysler.
238
Session 24: Overview of modelling and simulation
239
Session 24: Overview of modelling and simulation
240
Session 24: Overview of modelling and simulation
Virtual Reality (VR) is defined as the use of real-time digital computers and
other special hardware and software to generate the simulation of an alternate
world or environment, believable as real or true by the users. VR is a rapidly
developing computer interface that strives to immerse the user completely
within an experimental simulation, thereby enhancing the overall impact and
providing a much more intuitive link between the computer and the human
participants. VR has found application from the design to the process
simulation phase. Currently, new semantic- based techniques are introduced
in order to facilitate the design and review of prototypes by providing
usability and flexibility to the engineer / designer. In the field of collaborative
management and verification of design knowledge, a new platform, called
DiCoDEv (Distributed Collaborative Design Evaluation), eases the
cooperation among distributed design experts with the use of a shared virtual
environment. The VR environment provides the multiple users with the
capability of visualizing, immersing and interacting with the virtual
prototype; managing efficiently the knowledge during the product design
phase; collaborating in real-time on the same virtual object and reviewing it
and making an ergonomic evaluation with the use of digital human
simulation. Furthermore, an intelligent virtual assembly system using an
optimal assembly algorithm provide haptic interactions during the process of
virtual assembly. Another haptic VR platform, named as HAMMS, is
introduced in order to facilitate the performance, the planning and the
evaluation of virtual assembly of components. Finally, VR tools are applied
to fusion in ITER project facilitating maintenance and integration aspects
during the early phase design.
241
Session 24: Overview of modelling and simulation
Ergonomics Simulation
Ergonomics are defined as the theoretical and fundamental understanding of
human behaviour and performance in purposeful interacting socio-technical
systems, and the application of that understanding to design of interactions in
the context of real settings. In the past, workplace ergonomic considerations
have often been reactive, time- consuming, incomplete, sporadic, and
difficult. Ergonomic experts who were consulted after problems occurred in
the workplace examined data from injuries that had been observed and
reported. There are now emerging technologies supporting simulation-based
engineering to address this in a proactive manner. These allow the workplaces
and the tasks to be simulated even before the facilities are physically in place.
The comparison between ergonomic measurements in virtual and real
environments during some specific task is analysed in [79]. Also, with the use
of USAs VR Lab, named “HEMAP”, training simulations were explored and
ergonomic risks were estimated and spacecraft flight systems were evaluated
as part of the design process. ErgoToolkit implements ergonomic analysis
methods, already available in literature or company practice, into digital tools
242
Session 24: Overview of modelling and simulation
Knowledge Management
Knowledge Management (KM) is defined as the process of continuously
creating new knowledge, disseminating it widely through the organisation,
and embodying it quickly in new products/services, technologies and
systems. KM is about facilitating an environment where work critical
information can be created, structured, shared, distributed and used. To be
effective such environments must provide users with relevant knowledge, that
is, knowledge that enables users to better perform their tasks, at the right time
and in the right form. KM has been a predominant trend in business in the
recent years. Firstly, an explorative study on the Personal Knowledge
Management is conducted and an active knowledge recommender system
model, which is built on distributed members personal knowledge
repositories in the collaborative team environments, is proposed. Moreover,
the implementation process of Lean Production and forms to classify
knowledge and pattern-based approach to knowledge flow design starts from
basic concepts, uses a knowledge spiral to model knowledge flow patterns
and operations, and lays down principles for knowledge flow network
composition and evolution. As far as the industrial applications of knowledge
management is concerned, a framework for marketing decision making with
the use of agent technology, fuzzy AHP (Analytical Hierarchy Process) and
fuzzy logic is implemented in a car factory.
243
Session 24: Overview of modelling and simulation
avoiding the drawing stage of the equipment and virtual reality factory
models created provide the user with the ability to move through factory
mock-ups, walk through, inspect, and animate motion in a rendered 3D-
factory model. Moreover, a method implemented in a web-based tool is able
to generate job rotation schedules for human based assembly systems. A
method of deriving assembly line design alternatives and evaluating them
against multiple user-defined criteria is applied in an automotive case. An
AR-based application is developed which aims at meeting the need and
demands of an AR-supported factory and manufacturing planning, usability,
analysis functionalities and accuracy demands. It provides the user with the
necessary tools for production planning and measuring tasks.
244
Session 24: Overview of modelling and simulation
Process Simulation
A manufacturing process is defined as the use of one or more physical
mechanisms to transform the shape of a material's shape and/or form and/or
properties. Newly emerging composite manufacturing processes, where there
exist only limited industrial experience, demonstrate a definite need for
process simulations to reduce the time and cost associated with the product
and process developments. The FEDES software (Finite Element Data
Exchange System) included case studies for simulation of manufacturing
process chains including aero-engine components. A simulation-based
approach for modelling and dimensioning process parameters in a process
chain as well as the corresponding technological interfaces are introduced.
Procedure models for an efficient and target figure dependent analysis
including identification, categorisation, prioritisation and interdependencies
of a big variety of process parameter constellations by means of the developed
simulation models are presented and methodology of sequentially simulating
each step in the manufacturing process of a sheet metal assembly is proposed.
245
Session 24: Overview of modelling and simulation
246
Session 24: Overview of modelling and simulation
247
Session 24: Overview of modelling and simulation
Augmented Reality
AR applications in manufacturing and design requires a high level of
accuracy in tracking and superimposition of augmented information. Very
accurate position and orientation tracking will be needed in operations such
as CNC simulation and robot path planning. Computer-vision-based tracking
will not be able to handle high frequency motion as well as rapid camera
movements. Hybrid systems using laser, RFID and other types of sensing
devices will be required. Another basic issue in AR is the placing of virtual
objects with the correct pose in an augmented space. This is also referred to
as Registration. As different tracking methodologies possess their own
inherent deficiencies and error sources, it is necessary to study the best
tracking method for a particular application which could be subject to poor
lighting condition, moving objects, etc. AR displays require an extremely low
latency to maintain the virtual objects in a stable position. An important
source of alignment errors come from the difference in time between the
moment an observer moves and the time the corresponding image is
displayed. This time difference is called the end-to-end latency, which is
important as head rotations can be very fast and this would cause significant
changes to the scene being observed. Further research should focus on the
setup of an AR environment which consists of four essential elements: target
places, AR content, tracking module and display system.
248
Session 24: Overview of modelling and simulation
Digital Mock Up
According to the reviewed literature, DMU scope has to be extended to the
services function. Services engineers are also stakeholders of the product
development and should be able to exploit the DMU to design services.
Virtual Reality
Moreover, VR tools should be integrated not only in the central planning
phases, but in every phase of the factory planning process. VR should not
only be used for visualisation means, but also for collaborative and
communicative means. VR is now used in many industrial applications and
cuts costs during the implementation of a PLM. The main challenges are a
result of the following drawbacks. Implementation of a CAE simulation is a
time-consuming process and VR systems used in industry focus on one or a
few particular steps of a development cycle (e.g. design review), and may be
used in the framework of the corresponding product development project
review. There is no VR tool in the current state of the art which enables us to
deal globally with the different steps of the PLM and the corresponding
projects reviews.
Lifecycle Assessment
A few challenges concerning LCA that should be highlighted are LCA
modularisation and standardisation of environmental profiles for machine
tools. Also, “hidden flows’’ modelling should be addressed, and data
accuracy should be ameliorated. Last but not least, value stream mapping is
of high importance.
249
Session 24: Overview of modelling and simulation
Ergonomics Simulation
Many advances have been made during the last decades, and the amount of
possible applications is growing in the field of ergonomics. Yet much
research has still to be conducted for many open issues. Systems’ complexity
and number of features are only increasing and ways of effectively
implementing them should be explored. The interaction between models is
required, as well, for an integrated approach of common daily design
problems which is directly related to an integration of models into an
encompassing DHM. Moreover, techniques for measuring human quantities,
which has not become easier despite the evolution of the technical means,
should be evolved. Another issue is the harmonisation of the data
representation in different disciplines. Without such agreement it will remain
extremely difficult to develop integrated models.
Knowledge Management
Agent-oriented approaches to knowledge management and collaborative
systems need further development. Methodologies are needed that support the
250
Session 24: Overview of modelling and simulation
Process Simulation
The planning, the data transfer and the optimisation of manufacturing process
chains must be integrated into a common model. Moreover, the macro-scale
manufacturing process chains are optimised with simulation tools using
numerical techniques such as the FEM while the micro-scale manufacturing
process chains are mainly optimised by experimental approaches. This shows
that the macro-scale manufacturing process chains are more mature than the
micro-scale manufacturing process chains in terms of modelling and
simulation which indicates that modelling and simulation of micro-scale
manufacturing process chains is still a challenge. Also, the macro-scale
manufacturing processes chains are not fully understood and there are still
challenges for improving the manufacturing process chains related to
different industries and development of new manufacturing process chains
for new emerging applications.
251
Session 24: Overview of modelling and simulation
252
Session 24: Overview of modelling and simulation
General Challenges
Apart from the gaps for each technological method / tool, general future
challenges and trends are discussed in the following section.
Firstly, developers of simulation tools are gradually introducing cloud-based
technologies in order to facilitate the mobility of the applications and the
interoperability between different partners. Currently, only few commercial
tools have integrated this function. Moreover, the even more complex
processes and products demand high performance simulations which require
powerful and expensive CPUs. In addition, efforts are being made towards
the creation of application that run in multiple and mobile devices. The
extended use of open and cloud-based tools can address these problems and
result in high performance computing at a minimum cost.
Nowadays, simulation software tools usually offer only dedicated application
object libraries for developing fast and efficient models of common scenarios
and they can be characterised as limited concerning the broad field of
manufacturing. Another issue is that while there is a great variety of functions
and resources, the vast majority of tools are focused only to a small
percentage of them. There is also a lack of proper data exchange among
different domains and few or no common standards or integrated frameworks,
which cause difficulties in the interoperability and collaboration between
systems and partners. The use of incremental model building, on the one hand
allows in-process debugging and on the other hand increases the complexity
of the model. All the issues could be address with the development and
utilisation of multi-disciplinary and multi-domain integrated simulation tools.
As far as the lifecycle simulation is concerned, the poverty of adequate
modelling tools should be noted. Only few applications take into serious
consideration product life-cycle costs and environmental issues. In addition,
tools usually aim at the re-manufacturing of specific product types and they
are still insufficient for de-manufacturing of products. So, the researchers
should focus on the development of tools for the field of lifecycle
management.
Currently, object-oriented, hierarchical model of plants, encompassing
business, logistic and production processes exist but the direct integration of
modelling tools with CAD, DBMS (ORACLE, SQL Server, Access, etc.),
direct spreadsheet link in/out, XML save format, HTML reports is still
limited. As a result, simulation tools that will assure the multi-level
integration among them should be developed.
Gradually, enterprises are starting to adopt the concept and the models of the
virtual factory. But, still the technologies related to virtual factory and
especially these concerning data acquisition, control and monitoring are still
in their infancy, expensive, complicated and hard to apply. So, the research
253
Session 24: Overview of modelling and simulation
254
Session 25: Building mathematical model of a plant
Session 25
Building mathematical model of a plant
Content
Introduction ............................................................................................. 256
25.1 Types of Production Systems ...................................................... 256
25.1.1 Serial Production lines .......................................................... 256
25.1.2 Assembly systems ................................................................ 259
25.2 Structural Modeling ..................................................................... 260
255
Session 25: Building mathematical model of a plant
Introduction
The producing units may be either individual machines or work cells, carrying
out machining, washing, heat treatment, and other operations. If assembly
operations are performed, the parts to be attached to the one being processed
are viewed as produced by another production system and, therefore, the line
is still serial (rather than an assembly system { to be considered in Subsection
25.1.2). The producing units may also be departments or shops of a
manufacturing plant. For instance, they may represent the body shop, paint
shop, and the general assembly of an automotive assembly plant. Finally, the
producing units may even be complete plants, representing various tiers of a
supply chain. However, since the emphasis of this book is on parts °ow rather
256
Session 25: Building mathematical model of a plant
In some cases, parts within a serial line are transported on carriers, some-
times referred to as pallets, skids, etc. Such lines are called closed with respect
to carriers (see Figure 25.3). Here, raw materials must be placed on a carrier,
and the finished parts must be removed from the carrier, returning the latter
to the empty carrier buffer. Thus, the performance of such lines may be
impeded, in comparison to the corresponding open lines, since the first
machine may be starved for carriers and the last machine may be blocked by
the empty carrier buffer. Too many carriers lead to frequent blockages of the
last machine; too few carriers lead to frequent starvations of the first machine.
Thus, an additional problem for closed lines is selecting a \just right" number
of carriers.
Along with producing units, serial lines may include inspection operations
intended to identify and remove defective parts produced in the system. Such
a line is shown in Figure 25.4 where the shaded circles are the machines,
which may produce defective parts, and the black circles are the inspection
machines; the arrows under the inspection machines indicate scrap removal.
257
Session 25: Building mathematical model of a plant
258
Session 25: Building mathematical model of a plant
259
Session 25: Building mathematical model of a plant
It is quite seldom that production systems on the factory °oor have exactly the
same structure as one of those shown in Figures 25.1 - 25.9. For instance, a
serial line may have multiple machines in some operations, as shown in
Figures 25.10 and 25.11. The situation in Figure 25.10 typically happens
because no machines of the desired capacity are available for some
technological operations. Figure 25.11 exemplifies the situations where a
machine performs several synchronous dependent operations in the sense that
all operations are down if at least one of them is down. In all these cases, the
production systems must be reduced to one of the standard types discussed
above (see Figure 325.12) in order to carry out their analysis and design using
the tools described in this book. We refer to this process as structural
modeling.
Figure 0.12 Structural model of serial production lines of Figures 25.10 and 25.11
260
Session 25: Building mathematical model of a plant
Figure 0.14 Structural model of the automotive ignition module assembly system of Figure 25.13
261
Session 25: Building mathematical model of a plant
The situation with the system of Figure 25.15 is more complex. Here, 13
injection molding machines produce seven different part types necessary for
the assembly. Which part is produced by a specific injection molding machine
depends on scheduling. A physical model of this system is shown in Figure
25.16. To simplify it, we note that from the point of view of the in-process
bufiers, it is not important which particular machine is producing a specific
part type at each time moment. What is important is the rate of parts °ow into
each buffer. Therefore, it is possible to substitute the 13 real machines by 7
virtual machines (see Figure 25.17), each producing a specific part type. Also,
the additional processing operations can be aggregated into one assembly
machine. If it is possible to calculate the parameters of the virtual machines,
based on the parameters of the real machines and scheduling procedures
(which, in fact, can be done with a certain level of fidelity), then the
production system of Figure 25.16 is reduced to a standard assembly system,
shown in Figure 25.17.
262