Page 2
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.
Functional Overview ........................ 11 Data Exchange........................... 12 Control/Status Word........................ 13 Live List ............................14 Chapter 3 About the Anybus X-gateway Modbus-TCP ........15 External View ..........................15 Mounting the X-gateway ......................16 DIN-rail Mounting ......................16 Wall Mounting......................... 17 Status LEDs ..........................18 USB Connector..........................
Preface P. About This Document For more information, documentation etc., please visit the HMS website, www.anybus.com. P.1 Related Documents Document Author Modbus Application Protocol Specification V1.1B Modbus Organization P.2 Document History Summary of Recent Changes ( ... 1.00) Change Page(s)
About This Document P-6 P.3 Conventions & Terminology The following conventions are used throughout this manual: • Numbered lists provide sequential steps • Bulleted lists provide information, not procedural steps • The terms ‘Anybus’, ‘X-gateway’ or ‘module’ refers to the Anybus X-gateway module •...
Chapter 1 1. Getting Started The purpose of this chapter is to give a short description on how to install the X-gateway and get it up and running, transferring I/O data between Network 1 (the controlling network, where the X-gateway acts as a server) and Network 2 (the controlled network, where the X-gateway acts as a client).
2. Anybus X-gateway for Modbus-TCP - Modbus-TCP 2.1 Introduction The Anybus X-gateway Modbus-TCP is a series of network gateways, used to provide a seamless con- nection between a Modbus-TCP network and a controlling network. This particular product connects a Modbus-TCP network to another Modbus-TCP network. In order to avoid confusion, the controlling network will be called Network 1, and the network that is controlled will be called Network 2.
Modbus-TCP client of Network 1. An application note, describing how to configure an Anybus Modbus-TCP server interface with RS Logix and RS Networx, is available on the support pages for the Anybus X-gateway Modbus-TCP - Modbus-TCP module at ‘www.anybus.com’.
Anybus X-gateway for Modbus-TCP - Modbus-TCP 11 2.4 Functional Overview Internally, the X-gateway consists of an intelligent gateway platform: an Anybus Modbus-TCP client in- terface for Network 2 and an Anybus Modbus-TCP server interface for Network 1. The two interfaces are interconnected through the intelligent gateway platform, which basically forwards data from one net- work to the other and vice versa as shown below.
Anybus X-gateway for Modbus-TCP - Modbus-TCP 12 2.5 Data Exchange Each of the two network interfaces exchanges data on its network through two buffers. The X-gateway forwards the data between these buffers as shown below. Note that this process is separated from the network data exchange.
Anybus X-gateway for Modbus-TCP - Modbus-TCP 13 2.6 Control/Status Word The Control/Status word is optional and disabled by default. It can be enabled/disabled when config- uring the Modbus-TCP network via the configuration web pages. See “Modbus-TCP (Network 1 Server Interface)” on page 35. The Control word is a 16-bit word (uint16) used by Network 1 to control the Anybus X-gateway and subsequently also Network 2.
Anybus X-gateway for Modbus-TCP - Modbus-TCP 14 2.7 Live List The live list features the possibility for Network 1 to continuously receive an I/O mapped list containing the status of every transaction on Network 2. It is disabled by default, but can be enabled/disabled when configuring the Modbus-TCP network settings.
Chapter 3 3. About the Anybus X-gateway Modbus-TCP 3.1 External View • A: Power Connector This connector is used to apply power to the X- gateway. It is also possible to connect protective earth (PE) to the power connector. See “Power Connector”...
About the Anybus X-gateway Modbus-TCP 16 3.2 Mounting the X-gateway The Anybus X-gateway can be physically installed either by mounting it onto a DIN-rail or, if installed in areas exposed to vibration, by mounting it on a wall for more stability.
About the Anybus X-gateway Modbus-TCP 17 3.2.2 Wall Mounting Use the wall mounting option if there is a need to place the X-gateway in an environment exposed to vibration. This way of mounting the module offers more stability than the traditional DIN-rail mount- ing.
About the Anybus X-gateway Modbus-TCP 18 3.3 Status LEDs Note: A test sequence is performed on all LEDs during startup. X-gateway and Network 2 LEDs LED no State Status 1 - Gateway Status Power off (GW) Alternating red/green Missing configuration...
About the Anybus X-gateway Modbus-TCP 19 3.4 USB Connector At the upper front of the module there is a USB connector used for firmware upgrades. Pin no. Description +5V Input USBDM (USB communication signals) USBDP (USB communication signals) Signal GND...
About the Anybus X-gateway Modbus-TCP 20 3.7 Power Connector Pin no. Description +24V DC PE (Protective Earth) 1 2 3 Notes: • Use 60/75 or 75×C copper (CU) wire only. • The terminal tightening torque must be between 5... 7 lbs-in (0.5... 0.8 Nm) See also...
Chapter 4 4. SD Card Functionality Using an SD card with the X-gateway adds the following features: • Easy backup. Every applied change in the configuration will automatically be saved to the X-gateway and the SD card. See “Easy Backup” on page 22. •...
SD Card Functionality 22 4.3 Easy Backup Every time a configuration change is applied in the X-gateway Management section using the configu- ration web pages, the configuration is saved both in the memory of the X-gateway and on the SD card. This is the easiest way of keeping a continuously updated configuration backup.
SD Card Functionality 23 4.6 SD Card Synchronization Failure In the event of applying a configuration or restoring a configuration from a backup file, the SD card synchronization can fail. There are many possible reasons for an SD card write failure: •...
The Modbus-TCP protocol is an implementation of the standard Modbus protocol, running on top of TCP/IP. The same function codes and addressing model are used. When configuring transactions for Network 2, the Anybus X-gateway Modbus-TCP supports a subset of the functions described in the Modbus-TCP specification.
Chapter 7 7. Network Configuration 7.1 General Information The Anybus X-gateway features built-in web pages for easy configuration. The web pages are all de- scribed in this chapter. To access the web configuration pages, the following system requirements need to be met: •...
If a list of connected devices does not show automatically, press the scan button. Identify the IP address of the X-gateway by its type ‘Anybus X-gateway Modbus-TCP’ or by its MAC address. The MAC ad- dress of the X-gateway can be found at the bottom of the module.
Network Configuration 28 7.3 Overview The configuration and status web pages are divided into three sections: 1. Headline Section Shows the Anybus logo and the name of the product. 2. Navigation Section All functionality is easily accessed from the different links. Every link and its corresponding func- tionality will be explained later in this chapter.
Network Configuration 29 7.3.1 Home The introductory window of the configuration and status web pages presents important error tracking information, as well as general information and statistics. Operation Mode The table below shows the correlation between the operation modes of Network 1 and Network 2. Modbus-TCP (Network 1) I/O data exchanged No I/O data exchanged...
Network Configuration 30 7.4 Configuration Please note that changes made to the configuration will not be used by the X-gateway until they have been applied and saved. See “X-gateway Management” on page 37. 7.4.1 Authentication Authentication can be enabled or disabled. If enabled, it is possible to set a username and password to protect the configuration.
Network Configuration 31 7.4.2 Modbus Client (Network 2) Configuration of the client side of Network 2. On this side, the X-gateway will act as a Modbus-TCP client. Available IP Configuration Settings Item Description IP address If not set by DHCP (or HICP), set these values manually (Disable DHCP to make the fields editable) Subnet mask Router IP address...
Network Configuration 32 7.4.3 Modbus Servers The configuration of the servers on the Modbus-TCP network is made here. The X-gateway can handle up to 64 different servers, and a maximum of 64 transactions distributed among those servers. It is pos- sible to map up to 256 bytes of data in either direction, including control/status word and live list.
Page 33
Network Configuration 33 Add Transactions Transactions represent the data that is read from/written to the servers of the Modbus-TCP network. The global configuration limits box keeps track of the number of added transactions, the current mini- mum allowed scan time, and the current amount of mapped process data (input and output data). To add transactions, find the server in the server list and click ‘Transactions’.
Page 34
Network Configuration 34 When finished editing the transaction, click ‘Ok’. All data resulting from configured transactions will be mapped to the internal memory of the X-gateway. Read transactions will be mapped to the input area, and write transactions will be mapped to the output area. See “Mapping Overview” on page 38 for more information.
Network Configuration 35 7.4.4 Modbus-TCP (Network 1 Server Interface) Configuration of the Modbus-TCP server interface of the X-gateway. What is shown is the currently stored configuration, provided that all changes are saved and applied to the X-gateway. The column ‘Actual’ presents the settings that are currently used. The TCP/IP settings (IP address, Sub- net mask and Gateway) can be changed by the Modbus-TCP network (Network 1) during runtime and will then override the chosen values in the configuration web pages.
Page 36
Network Configuration 36 Available settings for the Modbus-TCP network. Setting Description IP address If not set by Network 1 or DHCP, set these values manually (Disable DHCP to make the fields editable) Subnet mask Gateway DHCP Enabled by default. When enabled, the X-gateway can obtain the TCP/IP settings dynamically from the DHCP server of the Modbus-TCP network (Network 1) Modbus connection timeout This value specifies how long a Modbus-TCP connection may be idle before it is closed...
Network Configuration 37 7.5 Tools 7.5.1 X-gateway Management Apply changes Permanently store changes made to the configuration and reboot, using the new configuration. No changes made in the configuration will be permanently stored or used by the X-gateway until they are applied by clicking ‘Apply’.
Network Configuration 38 7.5.3 Mapping Overview This page provides a graphical representation of the input and output memory buffers of the X-gateway. It shows the mapping of all I/O data resulting from the currently applied configuration. All data from Network 1 to Network 2 (write data) will be mapped into the output area. In the same way all data from Network 2 (read data) will be mapped into the input area to be accessed from Network 1.
Network Configuration 39 7.5.4 Transaction Monitor The transaction monitor interface presents a detailed list of all transaction units currently operating on the Modbus-TCP network. The data is automatically updated, and it is possible to choose to view the data either in decimal or in hexadecimal values. The time that has passed since the last update is visible at the top of the transaction list.
In order to achieve proper EMC behavior, the product must be connected to protective earth (PE) via the DIN-rail connector. If the DIN-rail cannot be used, PE must be connected to the power connector. HMS Industrial Networks does not guarantee proper EMC behavior unless these PE requirements are fulfilled.
Technical Specification 41 A.4 EMC (CE) Compliance EMC compliance testing has been conducted according to the Electromagnetic Compatibility Directive 2004/108/EC. For more information please consult the EMC compliance document, see product/sup- port pages for Anybus X-gateway for Modbus-TCP - Modbus-TCP at www.anybus.com. Anybus X-gateway for Modbus-TCP - Modbus-TCP Doc.Id.
Anybus products that are connected to the network. The list can be refreshed by clicking ‘scan’. The X-gateway is identified in the list by its type ‘Anybus X-gateway Modbus-TCP’ or by its MAC address (found at the bottom of the module).
Appendix C C. Copyright Notices This product includes software developed by Carnegie Mellon, the Massachusetts Institute of Technology, the Uni- versity of California, and RSA Data Security: ***************************************************************************** Copyright 1986 by Carnegie Mellon. ***************************************************************************** Copyright 1983,1984,1985 by the Massachusetts Institute of Technology ***************************************************************************** Copyright (c) 1988 Stephen Deering.
Need help?
Do you have a question about the Anybus X-gateway Modbus-TCP and is the answer not in the manual?
Questions and answers