The information in this document is for informational purposes only. Please inform HMS Industrial Networks of any
inaccuracies or omissions found in this document. HMS Industrial Networks disclaims any responsibility or liability
for any errors that may appear in this document.
HMS Industrial Networks reserves the right to modify its products in line with its policy of continuous product
development. The information in this document shall therefore not be construed as a commitment on the part of
HMS Industrial Networks and is subject to change without notice. HMS Industrial Networks makes no commitment
to update or keep current the information in this document.
The data, examples and illustrations found in this document are included for illustrative purposes and are only
intended to help improve understanding of the functionality and handling of the product. In view of the wide range
of possible applications of the product, and because of the many variables and requirements associated with any
particular implementation, HMS Industrial Networks cannot assume responsibility or liability for actual use based on
the data, examples or illustrations included in this document nor for any damages incurred during installation of the
product. Those responsible for the use of the product must acquire sufficient knowledge in order to ensure that the
product is used correctly in their specific application and that the application meets all performance and safety
requirements including any applicable laws, regulations, codes and standards. Further, HMS Industrial Networks will
under no circumstances assume liability or responsibility for any problems that may arise as a result from the use of
undocumented features or functional side effects found outside the documented scope of the 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.
ATechnical Data ................................................................................................................... 15
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
This page intentionally left blank
Preface3 (16)
1Preface
1.1About This Document
This document describes the functions and general configuration of the Anybus X-gateway.
Documentation and software for the specific fieldbus and Ethernet network interfaces can be
downloaded from www.anybus.com/support.
1.2Document history
Version
1.002004-04-02
2.002014-05-01
2.102014-08-26
3.02017-01-23Major rewrite
3.12018-03-23
4.02019-03-19
Date
Description
First release
Major update
Compliance information update
Minor update
Rebranding update, some graphics updated
Removed certification info (now in datasheet only)
This document now replaces SCM-1202-038.
®
Anybus
X-gateway™User Manual
HMSI-27-262 4.0 en-US
Preface4 (16)
1.3Document 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.
1.4Document-specific Conventions
The following conventions are used specifically in this document:
•Hexadecimal values are written as NNNNh (the suffix h indicates hexadecimal notation).
•16 and 32 bit values are stored in Motorola (big endian) format unless otherwise stated.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Description
2Description
2.1Introduction
The Anybus X-gateway consists of two Anybus fieldbus or Ethernet network interface modules
and an intelligent gateway platform which transfers data between the two networks.
The X-gateway can be configured via a USB port using a Windows-based application, Anybus
Configuration Manager. The on-board network interfaces are normally configured from the
respective networks, using third-party configuration tools.
5 (16)
Fig. 1Anybus X-gateway concept overview
This document describes only the gateway platform. The network interfaces are described in
their own documentation.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Description
2.2Data Exchange
Fig. 2Anybus X-gateway data exchange
The terminology and definitions used for different types of data vary between different network
types. Most networks distinguish between fast, cyclical I/O data, and less time-critical acyclic
data. In the Anybus X-gateway these types of data are generally referred to respectively as I/OData and Parameter Data.
6 (16)
Each of the two network interfaces exchanges data on its network through its own buffer, which
can hold up to 512 bytes of data. The actual amount of data that can be exchanged depends on
the settings in the network interface and may therefore be significantly less than 512 bytes,
which is only the maximum size of the buffer. The default setting is 20 bytes in each direction.
See the documentation for the respective network interface for more information.
In addition to the I/O data the buffers may contain network status information and instructions
for controlling the network interface. Depending on the type of network interface this may be
general diagnostic information (Status Word), a list of the active slaves (Live List), or other
network-specific information. In a network master, part of the buffer may be used to start/stop
data exchange and to reset the gateway (Control Word).
The exchange of data between the buffers is separate from the network data exchange. While
the X-gateway ensures data consistency (where applicable), it does not feature any mechanisms
for synchronisation between the two networks.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Description
2.3Status and Diagnostics
2.3.1Status Word
Runtime status and diagnostic information can be provided through the Status Word, which (if
enabled) takes up the first two bytes of the output area (data to the network).
The Status Word is disabled by default and must be enabled for each network separately through
Anybus Configuration Manager.
(MSB)(LSB)
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9bit 8bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
Gateway Cycle Counter
Gateway Cycle Counter
A 4-bit counter, incremented for each successful gateway cycle (each time data has been
successfully transferred between the network interfaces).
General Error Counter
A 4-bit counter, incremented each time the throughput of the gateway exceeds 100 ms.
General Error Counter
(reserved)
7 (16)
Master ModeInitRun
Master Mode (master configurations only)
If a network interface is confgured as a network master, these bits indicate the current operation
mode of the master to the other network.
The exact definition depends on the network interface type. See the documentation for the
respective interface for more information.
Init
Indicates if the other network interface has been initialized.
Bit set (1) = Other network interface successfully initialized
Bit cleared (0) = Could not initialize other network interface
Run
Indicates the status of the data exchange on the other network.
Bit set (1) = Other network is online and exchanging data
Bit cleared (0) = Other network is offline or not exchanging data
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Description
2.3.2Live List (Master Configurations Only)
The Live List provides the active status of the slaves associated with an on-board network
interface acting as master. The list is assembled by the master interface and forwarded to the
other network each gateway cycle.
The Live List functionality is disabled by default and must be enabled for the master interface
through Anybus Configuration Manager.
The exact definition of each set or cleared bit depends on the network interface used. See the
documentation for the respective interface for more information.
2.3.3Network-specific Status
Some network interfaces may provide additional registers or status lists. See the documentation
for the respective interface for more information.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Description
2.4Controlling the X-gateway from the Network
Some functions in the X-gateway can be controlled from the network by setting the
corresponding bits in the Control Word, which (if enabled) takes up the first two bytes of the
input area (data coming from the network).
The Control Word is disabled by default and must be enabled for each network separately via
Anybus Configuration Manager. When enabled, specific actions may be required in order for the
X-gateway to start exchanging data.
(MSB)(LSB)
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9bit 8bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
Reset
Master Mode (master configurations only)
If a network interface is confgured as a network master, these bits indicate the current operation
mode of the master to the other network.
The exact definition depends on the network interface type. See the documentation for the
respective interface for more information.
Reset
Can be used to reset the Anybus X-gateway.
9 (16)
Master Mode
Bit set (1) = Restart the gateway and re-initialize both network interfaces
Bit cleared (0) = No action
2.4.1Network-specific Controls
Some network interfaces may provide additional methods of controlling the X-gateway from the
network. See the documentation for the respective interface for more information.
2.5Error Handling
If a network goes offline the X-gateway can either freeze (keep the current value) or clear (set to
zero) the data from the network that has gone offline. Which action to take can be selected via
Anybus Configuration Manager.
See also Anybus Configuration Manager, p. 13.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Description
2.6Data Mapping Examples
Usage of the Control Word, Status Word and Live List affect how data is mapped to the network
interfaces in the Anybus X-gateway.
The following generic examples describe typical configurations. The actual representation of data
on the network is highly network-specific and is described in the documentation for the
respective interface.
Typical Slave-to-Slave Gateway Configuration
10 (16)
Fig. 3Slave-to-slave example
This example illustrates how data is mapped in a typical slave-to-slave gateway configuration.
The Control Word and Status Word is here enabled for both networks.
Typical Master-to-Slave Gateway Configuration
Fig. 4Master-to-slave example
This example illustrates how data is mapped in a typical master-to-slave gateway configuration.
The mapping is similar to the slave-to-slave configuration but also features the Live List, which
indicates the active status of the slaves that are attached to the master interface.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Installation11 (16)
3Installation
3.1DIN Rail Mount
The unit is designed to be mounted on a standard DIN rail. No tools are needed.
The unit must be electrically grounded through the DIN rail for EMC compliance. Make
sure that the unit is correctly mounted on the rail and that the rail is properly grounded.
Fig. 5DIN rail mount
Sideways mounting
The unit can alternatively by mounted sideways on the DIN rail. A T10 Torx screwdriver is needed
to reposition the DIN clip.
Fig. 6Sideways mount
1.Remove the sticker covering the screw holes on the right side panel.
2.Unscrew the DIN clip from the back of the unit. Use a T10 Torx screw driver.
3.Refit the DIN clip to the side panel.
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Installation12 (16)
3.2Connectors and Indicators
Fig. 7Connectors
3.2.1Power Connector (X3)
Connecting power with reverse polarity or using the wrong type of power supply may
damage the equipment. Make sure that the power supply is connected correctly and of
the recommended type.
PinSignal
1+24 VDC
2
Power Ground
3.2.2USB Connector (X4)
Pin
1+5 V input
2
3
4
Housing
Signal
USBDM (USB communication)
USBDP (USB communication)
Signal ground
Cable shield
3.2.3LED Indicators
LED
GW StatusGreenCommunication running
Other LED indicators, connectors and configuration switches are described in the documentation
for each respective network interface.
IndicationMeaning
Red
Red, flashingNetwork interface error
Communication error
Anybus®X-gateway™User Manual
HMSI-27-262 4.0 en-US
Anybus Configuration Manager13 (16)
4Anybus Configuration Manager
4.1Introduction
The Anybus X-gateway usually requires only a minimum of configuration during setup, since the
on-board network interfaces are configured from the respective networks. Some parameters in
the gateway may however need to be adjusted to suit specific networks and applications.
The gateway settings are accessed via the USB port of the X-gateway using the Windows-based
application Anybus Configuration Manager.
This section describes only the general features and how to install Anybus Configuration Manager.
The network-specific settings are described in detail in the built-in help system and in the
documentation for each respective interface.
Anybus Configuration Manager requires Windows XP or later.
®
Anybus
X-gateway™User Manual
Fig. 8Anybus Configuration Manager
HMSI-27-262 4.0 en-US
Anybus Configuration Manager14 (16)
4.2Setup
1.Download Anybus Configuration Manager and Anybus Transport Provider from
www.anybus.com/support.
2.Unzip the contents of each archive in a folder on your computer and double-click on the
setup executable, then follow the instructions in the installation wizard.
3.Connect a USB cable between the computer and the USB port on the X-gateway.
4.Start Anybus Configuration Manager and select Online > Select Connection.
Fig. 9Select a connection
5.Select the connection to use for the X-gateway and click on OK. The USB connection will be
named Anybus Serial Connection.
There is normally no need to configure the connection unless you are connected to more
than one X-gateway. See the built-in help for more information.
6.Select Online > Connect to open the connection to the X-gateway.
4.3Configuration
Once Anybus Configuration Manager has established a connection to the X-gateway,
configurations from the unit can be retrieved, viewed and modified.
1.Select Online > Upload Configuration to retrieve the configuration from the X-gateway.
2.The configuration can now be viewed and modified as required.
3.After making changes, select Online > Download Configuration to apply the modified
configuration to the X-gateway.
For more information about the various functions and settings, see the built-in help in Anybus
Configuration Manager and the documentation for each network interface.