0% found this document useful (0 votes)
28 views42 pages

Modbus Plus Fieldbus Appendix

The document is an appendix for the Anybus-S Modbus Plus, detailing its features, installation, and operation. It includes a comprehensive table of contents covering topics such as fieldbus introduction, module overview, and specific functions. HMS Industrial Networks AB reserves the right to modify the product information and disclaims responsibility for any errors in the document.

Uploaded by

Jaydeep Gurav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views42 pages

Modbus Plus Fieldbus Appendix

The document is an appendix for the Anybus-S Modbus Plus, detailing its features, installation, and operation. It includes a comprehensive table of contents covering topics such as fieldbus introduction, module overview, and specific functions. HMS Industrial Networks AB reserves the right to modify the product information and disclaims responsibility for any errors in the document.

Uploaded by

Jaydeep Gurav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 42

FIELDBUS APPENDIX

ANYBUS-S MODBUS PLUS


DOC. NO ABS-MBP-1.30

HMS INDUSTRIAL NETWORKS AB PHONE: +46 35 17 29 00


PIELEFELTSGATAN 93 - 95 FAX: +46 35 17 29 09
S - 302 50 HALMSTAD e-mail: [email protected]
SWEDEN web: www.hms-networks.com
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

Revision notes

Index Date Chapter Author Revision Notes


1 2001-08-01 All Edk 1.30 Transferred to Framemaker format

Preface
The data and illustrations found in this manual are not binding. We reserve the right to modify our products in line
with our policy of continuous product development. The information in this manual is subject to change without
notice and should not be considered as a commitment by HMS Industrial Networks AB.

HMS Industrial Networks AB assumes no responsibility for any errors that may appear in this document.

The product and technology described in this document is patented or patent pending in the following countries:
USA, Canada, Japan, Belgium, Denmark, Finland, France, Greece, Ireland, Italy, Luxemburg, Monaco, Netherlands,
Portugal, Switzerland, Lichtenstein, Spain, United Kingdom, Sweden, Germany, Austria and others.

ANYBUS is a registered trademark of HMS Industrial Networks AB.


All other trademarks are the property of their respective holders.

HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

Table of contents
1 Fieldbus Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Introduction to Modbus Plus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Technical Features for Modbus Plus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Related documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Module Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Mechanical Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Protocol & Supported Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Physical Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.4 Fieldbus data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.4.1 Global data and Point-to-point commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.5 Data Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.6 Application Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.7 Dual-Port RAM Memory - DPRAM (Alternative 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.8 Asynchronous serial interface (Alternative 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Installation & Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Fieldbus Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 D-SUB connector and Screw terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.3 10 pole 2mm connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.4 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4.1 Node ID (Address) S1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4.2 Source ID (Address) S2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.5 Indications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Functions & Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1 DPRAM Structure of the Modbus Plus Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1.1 IN/OUT Data Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1.2 Mailbox Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.1.3 Fieldbus Specific Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.1.4 Control Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2.1 Initialization Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.3 Data Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 Protocol Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.1 Global Data Base transaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.2 Point-to-point data Modbus commands supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.5 Data map from the Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.5.1 Data to network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.5.2 Data from network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.6 Point-to-point exception handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.7 Routing Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.8 Modbus Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.8.1 Read Holding Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.8.2 Preset Multiple Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.8.3 Preset Single Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5 Fieldbus Specific Mailbox Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1 Fieldbus Specific Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.2 Alter GDB Source ( SET_GDB_SOURCE ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.2.1 Alter Node Address ( SET_NODE_ADDRESS ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2.2 Get Network Statistics ( GET_NETWORK_STATISTICS ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

HMS INDUSTRIAL NETWORKS AB 1


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

5.2.3 Clear Communications Counter ( CLEAR_COMM_COUNTERS ) . . . . . . . . . . . . . . . . . . . . . . . . 25


6 Electrical specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
7 Module mechanics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
7.1 Mechanical drawings in this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
8 List of tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
9 List of figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

2 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

1 Fieldbus Introduction
The Modbus Plus is a local area network system designed for industrial control and monitoring applications, devel-
oped by Modicon, Inc. HMS is a member of the ModConnect program for developing Modbus Plus devices.
Technical questions regarding the fieldbus should be addressed to Modicon Inc. at www.modicon.com .
The network enables programmable controllers, host computers and other devices to communicate throughout plants
and substations. Modbus Plus is normally used in industrial automation, to transfer fast data for motor controllers,
MMI, I/O units and other industrial equipment.
The AnyBus-S Modbus Plus module communicates according to the Modbus Plus Protocol. This means that it can
communicate with all Modbus Plus nodes that comply with this protocol, but it does not necessarily mean that all ser-
vices available in the Modbus Plus protocol is supported.

1.1 Introduction to Modbus Plus


The media for the fieldbus is a shielded twisted pair cable. The data transfer rate is 1Million bit/s and a data through-
put of 20,000 16 bit word per second.

Figure 1: Modbus Plus network overview

HMS INDUSTRIAL NETWORKS AB 3


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

1.2 Technical Features for Modbus Plus

Application side Alternative 1 ANYBUS side

DPRAM
Address & Data bus
2KB Modbus Plus

Rx ANYBUS electronics
Alternative 2
Tx
RTS
SCI

Figure 2: Timing and throughput

Table 1: Summary technical features

Summary Technical Features Modbus Plus


• Transmission Techique: • Medium Access:
RS-485 twisted pair cable (1 pair + Shield) Token bus
Transmission rate 1 M bits/s • Two different data types:
• Bus length: Peer-to-peer communication between network
Bus up to 2000 m (with repeaters) device, Modbus commands.- Global Data
• Max. bus cable length: • Maximum number of I/O:
Max. length of network trunk: 500m 32 words / slave (in the same network).
• Max amount of nodes:
Nodes / Network: 32 (with repeaters 64
nodes).

Figure 3: Nodes on a Modbus Plus network

4 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

1.3 Related documents


Table 2: Documents related to this manual

Name Description Document number


AnyBus-S Parallel Design Guide Main documentation for the parallel interface ABS-DGP-1.13
version of the AnyBus-S modules

HMS INDUSTRIAL NETWORKS AB 5


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

2 Module Overview
This section provides an overview over the module and describes the technical features.

2.1 Mechanical Overview


The ANYBUS-S module for Modbus Plus is a host device. This host device can be read and written to from another
Modbus Plus host device or controller. The ANYBUS-S module for Modbus Plus will not initiate any Point-to point
communication to other nodes, it will only respond to incoming commands. It can all though broadcast global data to
all nodes on the network.
Via the Host connector, the ANYBUS-S is connected to the application; this gives the application an instant connec-
tion to the Modbus Plus network.

Watchdog LED

Modbus Plus D-sub female

Node ID S1

Source ID S2

Indication LED'S
Figure 4: AnyBus-S Modbus Plus Mechanical Overview

2.2 Protocol & Supported Functions


The AnyBus-S Modbus Plus is to be used in Modbus Plus networks, in application where there is a need for exchang-
ing large amounts of data and where the parallel application is to prefer.
The AnyBus-S Modbus Plus has two ways of exchanging data. One through fast cyclic I/O data called Global Data,
and one trough a somewhat slower Modbus protocol for point-to-point parameter data transfer.
The maximum Global Data is 32 16-bit words on the bus, and with ability to set an offset within the Source node glo-
bal Data. The point-to-point data transfer is handled by using one of the following Modbus functions Read holding
Registers, Preset Single Register and Preset multiple Registers all 40000 registers.

6 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

2.3 Physical Interface


• Transmission media: Modbus Plus one differential line and shield.
• Topology: Token Bus Structure, virtual token ring.
• Fieldbus connectors: 9 pin female Dsub, Phoenix Contact plug-able connector or 2mm connector.
• Cable: Shielded copper cable, One Twisted pair.
• Isolation: The bus signals are separated from the other electronics with a transformer according to Modbus
Plus interface description.
• ASIC's and circuits: Module is based on chip-set and software from Modicon Inc.

2.4 Fieldbus data


• Baudrate : 1MBit
• I/O data size: Maximum 32 words input and 32 words output.
• Modbus Plus Host Firmware Rev. 77.

2.4.1 Global data and Point-to-point commands


Towards the application the configuration of the in and out areas is performed in accordance with the AnyBus-S stan-
dard. If I/O data is used it will be first in the IN and OUT area.

• Max. Amount of Global data: 32 words.


• Max. Amount of Point-to-point data / message: 125 words (Read Holding Register).

2.5 Data Exchange


• Compatibility with existing ANYBUS® modules: Only compatible with other AnyBus-S modules.
• The module supports Global Data Base Transaction

2.6 Application Interface


This section describes the access methods available from the application side between the AnyBus-S Modbus Plus
module and the application.

• Parallel: Through a Dual Port RAM memory (DPRAM).


• Serial: Not supported.

Application side Alternative 1


ANYBUS side

DPRAM
Address & Data bus
2KB Modbus Plus

Rx ANYBUS electronics
Alternative 2
Tx
RTS
SCI

Figure 5: AnyBus-S Access methods

HMS INDUSTRIAL NETWORKS AB 7


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

2.7 Dual-Port RAM Memory - DPRAM (Alternative 1)


The easiest way to use the AnyBus-S module is to integrate it into the system microprocessor bus. This is achieved
using the parallel DPRAM interface. All relevant access and handshaking procedures are achieved through this inter-
face. The handshake procedure is used to ensure that there will always be consistent data available on the host appli-
cation side as well as on the fieldbus side. In the handshaking procedure, it will always be the host side that initiates
the start of the handshaking and the AnyBus-S module will respond to it.
For more information about designing with the Parallel interface, please see the AnyBus-S Design Guide for Parallel
interface.

2.8 Asynchronous serial interface (Alternative 2)


The serial interface is not yet available, for further information please contact HMS.

8 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

3 Installation & Configuration


3.1 Fieldbus Connectors
The table below shows the pin function of the fieldbus connectors.

3.2 D-SUB connector and Screw terminal


Table 3: D-SUB connector and screw terminal

D-SUB Screw Terminal Name


1 4 Cable Shielding
2 3 MBP Line B
3 2 MBP Line A
Housing 1 PE

3.3 10 pole 2mm connector


Table 4: 10 pole 2 mm connector

10 pole 2 mm Name
1 PE
2 -
3 -
4 -
5 -
6 MBP Line A
7 -
8 -
9 MBP Line B
10 Cable Shield

HMS INDUSTRIAL NETWORKS AB 9


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

3.4 Configuration
3.4.1 Node ID (Address) S1
The Node ID on the Modbus Plus node is set before power on. Any change of Node ID during power on is not valid
until next power cycle. The address is set in binary format. The Node address is also configurable with the fieldbus
specific mailbox messages, please see chapter 5.

Table 5: Switch settings for Node ID

1 2 3 4 5 6 Function
MSB LSB
ON ON ON ON ON ON Node address set to 1
ON ON ON ON ON OFF Node address set to 2
ON ON ON ON OFF ON Node address set to 3
- - - -
OFF OFF OFF OFF OFF ON Node address set to 63
OFF OFF OFF OFF OFF OFF Node address set to 64

Note: The node address cannot be changed during operation.

3.4.2 Source ID (Address) S2


The AnyBus-S Modbus Plus module uses one source ID address from 1 -64 to configure what node it will extract the
global data from, sent during the token pass. The amount of extracted data is set by the initialisation, which will be
described later. The Source address is also configurable with the fieldbus specific mailbox messages, along with the
GDB offset, please see chapter 5.
The address is set in binary format.

Table 6: Switch settings for Source ID

1 2 3 4 5 6 Function
MSB LSB
ON ON ON ON ON ON Source ID address set to 1
ON ON ON ON ON OFF Source ID address set to 2
ON ON ON ON OFF ON Source ID address set to 3
- - - -
OFF OFF OFF OFF OFF ON Source ID address set to 63
OFF OFF OFF OFF OFF OFF Source ID address set to 64

Note: The source address cannot be changed during operation.

10 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

3.5 Indications
The AnyBus-S Modbus Plus module has two fieldbus specific and two standard (stacked) indication LED's mounted
on the circuit board. The functionality of these LED's are described below:

Table 7: LED descriptions

LED no. Indication Description


1 - Not Used
2 Active Red ERROR; This led indicating that the communication is not OK.
3 Green MBP Active; This diagnostic flashes in different patterns depending on the
modules health.

Indicating different Node Status:


Flash every 160 ms

This node works normal, receiving and passing token:


Flash every 1 s

This node is in MONITOR_OFFLINE state:


2 flashes, off 2 s

This node is in MAC_IDLE never-getting-token state:


3 flashes, off 1,7 s

This node is not hearing any other nodes:


4 flashes, off 1,4 s

This node has heard a valid packet that has a duplicated-node-address sent
from another node on the network, using the same Node ID.
4 Active solid MBP Init; This LED indicating if the peer interface is initialized
green

Figure 6: AnyBus-S Modbus Plus LED indication

HMS INDUSTRIAL NETWORKS AB 11


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4 Functions & Operation


4.1 DPRAM Structure of the Modbus Plus Module
The application interface is thoroughly described in the AnyBus-S Design Guide. Many items are the same for all
AnyBus-S modules. In the sections below, only the fieldbus specific items are described, i.e., items which are indi-
vidual for the AnyBus-S Modbus Plus module.

4.1.1 IN/OUT Data Area

Table 8: IN/OUT data area

Area (HEX) Contents Access


IN area
000h - 1FFh Input data area ; 512 bytes R/W

OUT area
200h - 3FFh Output data area; 512 Bytes RO

The fast data area of the DPRAM is represented as global data on the Modbus Plus network. The fast data mapped to
the beginning of the area. The slow data area of the DPRAM starts directly after then fast data. This data is accessed
over the Modbus Plus network by using the Modbus commands for point-to-point data transfer.

The application exchanges data with the fieldbus via the DPRAM IN and OUT data areas. Before the module can be
used, the length of the IN and OUT area has to be defined. This is accomplished during initialisation of the module.
AnyBus-S Modbus Plus has the possibility to use both fast data and slow data. The fast global data will be assigned to
I/O data. The parameter data will be the IN/OUT total length minus the cyclic I/O data, for both IN and OUT.
When using only the DPRAM memory (512 Byte):

The IN area of the AnyBus-S Modbus Plus can be configured during initialisation with a size from 0 byte to 512
bytes.
IN cyclic I/O length (7F0h-7F1h)
IN DPRAM length (7F2h-7F3h)
IN total length (7F4h-7F5h)
The OUT area of the AnyBus-S Modbus Plus can be configured during initialisation with a size from 0 byte to 512
bytes.
OUT cyclic I/O length (7F6h-7F7h)
OUT DPRAM length (7F8h-7F9h)
OUT total length (7FAh-7FBh)

If more than 512 byte IN and OUT is required, the extended IN and OUT area can be used in the AnyBus-S Modbus
Plus module.
If the Extended memory is used, there can be up to 2kB IN and OUT. To set 2kB IN/OUT length, the OUT total
length is set to 0x800 (2048 bytes). The extended memory is accessed using mailboxes on the parallel interface, and
is mapped directly to the data area of the serial module. Please see AnyBus-S Design Guide for Parallel interface for
details regarding the Initialisation.

12 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.1.2 Mailbox Area

Table 9: Mailbox Area

Area (HEX) Contents Access


Mailbox IN area
400h - 51Fh Mailbox commands R/W
Mailbox OUT area
520h - 63Fh Mailbox responses R/O

Two types of mailbox commands can be used by the AnyBus-S Modbus Plus, Standard mailbox commands,
described in the AnyBus-S Design Guide, and Fieldbus Specific mailbox commands, described in chapter 5.

4.1.3 Fieldbus Specific Area


This area contains data that can be use for fieldbus specific features.

Table 10: Fieldbus Specific Area

Area (HEX) Contents Access


640h - 7BFh Fieldbus Specific area R/O

Table 11: Fieldbus Specific Area Addresses

Area (HEX) Contents Valid Data Access


640h Node ID 0x1- 0x40 R/O
641H Source ID 0x1- 0x40 R/O
642H Source Global Data Valid 0x00 No Valid Global Data R/O
0x01 Valid Global Data
643H Not Used - -
... Not Used - -
7BFh Not Used - -

HMS INDUSTRIAL NETWORKS AB 13


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.1.4 Control Area


These registers contain information about the status and control environment, both for the fieldbus and the module
itself, e.g. Fieldbus type, Module Software version, Module Type, configuration, etc. The following registers are spe-
cific for the AnyBus-S Modbus Plus module. For further information about the Control Area contents, please see the
AnyBus-S Design Guide.

Table 12: Control Area

Area (HEX) Contents Access


Control area ( Fieldbus Specific parameters )
7CCh - 7CDh Fieldbus Type (0x0040 for Modbus Plus) R/O
7CEh - 7CFh Module Software Version R/O

4.2 Initialization
Initialisation of the AnyBus-S module in standard format is performed with the ANYBUS_INIT mailbox telegram,
where the sizes of the input/output areas are set.
The AnyBus-S Modbus Plus module uses both I/O data and parameter data. All parameter data will be mapped after
the I/O data, ( "IN/OUT total lengths" minus "IN/OUT I/O data" ) . In the AnyBus-S Modbus Plus, I/O data is the
same as global data and parameter data the same as Modbus point-to-point data commands.
The lengths specified are also checked against their maximum size. If they do not comply, the initialisation will be
rejected.

Note: The time between the initialization command END_INIT and the flag FBRS is set (and displayed to the appli-
cation) in the register, Module Status Register (7E2h-7E3h) is 10 seconds, due to the Modbus Plus peer interface need
this amount of time to be initialized.
If action towards the Modbus Plus is requested as soon the AnyBus Modbus Plus is up and running, we recommend
to monitor the FBRS flag to be able to decide when the network is available for the application.

14 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.2.1 Initialization Example


The example below shows how to initialise the AnyBus-S Modbus Plus module with the following configuration.

• Input I/O data of 16 bytes


• Output I/O data of 16 bytes
• Input Parameter data of 20 bytes
• Output Parameter data of 20 bytes
• If the bus goes off-line the outputs will freeze on the last value
• An interrupt will be generated if the bus goes on-line and off-line
• The new data field is not activated

This is the ANYBUS_INIT telegram


Command and response layout:

Register Name Command Expected response


Message ID 0x000A 0x000A Any integer value
Message information 0x4001 0x0001
Command 0x0002 0x0002
Data size 0x0012 0x0012 9 words of data = 18 bytes
Frame count 0x0001 0x0001 This is frame 1
Frame number 0x0001 0x0001 One frame
Offset high 0x0000 0x0000
Offset low 0x0000 0x0000
Extended word 1 - - No message header data used
Extended word 2 - - “
Extended word 3 - - “
Extended word 4 - - “
Extended word 5 - - “
Extended word 6 - - “
Extended word 7 - - “
Extended word 8 - - “
Message data word 1 0x0010 0x0010 Message data
Message data word 2 0x0024 0x0024 “
Message data word 3 0x0024 0x0024 “
Message data word 4 0x0010 0x0010 “
Message data word 5 0x0024 0x0024 “
Message data word 6 0x0002 0x0002 “
Message data word 7 0x0003 0x0003 “
Message data word 8 0x0000 0x0000 “

Table 13: Mailbox message memory layout (ANYBUS_INIT telegram)

Note: All access on the Modbus Plus is handled in word format (16- bit word), So initialising any module data area to an odd size is not
recommended due to data consistence.

HMS INDUSTRIAL NETWORKS AB 15


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.3 Data Exchange


The AnyBus S Modbus Plus device can be read/written from another network node. The I/O data will be updated
each token rotation cycle. The Point-to-point data will be carried out over a longer time interval and is dependent on
function and requested data size. The amount of data copied is determined in the configuration phase of the fieldbus
initialisation. The data will be exchanged via the IN and OUT data areas of the DPRAM.

4.4 Protocol Features


The AnyBus-S Modbus Plus module can be equipped with extended fieldbus functions which will be configured with
fieldbus specific mailbox commands during initialise phase and in runtime. The extended functions are: "Set GDB
source", "Set Node Address", "Get Network Statistics" and "Clear Communication Counters".
Note. All access on the Modbus Plus is handled in word format (16- bit word), So initialising any module data area to
an odd size is not recommended due to data consistence.
Please see chapter 5 for further information.

4.4.1 Global Data Base transaction


Each node in the Modbus Plus network is building it's own Global Data Base by using the global data that passes
from each node with the token pass. Each node that support global data transaction, can extract the desired source
node data from the global database.
The Global Data, 1 to 32 words IN/OUT is located at the start of both the IN area and the OUT area, if the I/O size is
used.
The IN and the OUT I/O data (Global Data) can be read by the point-to-point commands, while the OUT I/O data
(Global Data) only can be update by the Source Node, through the Global Data.

Global Data Base function is supported in Modicon 984 PLC.


Can be accessed by using a MSTR block with the (OP Code = 5) WRITE GLOBAL DATABASE and (OP Code =6)
READ GLOBAL DATABASE.

This function is supported in Modicon SA85 card.


The NetLIB functions ncb_send_datagram( ) and ncb_receive_datagram( ) can be used.

4.4.2 Point-to-point data Modbus commands supported


All the Modbus functions supported by the Anybus-S Modbus Plus is for operation on 4X registers:

• Read Holding Registers (0x03)


• Preset Single Register (0x06)
• Preset Multiple Registers (0x10)

4.5 Data map from the Network


Example: if the module is initialised from the application with the following sizes.
IN I/O SIZE : 64 bytes ( 32words)
IN DPRAM SIZE : 200 bytes (100 words)
IN TOTAL SIZE : 200 bytes (100 words)

OUT I/O SIZE : 64 bytes ( 32words)


OUT DPRAM SIZE : 200 bytes (100 words)
OUT TOTAL SIZE : 200 bytes (100 words)
The data map from the fieldbus will look like this:

16 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.5.1 Data to network


The I/O is used, so the first area is Global Data, Max 32 words. Direct after the Global Data the parameter data fol-
lows.
The data to the link always starts at 40001 and the whole contents in the "Data to Network" area can be read with
point-to point commands (Read holding Register) and the first part of the "Data to Network" area can be read with the
Global data if this is used.

Register No “Data to Network” area


40001 GDB
40002 GDB
40003 GDB Words 00001 - 00032
- I/O Data
-
40032 GDB
40033
40034
- Words 00033 - 00100
- Parameter-
- Data
- -
- -
- -
40100 -
-

Not used Internal


Parameter Data

Table 14: Data to Network area

Example:
To read four words from the "Data to Network" parameter data area, use a Read Holding Registers with start address
40001 and No of register to read set to 4 this will give you the four first global data words.

HMS INDUSTRIAL NETWORKS AB 17


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.5.2 Data from network


The I/O is used, so the first "Data from Network" area is for Global Data, Max 32 words. Direct after the Global Data
the parameter data follows.
The "Data from Network" always starts at 41025 and the whole "Data from Network" area can be read but only the
area not used for Global Data can be written by the point-to point commands.

Register No “Data from Network” area


41025 GDB
41026 GDB
41027 GDB Words 00001 - 00032
- I/O Data
-
41056 GDB
41057
41058
- Words 00033 - 00100
- Parameter-
- Data
-
-
-
41124

Not used Internal


Parameter Data

Table 15: Data from Network area

Example:
To write to the first two words of the "Data from Network" parameter data in the AnyBus module use Preset Multiple
Register with the start register 41057 and No of register set to 2 words.

Note: If the OUT size is set from the application to an odd size there will be one byte that is not accessible from the
fieldbus, to get the contents of the first parameter data you will need to address the next whole new word in the
example below register 41058.
Example: If the module is initialised from the application with the following sizes...

IN I/O SIZE : 64 bytes ( 32 words)


IN DPRAM SIZE : 200 bytes (100 words)
IN TOTAL SIZE : 200 bytes (100 words)

OUT I/O SIZE : 63 bytes ( 32words used on the bus)


OUT DPRAM SIZE : 200 bytes (100 words)
OUT TOTAL SIZE : 200 bytes (100 words)

18 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

...the first part of the "Data from Network" data map from the fieldbus will look like this:

Register No “Data from Network” area


41025 GDB
41026 GDB
41027 GDB Word 00001 - 00032
- I/O Data
-
-
41056 GDB Uses only high byte
41057 This word is not used
41058
- Word 00033 - 00100
- Parameter-
- Data
-

Table 16: Example 2: Data from Network area

4.6 Point-to-point exception handling


The AnyBus-S Modbus Plus module does not support all of the commands that are implemented in the peer proces-
sor. There are four different Exception Response:

Table 17: Modbus Exception Response

Code Function
01h Illegal function for the addressed slave
02h Illegal data address within the information field for the addressed slave
03h Illegal data value in the information field for the addressed slave
06h Host side busy, reissue the command later

Exception Response Code 0x06 is not implemented in the AnyBus-S Modbus Plus module.

• If an unknown command is received form the network, this will cause the AnyBus S module to response with
an Exception Response 0x01.
• If a valid command with an address out of range for the AnyBus-S memory area this will cause the AnyBus S
module to response with an Exception Response 0x02.
• If the data for the commands Preset Multiple Register and Read Holding Register is invalid this will cause the
AnyBus module to response with an Exception Response 0x03.

The Exception Response is two bytes, the "Function Code" and the "Exception Code".

HMS INDUSTRIAL NETWORKS AB 19


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

4.7 Routing Path


When Point-to-point Modbus commands are used it is important to specify the correct Routing Path to the requested
node.
Only Slave Data Paths is supported in AnyBus-S Modbus Plus module. This means that the AnyBus-S Modbus Plus
module only can respond to incoming requests. These 8 Slave Data Paths is implemented as a scanning list, were path
1 is handled first and the others then in an incremented way.

To write to node 5 within the same network (no bridging to another network), the five digits Routing Path should be:
5. 2. 0. 0. 0.
5 = Node ID.
2 = Slave Data Path. 1 to 8.

Note: If the Slave Data path is not equal to 1- 8 the module will interpret this as Slave Data Path 8, this mean that you
can have one extra path, routing an extra Modbus Plus network.

4.8 Modbus Functions


These functions is all 4X register functions.

4.8.1 Read Holding Registers


This function is supported in Modicon 984 PLC.
Can be accessed by using a MSTR block with the (OP Code = 2) READ DATA.
If using a SA85 card from Modicon, NetLIB functions can be used.

4.8.2 Preset Multiple Registers


This function is supported in Modicon 984 PLC.
Can be accessed by using a MSTR block with the (OP Code = 1) WRITE DATA.

This function is supported in Modicon SA85 card.


The NetLIB functions can be used.

4.8.3 Preset Single Register


This functionality is supported in Modicon 984 PLC.
Can be accessed by using a MSTR block with the (OP Code = 1) WRITE DATA.

This function is supported in Modicon SA85 card.


The NetLIB functions can be used.

20 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

5 Fieldbus Specific Mailbox Commands


PLEASE NOTE: This chapter describes the application functions supported only by the AnyBus-S Modbus Plus.

5.1 Fieldbus Specific Initialization


If the fieldbus specific parts are to be changed, the initialisation mailbox command ANYBUS_INIT (See chapter 4.1)
is followed by the fieldbus specific initialisation commands.
The sequence is: START_INIT, ANYBUS_INIT, FIELDBUS_INIT(s), END_INIT.
PLEASE NOTE: These fieldbus specific changes are volatile until a SAVE_CONFIG is done and the
LOAD_CONFIG is called in the start-up. Pleas see AnyBus-S Design Guide for details.

HMS INDUSTRIAL NETWORKS AB 21


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

5.2 Alter GDB Source ( SET_GDB_SOURCE )

Table 18: SET_GDB_SOURCE

Parameter Description
Command initiator Application INIT MODE or RUNTIME MODE
Message Name SET_GDB_SOURCE
Message type 0x02
Command number 0x0001
Fragmented No
Extended header data No extended header data is associated with this command
Message data 4 Bytes. No of Sources, Source address , No of words, Offset within
GDB (in words).
Response message Contains: No of Sources, Source address, No of words, Offset within
GDB .The No of Sources must always be set to0x01.If the source is
producing global data on the network this will be displayed in the
Fieldbus Specific area 0x642. If the SET_GDB_SOURCE mailbox
message is wrong, see error code. If error code 0x0F is displayed see
Extended word 8 for details: 0x0001. I/O length miss match, larger
that the init settings . 0x0002. To many source addresses.

Register Name Command Expected response


Message ID 0x000A 0x000A Any integer value
Message information 0x4001 0x0001
Command 0x0002 0x0002
Data size 0x0012 0x0012 4 bytes of data
Frame number 0x0001 0x0001 One frame
Frame count 0x0001 0x0001 This is frame 1
Offset high 0x0000 0x0000
Offset low 0x0000 0x0000
Extended word 1 - - No message header data used
Extended word 2 - - “
Extended word 3 - - “
Extended word 4 - - “
Extended word 5 - - “
Extended word 6 - - “
Extended word 7 - - “
Extended word 8 - - “
Message data word 1 0x01 0x02 0x01 0x02 No Of Sources 0x01; Node ID
0x02
Message data word 2 0x01 0x02 0x04 0x02 Words 0x04; Offset in words
0x02

Table 19: Command and response layout: SET_GDB_SOURCE

Note: A byte in the FB specific area (address 0x642) will display if the Source is producing global data.

22 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

5.2.1 Alter Node Address ( SET_NODE_ADDRESS )


The node address can be altered from the default DIP switch setting to an new ID value 1- 64. This message can only
be set during initialisation phase.

Table 20: SET_NODE_ADDRESS

Parameter Description
Command initiator Application INIT MODE
Message Name SET_NODE_ADDRESS
Message type 0x02
Command number 0x0002
Fragmented No
Extended header data No extended header data is associated with this command
Message data 1 Byte : the node address value. Valid data: 1 - 64.
Response message The message data contains the requested node address valueIf the
node address is valid the chosen ID will be displayed in the Fieldbus
Specific area 0x640.If the SET_NODE_ADDRESS mailbox message
is wrong, see error code. If error code 0x0F is displayed see Extended
word 8 for details: 0x0001. Node address is out of range.

Register Name Command Expected response


Message ID 0x000A 0x000A Any integer value
Message information 0x4002 0x0002
Command 0x0002 0x0002
Data size 0x0001 0x0001 1 byte of data
Frame number 0x0001 0x0001 One frame
Frame count 0x0001 0x0001 This is frame 1
Offset high 0x0000 0x0000
Offset low 0x0000 0x0000
Extended word 1 - - No message header data used
Extended word 2 - - “
Extended word 3 - - “
Extended word 4 - - “
Extended word 5 - - “
Extended word 6 - - “
Extended word 7 - - “
Extended word 8 - - “
Message data word 1 0x04 - 0x04 - Message data Node Address ID
= 0x94

Table 21: Command and response layout: SET_NODE_ADDRESS

HMS INDUSTRIAL NETWORKS AB 23


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

5.2.2 Get Network Statistics ( GET_NETWORK_STATISTICS )


The status of the Network is stored in the Peer Processor and this information can be accessed due to Peer Mailbox
command. There are 53 words which can be accessed sending an length and offset.

Table 22: GET_NETWORK_STATISTICS

Parameter Description
Command initiator Application RUNTIME MODE
Message Name GET_NETWORK_STATISTICS
Message type 0x02
Command number 0x0003
Fragmented No
Extended header data No extended header data is associated with this command
Message data 2 Bytes : length (in bytes) and offset ( in bytes).
Response message The message data contains an length and offset. If the
GET_NETORK_STATISTICS mailbox message is wrong, see error
code. If error code 0x0F is displayed see Extended word 8 for details:
0x0001. Offset + Length is out of range.

Register Name Command Expected response


Message ID 0x000A 0x000A Any integer value
Message information 0x4002 0x0002
Command 0x0003 0x0003
Data size 0x0002 0x0002 1 byte of data
Frame number 0x0001 0x0001 One frame
Frame count 0x0001 0x0001 This is frame 1
Offset high 0x0000 0x0000
Offset low 0x0000 0x0000
Extended word 1 - - No message header data used
Extended word 2 - - “
Extended word 3 - - “
Extended word 4 - - “
Extended word 5 - - “
Extended word 6 - - “
Extended word 7 - - “
Extended word 8 - - “
Message data word 1 0x06 0x00 0x04 0x00 Length = 0x06 and Offset =
0x00

Table 23: Command and response layout: GET_NETWORK_STATISTICS

24 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

5.2.3 Clear Communications Counter ( CLEAR_COMM_COUNTERS )


This mailbox command issues a clear communication error counters, word 13 to word 22 in the 53 words long net-
work statistics map. This command can takes some time to perform, occupying the peer interface.

Table 24: CLEAR_COMM_COUNTERS

Parameter Description
Command initiator Application RUNTIME MODE
Message Name CLEAR_COMM_COUNTERS
Message type 0x02
Command number 0x0004
Fragmented No
Extended header data No extended header data is associated with this command
Message data No data is associated with this command.
Response message No data is associated with this command.
If the CLEAR_COMM_COUNTERS mailbox message is wrong,
see error code.

Register Name Command Expected response


Message ID 0x000A 0x000A Any integer value
Message information 0x4002 0x0002
Command 0x0004 0x0004
Data size 0x0000 0x0000 0 byte of data
Frame number 0x0001 0x0001 One frame
Frame count 0x0001 0x0001 This is frame 1
Offset high 0x0000 0x0000
Offset low 0x0000 0x0000
Extended word 1 - - No message header data used
Extended word 2 - - “
Extended word 3 - - “
Extended word 4 - - “
Extended word 5 - - “
Extended word 6 - - “
Extended word 7 - - “
Extended word 8 - - “
Message data word 1 “

Table 25: Command and response layout: CLEAR_COMM_COUNTERS

HMS INDUSTRIAL NETWORKS AB 25


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

6 Electrical specification
The table below describes the general pin configuration for the Application interface.

Table 26: Electrical pin specification

Contact Pin Description Symbol Min Typ Max Unit


1 +5V BUS VCC 4.75 5.0 5.25 V
Bus Electronics IIN - 85 95 mA
2 GNDBUS
Ground
3-4 No connection
5 +5V Power VCC 4.75 5.0 5.25 V
Electronic IIN - 90 100 mA
6 GND Ground
7-31 Depending on
33-34 interface, please
see tables below.
32 RES IN VIH 0.7 VCC V
Reset VIL 0.3 VCC V
(Pulse duration) tW µS

Description of the Host connector characteristics:

Parallel Pin Description


7-8 Not used (asynchronous data)
9-18 Address pins
19-26 Data pins
27 BUSY
28 IRQ
29 RD
30 WR
31 CE
33 Address pin
34 Not connected

Alternative 1: Interface with DP-RAM

26 HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

SCI Pin Description


7 Tx
8 Rx
9 - 12 Not Connected
13 RTS
14 - 31 Not Connected
31 - 34 Not Connected

Alternative 2: Asynchronous Serial Interface

For further information regarding timing and electrical characteristics of the DPRAM, please see Cypress Data Book,
type CY7C136.

HMS INDUSTRIAL NETWORKS AB 27


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

7 Module mechanics
This chapter includes drawings of the module for overview and mechanical design.
The drawings describe the standard configuration of the AnyBus-S Modbus Plus module.
The fieldbus interface can be either side or top mounted.
Reverse mounting is not allowed on the 9 pin D-sub connector.

Connectors that are supported by the AnyBus-S Modbus Plus module are:
· 9 pin female D-SUB
· Screw terminal 3.81 mm
· Pluggable screw terminal 3.81 mm
· 10 pole 2.0 mm
For further information regarding the AnyBus-S module, we refer to the AnyBus-S Design Guide.

Note: The AnyBus S Modbus Plus is only supporting the AnyBus S PE hole configuration.

7.1 Mechanical drawings in this manual


These drawings are contained in this section:
• AnyBus-S Modbus Plus Angled 3-D view
• AnyBus-S Modbus Plus Angled Top view
• AnyBus-S Modbus Plus Angled Front and Side view
• AnyBus-S Modbus Plus Angled PCB view
• AnyBus-S Modbus Plus Straight 3-D view
• AnyBus-S Modbus Plus Straight Top view
• AnyBus-S Modbus Plus Straight Front and Side view
• AnyBus-S Modbus Plus Straight PCB view

28 HMS INDUSTRIAL NETWORKS AB


: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.

F
F

HMS INDUSTRIAL NETWORKS AB


E
E

D
D

Figure 7: AnyBus-S Modbus Plus Angled 3-D view


HMS Industrial Networks AB

Pilefeltsgatan 93-95
C S-302 50 Halmstad C
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED
DIMENSIONS ARE IN
MILLIMETERS. REV.

TOLERANCE: +/- 0,1 1.0


SHEET 1 OF 4

: 9 8 7 6 5 4 3

29
2001-08-06
DOC. NO ABS-MBP-1.30
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
30
: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-08-06

F
F
DOC. NO ABS-MBP-1.30

E
E
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS

15,8

14,2 13,8
15,9 15,9
9,7 8,1

8,5
22,1 D
D

Figure 8: AnyBus-S Modbus Plus Angled Top view


0
12,0
45,5
62.2
75.6

HMS Industrial Networks AB

Pilefeltsgatan 93-95
C C
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09

UNLESS OTHERWISE SPECIFIED


DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

HMS INDUSTRIAL NETWORKS AB


: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.

F
F

30,8

25,0
9,2
2,9
16,7
4,6

12,6
9,7 5,0 9,7
6,3

HMS INDUSTRIAL NETWORKS AB


E
E

3,2

Application connector alternatives

D
D

Bottom side Top side

Figure 9: AnyBus-S Modbus Plus Angled Front and Side view


6,4 - 12,2 mm

HMS Industrial Networks AB

C
Pilefeltsgatan 93-95
C
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09

UNLESS OTHERWISE SPECIFIED


DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

31
2001-08-06
DOC. NO ABS-MBP-1.30
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
32
: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-08-06

2,0
F
F

37,3

2,0
DOC. NO ABS-MBP-1.30

54,0
0,8

E 3x 3,2 A E
5,8 A
0,75

0
0,9 2,54

6,2
0,8 2,54

12,9
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS

14,3 2,0

D
D

1,0
2,0
71,8

86,0 1,6

Figure 10: AnyBus-S Modbus Plus Angled PCB view


A-A

HMS Industrial Networks AB

0
7,0

4,0
55,5

Pilefeltsgatan 93-95
C
S-302 50 Halmstad
C
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09

UNLESS OTHERWISE SPECIFIED


DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

HMS INDUSTRIAL NETWORKS AB


: 9 8 7 6 5 4 3
THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS
INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.

F
F

HMS INDUSTRIAL NETWORKS AB


E E

D D

Figure 11: AnyBus-S Modbus Plus Straight 3-D view


HMS Industrial Networks AB
Pilefeltsgatan 93-95
C S-302 50 Halmstad C
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED
DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

33
2001-08-06
DOC. NO ABS-MBP-1.30
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
34
: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-08-06

F
F
DOC. NO ABS-MBP-1.30

E
E

25,0
2,9
9,2

4,6
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS

9,8

14,2 13,6
16,1
5,0 9,7
12,6 9,6
D
D

3,2

Figure 12: AnyBus-S Modbus Plus Straight Top view


0
12,0
75,6

45,4
62,1

HM S Industrial Networks AB
Pilefeltsgatan 93-95
C
S-302 50 Halmstad C
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09

UNLESS OTHERWISE SPECIFIED


DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

HMS INDUSTRIAL NETWORKS AB


: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.

F
F

30,9

16,7

12,2 11,9
10,2
8,1
6,7 5,5
6,0

HMS INDUSTRIAL NETWORKS AB


E
E

Application connector alternatives

D
D

Bottom side Top side

Figure 13: AnyBus-S Modbus Plus Straight Front and Side view
6,4 - 12,2 mm
HMS Industrial Networks AB

Pilefeltsgatan 93-95
S-302 50 Halmstad
C C
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09

UNLESS OTHERWISE SPECIFIED


DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

35
2001-08-06
DOC. NO ABS-MBP-1.30
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
36
: 9 8 7 6 5 4 3

THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF HMS


INDUSTRIAL NETWORKS AB. ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-08-06

F 2,0
F

37,3
DOC. NO ABS-MBP-1.30

2,0

54,0 0,8
E
E
3x 3,2 A
5,8 A
0,75
0
0,9 2,54

6,2
0,8 2,54
FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS

12,9

14,3
2,0
D
D

0
71,8

2,0

1,0
86,0 1,6

Figure 14: AnyBus-S Modbus Plus Straight PCB view


A-A

0
HMS Industrial Networks AB

7,0

4,0
Pilefeltsgatan 93-95
55,5

S-302 50 Halmstad
C Tel: +46 (0)35 - 17 29 00 C
Fax: +46 (0)35 - 17 29 09

UNLESS OTHERWISE SPECIFIED


DIMENSIONS ARE IN
MILLIMETERS.
TOLERANCE: +/- 0,1

: 9 8 7 6 5 4 3

HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

8 List of tables
Table 1: Summary technical features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Table 2: Documents related to this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Table 3: D-SUB connector and screw terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 4: 10 pole 2 mm connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 5: Switch settings for Node ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 6: Switch settings for Source ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 7: LED descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 8: IN/OUT data area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 9: Mailbox Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 10: Fieldbus Specific Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 11: Fieldbus Specific Area Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 12: Control Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 13: Mailbox message memory layout (ANYBUS_INIT telegram) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 14: Data to Network area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 15: Data from Network area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 16: Example 2: Data from Network area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 17: Modbus Exception Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 18: SET_GDB_SOURCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 19: Command and response layout: SET_GDB_SOURCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 20: SET_NODE_ADDRESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 21: Command and response layout: SET_NODE_ADDRESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 22: GET_NETWORK_STATISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 23: Command and response layout: GET_NETWORK_STATISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 24: CLEAR_COMM_COUNTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 25: Command and response layout: CLEAR_COMM_COUNTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 26: Electrical pin specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

9 List of figures
Figure 1: Modbus Plus network overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 2: Timing and throughput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 3: Nodes on a Modbus Plus network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 4: AnyBus-S Modbus Plus Mechanical Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 5: AnyBus-S Access methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 6: AnyBus-S Modbus Plus LED indication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 7: AnyBus-S Modbus Plus Angled 3-D view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 8: AnyBus-S Modbus Plus Angled Top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 9: AnyBus-S Modbus Plus Angled Front and Side view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 10: AnyBus-S Modbus Plus Angled PCB view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 11: AnyBus-S Modbus Plus Straight 3-D view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 12: AnyBus-S Modbus Plus Straight Top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 13: AnyBus-S Modbus Plus Straight Front and Side view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 14: AnyBus-S Modbus Plus Straight PCB view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

HMS INDUSTRIAL NETWORKS AB


FIELDBUS APPENDIX - ANYBUS-S MODBUS PLUS
DOC. NO ABS-MBP-1.30
2001-08-06

HMS INDUSTRIAL NETWORKS AB


If you have any comments about this documentation, please take a few minutes to fill out this form, and let
us know about your opinions. These comments will help us improve our work, and make us aware of what
customers of our products may find good, faulty or even missing.

Document title and revision:_________________________________________________________________

Your name and company:____________________________________________________________________

Phone:___________________________________________________________________________________

E-mail:___________________________________________________________________________________

Comments:

Text and illustrations:


_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

What information is missing or unclear?:


_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

Other comments:
_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

_________________________________________________________________________________________

Send your comments to: You may also mail or fax your comments:

HMS Industrial Networks AB E-mail: [email protected]


Support Department Fax: +46 (0)35 172909
Pilefeltsgatan 93-95
302 50 Halmstad
SWEDEN

You might also like