Sales and Support ................................................................................................................................. P-3
Chapter 1About the Anybus® Modbus TCP/RTU Gateway
General Information .............................................................................................................................1-1
Serial Interfaces.....................................................................................................................................A-1
Power Supply ........................................................................................................................................A-1
CE Certification ..........................................................................................................................A-2
UL Certification ..........................................................................................................................A-2
Doc.Id. HMSI-168-77
About This Document
How To Use This Document
This document is intended to provide a good understanding of the functionality offered by the Anybus®
Modbus-TCP/RTU Gateway.
The reader of this document is expected to be familiar with industrial networking systems, and communication systems in general.
For more information, documentation etc., please visit the HMS web site, ‘www.anybus.com’.
Important User Information
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.
Preface
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 application meets all performance and safety requirements including any applicable laws, regulations, codes, and standards.
Anybus® is a registered trademark of HMS Industrial Networks AB. All other trademarks are the property of their respective holders.
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 cannot assume responsibility or liability for actual use based on these examples and illustrations.
Warning:This is a class A product. In a domestic environment this product may cause radio interfer-
ence 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® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Document History
Summary of Recent Changes (2.02 ... 2.03)
ChangePage(s)
Changed maxed supply voltage level from 32 V to 28 V1-3, A-1
Changed UL file numberA-2
Revision List
RevisionDateAuthorChapterDescription
.....1.13In Microsoft Word
2.002009-10-09KeLAllNew look
2.012011-05-13KeLP, AMiinor updates
2.022012-03-12KeLAMiinor update
2.032012-09-21KaD1, AMinor updates
About This Document P-2
Conventions & Terminology
The following conventions are used throughout this document:
•Numbered lists provide sequential steps
•Bulleted lists provide information, not procedural steps
•The terms ‘Anybus’, ‘gateway’ or ‘module’ refers to the Anybus® Modbus-TCP/RTU Gateway.
•The term ‘host’ refers to a host device on a TCP/IP network.
•Hexadecimal values are written in the format NNNNh, where NNNN is the hexadecimal value.
The Anybus® Modbus-TCP/RTU Gateway can be used to connect a Modbus/TCP master to one or
several Modbus/RTU slaves. The transparent Modbus TCP/RTU gateway will act as a Modbus/TCP
slave on an Ethernet network, and transform the queries to the Serial Modbus network, and send back
the Modbus/RTU slave response to the Modbus/TCP master.
The Anybus Modbus Gateway supports RS-232 through a 9-pole DSUB or RS-485 through the screw
terminal block on the other side of the module. It supports 10/100Mbps Ethernet through a standard
Ethernet connector (RJ-45). It can be configured via a web-interface or by using the Anybys IPConfig
utility. It also contains a Flash memory for easy software updates.
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Mounting
A - Snap on
B - Snap off
MAC ID
About the Anybus® Modbus-TCP/RTU Gateway 1-2
1. Snap the Anybus module on to the DIN-rail (as described in picture A above).
2. Connect the Ethernet cable to the RJ45 connector.
3. Connect the Modbus/RTU network to the DSUB connector (RS-232) or through the screw ter-
minal block (RS-485)
4. Connect the power supply and apply power
5. Now you can start using the Gateway. Use the “Anybus IPConfig Utility” to configure the IP
address and other network settings. See 2-1 “Configure the IP address” for further information.
Note: The default IP address of the Anybus module is 10.200.1.X, where X is the last digit in the MAC
ID (can be found on a label on the device).
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Connectors
15
96
(male)
Serial interface
(DSUB-9, RS-232)
Ethernet interface
(RJ-45, 10/100Mbps)
Modbus/RTU Interface, RS-232
The 9-pole DSUB, male connector on the Anybus module
contains a fully equipped RS-232 interface. This port can be
used to connect to any equipment with an RS-232 interface.
The product carries a screw terminal block with 12 contacts. Five of these can be used to connect to any
equipment with an RS-485 interface.
Ethernet Interface
The Ethernet interface supports 10/100 Mbps, using a standard RJ-45 connector.
Power Supply Connection
The Anybus module can be powered by a 9 - 28 V AC/DC supply.
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
About the Anybus® Modbus-TCP/RTU Gateway 1-4
Digital Inputs
The digital inputs are opto-isolated, and can accept a 10-24 VDC signal for logic HIGH input. For logic
LOW the voltage should be in the range 0-2 VDC.
The status of the inputs can be read in the Gateway Internal Registers (if enabled). See 2-7 “Internal
Registers” for more information.
Pin noDescription
13RS-485, line B
14RS-485, line A
15Common
16RS-232, Tx
17RS-232, Rx
18Not connected
19Not connected
20Digital In Common
21Digital In 1
22Digital In 2
23Vin- (ground connection)
24Vin+
Indicators
LED functionality
NameColorDescription
StatusOFFPower off
Serial LinkFlashing GreenSerial Packet receive
ActivityFlashing GreenEthernet Packet received
LinkOFFNo Ethernet Link detected
GreenModule is running in normal mode
OrangeBoot-up
The IPConfig utility is a PC-based configuration utility to set TCP/IP network settings in the Anybus
module. Anybus IPConfig scans the Ethernet network for connected Anybus devices and lets the user
set IP-address, net mask, gateway, DNS and host name for each unit.
Installation
System Requirements
•Pentium 133 MHz or higher
•5 Mb of free space on the hard drive
•Win 95/98/ME/NT/2000/XP/Vista
•Network Interface Card (Ethernet)
Chapter 2
Installation Procedure
•Download the self-extracting installation package “Anybus IPConfig utility for module TCP/IP
configuration” from:
http://www.anybus.com/support/support.asp?PID=237&ProdType=Anybus%20X-gateway
•Run IPConfig
Scanning for connected devices
First ensure that you have connected the Anybus units you want to install on the same Ethernet network
as the PC is connected to. Use standard Ethernet cables, straight-through or crossover, depending on
how you connect to the device. See pictures below for details.
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Configuration 2-2
Anybus
Modbus TCP/RTU
gateway
Anybus
Modbus TCP/RTU
gateway
Connecting the Anybus® Modbus-TCP/RTU Gateway to a hub or a switch
Connecting the Anybus® Modbus-TCP/RTU Gateway directly to a PC
When the Anybus IPConfig utility is started, it will scan the Ethernet network for Anybus devices. All
detected devices will be presented in a list in the main window. To force a new scan for devices, press
the “Scan” button.
HeadingDescription
IPIP address of the Anybus module
SNSubnet mask
GWDefault gateway
DHCPDynamically assigned IP address on/off
VersionApplication software version
TypeProduct type
MACEthernet MAC address
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Configuration 2-3
Changing IP Settings
To change the IP settings of a detected device, double-click on the device you want to configure in the
list of devices.This will open a dialogue where you can enter the desired IP configuration. To obtain the
necessary information about IP address, Subnet mask etc. please contact your network administrator.
Note: Do not select the DHCP option if you don’t have a DHCP server available on the network.
Host name, Primary DNS and Secondary DNS are optional.
The default password for authentication of the new settings is “admin”. Pressing “Set” will cause the
Anybus module to reboot and the new settings will be enabled on restart. You can test the new settings
by opening a web browser and enter the IP you selected. If you selected DHCP and want to know what
IP your device has been assigned, you can do a new scan with the Anybus IPConfig utility to view the
new network configuration information.
Configure the Gateway
Log in
Open a web browser and enter the IP address you have set for the Anybus module with the Anybus
IPConfig utility:
http://10.10.12.204
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Configuration 2-4
The login screen should appear:
To be able to configure the gateway you should enter “admin” in the user name box. This is the default
password and can be changed at a later stage.
If you have problems to log in and you are sure that your password is correct, make sure that Caps Lock
is not enabled on your keyboard.
Start Page
The start page shows the available options.
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Configuration 2-5
Network Settings
Choosing “Network” will give the opportunity to view and change the TCP/IP settings in the module.
These settings are the same as the ones defined in Anybus IPConfig.
DHCP: Select this if you have a DHCP server on our network and you want the IP address to be assigned automatically by the server.
Note: Do not select the DHCP option if you don’t have a DHCP server available on the network.
Network SettingComment
Host NameEnter the host name of your device (optional)
IP addressIP address
NetmaskSubnet mask
GatewayThe default gateway
Primary DNSThe primary Domain Name server (optional)
Secondary DNSThe secondary Domain Name server (optional)
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Modbus Configuration
Choosing “Config” will give the opportunity to configure Modus.
Configuration 2-6
Serial settings (Modbus RTU/
ASCII)
Comment
Transmission ModeRTU or ASCII
Slave Response Time outDefault value 200ms
Physical InterfaceEIA-485 or EIA-232
Baud Rate300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600 or 115200 bps
Character FormatSelect number of stop bits and if parity should be enabled (odd or even)
Extra delay between messagesSome nodes on the network may need extra time to finish handling one mes-
sage before they can receive the next message.
Character delimiterSpecifies the time (in ms) that separates two messages. If set to 0 (zero), the
gateway will use the standard Modbus delimiter of 3.5 characters (the actual
number of ms will be calculated automatically based on the currently used
communication settings).
Ethernet settings
(Modbus TCP)
Comment
Port NumberWhich port to use for Modbus TCP communication. Default: 502
Gateway Registers The address offset to the gateway internal registers (if enabled). See page 2-7 “Internal Regis-
ters” for details.
Server Idle Time out Idle time out in seconds for the Modbus/TCP connection. If the gateway doesn’t receive any
Modbus/TCP query within this time the connection sill be closed. Default: 60 s.
IP AuthenticationDefines the IP-number of the device that is allowed to connect to the gateway.
Note: To ensure that the Modbus master can communicate with all slaves present on the bus, do not
assign the same address to more than one Modbus device.
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Configuration 2-7
Internal Registers
If Gateway Registers are enabled, queries sent to those addresses will not be forwarded to the Serial
Modbus/RTU network, but handled by the gateway.
Register NameValuesOptionsComment
1Digital input 1 status0 or 1Read only
2Digital input 2 status0 or 1Read only
3Number of active connec-
tions MB/TCP
4Number of active internal
connections
Serial status (Modbus/TCP)
5Valid responses0 - 65535Can be cleared
6Serial time outs0 - 65535Can be cleared
7CRC errors0 - 65535Can be cleared
8Input Buffer overruns0 - 65535Can be cleared
9Frame errors0 - 65535Can be cleared
10Exceptions responses0 - 65535Can be cleared
Serial status (buffered messages)
11Valid responses0 - 65535Can be cleared
12Serial time outs0 - 65535Can be cleared
13CRC errors0 - 65535Can be cleared
14Input Buffer overruns0 - 65535Can be cleared
15Frame errors0 - 65535Can be cleared
16Exceptions responses0 - 65535Can be cleared
Serial status (internal requests and web pages)
17Valid responses0 - 65535Can be cleared
18Serial time outs0 - 65535Can be cleared
19CRC errors0 - 65535Can be cleared
20Input Buffer overruns0 - 65535Can be cleared
21Frame errors0 - 65535Can be cleared
22Exceptions responses0 - 65535Can be cleared
28Number of stop bits1 - 2Default: 1 stop bit
29Slave time out time25 - 65535 msDefault: 1000 ms
30Physical interface0 - 2
0EIA-485
Default
(Screw terminal block)
1EIA-232
(DSUB)
2EIA-232
(Screw terminal block)
Authentication
31Valid IP address 10 - 255First byte of IP address
0DisabledIP address authentication disabled
1 - 255Enabled
32Valid IP address 20 - 255EnabledSecond byte of IP address
33Valid IP address 30 - 255EnabledThird byte of IP address
34Valid IP address 40 - 255EnabledFourth byte of IP address
35Mask for Valid IP address 10 - 255EnabledFirst byte of mask
36Mask for Valid IP address 20 - 255EnabledSecond byte of mask
37Mask for Valid IP address 30 - 255EnabledThird byte of mask
38Mask for Valid IP address 40 - 255EnabledFourth byte of mask
Configuration 2-8
Valid commands:
Command Name
3Read Holding Registers
6Preset Single Register
16Preset Multiple Registers
Password Settings
Choosing “Admin” will allow you to change the administrator password for the device.
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Status
The following status information is available on the Status web page:
Configuration 2-9
InfoDescription
Number of connections Number of masters that are connected to the module
Valid ResponsesCounts valid responses from the Modbus/RTU slaves
Serial Time outsNumber of Modbus/RTU slave time outs
CRC ErrorsNumber of CRC errors on incoming Modbus/RTU responses
Buffer OverrunsNumber of input buffer overruns (if an incoming Modbus/RTU response is bigger than 300
bytes, it will cause the input buffer to overflow).
Exception ResponsesNumber of exception responses from the connected Modbus/RTU slaves
Anybus® Modbus-TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Doc.Id. HMSI-168-77
Appendix A
Specifications
Ethernet Connection
10BASE-T or 100BASE-TX (IEEE 802.3). RJ45 connector.
Serial Interfaces
EIA-232 with full modem control (RTS, CTS, DCD, DTR, DSR, RI), 300-115200 bps, 9-pole DSUB
connector
EIA-485, 300-115200 bps, connection through screw terminal block
Power Supply
9 - 28 VAC/DC
70 mA@24 VDC (1.7 W).
Environmental Specification
Operating temp:- 40 - 65 °C
Storage temperature:- 40 - 85 °C
Humidity range:5 - 93%, non-condensing
Cover Material
Grey plastic, LEXAN 940, self-extinguishing acc. to UL94-V0
Mounting Option
DIN rail (EN 50022)
Anybus® Modbus TCP/RTU Gateway
Doc.Rev. 2.03
Certifications
CE Certification
EN 50081-2:1993
EN 1000-6-2:1999
UL Certification
The module is UL and cUL certified according to UL file number E214207.
For more information see www.anybus.com.
Specifications A-2
Anybus® Modbus TCP/RTU Gateway
Doc.Rev. 2.03
Doc.Id. HMSI-168-77
Loading...
+ 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.