The web interface ..................................................................................................................................... 7
General tab...................................................................................................................................... 8
Meter tab......................................................................................................................................... 9
Function codes........................................................................................................................................18
Data format ............................................................................................................................................. 19
Meter data format ................................................................................................................................... 22
Predefined Media ID Values ......................................................................................................... 22
Predefined measurement value types................................................................................................. 23
Predefined units ............................................................................................................................. 25
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
Anybus M-Bus to Modbus-TCP Gateway User ManualDoc: 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
DocumentAuthor
--
P.2 Document History
Revision List
RevisionDateAuthor(s) Chapter(s) Description
1.002015-02-26 ThNAllFirst official release
1.102016-04-08 ThN1, 6, AAdded 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 systemMenu command or button in graphical user interface.
MBUS_MAXRETRY Parameter entry in a source file.
Anybus M-Bus to Modbus-TCP Gateway User ManualDoc: HMSI-27-300, Rev: 1.10
P.3.3 Glossary
AbbreviationExplanation
CSVCharacter-Separated Values
DNSDomain Name System
DIDigital Input
DODigital Output
DINDeutsches Institut für Normung, German standardization body
DLDEDirect Local Data Exchange (EN 62056-21, IEC 1107)
DLDERSDLDE communication via RS-232 or RS-485
DLMSGateway Language Message Specification
I/OIn- / Output
ESDElectroStatic Discharge
FNNForum Netztechnik/Netzbetrieb
Forum for network technology / network operation (committee of VDE)
FTPFile-Transfer Protocol
GPRSGeneral Packet Radio Service
GSMGlobal System for Mobile Communications
HTTPHypertext Transfer Protocol
IDIdentification, Identifier
IPInternet Protocol or. IP address
LEDLight-Emitting Diode
M-BusMeter-Bus (EN 13757-2/3)
MACMedium Access Control or MAC address
MUCMulti Utility Communication, MUC-Controller
OEMOriginal Equipment Manufacturer
PEMPrivacy Enhanced Mail
PPPPoint-to-Point Protocol
PPPoEPoint-to-Point Protocol over Ethernet
RFCRequests For Comments
RSSIReceived Signal Strength Indicator
RTCReal Time Clock
RTOSReal Time Operating System
S0S0 interface (pulse interface, EN 62053-31)
SIMSubscriber Identity Module
SMLSmart Message Language
SMTPSimple Mail Transfer Protocol
SNTPSimple Network Time Protocol
TCPTransmission Control Protocol
TLSTransport Layer Security
UTCCoordinated Universal Time
VDEVerband der Elektrotechnik Elektronik Informationstechnik e.V.
(association for electrical, electronic & information technologies)
WANWide Area Network
wM-BusWireless Meter-Bus (EN 13757-3/4)
XMLeXtensible 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 ManualDoc: 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 describes 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 general. 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 commitment 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 described 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 product. Failure to observe this may cause damage to the product.
Anybus M-Bus to Modbus-TCP Gateway User ManualDoc: 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 interface 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 system (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 implemented. It handles the complete data handling on the Anybus M-Bus to Modbus-TCP Gateway compliant 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 initial 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 configuration 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 ManualDoc: 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:
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 ManualDoc: 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 address192.168.1.101
Subnet mask255.255.255.0
Gateway192.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 ManualDoc: 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 dynamically, 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 ManualDoc: 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 ManualDoc: 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 password and click
Default users and passwords
UserPasswordDescription
adminadminAdministrator user with root access, allows full access to all services
webwebDefault user for the web interface. Allows write access to the web interface.
ftpftpUser 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 ManualDoc: HMSI-27-300, Rev: 1.10
3.1.1 General tab
The General tab shows an overview of the current gateway configuration..
Configuration 8
FieldDescriptionWrite access
Gateway nameName of the gateway (displayed in CHIPtool)Yes
Serial numberSerial number of the gatewayNo
DHCPEnable automatic network configuration Yes
IP address
Subnet mask
Gateway address
DNS IP
Free Memory Flash (kB)Free storage space on internal memory of the controllerNo
System date (local)Current local system dateYes
System time (local)Current local system timeYes
SNTP ServerAddress of time serverYes
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 ManualDoc: 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 rightclicking 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 ManualDoc: HMSI-27-300, Rev: 1.10
Configuration 10
Meter tab fields
FieldDescriptionWrite access
InterfaceInterface of meter (M-Bus)No
SEntry status – E indicates that value has been editedYes
Serial Serial number of meterNo
MANManufacturer of meter (abbreviation)No
MediumMedium of meter (see 5.2.1
VersionVersion number of meterNo
ValueMeter reading or measurement valueNo
ScaleScale factor (scientific notation)No
UnitUnit (see 5.2.1
CycleReadout interval in seconds (entering 0 means using the general readout interval)Yes
User labelUser specific description of meter or value.
Included in export of CSV data, allows application specific mapping.
DescriptionDescription of meter value (see 5.2.1
RegisterModbus register address, in steps of 10 (see 5.2.4
ActiveActivates the transfer of meter or meter value via Modbus TCPYes
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 possible 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 exceeded”, 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 manually 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 ManualDoc: HMSI-27-300, Rev: 1.10
Loading...
+ 33 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.