Anybus M-Bus to Modbus-TCP Gateway User guide

HMS Industrial Networks Mailing address: Box 4126, 300 04 Halmstad, Sweden Visiting address: Stationsgatan 37, Halmstad, Sweden
E-mail: info@hms-networks.com
Web: www.anybus.com
User Manual
Anybus® M-Bus to Modbus-TCP Gateway
Doc: HMSI-27-300
Rev. 1.10
Table of Contents
About This Document
Related Documents ..................................................................................................................................1
Document History ...................................................................................................................................1
Conventions & Terminology .................................................................................................................. 1
Notes and warnings.......................................................................................................................... 1
Font conventions............................................................................................................................... 1
Glossary........................................................................................................................................... 2
Support....................................................................................................................................................... 2
Intellectual Property Rights............................................................................................................... 1
Trademark Acknowledgements......................................................................................................... 1
General Information
Introduction .............................................................................................................................................. 2
Description ................................................................................................................................................3
Connections...................................................................................................................................... 3
Table of Contents
Installation
Startup ........................................................................................................................................................ 4
Network configuration ............................................................................................................................ 4
CHIPtool ........................................................................................................................................ 5
Configuration
The web interface ..................................................................................................................................... 7
General tab...................................................................................................................................... 8
Meter tab......................................................................................................................................... 9
Configuration tab ........................................................................................................................... 12
Server tab.......................................................................................................................................14
Security tab .................................................................................................................................... 14
User tab......................................................................................................................................... 15
Service tab...................................................................................................................................... 17
Print page ......................................................................................................................................17
Modbus TCP specification
Function codes........................................................................................................................................18
Data format ............................................................................................................................................. 19
Dummy data.................................................................................................................................. 19
Acquiring and processing meter data
Meter configuration................................................................................................................................20
Scanning for meters......................................................................................................................... 20
Adding meters manually................................................................................................................. 21
Meter data format ................................................................................................................................... 22
Predefined Media ID Values ......................................................................................................... 22
Predefined measurement value types................................................................................................. 23
Predefined units ............................................................................................................................. 25
Modbus register layout.................................................................................................................... 26
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10
Troubleshooting
Hardware errors ......................................................................................................................................28
Gateway does not respond............................................................................................................... 28
Current consumption too high ......................................................................................................... 28
Network errors........................................................................................................................................29
Web interface and FTP server not accessible.................................................................................... 29
No network connection ................................................................................................................... 29
No write access to the web interface ................................................................................................. 30
Web session is unexpectedly terminated........................................................................................... 30
FTP login failure ........................................................................................................................... 30
Meter reading errors ............................................................................................................................... 31
No meters are detected .................................................................................................................... 31
Some meters are not detected............................................................................................................ 31
Meters are detected but have no data............................................................................................... 32
Scanning takes too long .................................................................................................................. 32
Gateway restarts occasionally during scan........................................................................................ 32
Webserver capacity error message..................................................................................................... 33
Meter data transmit error ......................................................................................................................33
Meter data not transmitted via Modbus.......................................................................................... 33
1-2
Advanced features
Software update ......................................................................................................................................34
Updating the operating system (RTOS) .......................................................................................... 35
Updating application software (firmware)........................................................................................ 36
Telnet connection................................................................................................................................... 37
FTP connection ......................................................................................................................................37
Configuration files ..................................................................................................................................38
System configuration file.................................................................................................................. 38
Meter configuration file ................................................................................................................... 41
Technical Specifications
General..................................................................................................................................................... 42
Dimensions and weight................................................................................................................... 42
Installation..................................................................................................................................... 42
Customs declaration........................................................................................................................ 42
Electrical ..................................................................................................................................................43
Power supply ..................................................................................................................................43
Meter interfaces .............................................................................................................................. 43
Communication interfaces ............................................................................................................... 43
Galvanic isolation........................................................................................................................... 43
Processing unit................................................................................................................................43
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

P. About This Document

For more information, related documentation, etc., please visit the HMS website www.anybus.com.

P.1 Related Documents

Document Author
- -

P.2 Document History

Revision List
Revision Date Author(s) Chapter(s) Description
1.00 2015-02-26 ThN All First official release
1.10 2016-04-08 ThN 1, 6, A Added model with max 80 loads
Preface

P.3 Conventions & Terminology

The following conventions are used throughout this manual:
1. Numbered lists provide sequential steps.
Bulleted lists provide information, not procedure steps.

P.3.1 Notes and warnings

This indicates additional important information.
This indicates important instructions that must be followed to avoid equipment failure or damage.

P.3.2 Font conventions

Reboot system Menu command or button in graphical user interface.
MBUS_MAXRETRY Parameter entry in a source file.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

P.3.3 Glossary

Abbreviation Explanation
CSV Character-Separated Values DNS Domain Name System DI Digital Input DO Digital Output DIN Deutsches Institut für Normung, German standardization body DLDE Direct Local Data Exchange (EN 62056-21, IEC 1107) DLDERS DLDE communication via RS-232 or RS-485 DLMS Gateway Language Message Specification I/O In- / Output ESD ElectroStatic Discharge FNN Forum Netztechnik/Netzbetrieb
Forum for network technology / network operation (committee of VDE) FTP File-Transfer Protocol GPRS General Packet Radio Service GSM Global System for Mobile Communications HTTP Hypertext Transfer Protocol ID Identification, Identifier IP Internet Protocol or. IP address LED Light-Emitting Diode M-Bus Meter-Bus (EN 13757-2/3) MAC Medium Access Control or MAC address MUC Multi Utility Communication, MUC-Controller OEM Original Equipment Manufacturer PEM Privacy Enhanced Mail PPP Point-to-Point Protocol PPPoE Point-to-Point Protocol over Ethernet RFC Requests For Comments RSSI Received Signal Strength Indicator RTC Real Time Clock RTOS Real Time Operating System S0 S0 interface (pulse interface, EN 62053-31) SIM Subscriber Identity Module SML Smart Message Language SMTP Simple Mail Transfer Protocol SNTP Simple Network Time Protocol TCP Transmission Control Protocol TLS Transport Layer Security UTC Coordinated Universal Time VDE Verband der Elektrotechnik Elektronik Informationstechnik e.V.
(association for electrical, electronic & information technologies) WAN Wide Area Network wM-Bus Wireless Meter-Bus (EN 13757-3/4) XML eXtensible Markup Language
About This Document 2

P.4 Support

For general contact information and support, please refer to the HMS website www.anybus.com.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10
Important User Information
This document contains a general introduction as well as a description of the technical features provided by the Anybus M-Bus to Modbus-TCP Gateway, including the PC-based configuration software.The document only de­scribes the features that are specific to this product.
The reader of this document is expected to be familiar with PLC technology and communication systems in gen­eral. The reader is also expected to be familiar with the Microsoft® Windows® operating system.
Liability
Every care has been taken in the preparation of this manual. Please inform HMS Industrial Networks AB of any inaccuracies or omissions. The data and illustrations found in this document are not binding. We, HMS Industrial Networks AB, reserve the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be considered as a commit­ment by HMS Industrial Networks AB. HMS Industrial Networks AB assumes no responsibility for any errors that may appear in this document.
There are many applications of this product. Those responsible for the use of this gateway must ensure that all the necessary steps have been taken to verify that the applications meet all performance and safety requirements including any applicable laws, regulations, codes, and standards.
HMS Industrial Networks AB will under no circumstances assume liability or responsibility for any problems that may arise as a result from the use of undocumented features, timing, or functional side effects found outside the documented scope of this product. The effects caused by any direct or indirect use of such aspects of the product are undefined, and may include e.g. compatibility issues and stability issues.
The examples and illustrations in this document are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular implementation, HMS Industrial Networks AB cannot assume responsibility for actual use based on these examples and illustrations.

Intellectual Property Rights

HMS Industrial Networks AB has intellectual property rights relating to technology embodied in the product de­scribed in this document. These intellectual property rights may include patents and pending patent applications in the US and other countries.

Trademark Acknowledgements

Anybus ® is a registered trademark of HMS Industrial Networks AB. All other trademarks are the property of their respective holders.
Warning: This is a class A product. in a domestic environment this product may cause radio interference in
which case the user may be required to take adequate measures.
ESD Note: This product contains ESD (Electrostatic Discharge) sensitive parts that may be damaged if ESD
control procedures are not followed. Static control precautions are required when handling the prod­uct. Failure to observe this may cause damage to the product.
Anybus M-Bus to Modbus-TCP Gateway User Manual
Copyright© HMS Industrial Networks AB
Doc: HMSI-27-300
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

1. General Information

1.1 Introduction

The M-Bus (Meter-Bus) is defined in the standard EN 13757, and is an established and well known in­terface for automated meter reading. Ease of installation (simple two-wire system with powering by the bus) and robustness are the most important features. M-Bus has its own physical layer and protocol, so a translation is necessary to connect it to other systems.
In the field of automation, Modbus TCP is one of the most common communication standards. The Anybus M-Bus to Modbus-TCP Gateway allows the direct transmission of meter data to a control sys­tem (PLC, DDC etc.) using Modbus TCP.
The Anybus M-Bus to Modbus-TCP Gateway supports operating up to either 20 or 80 meters (standard loads) on the M-Bus depending on the selected gateway version. A powerful protocol stack is imple­mented. It handles the complete data handling on the Anybus M-Bus to Modbus-TCP Gateway com­pliant to the standard. All available meters on the market can be read out and processed without further manual configuration. The meter data is available for other systems without effort.
The Anybus M-Bus to Modbus-TCP Gateway serves as a Modbus TCP slave gateway (Modbus TCP server) via its Ethernet port. The PLC as a Modbus master (Modbus TCP client) can access meter data via a network connection. The data is available in different Modbus registers.
Chapter 1
The Anybus M-Bus to Modbus-TCP Gateway reads out the meters autonomously, which is why an ini­tial configuration of the gateway is necessary. A built-in web interface simplifies this process. Via this web interface all the functionality of the gateway is available to the user. In addition to basic system con­figuration values can be selected to be available via Modbus, M-Bus scans can be performed, and the current data is reported. Remote control or remote service is also facilitated through the web interface.
The Anybus M-Bus to Modbus-TCP Gateway comes in a 2U enclosure and is intended for standard 35 mm DIN rail mounting.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

1.2 Description

24VDC
GND
MBUS+
MBUS-
MBUS+
MBUS-

1.2.1 Connections

The Anybus M-Bus to Modbus-TCP Gateway has the following connections:
General Information 3
Connector Pin assignment Note
Power supply 24 VDC: positive power supply
GND: negative power supply
M-Bus connectors MBUS+: positive bus line (2x)
MBUS-: negative bus line (2x)
Ethernet interface 1: TX+
2: TX 3: RX+ 4: Termination 5: Termination 6: RX 7: Termination 8: Termination
24 VDC (±5%), Screw clamp Cross sectional area 2.5 mm²
Screw clamp Cross sectional area 2.5 mm² MBUS+ and MBUS- are shorted each
According to TIA-568A/B
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

2. Installation

2.1 Startup

After connecting the supply voltage the gateway will boot up automatically.
The following calls are made on system startup:
Configuration of the network interface (Ethernet) via DHCP or static configuration
Providing a RAM drive as drive C:
Obtaining the system time via SNTP
Starting the main program
The main program provides the entire functionality including the web interface of the gateway.

2.2 Network configuration

The gateway is configured through the built-in web interface, see 3. Configuration.
Chapter 2
To be able to access the web interface, the IP address of the gateway must be in the same subnet (IP address range) as your local network. If you are unsure about the configuration of your network, please consult your network administrator.
Default network configuration of Anybus M-Bus to Modbus-TCP Gateway
Static IP address 192.168.1.101 Subnet mask 255.255.255.0 Gateway 192.168.1.254
If the default IP address of the gateway (192.168.1.101) is not within your subnet range, you can change the IP address using CHIPtool, a free Windows®-based application which can be downloaded here
If the link above does not work, go to the main Beck IPC GmbH download web page
http://www.beck-ipc.com/en/download/index.asp
Changing the network configuration may restrict accessibility. If the network parameters have been correctly set by an administrator you should not change them.
and search for “CHIPtool”.
.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

2.2.1 CHIPtool

1. Download and install CHIPtool, then start it using the link in the Windows Start Menu.
The first window will show a list of all detected devices in the local network.
Installation 5
2. Right-click on the gateway that you wish to configure, then select context menu.
3. If your network has a DHCP server, check If your network does not have a DHCP server, change the
Gateway settings manually to match your network.
If Use DHCP is checked but the gateway is not able to obtain an IP address dy­namically, it will choose a random IP address in the range 169.254.xxx.xxx.
4. Press
Config to save the IP configuration to the gateway.
Use DHCP for automatic configuration.
IP Address, Network mask and
IP configuration from the
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10
Installation 6
Connection test (ping)
The
Ping command in the CHIPtool context menu can be used for testing the connection. It will open
a Windows command line window and run a standard ping command.
File access (FTP)
The
FTP command in the CHIPtool context menu opens a built-in FTP client, allowing access to the
file system in the gateway. FTP access is restricted to certain users, see also 3.
Configuration.
After logging in, the FTP client will open a file manager window where the left half shows the file system in your computer, and the right half the the file system in the gateway. Right-clicking on a file or folder will open a context menu with file commands.
See also 7.3
FTP connection.
Changes to the files and file system should only be carried out by trained personnel as it may restrict the functionality of the gateway.
Web access (HTTP)
The
HTTP command in the CHIPtool context menu will open the web interface of the gateway in the
default browser.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

3. Configuration

The Anybus M-Bus to Modbus-TCP Gateway is normally configured via the web interface, which gives access to all gateway parameters, meter configuration and services. The gateway can also be configured by uploading configuration files directly to the gateway via FTP, see 7.
Changes to the files and file system should only be carried out by trained personnel as it may restrict the functionality of the gateway.

3.1 The web interface

Auto login
The first time you access the web interface you will be automatically logged in with the default username and password. You can also log in as the default user manually by clicking screen. The default user only has read access.
Advanced features.
Default Login on the login
Chapter 3
If the default user has been disabled in the configuration, you need to enter a valid username and pass­word and click
Default users and passwords
User Password Description
admin admin Administrator user with root access, allows full access to all services
web web Default user for the web interface. Allows write access to the web interface.
ftp ftp User for FTP access to the log directory (C:/log/)
Login. See also 3.1.6 User tab.
If you are logged in with write access you should always log out after finishing the configuration, as only one user with write access can be logged in at a time. If your session stays active, other users will not be able to log in with write access.
(HTTP, FTP, flash update, IP configuration).
If a user with this name and password exists, the web server will automatically log in with these credentials when accessed.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

3.1.1 General tab

The General tab shows an overview of the current gateway configuration..
Configuration 8
Field Description Write access
Gateway name Name of the gateway (displayed in CHIPtool) Yes
Serial number Serial number of the gateway No
DHCP Enable automatic network configuration Yes
IP address
Subnet mask
Gateway address
DNS IP Free Memory Flash (kB) Free storage space on internal memory of the controller No
System date (local) Current local system date Yes
System time (local) Current local system time Yes
SNTP Server Address of time server Yes
a. If DHCP is checked, the network parameter fields will be disabled
a
a
a
a
Reload discards the changes made on the page and reloads the currently active settings.
Save saves the changes and reinitializes the gateway.
IP address of gateway Yes
Subnet mask of gateway Yes
IP address of your local network gateway (not to be confused with the Anybus M-Bus to Modbus-TCP Gateway)
IP address of DNS server Yes
Yes
If the network configuration is changed, the gateway will be available under the new IP address after you click
Save. All established network connections to the gateway will be terminated and logged in users
will be logged out automatically.
Changing the network configuration may restrict accessibility. If the network parameters have been correctly set by an administrator you should not change them.
Date and time are processed internally as UTC time (without time zone shift). The web browser will then convert the date and time according to the local time zone of the computer.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10

3.1.2 Meter tab

The Meter tab displays a list of connected meters and allows you to search, add and edit entries.
Configuration 9
The meter list is initially empty. After connecting one or several meters to the gateway, click start populating the list. The scan is configured on the
See also 5.
The default configuration for each meter is applied immediately after scanning. Additional changes to the configuration must be saved manually.
The list is additively expanded with each scan, and existing meters will not be deleted even if they are not available anymore.
The meter configuration can be changed with the buttons in the bottom area of the page, or by right­clicking a meter entry. Meters entries and meter value entries can – within the limitations of the used interface – be automatically searched, created, deleted or edited.
Meter entries and meter value entries can be selected with a single mouse click. Multiple selections are possible by holding the SHIFT or CTRL keys.
When activating or deactivating a meter, its meter values are automatically enabled or disabled according to the hierarchy. If a meter is inactive, it is activated by enabling one of its meter values.
Acquiring and processing meter data.
Scanning can take a long time, depending on the mode and number of connected meters. The scan process cannot be interrupted.
Configuration tab.
Scan to
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10
Configuration 10
Meter tab fields
Field Description Write access
Interface Interface of meter (M-Bus) No S Entry status – E indicates that value has been edited Yes Serial Serial number of meter No MAN Manufacturer of meter (abbreviation) No Medium Medium of meter (see 5.2.1 Version Version number of meter No Value Meter reading or measurement value No Scale Scale factor (scientific notation) No Unit Unit (see 5.2.1 Cycle Readout interval in seconds (entering 0 means using the general readout interval) Yes User label User specific description of meter or value.
Included in export of CSV data, allows application specific mapping. Description Description of meter value (see 5.2.1 Register Modbus register address, in steps of 10 (see 5.2.4 Active Activates the transfer of meter or meter value via Modbus TCP Yes
Predefined Media ID Values)No
Predefined Media ID Values)No
Yes
Predefined Media ID Values)No
Modbus register layout)Yes
The arrangement of data in the meter list corresponds to the order of the data in the M-Bus protocol. The meaning of the values can thus be compared directly with the data sheet of the meter. It is also pos­sible to assign the meter values to the raw data of the meter (see 3.1.3
Configuration tab).
Timestamps transmitted within the M-Bus protocol are automatically assigned to the other meter values where possible. Therefore, some of these may not appear in the list. The configuration parameter MUC_SHOWTIMESTAMPENTRIES offers the possibility to manually enable the display of all time stamps (see 7.4.1
System configuration file).
If a scan or a change in the meter list is terminated with the error message “Webserver capacity exceed­ed”, see 6.3.6
Webserver capacity error message.
Meters that are not found during a scan, or that do not support an automated scan, can be added man­ually to the meter list using the button See also 5.1.2 Adding meters manually
Add or the context menu entry Add meter.
.
Anybus M-Bus to Modbus-TCP Gateway User Manual Doc: HMSI-27-300, Rev: 1.10
Loading...
+ 33 hidden pages