Documente Academic
Documente Profesional
Documente Cultură
Tutorial
Introduction
Industrial communications refers to the
wide range of hardware and software products and protocols used to communicate
between standard computer platforms
(PC, Macintosh, or workstation) and
devices used in industrial automation
applications. This tutorial describes the
fundamentals of serial interfaces and the
simpler software protocols commonly
used with industrial devices. There are
communications many protocols that
require sophisticated hardware and software
to ensure robust, reliable, and sometimes
real-time operation. These industrial
networks are sometimes generically referred
to as fieldbus. This tutorial will introduce
you to some of the many industrial networking protocols in use and
under development.
Serial Interface
Standards
Many devices used in industrial applications use EIA standards RS-232, RS-422,
or RS-485 to connect to computers and
to one another. (In this tutorial, we use the
term RS-xxx to refer generically to RS-232,
RS-422, and RS-485). A common misconception about these specifications is that
they define specific software protocols.
The ANSI/EIA RS-xxx standard specifies
only the electrical characteristics not the
RS-232
Unbalanced
1
1
15.2 (50)
20 kb/s
RS-422
Differential
1
10
1.2 (4000)
10 Mb/s
RS-485
Differential
32
32
1.2 (4000)
10 Mb/s
Tem
pe
RS-485
device
ratu
re
Flo
w
Con
trol
Pan
el
Pre
ssur
eA
larm
Con
ditio
ns
RS-485
ST
OP
"#0110.000\r"
Carriage return to end message
Analog output value in mA or %
Hex address of device
Character signifying beginning of message
Figure 1. An example of a command string sent to a 6B analog output module.
Manufacturer
Daniels, Applied Automation, ABB
Multilin, Power Measurements, Bitronics,
Sprecher+Schuh
Foxboro, Honeywell, Rosemount,
Westinghouse, Fisher&Porter, Fisher Controls
Rosemount HTG, Gauging Systems, Enraf,
Sarasota, Saab, Varec, Endress+Hauser
Keystone Controls, Limitorque, Pakscan
Eurotherm, Micon, Toshiba
OMNI, Daniels, MicroMotion, Eliot
GE, Square-D, TI, Siemens, Westinghouse,
Modicon
Arcom, Automation Electronics, Westronics,
(almost every RTU manufactured)
Allen-Bradley, Telemechanique/Square-D,
Siemens, Toshiba, Magnetek, Saftronics
Tutorial
Tutorial
Sensorbus
CAN
Seriplex
ASI
LONWorks
Devicebus
CAN
DeviceNet
Profibus DP
LONWorks
FIPIO
SDS
Interbus-S
Primary applications
Typical control system
Data size
Microprocessor-based
Embedded intelligence
Diagnostics
Response time
Distance
Example device
Fieldbus
IEC/SP50
Fieldbus Foundation
Profibus PA
LONWorks
WorldFIP
Sensorbus
Discrete, machine
PLC
Less than 1 byte
No
No
No
5 ms or less
Short
Discrete proximity
sensor
Devicebus
Discrete, machine
PLC
Up to 32 bytes
Yes
Varies
Simple
5 ms or less
Short
Photoelectric sensor
with diagnostics
Fieldbus
Process
DCS
Up to 1000 bytes
Yes
Yes
Sophisticated
100 ms
Long
Smart valve with PID
capability and
advanced diagnostics
FOUNDATION Fieldbus
FOUNDATION Fieldbus is a very sophisticated industrial network specifically targeted at the need for robust, distributed
control in process control environments.
The fieldbus specifications were developed
by the Fieldbus Foundation, a group
representing over 80% of the worlds
suppliers of industrial automation systems,
devices, and services. FOUNDATION Fieldbus
is based upon existing standards and other
proven technologies, including work from
the ISA (International Society for Measurement and Control), IEC (International
Electrotechnical Committee), Profibus
(Process Fieldbus, a German national
standard), FIP (Factory Instrumentation
Protocol, a French national standard), and
HART (Highway Addressable Remote
Transducer, a widely-used process
instrumentation protocol).
The FOUNDATION Fieldbus communication protocols are based on the OSI (Open
Systems Interconnect) seven layer communi-
User Application
User Application
Fieldbus Message
Specification
Fieldbus Access
Sublayer
Application Layer
Presentation Layer
Session Layer
Transport Layer
Network Layer
Physical Layer
Physical Layer
Communication
Stack
Physical Layer
Figure 3 The Fieldbus model compared to the OSI 7-layer communications model.
Note that OSI does not define a user application.
Tutorial
As mentioned previously, industrial network protocols are much more sophisticated than the simple command sets
commonly used with typical serial
instruments. Dedicated hardware and
software drivers are required to provide
robust connections between computer
platforms and each of these networks.
Options for using these networks today
include DDE servers and DLL function
libraries for the Windows environment.
Though it is not clear that any one network will satisfy all industrial networking
requirements, these buses will bring more
standardized interconnection between
computers and the devices used
in industrial automation applications.
Fieldbus Model
OSI Model
Symbol
AI
AO
B
CS
DI
DO
ML
PD
PID
RA
Tutorial
AI
PID
AO
Figure 4 A Basic Control Loop Using AI, PID, and AO Function Blocks.
Controller Area
Network (CAN)
The Controller Area Network is a serial
bus growing in popularity as a devicelevel network. CAN was developed by
Bosch to address the needs of in-vehicle
automotive communications. Automobiles
have a variety of control devices in them,
for such functions as engine timing,
carburetor throttle control, and antilock
brake systems. With increasing demands
placed upon these systems for safety,
performance, and customer needs, CAN
was developed to provide a digital serial
bus system to connect controllers. CAN
has been standardized internationally
(ISO DIS 11898 and ISO DIS 11519-2)
and is already available in a number of
silicon implementations. The CAN
protocol meets real-time requirements
encountered in many automotive applications. The network protocol can detect
and correct transmission errors caused
by electromagnetic interference. Also,
the network itself is relatively easy to
configure and offers the ability to
perform centralized diagnostics.
Comparison of automotive and industrial network requirements show that a
number of characteristics of CAN also
make it suitable for industrial applica-
Application Layer
Logical Link Control (LLC)
Data Link
(Layer 2)
Medica Access Control (MAC)
CAN Protocol
Specification
Physical
(Layer 1)
Media
(Layer 0)
Transmission Media
Figure 5 CAN defines parts of the Physical and Data Link Layers of the OSI 7 layer com model .
4. Access to the CAN network is performed using a method called nondestructive bitwise arbitration. In this system,
when a CAN node wants to send a frame,
it waits for the bus to become idle, then
starts its frame with an arbitration identifier
(ID). Because of the underlying physical
layer, a dominant bit (0) always overrides
any recessive bit (1). As a node is writing
its bits to the bus, it also reads the bus to
determine if the bit on the bus is different
than the bit written by the node. If the
bits are different, the node stops its write
because some other node has higher
priority to the bus. Thus, the arbitration ID determines the priority of
messages on the bus, with lower
IDs having higher priority.
The industrial protocols built upon
CAN add further specifications in such
areas as wiring types, connectors, diagnostics indicators, configuration switches,
and hot-swapping capability. Of great
importance with such networks is the
definition of objects for organizing data
within devices as well as for defining
classes of devices, such as switches,
motor starters, and I/O systems. These
higher-level software definitions add
the ease of use and standardization to
Tutorial
Te
mp
era
tur
Flo
w
Co
ntr
ol Pa
ne
Pres
sure
Ala
rm
Co
nd
itio
ns
ST
OP
Controller
I/O
Proprietary digital
or custom interfaces
PLC
4-20 mA
plus digital or
proprietary digital
Tutorial
4-20 mA
Analyzer
Traditional
analog and discrete
instruments
Hybrid instruments or
intelligent instruments with
custom interfaces
Hybrid
instruments
Figure 6a. Todays control systems use a combination of point-to-point analog connections and hybrid or proprietary digital communications networks.
Te
mp
era
tur
Flo
w
Co
ntr
ol Pa
ne
Pre
ssu
re
Ala
rm
Co
nd
itio
ns
ST
OP
Controller
I/O
PLC
Device or
sensorbus
Analyzer
Figure 6b. Using industrial device networks, system architecture is simplified because devices share common protocols.