Ab-S 20 Ethernetmbtcp
Ab-S 20 Ethernetmbtcp
ANYBUS-S ETHERNET
MODBUS/TCP
DOC. NO ABS-ETH-MBTCP-1.91
Revision notes
Preface
The data and illustrations found in this manual are not binding. We reserve the right to modify our products in line
with our policy of continuous product development. The information in this manual 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.
The product and technology described in this document is patented or patent pending in the following countries:
USA, Canada, Japan, Belgium, Denmark, Finland, France, Greece, Ireland, Italy, Luxemburg, Monaco, Netherlands,
Portugal, Switzerland, Lichtenstein, Spain, United Kingdom, Sweden, Germany, Austria and others.
Table of contents
1 Fieldbus introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Introduction to Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Network overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Technical features for Ethernet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Modbus/TCP conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5 Related documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Module overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Mechanical overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Application interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3.1 Dual-Port RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3.2 Asynchronous interface (not yet available) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3.3 AnyBus Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Installation and configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1 Fieldbus connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.1 RJ45 connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.2 2 mm connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1.3 D-SUB connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.1 Node address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.2 Termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.3 LED indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Functions and operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1 Memory structure for the AnyBus-S Ethernet module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.1 IN area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.2 OUT area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.3 Control area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.4 Fieldbus specific area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 Initialisation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.1 Use default settings + DIP switches. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.2 Send mailbox message SET_ETN_CONFIG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.3 Load configuration from FLASH. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.4 Configuration chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Data exchange. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5 Mailbox interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1 Fieldbus specific mailbox messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1.1 Set Ethernet configuration (SET_ETN_CONFIG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1.2 Read Ethernet configuration (READ_ETN_CONFIG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.1.3 Connect timeout (CONNECT_TIMEOUT). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.1.4 Disable web server configuration (DISABLE_WEB_CONFIG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.1.5 Enable web server configuration (ENABLE_WEB_CONFIG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1.6 Modbus Connection Timeout (MB_CONN_TIMEOUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.1.7 Disable Modbus/TCP server (DISABLE_MB_TCP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.1.8 Write exception status (WR_EXP_STAT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.2 Transparent mailbox interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.2.1 Socket (SOCKET) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.2.2 Listen (LISTEN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.2.3 Connect (CONNECT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1 Fieldbus introduction
This section provides information about the Ethernet network. and the Modbus/TCP protocol.
More information, as well as links can be found at the web site ‘www.industrialethernet.com’ .
More information about the Modbus/TCP protocol can be found at the following web page:
‘http://www.modicon.com/openmbus/index.html’
2 Module overview
This section provides an overview of the AnyBus-S Ethernet Modbus/TCP module.
The modules mailbox interface provides the possibility to transparently send and receive data directly on a socket
level over an Ethernet with both TCP/IP and UDP/IP. This allows the application to use “their own” protocol “on top”
of TCP/IP or UDP/IP.
Application interface
Ethernet connector
Configuration switches
Status LED’S
IN
512 Byte
OUT
Extended IN
512 Byte
0 - 2048 Byte
Mailbox IN
Alternative 1
288 Byte
RX
TX
SCI To ANYBUS electronics
DE
For more information about designing with the Parallel interface, please consult the AnyBus-S Design Guide for par-
allel interface.
For more information about designing with the serial interface, please consult the AnyBus-S Design Guide for serial
interface.
Note: since different hardware is required for the different interfaces, only one of the above mentioned access methods is possible to use in one
module.
3.1.2 2 mm connector
Table 3: 10 pin 2 mm Ethernet connector
Note:
The pin configuration in this connector is unique for this module.
It may not be compatible with other 9-pin D-SUB Ethernet connectors.
3.2 Configuration
3.2.1 Node address
The Ethernet MAC ID is permanent and cannot be changed by the user. The IP-address is configured at the initialisa-
tion of the module. For more information about how to set the IP-address for the module, se chapter 4.2.
3.2.2 Termination
The Ethernet module uses twisted-pair cables, and do not need an external terminator.
Figure 3: AnyBus-S LED’s, with 90° angle mounting (A), and 180° straight mounting (B).
There is also one additional bi-color Watchdog LED on the AnyBus-S module. The function of the watchdog LED is
the same for all modules, and information about it can be found in the AnyBus-S Design Guide.
Command 1 and 2 uses a bit oriented address information and command 3, 4 and 23 uses word oriented address infor-
mation. To address individual bits within a 16-bit word, add four bits after the LSB in the “word” address to form a
“bit” address. Do note that a bit address nibble value of 0h points to the MSB, while a value of Fh points to the LSB.
E.g, bit 11 in word 123h will be 1234h.
Command 1, 2, 5 and 6 uses a bit oriented address information and command 3, 4, 15, 16, 21 and 23 uses word ori-
ented address information. To address individual bits within a 16-bit word, add four bits after the LSB in the “word”
address to form a “bit” address. Do note that a bit address nibble value of 0h points to the MSB, while a value of Fh
points to the LSB. E.g, bit 14 in word 432h will be 4321h.
Note: This does not refers to the Modbus/TCP sockets. They are handled internally by the module, and is not represented in the fieldbus specific
memory area.
Each socket uses 12 bytes of memory. Socket 0 starts on address 640h, socket 1 starts on address 64Ch, socket 2 starts
on address 658h, and so on. The layout of the data, for each socket entry in the memory, can be found in Table 13
below.
Offset Description
b7 b6 b5 b4 b3 b2 b1 b0
0h Socket type
Offset Description
b7 b6 b5 b4 b3 b2 b1 b0
1h Socket status
Note that if a host closes a TCP connection while there is still data available to read on the socket in the client, the cli-
ent socket will be indicated as connected until all data is read. In this case, if the client tries to send data the mailbox
response will report ‘Can’t send more’.
If a socket is listening and a host connects to that socket a new socket will be created in the first free position. The sta-
tus of this socket will be connected and the listening socket will still be listening. This means that multiple hosts can
connect to one listening socket simultaneously.
Offset Description
b7 b6 b5 b4 b3 b2 b1 b0
This is the local port number that the socket is associated with.
Offset Description
b7 b6 b5 b4 b3 b2 b1 b0
This is the host port number that the socket is associated or connected with.
Offset Description
b7 b6 b5 b4 b3 b2 b1 b0
This is the host IP-address that the socket is associated with or connected to.
Offset Description
b7 b6 b5 b4 b3 b2 b1 b0
8h IP-address - MSB
9h
Ah
Bh IP-address - LSB
4.2 Initialisation
There are three different methods to set the IP-address, subnet mask and gateway address to the module.
1. Use default settings + DIP switches.
2. Send mailbox message SET_ETN_CONFIG.
3. Load configuration from FLASH.
If the DIP switch value is set between 1-255 and the mailbox message SET_ETN_CONFIG not is sent to the module
the default settings below will be used
IP address: 192.168.0.X
Subnet mask: 255.255.255.0
Gateway address: 0.0.0.0
The last byte (X) in the IP address is set between 1-255 with the DIP switch on the module. Switch 1 is the MSB in
the byte, and switch 8 is the LSB. When a switch is in the “On” or “Closed” position, it is interpreted as a logic “1”.
If no settings are stored in the FLASH memory then the module will not accept END_INIT. The status led will also
start to flash with 2Hz red to indicate that an attempt to load settings from FLASH did failure.
The settings are stored to the FLASH memory through a web page in the module. This web page can be disabled with
mailbox command DISABLE_WEB_CONFIG.
END_INIT received
Yes SET_ETN_CONFIG
received ?
No
Yes
DIP switch = 0 ?
No
Initialise module
5 Mailbox interface
5.1 Fieldbus specific mailbox messages
Table 23: Fieldbus specific mailbox messages
If this message not is sent to the module during initialisation the module will either use default settings combined
with the DIP switches on the module or the configuration will be loaded from FLASH. Please see chapter 4.2 for
more information.
Parameter Description
Command initiator Application
Message Name SET_ETN_CONFIG
Message type 0x02
Command number 0x0001
Fragmented No
Extended header data No extended header data is associated with this command
Message data Contains IP address, subnet mask and gateway address
Response message The response indicates if the command was accepted. The response
data is a copy of the command data
Configuration example:
The READ_ETN_CONFIG mailbox message can only be sent to the module after initialisation
Parameter Description
Command initiator Application
Message Name READ_ETN_CONFIG
Message type 0x02
Command number 0x0002
Fragmented No
Extended header data No extended header data is associated with this command
Message data No message data is associated with this command
Response message The response message indicates if the command was accepted
The response data shows the used Ethernet settings
Parameter Description
Command initiator Application
Message Name CONNECT_TIMEOUT
Message type 0x02
Command number 0x0003
Fragmented No
Extended header data No extended header data is associated with this command
Message data Contains the timeout value
Response message The response indicates if the command was accepted
The response data is a copy of the command data
Parameter Description
Command initiator Application
Message Name DISABLE_WEB_CONFIG
Message type 0x02
Command number 0x0004
Fragmented No
Extended header data No header data is associated with this command
Message data No message data is associated with this command
Response message The response indicates if the command was accepted
Parameter Description
Command initiator Application
Message Name ENABLE_WEB_CONFIG
Message type 0x02
Command number 0x0005
Fragmented No
Extended header data No header data is associated with this command
Message data No message data is associated with this command
Response message The response indicates if the command was accepted
If this message not is sent to the module the default timeout that is 60 seconds will be used.
Parameter Description
Command initiator Application
Message Name MB_CONN_TIMEOUT
Message type 0x02
Command number 0x0020
Fragmented No
Extended header data No extended header data is associated with this command
Message data Contains the timeout value for the Modbus/TCP connections
Response message The response indicates if the command was accepted
Parameter Description
Command initiator Application
Message Name DISABLE_MB_TCP
Message type 0x02
Command number 0x0021
Fragmented No
Extended header data No header data is associated with this command
Message data No message data is associated with this command
Response message The response indicates if the command was accepted
This means that the exception status value is set by the application, not by the Ethernet module.
Parameter Description
Command initiator Application
Message Name WR_EXP_STAT
Message type 0x02
Command number 0x0022
Fragmented No
Extended header data No extended header data is associated with this command
Message data Contains the exception status byte
Response message The response indicates if the command was accepted
A descriptor (0 - 7) and the used port number will be returned in the response message.
Parameter Description
Command initiator Application
Message Name SOCKET
Message type 0x02
Command number 0x0040
Fragmented No
Extended header data No extended header data is associated with this command
Message data The socket type (TCP or UDP) and the port
Response message The response indicates if the command was accepted
The response indicates which socket descriptor that is used and the
port number the socket is bound to.
Parameter Description
Command initiator Application
Message Name LISTEN
Message type 0x02
Command number 0x0041
Fragmented No
Extended header data Contains the descriptor of the socket this command is affective for
Message data No message data is associated with this command
Response message The response indicates if the command was accepted
If this command is correctly sent, it will be accepted whether it's possible to establish a connection or not. The result
of the operation must be viewed in the fieldbus specific area chapter 4.1.4.
If the socket that this command is affective for is of UDP type, then this command specifies the peer with which the
socket is to be associated, the address is to which datagrams are sent and the only address from which datagrams are
received. If the socket is of TCP type, then this command attempts to make a connection to another socket. TCP sock-
ets may CONNECT only once, while UDP sockets may use CONNECT multiple times to change their association.
Parameter Description
Command initiator Application
Message Name CONNECT
Message type 0x02
Command number 0x0042
Fragmented No
Extended header data Contains the descriptor of the socket this command is affective for
Message data Contains IP-address and Port number to connect to
Response message The response indicates if the command was accepted
The response data is a copy of the command data
Parameter Description
Command initiator Application
Message Name SEND
Message type 0x02
Command number 0x0043
Fragmented No (will be supported in the future)
Extended header data Contains the descriptor of the socket this command is affective for
Message data Contains the data to send
Response message The response indicates if the command was accepted
The response data is the sent data
If the socket is of TCP type then this command will return the requested number of bytes from the received data
stream. If the available amount of data is less than the requested amount, then all available data will be returned.
If the socket is of UDP type then this command will return the requested amount of data from the next received data-
gram. If the datagram is a smaller amount of data than the requested amount, then the entire datagram will be
returned. If the datagram is a larger amount of data than the requested amount, the excess bytes will be discarded.
At the moment it's only possible to receive 256 bytes with one command but in the future the fragmentation protocol
will give the possibility to receive more data.
Parameter Description
Command initiator Application
Message Name RECV
Message type 0x02
Command number 0x0044
Fragmented No (will be supported in the future)
Extended header data Contains the descriptor of the socket this command is affective for
and how many bytes to receive
Message data No message data is sent in the command
Response message The response indicates if the command was accepted
The response data is the data that was read from the connection
Parameter Description
Command initiator Application
Message Name SEND_TO
Message type 0x02
Command number 0x0045
Fragmented No (will be supported in the future)
Extended header data Contains the descriptor of the socket this command is affective for
and the IP-address and port number to send to
Message data Contains the data to send
Response message The response indicates if the command was accepted
The response data is the data that was sent
This mailbox message specifies how many bytes of data to read from the next received datagram. If the datagram is a
smaller amount of data then requested, the command will return the entire datagram. If the datagram is a larger
amount of data than requested, then the excess bytes will be discarded.
At the moment it's only possible to receive 256 bytes with one command but in the future the fragmentation protocol
will give the possibility to receive more data.
Parameter Description
Command initiator Application
Message Name RECV_FROM
Message type 0x02
Command number 0x0046
Fragmented No (will be supported in the future)
Extended header data Contains the descriptor of the socket this command is affective for
and how many bytes to receive
Message data No message data is sent in the command
Response message The response indicates if the command was accepted
Address information about the sender is returned in the extended area
of the response
The response contains the read data
Parameter Description
Command initiator Application
Message Name CLOSE
Message type 0x02
Command number 0x0047
Fragmented No
Extended header data Contains the descriptor of the socket this command is affective for
Message data No message data is sent in the command
Response message The response indicates if the command was accepted
Internally the fragments will be stored in a buffer until the entire message is received. Then the message will be sent
to the socket. The maximum size of a message that can be sent is 1400 bytes.
Parameter Description
Command initiator Application
Message Name SEND_FRAG
Message type 0x02
Command number 0x005E
Fragmented No
Extended header data Contains the descriptor of the socket this command is affective for
and the fragment type of this mailbox message
Message data Contains the data to send
Response message The response indicates if the command was accepted
The response data is the data that was sent
If the socket is of TCP type then this command will return the requested number of bytes from the received data
stream. If the available amount of data is less than the requested amount, then all available data will be returned.
If the socket is of UDP type then this command will return the requested amount of data from the next received data-
gram. If the datagram is a smaller amount of data than the requested amount, then the entire datagram will be
returned. If the datagram is a larger amount of data than the requested amount, the excess bytes will be discarded.
Internally the entire message will be read from the socket to a buffer. Then the fragments of the message can be read
with this mailbox command from the buffer.
Parameter Description
Command initiator Application
Message Name RECV_FRAG
Message type 0x02
Command number 0x005F
Fragmented No
Extended header data Contains the descriptor of the socket this command is affective for
The response contains the number of bytes that is remaining to read
Message data No message data is sent in the command
Response message The response indicates if the command was accepted
Note: The “Received data size” is only used if the “Fragment type” = 0x0000.
Note: Extended data word 4 is reserved and must be zero.
Table 64: Fault information codes for fieldbus specific mailbox messages
Value Description
0x0001 Invalid IP-address or Subnet mask
0x0002 Invalid socket type
0x0003 No free socket
0x0004 Invalid socket
0x0005 Not connected
0x0006 Command failed
0x0007 Invalid data size
0x0008 Invalid fragment type
0x0009 Fragment error
0x000A Invalid timeout time
0x000B Can't send more
7 Electrical specifications
7.1 Current consumption
The module electronics should be supplied with regulated 5V DC. For more information regarding the power supply,
consult the AnyBus-S Design Guide.
The bus interface is powered from the module electronics, and no power feed to pins 1 and 2 in the application con-
nector is necessary.
8 Mechanical specifications
8.1 Overview
This section contains mechanical drawings for the AnyBus-S module for Ethernet. The fieldbus interface can be
either side or top mounted (reverse mounting is not allowed on the 9 pin D-SUB connector). For more information
regarding other connectors please contact HMS Fieldbus Systems marketing department.
The mechanical drawings describe the standard configuration of the AnyBus-S Ethernet module.
Article number for Ethernet Modbus/TCP, parallel interface: AB4078
The serial interface is not yet available.
For further information regarding the AnyBus-S module, we refer to the AnyBus-S Design Guide.
D
D
DOC. NO ABS-ETH-MBTCP-1.91
C C
B
B
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Angled Iso-view
MILLIMETERS.
Document nr: REV.
TOLERANCE: + / - 0,1 SIZE
A4L 1.0
DATE Sign:
CAD FILE:
2000-04-26 NiE SCALE 2:1 SHEET 1 OF 4
ABS Ethernet Angled
8 7 6 5 4 3 2 1
D
D
16,5 18,3
14,1
9,7 15,7 13,7 15,8
8,1
B
B
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Angled Top-view
MILLIMETERS.
Document nr: REV.
TOLERANCE: + / - 0,1 SIZE
A4L 1.0
DATE Sign:
CAD FILE:
2000-04-26 NiE SCALE 2:1 SHEET 2 OF 4
ABS Ethernet Angled
8 7 6 5 4 3 2 1
41
DOC. NO ABS-ETH-MBTCP-1.91
2001-09-03
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
42
8 7 6 5 4 3 2 1
THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF Pos. Revisions Date Sign
HMS FIELDBUS SYSTEMS AB ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-09-03
D
D
15,7 21,7 9,2
2,9 4,6
C C
Figure 7: AnyBus-S Ethernet module, angled configuration, front and side view
HMS Industrial Networks AB
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Angled Front- & Side
MILLIMETERS. REV.
TOLERANCE: + / - 0,1 SIZE Document nr:
A4L 1.0
DATE Sign: CAD FILE:
2000-04-26 NiE SCALE 2:1 ABS Ethernet Angled SHEET 3 OF 4
8 7 6 5 4 3 2 1
D
2,0 D
37,3
2,0
6,2
0,8 2,54
12,9
14,3 2,0
B
B
1,0
2,0
71,8
86,0 1,6
A-A
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Angled PCB
MILLIMETERS.
Document nr: REV.
TOLERANCE: + / - 0,1 SIZE
A4L 1.0
DATE Sign:
CAD FILE:
2000-04-26 NiE SCALE 1.5:1 ABS Ethernet Angled SHEET 4 OF 4
8 7 6 5 4 3 2 1
43
DOC. NO ABS-ETH-MBTCP-1.91
2001-09-03
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
44
8 7 6 5 4 3 2 1
THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF
HMS FIELDBUS SYSTEMS AB ANY REPRODUCTION IN PART OR WHOLE WITHOUT
Pos. Revisions Date Sign
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-09-03
D
D
DOC. NO ABS-ETH-MBTCP-1.91
C C
B
B
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Straight Iso-view
MILLIMETERS.
Document nr: REV.
TOLERANCE: + / - 0,1 SIZE
A4L 1.0
DATE Sign:
CAD FILE:
2000-04-26 NiE SCALE 2:1 SHEET 1 OF 4
ABS Ethernet Straight
8 7 6 5 4 3 2 1
D
D
4,6
2,9
16,9 15,1
13,6
9,6 14,1 5,0 9,7
B
B
0
12,4
47,9
75,6
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Straight Top-view
MILLIMETERS.
Document nr: REV.
TOLERANCE: + / - 0,1 SIZE
A4L 1.0
DATE Sign:
CAD FILE:
2000-04-26 NiE SCALE 2:1 SHEET 2 OF 4
ABS Ethernet Straight
8 7 6 5 4 3 2 1
45
DOC. NO ABS-ETH-MBTCP-1.91
2001-09-03
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
46
8 7 6 5 4 3 2 1
THE INFORMATION CONTAINED IN THIS DRAWING IS THE SOLE PROPERTY OF Pos. Revisions Date Sign
HMS FIELDBUS SYSTEMS AB ANY REPRODUCTION IN PART OR WHOLE WITHOUT
THE WRITTEN PERMISSION OF HMS INDUSTRIAL NETWORKS AB IS PROHIBITED.
2001-09-03
D
15,9 21,7 9,2 D
15,7
5,5 6,7 8,1 10,2
DOC. NO ABS-ETH-MBTCP-1.91
C C
Figure 11: AnyBus-S Ethernet module, straight configuration, front and side view
HMS Industrial Networks AB
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Straight Front & Side
MILLIMETERS. REV.
TOLERANCE: + / - 0,1 SIZE Document nr:
A4L 1.0
DATE Sign: CAD FILE:
2000-04-26 NiE SCALE 2:1 ABS Ethernet Straight SHEET 3 OF 4
8 7 6 5 4 3 2 1
D
2,0 D
37,3
2,0
5,8 A A
3,2
0,75
0
0,9 2,54
6,2
0,8 2,54
12,9
14,3 2,0
B
B
1,0
2,0
71,8
86,0 1,6
A-A
4,0
7,0
Figure 12: AnyBus-S Ethernet module, straight configuration, PCB connection points
HMS Industrial Networks AB
55,5
A Pilefeltsgatan 95-93 A
S-302 50 Halmstad
Tel: +46 (0)35 - 17 29 00
Fax: +46 (0)35 - 17 29 09
UNLESS OTHERWISE SPECIFIED Title:
DIMENSIONS ARE IN AnyBus-S Ethernet Straight PCB
MILLIMETERS.
Document nr: REV.
TOLERANCE: + / - 0,1 SIZE
A4L 1.0
DATE Sign:
CAD FILE:
2000-04-26 NiE SCALE 1.5:1 ABS Ethernet Straight SHEET 4 OF 4
8 7 6 5 4 3 2 1
47
DOC. NO ABS-ETH-MBTCP-1.91
2001-09-03
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
FIELDBUS APPENDIX - ANYBUS-S ETHERNET MODBUS/TCP
DOC. NO ABS-ETH-MBTCP-1.91
2001-09-03
9 List of figures
Figure 1: Mechanical overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 2: AnyBus-S access methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 3: AnyBus-S LED’s, with 90× angle mounting (A), and 180× straight mounting (B). . . . . . . . . . . . . . . . . . 7
Figure 4: AnyBus-S Ethernet Modbus/TCP configuration chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 5: AnyBus-S Ethernet module, angled configuration, 3D view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 6: AnyBus-S Ethernet module, angled configuration, top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 7: AnyBus-S Ethernet module, angled configuration, front and side view . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 8: AnyBus-S Ethernet module, angled configuration, PCB connection points . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 9: AnyBus-S Ethernet module, straight configuration, 3D view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 10: AnyBus-S Ethernet module, straight configuration, top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 11: AnyBus-S Ethernet module, straight configuration, front and side view . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 12: AnyBus-S Ethernet module, straight configuration, PCB connection points . . . . . . . . . . . . . . . . . . . . . 47
10 List of tables
Table 1: Documents related to this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Table 2: RJ45 Ethernet connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Table 3: 10 pin 2 mm Ethernet connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Table 4: 9 pin D-SUB Ethernet connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Table 5: LED 1 - Link LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Table 6: LED 2 - Status LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 7: LED 3 - Modbus/TCP connection LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 8: LED 4 - Activity LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 9: IN area word/bit addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 10: OUT area word/bit addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 11: Socket field base addresses, sockets 0 - 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 12: Socket field base addresses, sockets 8 - 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 13: Socket field memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 14: Socket type register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 15: Listing of socket type values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 16: Socket status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 17: Listing of socket status values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 18: Socket information register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 19: Data available bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 20: Local port number register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 21: Host port number register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 22: Host IP-address register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 23: Fieldbus specific mailbox messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 24: Mailbox message SET_ETN_CONFIG summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 25: Mailbox message SET_ETN_CONFIG memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 26: Mailbox message READ_ETN_CONFIG summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 27: Mailbox message READ_ETN_CONFIG memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 28: Mailbox message CONNECT_TIMEOUT summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 29: Mailbox message CONNECT_TIMEOUT memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 30: Mailbox message DISABLE_WEB_CONFIG summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 31: Mailbox message DISABLE_WEB_CONFIG memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 32: Mailbox message ENABLE_WEB_CONFIG summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 33: Mailbox message ENABLE_WEB_CONFIG memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 34: Mailbox message MB_CONN_TIMEOUT summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 35: Mailbox message MB_CONN_TIMEOUT memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 36: Mailbox message DISABLE_MB_TCP summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 37: Mailbox message DISABLE_MB_TCP memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 38: Mailbox message WR_EXP_STAT summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 39: Mailbox message WR_EXP_STAT memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 40: Transparent data mailbox messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 41: Mailbox message SOCKET summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 42: Mailbox message SOCKET memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 43: Socket types for Message data word 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 44: Mailbox message LISTEN summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 45: Mailbox message LISTEN memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 46: Mailbox message CONNECT summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 47: Mailbox message CONNECT memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Phone:___________________________________________________________________________________
E-mail:___________________________________________________________________________________
Comments:
_________________________________________________________________________________________
_________________________________________________________________________________________
_________________________________________________________________________________________
_________________________________________________________________________________________
_________________________________________________________________________________________
_________________________________________________________________________________________
Other comments:
_________________________________________________________________________________________
_________________________________________________________________________________________
_________________________________________________________________________________________
_________________________________________________________________________________________
Send your comments to: You may also mail or fax your comments: