DeltaV ModbusTCP AppNote
DeltaV ModbusTCP AppNote
HIMA H41q/H51q
↔
Emerson Process Management DeltaV
All technical statements and data in this manual have been worked out very carefully, and effective
checks and inspections have been applied. This manual may however contain flaws or typesetting
errors. Therefore HIMA does not offer any warranties nor assume legal responsibility nor any liability
for the possible consequences of any errors in this manual. HIMA would appreciate being informed on
possible errors.
1. Introduction ................................................................................................................................... 1
3. Summary...................................................................................................................................... 10
1. Introduction
There is an increasing need for fast and voluminous data transmission between HIMA Safety PESs
and different DCSs. Modbus TCP is a protocol which can fulfil this need. Modbus TCP communication
combines the proven reliability of the Modbus protocol with the flexibility and speed of Ethernet
networks. The well known Modbus Telegrams are coded into TCP packages and can than be
communicated via Ethernet. As transport layer standard off-the-shelf Ethernet equipment like twisted
pair network cables, switches and fiber optic converters can be used with communication speeds of up
to 1 GB/s. In contrast to standard Modbus RTU the Modbus TCP protocol is multi master capable,
meaning that several communication masters can access the same slaves for information.
The Modbus TCP communication protocol was made available to HIMA´s H41q/H51q and Emerson´s
DeltaV system through market introduction of new communication modules in 2005 and 2006
respectively. Modbus TCP support was added to H41q/H51q systems through introduction of the new
ethernet communication module F 8627X. A communication module from third-party supplier Mynah
named Virtual I/O Module (VIM) added Modbus TCP capability to DeltaV. The Mynah VIM achieves
this through simulating four DeltaV serial cards (eight serial cards for redundant layout) which are
virtually mapped to the last I/O slots (61-64 for non-redundant and 57-64 for redundant
communication) of the DeltaV systems eight possible I/O carriers. The way to configure the data
communication and the applicable communication limitations is therefore the same like with standard
DeltaV serial cards.
This Application Note should give an overview of the necessary configuration steps for establishing a
Modbus TCP communication between HIMA’s H41q/H51q safety PES and Emerson Process
Management’s DeltaV DCS.
As precondition for applying this Application Note general knowledge of the H41q/H51q PES and
DeltaV DCS as well as configuring with ELOP II and DeltaV Explorer and Control Studio is assumed
(see Recommended Literature [1], [2], [3], [4]).
1
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
2. Described Configuration
Figure 2.1: Network Overview for H41q/H51q ↔ DeltaV Modbus TCP Communication
Hardware: Software:
H41q/H51q PES ELOP II Engineering Software
F 8627X Ethernet communication module ELOP II license dongle
DeltaV MD Controller DeltaV Automation Software
DeltaV Professional Plus Workstation DeltaV System licenses
Ethernet Cat. 5 network cables DeltaV serial port licenses
Industrial Ethernet Switches
For detailed information about the explicitly tested hardware, software, firmware and Operating
Systems refer to the Communication Test Report (see [6]).
2
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
3
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
Boolean, Integer and Real variables can be declared as Export, Import or Import/Export beneath the
“BUSCOM” tab of the Variable Declaration dialog. If necessary you can also declare specific
addresses under which the data should be communicated. When not specified the variables
addresses are automatically assigned by ELOP II during compilation. As preparation for Modbus TCP
communication you should define fixed addresses to your communication variables to keep track of
your used communication address space.
4
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
Note 1:
Variables defined as Import/Export use separate addresses for reading and for
writing, according to Modbus conventions. Thus an Import/Export variable reserves
twice as much memory space as an equivalent Export or Import variable.
Import/Export addresses must be projected in both (read and write) memory areas.
Boolean variables can be made an event by checking the Event check box beneath the “Event
handling” tab. Like with BUSCOM variables you can also declare specific addresses under which the
event should be communicated.
Note 2:
If you define a spare range of communication addresses it is not necessary to
download the H41q/H51q when adding new communication variables or events
instead you can proceed with a reload of the PES. You can achieve this by inserting a
dummy communication variable or event some addresses ahead of the actually used
range.
Note 3:
If necessary due to mounting space restrictions the 2-wide DeltaV controller and VIM
carriers can be separated from the 8-wide DeltaV IO carriers by using extender sets
which separate the carriers by means of special signal cables and extender modules.
Two standard ethernet Layer 2 switches are used as network nodes for Modbus TCP communication
in the primary and secondary network. These switches are also certified for use with HIMA´s safe
communication via safeethernet to other H41q/H51q PES and they can also be used if additional
OPC DA or OPC A&E Servers need to be used.
Note 4:
The Mynah VIMs require the use of two switches as coupling devices for redundant
connections because the VIMs need a cross link cable between these switches
(marked in red in Figure 2.1) to carry out their redundancy replication. Also for a
redundant direct point-to-point connection (one DeltaV controller communicating to
one HIMA PES) crossed network cables cannot be used. Instead two switches and a
cross link cable between them are required.
5
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
1. Add a controller to which the VIM should be assigned using the context menu of I/O Net. Use the
same name like in DeltaV Explorer to simplify identification of corresponding structures.
2. Add a VIM below the newly created controller using the controller’s context menu.
3. Configure the VIM’s properties according to Figure 2.5 to be of type “I/O VIM – Modbus TCP”,
select redundancy if necessary. Enter the appropriate IP addresses and subnet masks.
4. Add a new Modbus device below the desired serial card. The device must be defined in VIMNet
Explorer and DeltaV Explorer whereas the communication data (datasets) are only defined in the
DeltaV Explorer.
5. Configure the device properties according to Figure 2.6 with Device Address and primary and
secondary IP address of the H41q/H51q. The used Port should be set to 502 and the Number of
Simultaneous Messages must be set to 1. For a simplex connection you need to set to “Simplex
Device” and use just one IP address. A redundant connection can be set to “Redundancy with
Switching IP” (which means the active VIM stays active when a connection failure to it’s active
slave occurs and it just uses the secondary IP address via the cross link cable) or to “Redundancy
with No Switching IP” (which in turn means the master also switches when a connection failure to
it’s active slave occurs; this is the normal behaviour of the DeltaV redundant serial card).
6
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
Note 5:
HIMA’s ethernet communication module F 8627X replies until firmware revision 4.14
with device address 255, regardless of its actual device address being set via DIP
switches to the CPU. The DeltaV Modbus master should therefore be configured for
this address because it would otherwise not accept protocols with this reply address.
6. Have a look at the area “Decommissioned VIMs” in VIMNet Explorer. You should be able to see
the appropriate number of decommissioned VIMs if your network is correctly connected to the
VIMs. Now you can commission the VIMs using the commission dialog via the configured VIM’s
context menus or via drag-and-drop of the decommissioned VIMs onto the configured VIM. Use
the identify function of the commissioning dialog to keep track of assigning the correct VIM for
primary and secondary module.
7. As a last step upload the configuration to the VIMs using the context menu and the “VIM
Configuration Upload” command. Be sure to save your VIMs configuration to be able to use the
VIMs diagnosis or to change the configuration starting from the saved point.
Note 6:
When you have problems finding the decommissioned VIMs disconnect them from
their power supply, the network and their carrier. Keep them disconnected for
approximately 30 seconds and then reinstall them (the same procedure like with not
unassigned DeltaV controllers).
For further troubleshooting information refer to [5].
7
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
The “Retry Count” is recommended to be set to 3 so that delays in request processing on the slave
side do not provoke communication disruptions. The “Message Timeout” could be set to slower values
like the used 2000 ms but should be set to times well above the PESs cycle time. The configuration of
the third tab “Communication” is not necessary for Modbus TCP communication as this tab applies
only to serial communication.
The data for serial communication in DeltaV is organized in so called Datasets. One Dataset can
contain up to 100 values (50 values for real data). One serial card port can handle up to 16 datasets in
up to 16 devices (meaning 16 devices with each one dataset up to one device with 16 datasets). Each
serial card offers two ports. One pair of VIMs supports in sum four redundant or eight simplex
simulated serial cards therefore amounting to 12,800 respectively 25,600 data values which could be
theoretically be imported to or exported out of DeltaV.
8
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
As an example the dataset configuration for output of real values is shown in Figure 2.8. Using the
output read back option on the general tab requires definition the corresponding variables in the
H41q/H51q PES as “Import/Export”. The dataset is assigned a dataset tag with which it can be
browsed out of the application logic of the DeltaV control modules.
The demonstration application on which this Application Note is based utilizes reading and writing
communication data as Boolean, unsigned integer and real values. The necessary settings for these
data types in the datasets are shown in
Special Data
Data Type DeltaV Data Type Device Data Type
Data 1 Data 2
Boolean Boolean with status 0 0 0
Unsigned Integer 16 bit uint w/Status 3 0 0
Real Floating point with status 3 1 2
Table 2.2: Dataset Configuration settings
Note 7:
There is an offset of one register address between H41q/H51q and DeltaV. The
register number in a reference path like “TCP_REAL_OUT01/R307” connects to the
register address 306 in H41q/H51q. However the “Data start address” on the PLC tab
of the dataset properties refers to the correct address (see Figure 2.8) but the first
created register within this dataset gets address 307.
This communication data can as well be referenced directly in analogue (AI) or discrete (DI) input
blocks.
Communication data also consumes I/O licenses in the DeltaV system. Therefore binary input and
output data should be bundled and unbundled to unsigned integer variables in DeltaV using “Binary
Fan In” and “Binary Fan Out” function blocks like shown in Figure 2.9.
9
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
These blocks can be imported as needed via the bulk import feature of DeltaV and than be copied
together in one control module for import and one control module for export of binary data.
Note 8:
When a Modbus TCP communication failure occurs the status of the simulated serial
cards in DeltaV Diagnosis change to “Bad” displayed with a yellow question mark.
After restoring communication it could be necessary to clear the fault using the “Clear
Saved Fault Information” option in the context menu of a simulated serial card in
DeltaV Diagnosis.
3. Summary
Modbus TCP communication between HIMA PES and the DeltaV DCS is an alternative to serial
Modbus RTU communication via RS-485 or Profibus DP communication. The advantages of the
described communication becomes effective for:
• Network layouts with several communication masters in one single network (due to multi
master capability)
• Network layouts with larger numbers of HIMA PES as communication slaves (due to the large
possible data volume of the VIMs)
• Larger data volumes to be transferred from one or several HIMA PES to a single DeltaV
controller (due to faster speed [2 – 3 times faster than Modbus RTU] and lower susceptibility
of communication cycle times to increasing data volumes)
• Network layouts where simplicity in connecting devices is preferred (due to the ability of
integrating all HIMA PES communication in one redundant ethernet)
For other applications where the above mentioned advantages do not apply Profibus DP (fast and
inexpensive but non-redundant and volume-limited) or Modbus RTU (inexpensive but slower and more
volume-limited) are still viable alternatives.
10
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
4. Recommended Literature
[1] HIMA Programmable Systems
“The H41q and H51q System Families, Catalogue”
HIMA GmbH + Co. KG Bruehl, Germany, 2007
11
Modbus TCP Communication HIMA H41q/H51q ↔ Emerson DeltaV
1.00 Initial Release with redundant Modbus TCP connection between HIMA 2007-02-13
F 8627X (SW: V4.14) and Mynah VIM (SW: V3.6.3).
12
HIMA
... The safe decision