MGate MB3000 Modbus Gateway User Manual Sixth Edition, July 2012 www.moxa.com/product 2012 Moxa Inc. All rights reserved.
Page 2
Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa. Moxa provides this document “as is,” without warranty of any kind, either expressed or implied, including, but not limited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to the products and/or the programs described in this manual, at any time.
Table of Contents Chapter 1 Introduction ....................1-1 Overview ..........................1-2 Package Checklist ......................... 1-3 Product Features ........................1-3 Chapter 2 Getting Started ..................2-1 Connecting Power ........................ 2-2 Connecting Serial Devices....................2-2 RS-485 Termination and Pull High/Low Resistors ............2-3 Connecting to a Host or the Network ...................
Page 4
Configure Serial Port for RTU or ASCII, Master or Slave ......... 9-10 What is ProCOM? ...................... 9-11 How to Configure ProCOM for the MGate MB3000 ..........9-11 Configure IP Address and Other Network Settings ............ 9-14 Configure Serial Communication Parameters ............9-16 Set up Slave ID Mapping (Smart Routing) ..............
Page 5
Introduction .........................11-2 Replace Serial Masters with Ethernet Master(s), Slave IDs are Configurable ....11-2 Replace Serial Masters with Ethernet Master(s), Slave IDs are Fixed ........11-3 Keep Serial Master and Add Ethernet Master(s) ..............11-3 Integrate Modbus RTU, ASCII, and TCP at the Same Time ..........11-4 Appendix A Modbus Overview ...................
Introduction Chapter 1 Welcome to the MGate MB3000 line of Modbus gateways. All models feature easy integration of Modbus TCP to Modbus RTU/ASCII and feature RS-232/422/485 ports for Modbus serial communication. One, two, and four-port models are available. This chapter is an introduction to the MGate MB3000 and includes the following sections: ...
In order to integrate Modbus networks, the MGate MB3000 includes an Ethernet port and up to four serial ports that support RS-232, RS-422, and RS-485 communication. It automatically and...
MGate MB3000 User’s Manual Hardware Reference: MB3270, MB3270I Package Checklist All models in the MGate MB3000 line are shipped with the following items: Standard Accessories 1 MGate MB3000 Modbus gateway Document & software CD Quick Installation Guide ...
Getting Started Chapter 2 This chapter provides basic instructions for installing the MGate MB3000. The following topics are covered: Connecting Power Connecting Serial Devices RS-485 Termination and Pull High/Low Resistors Connecting to a Host or the Network ...
MGate MB3000 User’s Manual Getting Started Connecting Power The unit can be powered using the AC adaptor or by connecting a power source to the terminal block, depending on the model. The following instructions are for the AC adaptor: 1. Plug the connector of the power adapter into the DC-IN jack on the back of the unit.
ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3000 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance. Connecting to a Host or the Network A 10/100BaseT Ethernet port is located on the unit’s front panel.
Hardware: MB3180 Chapter 3 This chapter provides hardware information for the MGate MB3180. The following topics are covered: Panel Layout LED Indicators Dimensions Jumpers Pin Assignments DB9 (Male) DIN-Rail, Wall Mounting Specifications...
MGate MB3000 User’s Manual Hardware: MB3180 Panel Layout LED Indicators Name Color Function Steady on: Power is on and unit is booting up. Blinking: Indicates an IP conflict, or DHCP or BOOTP server is not responding properly. Ready Steady on: Power is on and unit is functioning normally.
To set the pull high/low resistors to 1 KΩ, short jumpers JP3 and JP4 with jumper caps. ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3000 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
MGate MB3000 User’s Manual Hardware: MB3180 Pin Assignments DB9 (Male) The MGate MB3000 uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. Each port supports three serial interfaces: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RS-422 RS-232...
Hardware: MB3280 Chapter 4 This chapter provides hardware information for the MGate MB3280. The following topics are covered: Panel Layout LED Indicators Dimensions Jumpers Pin Assignments DB9 (Male) DIN-Rail, Wall Mounting Specifications...
MGate MB3000 User’s Manual Hardware: MB3280 Panel Layout LED Indicators Name Color Function Steady on: Power is on and unit is booting up. Blinking: Indicates an IP conflict, or DHCP or BOOTP server is not responding properly. Ready Steady on: Power is on and unit is functioning normally.
Switch 4 on the port's assigned DIP switch is reserved. ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3000 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
MGate MB3000 User’s Manual Hardware: MB3280 Pin Assignments DB9 (Male) The MGate MB3000 uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. Each port supports three serial interfaces: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RS-422 RS-232...
Hardware: MB3480 Chapter 5 This chapter provides hardware information for the MGate MB3480. The following topics are covered: Panel Layout LED Indicators Dimensions Jumpers Pin Assignments DB9 (Male) DIN-Rail, Wall Mounting Specifications...
MGate MB3000 User’s Manual Hardware: MB3480 Panel Layout LED Indicators Name Color Function Steady on: Power is on and unit is booting up. Blinking: Indicates an IP conflict, or DHCP or BOOTP server is not responding properly. Ready Steady on: Power is on and unit is functioning normally.
To set the pull high/low resistors to 1 KΩ, set switches 1 and 2 on the port’s assigned DIP switch to ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3000 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
MGate MB3000 User’s Manual Hardware: MB3480 Pin Assignments DB9 (Male) The MGate MB3000 uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. Each port supports three serial interfaces: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RS-422 RS-232...
MGate MB3000 User’s Manual Hardware: MB3480 DIN-Rail, Wall Mounting Mounting on a DIN-rail: You will first need to attach the mounting plates (included) to the unit. Attach the DIN-rail accessories to the mounting plates and latch the unit onto the DIN-rail as shown.
Hardware: MB3170, MB3170I Chapter 6 This chapter provides hardware information for the MGate MB3170 and MB3170I. The following topics are covered: Panel Layout LED Indicators Dimensions Jumpers Pin Assignments DB9 (Male) Terminal Block (RS-422, RS-485) ...
MGate MB3000 User’s Manual Hardware: MB3170, MB3170I Panel Layout LED Indicators Name Color Function Power is being supplied to the power input. PWR1 Power is being supplied to the power input. PWR2 Steady on: Power is on and unit is booting up.
Switch 4 on the port’s assigned DIP switch is reserved. ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3000 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
MGate MB3000 User’s Manual Hardware: MB3170, MB3170I Pin Assignments DB9 (Male) The MGate MB3170 and MB3170I use a DB9 (male) serial port for RS-232 connections to Modbus RTU or ASCII devices. RS-232 Terminal Block (RS-422, RS-485) The MGate MB3170 and MB3170I use a terminal block connector for RS-422 and RS-485 connections to Modbus RTU or ASCII devices.
MGate MB3000 User’s Manual Hardware: MB3170, MB3170I Power Input, Relay Output Shielded DC Power DC Power Relay Relay DC Power DC Power Ground Input 1 Input 1 Output Output Input 2 Input 2 DIN-Rail, Wall Mounting There are two sliders on the back of the unit for DIN-rail and wall mounting.
MGate MB3000 User’s Manual Hardware: MB3170, MB3170I Specifications 10/100 Mbps, RJ45, Auto MDI/MDIX Ethernet Protection Built-in 1.5 KV magnetic isolation Serial Interface Interface RS-232/422/485 1 port No. of Ports Connector Type DB9 (male) for RS-232, terminal block for RS-422/485 Signals...
Hardware: MB3270, MB3270I Chapter 7 This chapter provides hardware information for the MGate MB3270 and MB3270I. The following topics are covered: Panel Layout LED Indicators Dimensions Jumpers Pin Assignments DB9 (Male) Power Input, Relay Output ...
MGate MB3000 User’s Manual Hardware: MB3270, MB3270I Panel Layout LED Indicators Name Color Function Power is being supplied to the power input. PWR1 Power is being supplied to the power input. PWR2 Steady on: Power is on and unit is booting up.
Switch 4 on the port's assigned DIP switch is reserved. ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3000 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
MGate MB3000 User’s Manual Hardware: MB3270, MB3270I Pin Assignments DB9 (Male) The MGate MB3000 uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. Each port supports three serial interfaces: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RS-422 RS-232...
MGate MB3000 User’s Manual Hardware: MB3270, MB3270I DIN-Rail, Wall Mounting There are two sliders on the back of the unit for DIN-rail and wall mounting. Mounting on a DIN-rail: Pull out the bottom slider, latch the unit onto the DIN-rail, and push the slider back in.
Typical Applications Chapter 8 In this chapter, we introduce four typical Modbus applications. Ethernet Masters with Multiple Serial Slaves Serial Masters with Multiple Ethernet Slaves Modbus TCP Masters with ASCII and RTU Slaves Serial Master with Serial Slaves over Internet...
(Data Control System). However, many DCSs are now Ethernet-based and operate as a Modbus TCP slave device. The MGate MB3000 Modbus gateway can link a serial-based HMI to distributed DCSs over an Ethernet network. Up to 32 Modbus TCP slave devices are supported by each MGate MB3000.
32 and the transmission distance to 1.2 km. With the MGate MB3000 Modbus gateway, you can link all Modbus devices over an Ethernet network. Up to 32 Modbus gateways can be installed in a single control network, so each device can...
Configuring the Modbus Gateway Chapter 9 We discuss the following topics in this chapter: Installing the Software Starting MGate Manager Change Language Setting Connecting to the Unit Broadcast Search Specify by IP Address Modifying the Configuration ...
Installing the Software The following instructions explain how to install MGate Manager, a utility for configuring and monitoring MGate MB3000 units over the network. 1. Insert the Document and Software CD into the CD-ROM drive. Locate and run the following setup program to begin the installation process: MGM_Setup_[Version]_Build_[DateTime].exe...
Page 50
MGate MB3000 User’s Manual Configuring the Modbus Gateway 4. When the Select Additional Tasks window appears, click Next to continue. You may select Create a desktop icon if you would like a shortcut to MGate Manager on your desktop. 5. Click Next to start copying the software files.
Page 51
MGate MB3000 User’s Manual Configuring the Modbus Gateway 7. A message will indicate that MGate Manager is successfully installed. You may choose to run it immediately by selecting Launch MGate Manager. 8. You may also open MGate Manager through Start Programs MGate Manager ...
MGate Manager is a Windows-based utility that is used to configure the MGate MB3000. Before running MGate Manager, make sure that your PC and the MGate MB3000 are connected to the same network. Alternatively, the MGate MB3000 may be connected directly to the PC for configuration purposes.
MGate Manager needs to connect to the unit before the unit can be configured. There are two methods to connect to the unit. Broadcast Search is used to find every MGate MB3000 on the LAN. Search by IP attempts to connect to a specific unit by IP address, which is useful if the unit is...
Click Broadcast Search to begin searching the LAN for all MGate MB3000 units. When the search is complete, every MGate MB3000 that is found on the LAN will appear in the window with MAC address and IP address. Simply select the one that you wish to configure.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Specify by IP Address Click Specify by IP Address if you know the IP address of the unit and wish to connect to it directly. A dialog box will appear. Enter the unit’s IP address and click OK.
Try doing the search again and re-entering the IP address carefully. Another possibility is that the MGate MB3000 is located on the same LAN as your PC, but on a different subnet. In this case, you can modify your PC’s IP address and/or netmask so that it is on the same subnet as the MGate MB3000.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Configure Serial Port for RTU or ASCII, Master or Slave The Mode tab is where each serial port’s operation mode is configured. The operation mode determines whether the device(s) that are connected to the serial port will operate as a master or a slave, and whether the Modbus RTU or Modbus ASCII protocol will be used.
ProCOM is the best solution for your system. Before using ProCOM, your PC needs to create virtual COM ports that connect to a specific ProCOM over an Ethernet network. By using ProCOM, the MGate MB3000 will treat your PC’s COM port as if it were an additional serial port on the MGate MB3000.
Page 59
This way, when you send a Modbus request to ProCOM, the driver will forward your request to the MGate MB3000 and then the MGate MB3000 will forward the request to the target Modbus device using the pre-set Modbus device mode and Slave ID. For example, the Modbus request from ProCOM can be redirected to a Modbus RTU/ASCII device that is behind the MGate MB3000's serial interface, or to a Modbus TCP device through the MGate MB3000's Ethernet port.
Page 60
MGate MB3000 User’s Manual Configuring the Modbus Gateway If you would like to change the COM port numbers, double click on the items as follows: 9-13...
MGate MB3000 User’s Manual Configuring the Modbus Gateway Configure IP Address and Other Network Settings The Network tab is where the unit’s network settings are configured. You can modify the Name, Network Configuration, IP Address, Netmask, Default Gateway, and DNS. You may also select a Password to protect the unit from unauthorized access.
Page 62
MGate MB3000 User’s Manual Configuring the Modbus Gateway Parameter Value Notes You can enter a name to help you identify the Name (an alphanumeric string) unit, such as the location, function, etc. Select “Static IP” if you are using a fixed IP...
MGate MB3000 User’s Manual Configuring the Modbus Gateway Configure Serial Communication Parameters The Serial tab is where each serial port’s communication parameters are configured. You can configure Baud Rate, Parity, Stop Bit, Flow Control, FIFO, and Interface Mode. Parameter Value...
MGate MB3000 User’s Manual Configuring the Modbus Gateway Set up Slave ID Mapping (Smart Routing) The Slave ID Map tab is where slave IDs are managed. The definitions on this tab determine how requests will be routed by the unit.
Page 65
Virtual slave IDs must not conflict with each other or with other TCP slave IDs. ATTENTION The MGate MB3000 will disregard any request that is not addressed to a virtual slave ID on its slave ID map. If a device has not been assigned a virtual slave ID, it will not be accessible by masters on the other side of the Modbus gateway.
Delay” setting. Modbus TCP Exception The MGate MB3000 is a protocol gateway that transparently passes requests and responses between the Ethernet and serial interfaces. In some situations, it may be necessary for the gateway to return an exception in response to a request from a Modbus TCP master. This is enabled or disabled with the “Modbus TCP Exception”...
Page 67
This allows the Modbus system to continue operation even if a slave device is disconnected or faulty. On the MGate MB3000, the “Response Time-out” field is used to configure how long the gateway will wait for a response from a Modbus ASCII or RTU slave. This field is set independently for each serial port, which is selected through the “Slave Channel”...
MGate MB3000 User’s Manual Configuring the Modbus Gateway ATTENTION Please note the following regarding automatic calibration of response timeouts: When automatically detecting the response timeout, the MGate will use the slave ID map to determine which ports and which IDs to search. Make sure that you have defined the slave ID map for your system before clicking “Auto Detection”.
Access to the MGate MB3000 is controlled by IP address. That is, if a host’s IP address is in the accessible IP table, then the host will be allowed to access the MGate MB3000. The following descriptions illustrate how to configure the accessibility parameters: •...
Page 70
MGate MB3000 User’s Manual Configuring the Modbus Gateway Disable this function by clearing the “Enable the accessible IP list” checkbox. 9-23...
MGate MB3000 User’s Manual Configuring the Modbus Gateway Miscellaneous Setup This page identifies options that were not mentioned previously: Auto Relay Warning, Reset Button Protect, Web Console, and Telnet Console. Auto Relay Warning will be triggered in the event of a power failure or when Ethernet links are disconnected.
MGate MB3000 User’s Manual Configuring the Modbus Gateway ATTENTION Currently the MGate MB3180 does not support Web Console. The MGate MB3180/3280/3480 do not have relay outputs, and consequently do not support Auto Relay Warning. Verifying the Location of the Unit If you are managing multiple MGate units, you may wonder if you are configuring the correct unit in MGate Manager.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Monitoring Modbus Activity For troubleshooting or management purposes, you can monitor the data passing through any MGate MB3000 on the network. Data events will be logged as they pass through the gateway. Rather than simply echoing the data, MGate Manager presents the data in an intelligent, easily-understood format, with clearly designated fields including source, type, destination, contents, and more.
MGate MB3000 User’s Manual Configuring the Modbus Gateway Open Traffic Monitor Window Select the unit that you wish to monitor and click Monitor to open the Traffic Monitor window. In the Traffic Monitor window, click Start to begin live monitoring of the data passing through the selected MGate MB3000 unit.
MGate MB3000 User’s Manual Configuring the Modbus Gateway To stop capturing the log, press the Stop button. Filter Traffic Information By default, all events are displayed in the traffic monitor window. MGate Manager also allows the data to be filtered so only the relevant information is displayed. The filter is selected using the radio buttons and customized using the “Filter info”...
MGate MB3000 User’s Manual Configuring the Modbus Gateway Save Log to File To save the data log to a file, click Save. You may retrieve a saved log by clicking Load. 9-29...
After you have downloaded the new firmware onto your PC, you can use MGate Manager to write it onto your MGate MB3000. Select the desired unit from the list in MGate Manager and click Upgrade Firmware to begin the process.
Pin Assignments Chapter 10 We discuss the following topics in this chapter: DB9 (Male) Terminal Block (RS-422, RS-485) Power Input, Relay Output...
MGate MB3000 User’s Manual Pin Assignments DB9 (Male) The MGate MB3000 uses DB9 (male) serial ports to connect Modbus RTU or ASCII devices. Each port supports three serial interfaces: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RS-422 RS-232 RS-485 (2W)
Case Studies Chapter 11 We discuss the following topics in this chapter: Introduction Replace Serial Masters with Ethernet Master(s), Slave IDs are Configurable Replace Serial Masters with Ethernet Master(s), Slave IDs are Fixed Keep Serial Master and Add Ethernet Master(s) ...
This chapter presents some case studies to help guide. If you can not find the case the same as yours, it does not mean the MGate MB3000 is not suitable with you. Please contact Moxa and we will work it out with you.
MGate MB3000 User’s Manual Case Studies Replace Serial Masters with Ethernet Master(s), Slave IDs are Fixed Some legacy Modbus slave devices have fixed IDs that cannot be changed. In order to integrate the devices into a Modbus TCP network, a multiport MGate model (MB3280, MB3270, or MB3480) can be used to assign virtual slave IDs.
One system may use a different baudrate than another, or may use Modbus ASCII instead of Modbus RTU. The MGate MB3000 allows the different Modbus systems to be integrated into one network, regardless of the protocol or communication parameters.
Modbus Overview Appendi x A Introduction Modbus is one of the most popular automation protocols in the world. It supports both serial and Ethernet devices. Many industrial devices, such as PLCs, DCSs, HMIs, instruments, meters, motors, and drivers, use Modbus as their communication standard. Devices are Either Masters or Slaves All Modbus devices are classified as either a master or a slave.
MGate MB3000 User’s Manual Modbus Overview Communication is by Request and Response All Modbus communication is by request and response. A master sends a request and a slave sends a response. The master will wait for the slave’s response before sending the next request. For broadcast commands, no response is expected.
Modbus TCP standard recommends that slaves be able to queue up to 16 requests at a time. The MGate MB3000 will queue up to 32 requests from each TCP master, for up to 16 TCP masters. Integrate Modbus Serial and Ethernet with Gateways Ordinarily, Modbus TCP and Modbus ASCII/RTU are unable to communicate with each other.
Declaration of Conformity Appendi x B Manufacturer’s Name: Moxa Technologies Co., Ltd. Manufacturer’s Fl.4, No.135, Lane 235, Pao-Chiao Rd., Shing Tien City, Address: Taipei, Taiwan, R.O.C. Declares that the product: MGate MB3000 series Product Name: MGate MB3180 Model Number: MGate MB3280...
Need help?
Do you have a question about the MGate MB3000 Series and is the answer not in the manual?
Questions and answers