Atop MB5400 User manual

MB5400
Modbus Gateway
User’s Manual
v. 1.3
December, 2014

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
2
Important Announcement
The information contained in this document is the property of Atop technologies, Inc., and is
supplied for the sole purpose of operation and maintenance of Atop Technologies, Inc.,
products. No part of this publication is to be used for any other purposes, and it is not to be
reproduced, copied, disclosed, transmitted, stored in a retrieval system, or translated into any
human or computer language, in any form, by any means, in whole or in part, without the prior
explicit written consent of Atop Technologies, Inc., offenders will be held liable for damages. All
rights, including rights created by patent grant or registration of a utility model or design, are
reserved.
Disclaimer
We have checked the contents of this manual for agreement with the hardware and software
described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement.
However, the data in this manual is reviewed regularly and any necessary corrections included
in subsequent editions. Suggestions for improvement are welcomed. All other product’s names
referenced herein are registered trademarks of their respective companies.
Published and printed by
Atop Technologies, Inc.
2F, No. 146, Sec. 1, Tung-Hsing Rd.
Jubei, Hsinchu 30261
Taiwan, R.O.C.
Tel.:
886-3-5508137
Fax:
886-3-5508131
www.atop-tech.com
www.atop.com.tw
Copyright © 2011 Atop Technologies, Inc. All rights reserved. Technical data is subject to
change. All other product names referenced herein are registered trademarks of their own
respective companies.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
3
Content
Preface............................................................................................................5
1Introduction..............................................................................................7
1.1 Overview ....................................................................................................................7
1.2 Features .....................................................................................................................9
2Getting Started.......................................................................................10
2.1 First Time Installation............................................................................................ 10
2.2 Factory Default Settings.........................................................................................11
3Configuration and Setup.......................................................................13
3.1 Locating and IP configuring using Serial Manager© .......................................... 13
3.2 Configuring using Web Interface.......................................................................... 15
3.3 LCM (Liquid Crystal Matrix) Configuration.......................................................... 17
3.4 Configuring Automatic IP Assignment with DHCP............................................. 21
3.5 Web Overview......................................................................................................... 21
3.6 Network Configuration .......................................................................................... 22
3.7 Basic Settings......................................................................................................... 26
3.7.1 COM Settings................................................................................................. 26
3.7.2 Operation Mode ............................................................................................. 27
3.7.3 Serial Settings................................................................................................ 28
3.7.4 VCOM Settings .............................................................................................. 29
3.7.5 TCP Settings.................................................................................................. 33
3.7.6 Slave ID Map ................................................................................................. 36
3.8 Advanced Settings................................................................................................. 38
3.8.1 SNMP Settings............................................................................................... 38
3.8.2 Modbus .......................................................................................................... 39
3.9 Alert Configuration ................................................................................................ 41
3.9.1 SMTP and E-mail Settings............................................................................. 41
3.9.2 Alert Events.................................................................................................... 42
3.10 System..................................................................................................................... 45
3.10.1 Log Settings................................................................................................... 45
3.10.2 System Log.................................................................................................... 46
3.10.3 Data Log......................................................................................................... 47
3.10.4 Modbus Statistics........................................................................................... 48

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
4
3.10.5 Time............................................................................................................... 49
3.10.6 Security.......................................................................................................... 52
3.10.7 Import/Export ................................................................................................. 54
3.10.8 Factory Default............................................................................................... 57
3.11 Restart..................................................................................................................... 58
4Applications and Examples..................................................................59
4.1 Using ID offset range mapping............................................................................. 59
4.2 Using Alias ID mapping ......................................................................................... 61
5Specifications........................................................................................63
5.1 Software .................................................................................................................. 63
5.2 Pin Assignments .................................................................................................... 64
6Appendix: Configuration using Telnet Interface.................................68
Warranty .......................................................................................................87

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
5
Preface
Purpose of the Manual
This manual supports you during the installation and configuring of the MB5400 Modbus
Gateways only. It explains some technical options available with the mentioned product. As
such, it contains some advanced network management knowledge, instructions, examples,
guidelines and general theories designed to help users manage this device and its
corresponding software. Some background in general theory is a must while reading it. Please
refer to the Glossary for technical terms and abbreviations (if any).
Who Should Use This User Manual
This manual is to be used by qualified network personnel or support technicians who are
familiar with network operations. It might be useful for system programmers or network planners
as well. This manual also provides helpful and handy information for first time users. For any
related problems, please contact your local distributor, should they be unable to assist you,
please redirect your inquiries to www.atop.com.tw or www.atop-tech.com .
Supported Platform
This manual is designed for the MB5400 Modbus Gateways and that models only.
Warranty Period
We provide a 5-year limited warranty for the MB5400 Modbus Gateways.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
6
Manufacturers Federal Communication Commission Declaration of
Conformity Statement
Model: MB5400 Modbus Gateways
NOTE: This equipment has been tested and found to comply with the limits for a Class Adigital
device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable
protection against harmful interference when the equipment is operated in a commercial
environment. This equipment generates, uses, and can radiate radio frequency energy and, if
not installed and used in accordance with the instruction manual, may cause harmful
interference to radio communications. Operation of this equipment in a residential area is likely
to cause harmful interference in which case the user will be required to correct the interference
at his/her own expense.
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two
conditions:
1 This device may not cause harmful interference, and
2 This device must accept any interference received, including interference that may cause
an undesired operation.
Caution
Beginning from here there will be extreme caution exercised.
Never install or work on electrical cabling during periods of lightning activity. Never
connect or disconnect power when hazardous gases are present
WARNING: Disconnect the power and allow to cool 5 minutes before touching.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
7
1 Introduction
1.1 Overview
AModbus Gateway is a network device connecting in between Modbus over Serial Line devices
and computer hosts running Modbus/TCP on Ethernet networks. Fig. 1.1 illustrates a possible
network configuration of the MB5400 Modbus Gateways. Fully compliant with Modbus/TCP
protocol, the Modbus Gateway offers a convenient solution to connect existing devices or
controllers running Modbus serial protocol (Modbus/ASCII or Modbus/RTU) to an Ethernet
network. The MB5400 Series are standard Modbus gateways that convert packets between
Modbus TCP and Modbus RTU/ASCII protocols.
The MB5400 Series support 16 simultaneous TCP masters and 32 simultaneous requests for
each TCP master. Each RS-232/422/485 serial port can be individually configured for
Modbus/RTU or Modbus/ASCII operation or even different baud rate, allowing both types of
networks to be fully integrated with Modbus/TCP within one package.
Fig. 1.1 Possible Network Configuration of MB5400 Series Modbus Gateway

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
8
Fig. 1.2 shows three different use cases of the MB5400 Modbus Gateways: the interfacing
between Modbus RTU/ASCII serial host to Modbus RTU/ASCII serial devices, the interfacing
between Modbus/TCP over Ethernet network to Modbus RTU/ASCII serial devices, and the
interfacing between Modbus RTU/ASCII host connected through serial IP over Ethernet (virtual
communication port (VCOM)) to Modbus RTU/ASCII serial devices.
Fig. 1.2 Use Cases of MB5400 Modbus Gateways

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
9
1.2 Features
RISC 32-bit 266 MHz CPU
Standard 19-inch rack-mounted 1U high metal housing (MB5408A / MB5416A /
MB5408A2-N / MB5416A2-N Series) or DIN-Rail mounting (MB5404D-X Series)
RS-232/422/485 Software selectable
Dual 10/100 Mbps Ethernet ports for network redundancy
Configurable via Liquid Crystal Matrix (LCM) buttons (MB5408A / MB5416A/ MB5408A2-
N / MB5416A2-N Series only), Serial console, Telnet, Web and Windows-based utility
program Serial Manager© or Management Utility
Relay output indicator for network link status
LCM indication with 4-keypad settings (MB5408A/ MB5416A/ MB5408A2-N / MB5416A2-
N Series only)
Conversion between Modbus TCP and Modbus RTU/ASCII protocols
2 Ethernet ports and 4, 8, or 16 RS-232/422/485 ports
Supporting 16 simultaneous TCP masters with up to 32 simultaneous requests per master
Easy hardware setup and configuration

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
10
2 Getting Started
2.1 First Time Installation
Before installing the device, please adhere to all safety procedures described below, Atop will
not be held liable for any damages to property or personal injuries resulting from the installation
or overall use of the device. Do not attempt to manipulate the product in any way if unsure of
the steps described here. In such cases, please contact your dealer immediately.
1. Prepare the necessary cables, adapter, power cord, LAN cable, etc.; do not connect the
unit yet.
2. For MB5404D-X and MB5404D-Sis-X, plug in the Power Supply/Adapter to a power outlet.
Note that these two models support redundant power supply through the 7-pin terminal
block (located on top of the device) in which user can supply only one pair of 12VDC to
either PWR1 (PIN2 & PIN3) or PWR2 (PIN6 & PIN7) or supply both pairs for redundancy.
User has two options to connect G (PIN1) of the 7-pin terminal block or connect grounding
screw (next to the 7-pin terminal block) to the grounding. It is required to connect either
of these grounds at all times to ensure overall maximum performance. Shortly thereafter
the unit will beep twice and both PWR and RUN LEDs turn green. Within one minute, the
RUN LED shall start blinking which indicates that the AP firmware is running normally.
For MB5408A / MB5416A / MB5408A2-N / MB5416A2-N Series, plug in the AC power
cord to a power outlet and turn on the power switch. Please make sure the electrical outlet
has proper grounding so as to not causing damage to the unit, property or yourself. Shortly
thereafter the unit will beep once and the LCM Display will show a status of LAN1 interface.
The first line of LCM Display will either show “LAN1:” or “LAN1: Link down” while the
second line will shows an IP address of LAN1 interface. Within one minute, the buzzer
shall beep once, and the LCM Display shall show the model’s name.
3. Connect LAN1 port to a network switch or to your LAN with a UTP cable, and connect a
host PC to your LAN with another UTP cable.
4. Connect a serial device to one of the serial ports, and make sure a correct cable is used
(Pin assignments for RS-232, RS-422, and RS-485 cables are shown in Table 5.2 to Table
5.6)
For more information on how to install the device, please refer to the Hardware Installation
Guide leaflet available in your package.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
11
2.2 Factory Default Settings
Network Default Setting
Note that the Modbus Gateway comes with one IP address for redundant Ethernet interfaces.
Table 2.1 Default Network Setting
Interface
Device IP
Subnet mask
Gateway IP
LAN 1
10.0.50.100
255.255.0.0
10.0.0.254
LAN 2
192.168.1.1
255.255.255.0
192.168.1.254
Note: Default DNS 1 setting is 168.95.1.1 and DNS 2 setting is 0.0.0.0.
Modbus Default Settings
Table 2.2 Default Modbus Settings
Parameter
Default Values
Modbus Master
TCP Settings
TCP Master
Mode: TCP Master
Port: 502
Modbus Slave
MB5408A/MB5408A2-N:COM1 –COM8
MB5416A/MB5416A2-N:COM1 –COM16
MB5404D-X: COM1 –COM4
MB5404D-Sis-X: COM1 –COM4
Mode: RTU Slave
Serial Configuration: RS-232 (or RS-422
for MB5404D-Sis-X, MB5408A-S5 and
MB5416A-S5 Series), 9600 bps, 8 data bits,
None Parity bit, 1 stop bit, No Flow Control,
Buffer Disabled,

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
12
Other default settings are shown in the following table:
Table 2.3 Other Default Settings
Parameter
Default Values
Security
User Name
Admin
Password
Null (blank)
SNMP
SysName of SNMP
0060E9-XXXXXX
SysLocation of SNMP
Location
SysContact of SNMP
Contact
SNMP
Disable (Unchecked)
Read Community
Public
Write Community
Private
SNMP Trap Server
0.0.0.0
Note: you can press the “Reset” button on the front panel for 5 seconds (see Sec.3.10.8 and
Sec.3.11), to restore the Modbus Gateway to the factory default settings.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
13
3 Configuration and Setup
3.1 Locating and IP configuring using Serial
Manager©
First, please install our configuration utility program called Serial Manager© that comes with
the Product CD or can be downloaded from our websites (www.atop.com.tw or www.atop-
tech.com). For more information on how to install Serial Manager© ,please refer to the manual
that comes in the Product CD. After you start the Serial Manager© , if the Modbus Gateway is
already connected to the same subnet as your PC oe can be accessed via broadcast packets,
the Serial Manager© shall automatically detect your Modbus Gateway and list it on the Serial
Manager©’s window. Alternatively, if you did not see your Modbus Gateway on your network,
press “Rescan” icon, a list of devices including your Modbus Gateway device currently
connected to the network will be shown in the window of Serial Manager© as shown in Fig.
3.1.
Fig. 3.1 List of Devices on Network in Serial Manager©
Note: This figure is for illustration purpose only. Actual values/settings may vary between devices.
Sometime the Modbus Gateway device might not be in the same subnet as your PC; therefore,
you will have to use our utility to locate it in your virtual environment. To configure each device,
click the selected device (default IP: 10.0.50.100) in the list of Serial Manager© , and click
“Configuration Network…” (or Ctrl+N) menu on Serial Manager© as shown in Fig. 3.2 or
click on the second icon called Network on the menu bar, and a pop-up window will appear as

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
14
shown in Fig. 3.3.
Fig. 3.2 Pull-down Menu of Configuration and Network…
Fig. 3.3 Pop-up Window of Network Setting
You may proceed then to change the IP address to avoid any IP address conflict with other
hosts on your LAN or to connect the device to your existing LAN as shown in Fig. 3.3. The
system will prompt you for a credential to authorize the changes. That is it will ask you for the
Username and the Password as shown in Fig. 3.4. The device will be restarted with a beep.
After the device is restarted, it will beep twice to indicate that the unit is running normally. Then,
the Modbus Gateway can be found on a new IP address. It may be listed automatically by the
Serial Manager© along with its old record or it can be found by clicking on the Rescan icon.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
15
Fig. 3.4 Authorization for Changes
Please consult your system administrator if you do not know your network’s subnet mask and
gateway address. Note: If your LAN address begins with 192.168.X.X, please use the LAN2
interface for configuration.
3.2 Configuring using Web Interface
Every MB5400 Modbus Gateway device is equipped with a built-in web server in the firmware.
Therefore, it can be accessed by using a web browser for configuring by entering the device’s
IP address (default IP address is 10.0.50.100) in the URL field of your web browser. Fig. 3.5
illustrates the overview page of the web interface. Please see Sec.2.4 for default values.
Fig. 3.5 Configuring Web Page of Modbus Gateway

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
16
Fig. 3.6 shows the expanded map of the configuring menu.
Fig. 3.6 Map of Configuring Web Page on Modbus Gateway
This approach for configuring your device is the most user-friendly. It is the most recommended
and the most common method used for MB5400 Modbus Gateways. Please go to its
corresponding section for a detailed explanation.

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
17
3.3 LCM (Liquid Crystal Matrix) Configuration
This section only applies to the 8-Port and 16-Port devices. The device also has the option of
manual configuration (without using any software) by making use of its interactive console.
Using this method is however very easy and intuitive. Buttons and their functions are described
next.
Table 3.1 LCM Button’s Description
Buttons
Button Description
<Menu>
Open Main Menu or go back one level higher
<Up>
Scroll up
<Down>
Scroll down
<SEL>
Confirm the selection. When working with IP
addresses, pressing <SEL> means moving to the
next digit
Example
To change the device’s IP address, follow the instruction below.
Press <Menu> to enter Main Menu
Press <Down> to scroll down to 2. Network Set
Press <SEL> to enter Network setting and then <Up>/<Down> to scroll up or down
to LAN1
Press <SEL> to enter LAN1 and then <Down> to scroll down to 1. IP Config
Press <SEL> to enter LAN1 IP Config and then press <Down> to scroll down to 1.
Static, finally press <SEL> to save the selection.
Press <SEL><Down> to enter 2. IP Address. Use <Up>/<Down> to increase or
decrease the Digits of IP Address, press <Menu> to return to one level higher after

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
18
completion.
To enter: 3. Net mask,use <Up>/<Down> to increase or decrease the digits of
subnet mask and then <Menu> to return to one level higher after completion.
To enter: 4. Gateway, use <Up>/<Down> to increase the digits of default gateway
and use <Menu> to return to one level higher after completion.
Press <SEL> to the end of the menu to return to one level higher and the device shall
display System message “Save & Restart”. Push <SEL> to 2. Yes, and <SEL>
again after completion. The device shall restart and the new settings will appear.
The LCM command structure is summarized in Table 3.2
Table 3.2 LCM Command Structure
1st layer
2nd layer
3rd layer
4th layer
Descriptions
1.Overview
1. Model name
Display model name
2. Kernel ver.
Display kernel version
3. AP ver.
Display AP version
4. Lan 1
1.LAN status
Display status of LAN1
2.MAC
Display MAC address of LAN1
5. Lan 2
1.LAN status
Display status of LAN2
2.MAC
Display MAC address of LAN2
2.Network set
1.Lan 1
1.IP config
1.Static IP
Display or change static IP
2.DHCP
Display dynamic IP or enable DHCP
2.IP address
Display or change LAN1 IP
3.Net mask
Display or change subnet mask
4.Gateway
Display or change the Gateway IP
2.DNS server1
Display or change 1st DNS IP address
3.DNS server2
Display or change 2nd DNS IP address
3.Serial set
1.Select port
Select COM Port: MB5408A/ MB5408A2-
N : [1]~[8] / MB5416A / MB5416A2-N :
[1]~[16]

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
19
1st layer
2nd layer
3rd layer
4th layer
Descriptions
2.Parameter set
1.Baud Rate
1. 300
Display or change baud rate
2. 600
3. 1200
4. 2400
5. 4800
6. 9600
7. 19200
8. 38400
9. 57600
10. 115200
11. 230400
12. 460800
N/A in MB5404D-Sis-X
13. 921600
N/A in MB5404D-Sis-X
2.Parity
1. None
Display or change parity mode
2. Odd
3. Even
4. Mark
5.Space
3.Data bits
1. 7 bits
Display or change data bits’ length
2. 8 bits
4.Stop bits
1. 1 bits
Display or change stop bits’ length
2. 2 bits
5.Flow control
1. None
Display or change flow control mode
2. Software
Xon/Xoff
3. Hardware
RTS/CTS

Atop Modbus Gateway
MB5400 Series
User’s Manual V 1.3
20
1st layer
2nd layer
3rd layer
4th layer
Descriptions
6.UART mode
1. 232
Display or change UART mode for RS-232
2. 422
Display or change UART mode for RS-422
3. 485
Display or change UART mode for RS-485
7.Apply to all
1.No
2.Yes
Apply UART setting to all serial ports
4.Server state
1.Console
1.Web console
1.Disable
Disable web console
2.Enable
Enable web console
2.Telnet
console
1.Disable
Disable telnet console
2.Enable
Enable telnet console
2.Pwd protection
1.LCM console
1.No
Disable LCM console password protection
2.Yes
Enable and change the password
2.Reset button
1.No
Disable the reset button password
protection
2.Yes
Enable and change the password on reset
button
3.Ping
1.Lan 1
Use "ping" command to check specific IP
address for LAN1
2.Lan 2
Use "ping" command to check specific IP
address for LAN2
5.Restart
1.No
Cancel restart command
2.Yes
Restart immediately
This manual suits for next models
6
Table of contents
Other Atop Gateway manuals

Atop
Atop MB5404D-X Series Manual

Atop
Atop SE5901 Series Manual

Atop
Atop MB5201 Series Manual

Atop
Atop MB5904D User manual

Atop
Atop CR5201B Series User manual

Atop
Atop PG59 Series User manual

Atop
Atop MB5001C User manual

Atop
Atop PG5901B Series Instruction sheet

Atop
Atop PG5901B Series Instruction sheet

Atop
Atop MB5001C User manual