Anybus Modbus to BACnet Gateway User manual

Modbus to BACnet Gateway
USER MANUAL
SCM-1202-049 1.0 ENGLISH

Important User Information
Liability
Every care has been taken in the preparation of this document. 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 device must ensure that all the
necessary steps have been taken to verify that the applications meet all performance and safety requirements in-
cluding 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 as-
sume 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 USA and other countries.
Anybus®is a registered trademark of HMS Industrial Networks AB. All other trademarks mentioned in this document
are the property of their respective holders.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Modbus to BACnet Gateway User Manual SCM-1202-049 1.0
Table of Contents Page
1 Preface ............................................................................................................................... 3
1.1 About This Document.....................................................................................................3
1.2 Document history...........................................................................................................3
1.3 Document Conventions ..................................................................................................4
2 Safety Instructions.......................................................................................................... 5
3 Product Description ....................................................................................................... 6
3.1 General.........................................................................................................................6
3.2 Operation ......................................................................................................................6
4 Installation ........................................................................................................................ 7
4.1 Overview.......................................................................................................................7
4.2 Mechanical Installation .................................................................................................10
4.3 Connecting the BACnet interface .................................................................................. 11
4.4 Connecting the Modbus interface .................................................................................. 11
4.5 Connecting the Power Supply .......................................................................................12
4.6 Configuration Connections ...........................................................................................12
5 Anybus Configuration Manager (MAPS) ................................................................. 13
5.1 Installation...................................................................................................................13
5.2 Connection Tab............................................................................................................14
5.3 Configuration Tab.........................................................................................................16
5.4 Signals Tab .................................................................................................................31
5.5 Receive/Send Tab........................................................................................................34
5.6 Diagnostic Tab.............................................................................................................35
A BACnet Interoperability Building Blocks................................................................ 39
B BACnet Service Types ................................................................................................. 42
C BACnet Objects ............................................................................................................. 43
D BACnet PICS .................................................................................................................. 54
E Technical Data................................................................................................................ 55

This page intentionally left blank

Preface 3 (56)
1 Preface
1.1 About This Document
This document describes how to configure and use the Modbus to BACnet Gateway.
The instructions in this document require a basic knowledge of BACnet and Modbus technolo-
gies and terminology.
For additional related documentation and file downloads, please visit www.anybus.com/support.
1.2 Document history
Version Date Description
1.00 2017-06-15 First release
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Preface 4 (56)
1.3 Document Conventions
Ordered lists are used for instructions that must be carried out in sequence:
1. First do this
2. Then do this
Unordered (bulleted) lists are used for:
• Itemized information
• Instructions that can be carried out in any order
...and for action-result type instructions:
► This action...
➨leads to this result
Bold typeface indicates interactive parts such as connectors and switches on the hardware, or
menus and buttons in a graphical user interface.
Monospaced text is used to indicate program code and other
kinds of data input/output such as configuration scripts.
This is a cross-reference within this document: Document Conventions, p. 4
This is an external link (URL): www.hms-networks.com
This is additional information which may facilitate installation and/or operation.
This instruction must be followed to avoid a risk of reduced functionality and/or
damage to the equipment, or to avoid a network security risk.
Caution
This instruction must be followed to avoid a risk of personal injury.
WARNING
This instruction must be followed to avoid a risk of death or serious injury.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Safety Instructions 5 (56)
2 Safety Instructions
This product contains parts that can be damaged by electrostatic discharge (ESD).
Use ESD protective measures to avoid equipment damage.
Connecting power with reverse polarity or using the wrong type of power supply
may damage the equipment. Make sure that the power supply is correctly
connected and of the recommended type.
The Modbus to BACnet Gateway should only be installed by adequately trained personnel and
according to applicable safety regulations.
The unit should be mounted on a standard DIN rail or screw-mounted onto a flat surface inside
a properly grounded metallic enclosure. The unit should not be mounted outdoors or exposed
to direct sunlight, water, high humidity or dust.
Make sure that you have all the necessary information about the capabilities and restrictions of
your local network environment before installation.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Product Description 6 (56)
3 Product Description
3.1 General
The Anybus Modbus to BACnet Gateway is intended for integration of Modbus RTU and Mod-
bus TCP installations into BACnet MSTP or BACnet IP enabled monitoring and control systems.
The gateway acts as a BACnet/IP Server or BACnet MSTP device, allowing other BACnet devi-
ces to perform subscription (COV) requests and reads/writes to its internal points.
On the Modbus side the gateway emulates a Modbus RTU Master device and/or a Modbus
TCP Client device. The Modbus slave device(s) are read by the gateway using automatic con-
tinuous polling.
Configuration is carried out using Anybus Configuration Manager (MAPS) which can be down-
loaded from www.anybus.com/support..
3.2 Operation
After the startup process has completed, the gateway will continuously read data points from
the connected Modbus TCP Server and/or Modbus RTU Slave devices and update these val-
ues in its memory.
On the BACnet side, the gateway will listen for any subscription (COV) request, serve any poll-
ing request, and/or perform any writing request of the internal points received from the BACnet
system. The values received from BACnet are immediately written in the associated register of
the corresponding Modbus TCP Server or Modbus RTU Slave device.
From the BACnet point of view, the whole Modbus system is seen as a single BACnet device
containing multiple objects. Every register in the Modbus slave devices will be associated with a
specific BACnet object. When a new value is read from Modbus for a given register, the corre-
sponding value will be updated in the memory of the gateway. If this signal is associated with an
active BACnet subscription, the new value will also be sent to the subscribing BACnet device(s).
If a device is not responding during the continuous polling of Modbus devices, a virtual signal in-
side the gateway will be activated indicating a communication error with the device. These vir-
tual signals indicating real-time communication status are accessible from BACnet in the same
way as other data points.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Installation 7 (56)
4 Installation
4.1 Overview
Port B
USB
EIA 232 B1 B2 B3
SW B
SW A Ethernet
Port A
A1 A2 A3 A4
Power
- +
Run / Error
Eth Link/Spd
Port A TX/RX
Port B TX/RX
Button A
Button B
Console
Fig. 1 Front panel
Read the Safety Instructions before starting installation.
Installation Procedure
These are the main steps when installing and setting up the Modbus to BACnet Gateway. Each
step will be described in the following sections of this document.
1. Mount the gateway on a DIN rail or using the screw mounting clips.
2. Connect the BACnet and Modbus serial and/or Ethernet interfaces.
3. Connect a computer for configuration to the Console USB port or to the Ethernet network.
4. Connect the power supply and power on the unit.
5. Configure the unit using Anybus Configuration Manager (MAPS).
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Installation 8 (56)
Connectors
See Technical Data, p. 55 regarding terminal wiring and power supply requirements.
Power Connector (3-pole terminal block)
Pin Function
-+
Protective Earth
-Power Ground
+24 VAC or +9 to +36 VDC
Port A / Modbus RTU EIA-485 (2 x 2-pole terminal blocks)
Pin Function
A1 A2 A3 A4
A1, A2 Signal Ground
A3 EIA-485 Line A (+)
A4 EIA-485 Line B (-)
Port B / BACnet MSTP (3-pole terminal block)
Pin Function
B1 B2 B3
B1 EIA-485 Line B (-)
B2 EIA-485 Line A (+)
B3 Signal Ground
Ethernet Port (RJ-45)
Pin Function
1 8
1 TD+
2 TD-
3 RD+
6 RD-
4, 5, 7, 8 (reserved)
USB Port (USB Type A)
Can be used to connect a USB flash storage device for storing logfiles.
HDD drives are not supported (max. 150 mA load).
Console Port (USB Type Mini-B)
Used to connect the gateway to a computer for configuration.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Installation 9 (56)
LED Indicators
Run / Error
Eth Link/Spd
Port A TX/RX
Port B TX/RX
Button A
Button B
Console
Fig. 2 Overview
LED Indication Meaning
Run Green Normal operation
Error Red Operating error
Eth Link Green
Yellow
Flashing
100 Mbit/s Ethernet
10 Mbit/s Ethernet
Ethernet traffic
Eth Spd Green
Off
Flashing
Full-duplex Ethernet mode
Half-duplex Ethernet mode
Packet collision
Port A Tx Green Transmitting on Port A
Port A Rx Green Receiving on Port A
Port B Tx Green Transmitting on Port B
Port B Rx Green Receiving on Port B
Button A/B (reserved for future use)
DIP Switches
The DIP switches SW A and SW B control internal termination and polarization for ports A / B.
Switch Function
1 ON = 120 Ω termination enabled
2, 3 ON = line polarization enabled
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Installation 10 (56)
4.2 Mechanical Installation
The unit should be mounted on a standard DIN rail or screw-mounted onto a flat surface inside
a properly grounded metallic enclosure. The unit should not be mounted outdoors or exposed
to direct sunlight, water, high humidity or dust.
Make sure that there is enough space for the connectors and that the LED indicators and con-
figuration switches are accessible after the unit is mounted.
DIN Rail Mount
Fig. 3 DIN rail mounting option
Mounting
1. Hook the unit onto the upper lip of the rail.
2. Press the unit gently towards the rail until it snaps into place.
Removing
1. Pull the tab at the bottom of the unit gently downwards.
2. Pull the bottom end free and lift the unit from the rail.
Wall Mount
Fig. 4 Wall mounting option
Push the three mounting clips on the back of the unit from the original position to the outer posi-
tion. A click indicates when the clip is locked in the outer position.
The holes in the mounting clips can now be used for screw mounting.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Installation 11 (56)
4.3 Connecting the BACnet interface
BACnet/IP
Connect the BACnet/IP network to the Ethernet port on the gateway using a straight UTP/FTP
CAT5e or CAT6 Ethernet cable.
If there is no response from the network, check that the devices on the network are connected
and operating and that traffic to/from the gateway is not restricted. Contact your network admin-
istrator if in doubt.
BACnet MSTP
Connect the EIA-485 bus to Port B on the gateway.
Observe the correct polarity of the connections, see Connectors, p. 8.
If the gateway is installed at one of the ends of the serial bus, the internal termination switch for
the port (DIP switch 1) should be switched on. See DIP Switches, p. 9.
Do not use an external termination resistor when internal termination is enabled.
4.4 Connecting the Modbus interface
Modbus TCP
Connect the network to the Ethernet port on the gateway using a straight UTP/FTP CAT5e or
CAT6 Ethernet cable.
If there is no response from the network, check that the devices on the network are connected
and operating correctly, and that traffic to/from the gateway is not restricted. Contact your net-
work administrator if in doubt.
Modbus RTU
Connect the EIA-485 bus to Port A on the gateway, and/or Port B if not using BACnet MSTP.
Observe the correct polarity of the connections, see Connectors, p. 8.
If the gateway is installed at one of the ends of the Modbus serial bus, the internal termination
switch for the port (DIP switch 1) should be switched on. See DIP Switches, p. 9.
Do not use an external termination resistor when internal termination is enabled.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Installation 12 (56)
4.5 Connecting the Power Supply
Connect a suitable power supply to the Power terminal. See Technical Data, p. 55 regarding
the power supply requirements.
Observe the correct polarity of the connections, see Connectors, p. 8.
4.6 Configuration Connections
Connect the computer to be used for configuration to the Console port on the front panel of the
gateway using a standard USB type B cable.
The gateway can also communicate with the computer over Ethernet if they are connected to
the same Ethernet network subnet. The gateway uses DHCP as default.
The USB port next to the EIA-232 serial port is only intended for making file backups to a USB
flash drive and cannot be used for configuration.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Anybus Configuration Manager (MAPS) 13 (56)
5 Anybus Configuration Manager (MAPS)
Anybus Configuration Manager (MAPS) is a free Windows®-based software tool which is used
to monitor and configure the AnybusModbus to BACnet Gateway.
5.1 Installation
Make sure that you have all the necessary information about the capabilities and restrictions of
your local network environment before installing and using this software.
1. Download Anybus Configuration Manager (MAPS) from www.anybus.com/support.
2. Double-click on the self-extracting archive to extract the installation files to your computer.
3. Double-click on the installer executable and follow the instructions in the installation wizard.
You will be prompted for a location for the installation on your hard disk. Use the default lo-
cation if unsure.
Fig. 5 Installation wizard
4. Open Anybus Configuration Manager (MAPS) from the Start menu or by double-clicking on
the icon on your desktop.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Anybus Configuration Manager (MAPS) 14 (56)
5.2 Connection Tab
Anybus Configuration Manager (MAPS) can communicate with the gateway either over an
Ethernet network or directly via the Console USB port. Projects can be created when the gate-
way is offline and then downloaded to the unit once a connection has been established.
5.2.1 Connection Mode
IP
When this option is selected the computer used for configuration must be connected to the
same Ethernet network subnet as the gateway. DHCP addressing is used as default.
A password is required for IP connection. The default password is “admin”.
See Configuration Tab, p. 16 on how to change the password and the IP addressing mode.
Fig. 6 IP connection
The software will scan the local Ethernet network for devices that match the current configura-
tion. Compatible devices will be listed in black, incompatible devices in red.
Select the gateway and click on the Connect button or on the
symbol in the footer bar. If the
connection is successful the footer bar will change color and indicate that the gateway is
connected.
If the gateway does not appear in the list:
► Check the network connections on the gateway and the computer.
► Check that the gateway is powered on.
► Check that the firewall settings allow communication with the gateway. Contact your net-
work administrator if necessary.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Anybus Configuration Manager (MAPS) 15 (56)
USB Port
Select this option if the computer used for configuration is connected directly to the gateway via
the Console USB port. All the available serial (COM) ports on the computer will be listed.
Fig. 7 USB port connection (COM port numbers may be different on your computer)
Select the COM port used by the USB interface and click on the Connect button or on the
symbol in the footer bar. If the connection is successful the footer bar will change color and indi-
cate that the gateway is connected.
Fig. 8 Footer bar
If the gateway does not appear in the list:
► Check the USB connections on the gateway and computer.
► Check that the gateway is powered on.
► Open the Windows Device Manager to check for issues with the COM ports.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Anybus Configuration Manager (MAPS) 16 (56)
5.3 Configuration Tab
Fig. 9 Configuration tab
5.3.1 General
General Configuration
Gateway Name Used for easy identification of the unit in the project.
This entry is only informational and can be edited freely.
Project Description A brief description of the project.
This entry is only informational and can be edited freely.
Connection
Enable DHCP Enables/disables dynamic IP addressing. DHCP is enabled as default.
IP Static IP address for the unit when not using DHCP.
Netmask Subnet mask when using static IP
Gateway Default gateway when using static IP
Password The password when connecting to the gateway via Ethernet.
The default password is “admin”. To change the password, enter a new password
in the text box and download the configuration to the gateway.
The IP address, netmask and default gateway will also be used for BACnet/IP communication.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Anybus Configuration Manager (MAPS) 17 (56)
Conversions
Edit Conversions Allows you to define customized unit conversions and value filters to be used in
the integration project.
See also Signals Tab, p. 31.
Fig. 10 Conversions Manager
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0

Anybus Configuration Manager (MAPS) 18 (56)
5.3.2 BACnet Server
This section contains settings related to BACnet communication.
Fig. 11 BACnet configuration
General Configuration
Device Name The BACnet Device Name property. Can be modified here and/or from BACnet.
Device Instance The BACnet Device Object Instance property for this device. This is a unique ID
for the BACnet device inside a single BACnet network segment.
Password A password may be required to allow some BACnet commands. If not required or
unsure, leave as default (admin).
Gateway Mode
Mode Select BACnet/IP or BACnet MSTP communication.
BACnet/IP settings:
UDP Port The UDP port to use for BACnet. Default = 47808 (BAC0 in hex notation)
Network Role If you are not familiar with BACnet it is recommended to leave this to Disabled.
•Disabled: The gateway will not provide any special service regarding
network communication and settings.
•Foreign Device: The gateway will act as a foreign device from the BACnet
network point of view.
•BBMD: The gateway will act as a BBMD on the BACnet network.
BACnet MSTP settings:
Max. Masters The maximum number of supported BACnet MSTP masters.
Max. Info Frames The maximum number of Info frames.
Baudrate The BACnet MSTP communication speed.
MAC Address The BACnet MSTP MAC address for the gateway.
Modbus to BACnet Gateway User Manual SCM-1202-049 1.0
Table of contents
Other Anybus Gateway manuals

Anybus
Anybus RS-232 User manual

Anybus
Anybus PROFINET IRT 2.32 User manual

Anybus
Anybus Communicator PROFINET IRT User manual

Anybus
Anybus Communicator Modbus plus User manual

Anybus
Anybus X-gateway User manual

Anybus
Anybus Communicator CAN PROFINET IRT 2.32 User manual

Anybus
Anybus X-gateway Assembly instructions

Anybus
Anybus AB7702 User manual