02 Profibus Hart Fundamentals
02 Profibus Hart Fundamentals
TABLE OF CONTENTS
Chapter 2 - 1
T316-02 Fundamentals - DRAFT.doc
2.1.1 Objectives
On completion of this chapter you will be able to:
• Identify the use of the different standards
• Explain the FDT/DTM principles
• Recognize the main parts of the PROFIBUS protocol
2.1.2 Legend
<> Indicates a key name.
| Indicates when you go from one menu to a sub-menu.
Bold Indicates a menu name or an option in a menu, or file structures
“ “ Indicates dialog box buttons, tabs, instructions etc.
Chapter 2 - 2
System 800xA training
2.2 Introduction
Fieldbus systems are used as a means of communications for serial data exchange
between decentralized devices on the field level and the Control System on the process
supervision level.
All relevant signals such as input and output data, parameters, diagnostic information,
configuration settings and – for a wide range of applications (PA/H1) – the power
required for operation can be carried over two wires.
If a PA/H1 field device has high-power requirements, then this device can be powered
externally (e.g. Advanced Optima 2000 Gas Analyzer).
The existing benefits in installation costs, engineering and commissioning are now
supplemented by those related to Asset Optimization. Digital communication enables
real time access and transfer of field resident information, previously unavailable to the
Control System.
Advanced procedures for preventive maintenance are now possible and fieldbus is
open for future new requirements.
Chapter 2 - 3
T316-02 Fundamentals - DRAFT.doc
2.2.2.1 PROFIBUS
PROFIBUS has evolved from the high-speed busses required between PLC and I/O
racks (PROFIBUS FMS and DP). This has resulted in a large well-developed range of
DP devices. Support for process automation was completed with the extension of DP
to intelligent field devices via the PROFIBUS PA protocol.
PROFIBUS PA can supply power over the bus for devices such as transmitters and
positioners which can be extended into Ex-(hazardous) areas (EEx i). PA segments are
connected to the DP-Line via segment coupler or Linking Devices. PA devices are
available for almost every measurement requisition.
Chapter 2 - 4
System 800xA training
Chapter 2 - 5
T316-02 Fundamentals - DRAFT.doc
IEC
IEC 61
61 131
131
TCP/IP
MMS
MMS
Chapter 2 - 6
System 800xA training
The PROFIBUS family is composed of three types of protocol, each of which is used
for different tasks. Of course, devices with all three protocols can communicate with
each other in a complex system by means of a PROFIBUS network: applications in
manufacturing, process and building automation. For this standard
• PROFIBUS FMS (Fieldbus Message Specification)
• PROFIBUS DP (Decentralized Periphery)
• PROFIBUS PA (extension for Process Automation)
Only two protocol types, DP and PA are important for process automation.
Chapter 2 - 7
T316-02 Fundamentals - DRAFT.doc
PROFIBUS DP
PROFIBUS DP (RS 485) is responsible for communication between the Controller
level of a process automation system (PLC) and the decentralized periphery in the
field, also intrinsic safety (RS485-IS) via DP-Ex barriers into hazardous area. One
feature of PROFIBUS DP is its high speed of transmission upon to 12 Mbit/s.
PROFIBUS PA
This PROFIBUS variant was developed for the process industry. Communication and
power supply to transmitter and positioners are handled direct via one 2-line cable and
correspond to IEC Standard 61158-2 (named also as MBP, MBP-LP). Intrinsic safety
(EEx i) (MBP-IS) installations in Zone 1 / Div.1 are possible.
Chapter 2 - 8
System 800xA training
Profibus
Devices
FMS DP PA
User-
Layer
DP-Extensions (DP/V1)
USIF
DDLM DP-Basic functions
Application-
Layer FMS, LLI 7
Layer-Level
not used 3-6
Data-Link-
Fieldbus Data Link (FDL) IEC Interface 2
Layer
Physical-
Layer RS 485 Fiber Optic IEC 1158-2 1
PROFIBUS DP and PROFIBUS PA use only the first two layers as well as the user
interface, which resides in layer 7 and where application functions that can be utilized
by the user are determined along with system and device behavior.
• Layer 1 the physical layer defines cables, connectors, voltage etc. being the
physical condition for safe data transmission.
• Layer 2 the data link layer defines the traffic rules for access to the medium, data
plausibility, data format and saving.
• Layers 3-6 are not used on PROFIBUS because there is no routing necessity etc.
• Layer 7 represents the user layer. Services and profiles are defined on this layer.
Direct access from the user interface (UI) to layer 2 is possible through the Direct Data
Link Mapper (DDLM).
Chapter 2 - 9
T316-02 Fundamentals - DRAFT.doc
DP V2
Deterministic Time Mode
Redundancy
Upload / Download
Clock Sinc and Time Stamp
Publisher / Subscriber
Isochronous Mode
Slave to Slave Communication
DP V1
Master/Salve Acyclic Data Exchange
Alarm Handling
EDD and FDT Integration
Fail Safe
Function Blocks IEC 61131-3
DP V0
Master/Salve Cyclic Data Exchange
GSD
Diagnostic
All functions and the PA profile are used both for PA and DP field devices. Both types
of devices can be operated with the aid of simple couplers on a bus system.
Chapter 2 - 10
System 800xA training
The dynamic process values of a "Analog Input" Function Block consisting of the
measured value (4 Byte) and the assigned status (1 Byte) are read or written
cyclically by a PLC and/or DCS.
The profile parameters of all blocks can only be read and / or written acyclically.
Chapter 2 - 11
T316-02 Fundamentals - DRAFT.doc
Function Block
Input channel, filter time constant, scaling of the process variables, scalability of output
variables, alarms (HI_HI, HI_, LO_, LO_LO, hysteresis), simulation,
An analog input or output signal consists of 4 bytes for the valueand1 byte for the
status, so one analog signal needs 5 bytes in the data unit of a cyclic telegram.
The analog value representation is a floating point value based on the data type
REAL(4 bytes for sign, mantissa and exponent).
A discrete input or output signal consists of 1 byte for the valueand1 byte for the status,
so one discrete signal needs 2 bytes in the data unit of a cyclic telegram.
Chapter 2 - 12
System 800xA training
It provides the physical limit, measurement range and measurement value of the
measurement converter, two upper and two lower threshold values as well as the
corresponding status messages and alarms.
These parameters and status messages can be similarly and effectively used with all
measurement transformers.
Chapter 2 - 13
T316-02 Fundamentals - DRAFT.doc
2.3.6.1 PROFIBUS DP
The transfer method of PROFIBUS DP is RS 485, which has been used successfully
for many years. This technology can always be used to advantage if high transfer rates
and a simple method of installation are required.
A twisted, shielded two-wire copper cable (Type A) is used as the transfer medium.
Depending on local conditions, the shield should be connected on one or both ends of
the cable segment to the potential equalization system.
The bus structure makes it possible to add devices step by step and also to extend or
limit the number of subscribers in operation on the system. You can select a transfer
rate between 9.6 kBits/s and 12 Mbits/s.
Chapter 2 - 14
System 800xA training
2.3.6.2 PROFIBUS PA
Profibus PA uses the Profibus DP-V1 protocol. Profibus PA is the profile for Process
Automation, typically with synchronous transmission at a defined rate of 31.25 Kbit/s
and Manchester coded.
In addition to the general requirements such as transfer security, range and transfer
rate, additional requirements must be fulfilled for two-line measurement transformers.
• Power and data transmission through a common cable
• Explosion protection (intrinsic safety) for the chemical and petro-chemical
industry
PROFIBUS PA lines are connected via Linking Devices (e.g. LD 800P from ABB) to
PROFIBUS-DP-segments. These linking devices adapt the RS-485-physic to the IEC-
61158-2-physic and provide the power supply for the PA slaves.
Manchester coded means, that a binary “0” (Low, False) is represented by an edge
change from “0” to “1” and a binary “1” (High, True) by a change from “1” to “0”.
(in opposite to RS 485 with the method NRZ).
These continuous edge changes enable the receiver to constant synchronization and
provide the intrinsic feed current (direct current average value) for the devices.
Chapter 2 - 15
T316-02 Fundamentals - DRAFT.doc
PROFIBUS PA
PROFIBUS PA uses a fixed, uniform transfer rate of 31.25 kBit/s. (IEC-61158-2). At
this rate, cable lengths per segment of up to:
• 1900 m are possible in non Ex(hazardous) areas
• 1000 m are possible in Ex(hazardous) areas
In practice these max. lengths are reduced considerably by the voltage drop on the line,
the limited feed current and the number of PA transmitters. By selecting a cable with a
larger diameter it will be compensated to a certain extent.
An additional restriction in Ex(hazardous) areas is the limited available supply current,
which is determined by the type of explosion protection selected.
Chapter 2 - 16
System 800xA training
Chapter 2 - 17
T316-02 Fundamentals - DRAFT.doc
If there are more than 32 subscribers (including the master), a bus repeater must
therefore be used to maintain the viability of the bus signal.
The number of cascaded repeaters depends on the vendors’ recommendation (up to 9)
The bus lines that are separated by bus repeaters are called segments. Each individual
segment must again be terminated on both sides by a resistor network.
PROFIBUS DP
For transmission rates ≤ 1.5 Mbit/s stub lines of max. 0.3 m are possible (but not
recommendable), above 1.5 M Bit/s, stub lines not allowed.
In this case the incoming and outgoing cable must be switched through in the
connector.
PROFIBUS PA
In contrast to the PROFIBUS DP, the physical features of the PROFIBUS PA bus also
allow network topologies with long stub lines, such as tree structures.
The tree structure is comparable with the traditional field installation technique.
Signals from the field devices are collected via stub lines in sub-distributors (Multi
Barriers) and are the connected to the main PA cable in parallel.
Chapter 2 - 18
System 800xA training
In real applications you will usually find about 40...60 slaves on one line.
2.3.7.2 Termination
To avoid reflections, the line structure must be terminated by a bus termination resistor
network at either end.
PROFIBUS DP
This network must be provided with a ground-free voltage of 5 volts. Often the
required bus termination is already integrated into the device so that it can be inserted
into the circuit easily if the device is located at the beginning or end of the line
structure. According to the rules of certification, a DP device must be able to provide
this voltage at a minimum of 5 V.
Chapter 2 - 19
T316-02 Fundamentals - DRAFT.doc
Subscribers should preferably be connected to the bus via 9- pin D-sub connectors.
PROFIBUS PA
A passive line terminator (RC) must be provided at both ends of the main PA cable
for all topologies.
Chapter 2 - 20
System 800xA training
Token Passing
Master-Slave
PROFIBUS-DP
input data
output data
DP V0
DP V1
The master supervises the response time and also the slave, who has to react, if master
request fails. There is cyclic communication ( PROFIBUS-DP V0) and acyclic
communication (PROFIBUS-DP V1).
The use of cyclic communication is to write and read the output and the input data of
a field device (slave). The slave gets the output data from the master with the request
telegram and sends the input data to the master with the response telegram.
To read or write some parameters from or to a slave it is not necessary to use the cyclic
data transfer. The acyclic traffic uses specific SAP’s (Service Access Points), a data
channel which is only open for a short time. The acyclic data transfer is superposed on
the cyclic data transfer.
Chapter 2 - 21
T316-02 Fundamentals - DRAFT.doc
The main task of a PROFIBUS-System is to update the slave data with the data in the
masters process image cyclically.
Every telegram is recognized by each subscriber, checked and if the address matches, it
will be accepted from the addressed device.
The class 1 master supervises the data exchange with his slaves. Every slave is
retriggering with each received valid telegram based on the monitoring time of its
watchdog.
Chapter 2 - 22
System 800xA training
This is initialized by the master and supported from the state machine in the slave
interface module (within PROFIBUS DP a slave interface module -SIM- denominates
a bus connector and a complete PROFIBUS stack).
In minimum, the parameter telegram contains PNO defined information as e.g.
identification number, sync and freeze, watchdog time, supported transfer rates, master
address and so on. Additional user specific parameters are possible.
The configuration telegram defines the number of input and output bytes. The master
informs the slave, how many I/O bytes have to be exchanged in every transfer cycle.
Chapter 2 - 23
T316-02 Fundamentals - DRAFT.doc
H
Highway
ighway
A
Addressable
ddressable
R
Remote
emote
Primary T
Transducer
ransducer
Master
Master
Master
Secondary
Master
4-20mA Slave
Slave
Value
Value ++ Communication
Communication
The 4-20 mA analog signal is not affected by the HART signal and can be used for
process control in the normal way. The HART communication digital signal gives
access to secondary variables and other data that can be used for operations,
commissioning, maintenance, and diagnostic purposes.
Master-Slave Communication
Two masters can be connected to each HART loop.
Generally the primary master is a distributed control system (DCS), a programmable
logic controller (PLC), or a personal computer (PC). The secondary master can be a
handheld terminal or another PC.
Slave devices include transmitters, actuators, and controllers that respond to commands
from the primary or secondary master.
Chapter 2 - 24
System 800xA training
Point-to-Point Mode
In point-to-point mode, the traditional 4-20 mA signal is used to communicate one
process variable, while additional process variables, configuration parameters, and
other device data are transferred digitally using the HART protocol.
Multi-Drop-Mode
The multidrop mode of operation requires only a single pair of wires and, if applicable,
safety barriers and an auxiliary power supply for up to 15 field devices.
All process values are transmitted digitally.
In multidrop mode, all field device polling addresses are >0, and the current through
each device is fixed to a minimum value (typically 4 mA).
Chapter 2 - 25
T316-02 Fundamentals - DRAFT.doc
TCP/IP
CEX-Bus ModuleBus
PROFIBUS DP
HART Com.0
Manufacturer ID
Device Type Code
Device Unique ID
Chapter 2 - 26
System 800xA training
2.5.1 Principle
Similar to the driver software for a printer, a DTM (Device Type Manager) belongs to
a field device. The DTM corresponds to the FDT interface, uses for example the
ActiveX or COM/DCOM technology that has been introduced by Microsoft and is
totally multimedia capable.
The goal is not a new device description language, but rather a device-independent interface.
This allows for the integration of a device-specific software component (DTM) into each
engineering tool.
Chapter 2 - 27
T316-02 Fundamentals - DRAFT.doc
The DTM includes the complete configuration software for the cyclic and acyclic
operation and thus replace for PROFIBUS the GSD file and for HART the DDs.
Thus same DTM can be used in standalone tools like SMART Vision or in the
PLC/DCS system.
It is only necessary to learn to use the device with DTM once, because it is 100 %
identical in every engineering environment.
This helps to reduce costs in administering and handling devices, tasks that often
significantly exceed the investment costs for the devices themselves.
Chapter 2 - 28
System 800xA training
FDT is delivered with the software of the frame application like System 800xA:
• is an open, vendor independent interface for control systems
• enables advanced diagnosis functionality
• provides user friendly graphical user interface
DTM Applications
Diagnosis Persistent
Parameters Client Storage
Project
Applications Data
CallBack
Storage
DTM
Communication
Communication
Communication
Field Devices
Chapter 2 - 29
T316-02 Fundamentals - DRAFT.doc
To
Tothe
thenetwork
network
Sys
Sys DP
DP HART-
HART-Frame
Frame DP
DP Sys
Sys
DCS
DCSCommunication
Communication
Component
Component
DP
DP HART-
HART-Frame
Frame DP
DP
Remote
RemoteI/O
I/OCommunication
Communication
Component
Component
HART-
HART-Frame
Frame
HART
HARTDTM
DTM
Remote I/O
Remote I/O
Profibus-HART
Profibus-HART
Gateway
Gateway
HART
Chapter 2 - 30
System 800xA training
Device Identification
- Instrument Tag and descriptor manufacturer
- Device type and revision
- Final assembly number
- Sensor serial number
- Calibration Information
Data
- Range Units
- Upper and lower range values
- Upper and lower sensor limits
- Sensor min span
- Damping
- Message
Communication Signals
- Traditional analog 4-20mA
- Digital FSK, based on the BELL 202 telephone communication standard
- Logical “0” frequency 2,200Hz
- Logical “1” frequency 1,200Hz
Chapter 2 - 31
T316-02 Fundamentals - DRAFT.doc
Data Integrity
- Two dimension error checking
- Status information in every reply message
Command Structure
- Universal, common in all devices
- Common practice, Optional, used by many devices
- Device Specific, for unique product features
Communication Masters
- Two Communication Masters
Variables
- Up to 256 variables per device
- EEE 754 floating point (32 bits) with engineering units
Wiring Topologies
- Point-to-Point, simultaneous analog and digital
- Point-to-Point, digital only
- Multidrop network, digital only (up to 15 devices per line)
Cable lengths
- Max. twisted pair length, 3000 m
- Max. multiple twisted pair, 1500 m
- Cable length depends on the characteristics of individual products/cable
Intrinsically Safe
- With appropriate barrier/isolator
Chapter 2 - 32
System 800xA training
with GUI
Applications
peer-to-peer
w/o GUI Communication
Instance device
Information
Instance Information
- is needed to introduce device features to the “Frame Application”
- is necessary for accessing device data within the automation functions
- allows displaying device information in “Frame Applications” without starting a
DTM’s GUI.
Chapter 2 - 33
T316-02 Fundamentals - DRAFT.doc
Public Parameters
- units
- ranges
Diagnosis Data
- status information for a device or single channels
- mapping between error codes and textual information
Alarm/Events
- alarm types
- alarm limits
Communication
- Logical peer to peer communication link to the device
- Asynchronous method calls for communication; use of call-back mechanisms
- Communication oriented to device channels
- Several gateways for different protocols
- Channels may have their own GUI to configure the gateway
- Protocol-specific information interchange via protocol-specific XML documents
XML
- EXtended Mark-up Language
- XML is a method for putting structured data in a text format
- Standardized by the World Wide Web Consortium (W3C)
- XML provides an extendable standard for data exchange
- XML is used for the data transfer only
- XML is not meant to describe a device model
- XML is meant to provide access to data that is stored in a proprietary format
- Fieldbus independent interfaces, but fieldbus specific tags
- XML is a format that makes it possible to connect DTMs with the rest of the world
Chapter 2 - 34
System 800xA training
2.1.1 Goals
Describe some principles of the Fieldbus communication using PROFIBUS/HART,
independent of the implementation with System 800xA.
2.1.2 Legend
<> Indicates a key name.
| Indicates when you go from one menu to a sub-menu.
Bold Indicates a menu name or an option in a menu, or file structures
“ “ Indicates dialog box buttons, tabs, instructions etc.
Exercise 2.1 - 1
T316-02 Exercise 2.1 - DRAFT.doc
) What does the abbreviation HART mean and how does it works?
…………………………………………………………………………………………
…………………………………………………………………………………………
…………………………………………………………………………………………
Exercise 2.1 - 2