Table of Contents Introduction ............................1-1 Overview ............................1-2 Package Checklist ..........................1-3 Product Features ..........................1-3 Getting Started..........................2-1 Connecting Power ..........................2-2 Connecting Serial Devices ........................2-2 RS-485 Termination and Pull High/Low Resistors ................2-2 Connecting to a Host or the Network ..................... 2-3 Installing the Software .........................
Page 4
What is ProCOM? ........................10-11 How to Configure ProCOM for the MGate MB3000 ................ 10-11 Offline Open ........................... 10-14 Configure IP Address and Other Network Settings ............... 10-15 Configure Serial Communication Parameters ................10-16 RTS Toggle ..........................10-17 Set Up Modbus Routing (Smart Routing) ..................10-17 Customize Modbus Settings ......................
Introduction 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 user’s manual applies to the following models: •...
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 intelligently translates between Modbus TCP (Ethernet) and Modbus ASCII/RTU (serial) protocols, allowing Ethernet-based PLCs to control instruments over RS-485 without additional programming or effort.
MGate MB3000 Modbus Gateway Introduction 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 • Power adaptor (MB3180 only) •...
Getting Started This chapter provides basic instructions for installing the MGate MB3000. The following topics are covered in this chapter: Connecting Power Connecting Serial Devices RS-485 Termination and Pull High/Low Resistors Connecting to a Host or the Network ...
To modify the termination and pull high/low resistor settings, please refer to the hardware reference chapter for your model. 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 Modbus Gateway Getting Started Connecting to a Host or the Network A 10/100BaseT Ethernet port is located on the unit’s front panel. This port is used for the unit’s connection to a host or Ethernet network, as follows: •...
Hardware: MB3180 This chapter provides hardware information for the MGate MB3180. The following topics are covered in this chapter: Panel Layout LED Indicators Dimensions Jumpers DIN-Rail and Wall Mounting Specifications...
MGate MB3000 Modbus Gateway 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 the 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 Modbus Gateway Hardware: MB3180 DIN-Rail and Wall Mounting Mounting on a DIN-rail: Attach the DIN-rail accessories and latch the unit onto the DIN-rail as shown. The DIN-rail kit is ordered separately. Mounting on the wall: Place two screws in the wall and slide the unit onto the screws as shown. The head of each screw 6.5 mm or less in diameter, and the shaft should be 3 mm or less in diameter.
Page 16
MGate MB3000 Modbus Gateway Hardware: MB3180 Power Requirements Power Input 12 to 48 VDC Power Connector Power jack Power Consumption 200 mA@12 VDC, 60 mA@48 VDC Environmental Limits Operating Temperature 0 to 60°C (32 to 140°F) Storage Temperature -40 to 85°C (-40 to 185°F)
Hardware: MB3280 This chapter provides hardware information for the MGate MB3280. The following topics are covered in this chapter: Panel Layout LED Indicators Dimensions Jumpers DIN-Rail and Wall Mounting Specifications...
MGate MB3000 Modbus Gateway 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 the 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 Modbus Gateway Hardware: MB3280 DIN-Rail and Wall Mounting Mounting on a DIN-rail: Attach the DIN-rail accessories and latch the unit onto the DIN-rail as shown. The DIN-rail kit is ordered separately. Mounting on the wall: Place two screws in the wall and slide the unit onto the screws as shown. The head of each screw 6.5 mm or less in diameter, and the shaft should be 3 mm or less in diameter.
Page 22
MGate MB3000 Modbus Gateway Hardware: MB3280 Power Requirements Power Input 12 to 48 VDC Power Socket Power jack and terminal block Power Consumption 250 mA@12 VDC, 90 mA@48 VDC Environmental Limits Operating Temperature 0 to 60°C (32 to 140°F) Storage Temperature -40 to 85°C (-40 to 185°F)
Hardware: MB3480 This chapter provides hardware information for the MGate MB3480. The following topics are covered in this chapter: Panel Layout LED Indicators Dimensions Jumpers DIN-Rail and Wall Mounting Specifications...
MGate MB3000 Modbus Gateway 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 the 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 ON. 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 Modbus Gateway Hardware: MB3480 DIN-Rail and 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. The DIN-rail kit is ordered separately.
Page 28
MGate MB3000 Modbus Gateway Hardware: MB3480 Power Requirements Power Input 12 to 48 VDC Power Socket Power jack and terminal block Power Consumption 385 mA@12 VDC, 110 mA@48 VDC Environmental Limits Operating Temperature 0 to 60°C (32 to 140°F) Storage Temperature -40 to 85°C (-40 to 185°F)
Hardware: MB3170, MB3170I This chapter provides hardware information for the MGate MB3170 and MB3170I. The following topics are covered in this chapter: Panel Layout LED Indicators Dimensions Jumpers DIN-Rail and Wall Mounting Specifications...
MGate MB3000 Modbus Gateway Hardware: MB3170, MB3170I Panel Layout LED Indicators Name Color Function PWR1 Power is being supplied to the power input. PWR2 Power is being supplied to the power input. 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 Modbus Gateway Hardware: MB3170, MB3170I DIN-Rail and 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.
MGate MB3000 Modbus Gateway Hardware: MB3170, MB3170I Specifications Ethernet 10/100 Mbps, RJ45, Auto MDI/MDIX Number of Ports 2 (1 IP, Ethernet cascade) Connector 8-pin RJ45 Protection Built-in 1.5 kV magnetic isolation Optical Fiber Interface 100BaseFX Multimode Single-mode 50/125 μm Fiber Cable Type G.652...
Page 35
MGate MB3000 Modbus Gateway Hardware: MB3170, MB3170I Environmental Limits Operating Temperature 0 to 60°C (32 to 140°F) -40 to 75°C (-40 to 167°F) for “-T” models Storage Temperature -40 to 85°C (-40 to 185°F) Ambient Relative Humidity: 5 to 95% (non-condensing) Altitude: Up to 2000 m (795 hPa);...
Hardware: MB3270, MB3270I This chapter provides hardware information for the MGate MB3270 and MB3270I. The following topics are covered in this chapter: Panel Layout LED Indicators Dimensions Jumpers DIN-Rail and Wall Mounting Specifications...
MGate MB3000 Modbus Gateway Hardware: MB3270, MB3270I Panel Layout LED Indicators Name Color Function PWR1 Power is being supplied to the power input. PWR2 Power is being supplied to the power input. 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 Modbus Gateway Hardware: MB3270, MB3270I DIN-Rail and 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 Mounting on the wall: Pull out both the top and bottom sliders and align the screws accordingly.
Page 41
MGate MB3000 Modbus Gateway Hardware: MB3270, MB3270I Software Features Operation Mode RTU Slave, RTU Master, ASCII Slave, ASCII Master Utilities MGate Manager Multi-Masters and 32 simultaneous TCP masters, 32 simultaneous requests for each TCP master Multi-Request Power Requirements Power Input...
MGate MB3000 Modbus Gateway 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)
Typical Applications The following topics are covered in this chapter: 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...
RTU/ASCII devices for data collection and control, they can rely on the MGate MB3000 Modbus gateway. The MGate MB3000 supports Modbus TCP with up to 16 or 32 simultaneous connections. The serial interface supports both RS-232 and RS-422/485, selectable through software. Each serial port can be connected to one RS-232 or RS-422 serial device, or to 31 RS-485 serial devices.
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 now be accessed from...
Modifying the Configuration Configure Serial Port for RTU or ASCII, Master or Slave What is ProCOM? How to Configure ProCOM for the MGate MB3000 Offline Open Configure IP Address and Other Network Settings Configure Serial Communication Parameters ...
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway 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. To install MGate Manager, insert the MGate Documentation and Software CD into your PC's CD-ROM drive, and then run the following setup program to begin the installation process from the "Software"...
Page 49
MGate MB3000 Modbus Gateway 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 Install to start copying the software files.
Page 50
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway 6. A progress bar will appear. The procedure should take only a few seconds to complete. 7. A message will indicate that MGate Manager is successfully installed. You may choose to run it immediately by selecting Launch 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 MB3000 Modbus Gateway Configuring the Modbus Gateway Change Language Setting If you wish to run MGate Manager in a different language, you may click Language to change the language setting. A dialog box showing the available languages should appear as shown below.
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 located outside the LAN or can only be accessed by going through a router.
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway 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.
Page 55
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 Modbus Gateway Configuring the Modbus Gateway Modifying the Configuration Once your unit is displayed in MGate Manager, select it by clicking on it. The Configuration button will become available. Click Configuration to open the configuration window. Configure Serial Port for RTU or ASCII, Master or Slave The Mode tab is where each serial port’s operation mode is configured.
PCs can use ProCOM to communicate over the Ethernet with serial devices connected to the MGate MB3000 as if they were connected to the PC’s native COM ports. This advanced feature only works with the MGate MB3x70 Series.
Page 58
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway On the ProCOM mapping dialog box, you can map up to four ProCOM functions for each Modbus gateway to your PC’s COM ports. The driver will generate virtual COM ports on your PC to connect to the selected MGate MB3000s over the network.
Page 59
This way, when you send a Modbus request to ProCOM, the driver will forward your request to the MGate MB3000 and the MGate MB3000 will forward the request to the target Modbus device using the preset 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.
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway Offline Open This function enables users to open ProCOM port(s) before the device is connected. In this case, the data transmitted to ProCOM port(s) will be kept temporarily and will be sent out once the ProCOM port(s) are ready for access.
MGate MB3000 Modbus Gateway 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.
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway ATTENTION To erase an existing password, leave both the New Password and Confirm Password text input boxes blank. The password will be erased when you click OK in the bottom right corner.
With the MGate MB3000, this situation is addressed by using a slave ID table. While configuring the MGate, users set up a range of “virtual” slave IDs that are mapped to slave devices on a specific Modbus network. The virtual IDs here mean that the slave IDs are maintained and used on the Modbus master side.
Page 64
ATTENTION The MGate MB3000 will disregard any request that is not addressed to a virtual slave ID on its slave ID table. 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.
Page 65
Configuring the Modbus Gateway Port Routing Table The MGate MB3000 series gateways support two kinds of port routing mechanism: by IP address and by TCP port. The Modbus master can communicate with the Modbus slave devices connected to a specific serial port on the gateway by assigning an IP address or TCP port to the specified serial port.
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway Customize Modbus Settings The Modbus tab is where certain adjustments can be made to fine-tune the communication between different Modbus networks. You can configure Initial Delay, Modbus TCP Exception, Slave Channel, and Response Time-out.
Page 67
Inter-Frame Delay In Modbus RTU slave mode, user can determine the time-delay to transmit the data frame received from the slave device to the upstream. The MGate MB3000 will automatically determine the time interval if it is set to 0. 10-21...
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway ATTENTION Please note the following regarding automatic calibration of response time-outs: When automatically detecting the response time-out, the MGate will use the slave ID table to determine which ports and which IDs to search. Make sure that you have defined the slave ID table for your system before clicking Auto Detection.
The Accessible IP List function allows you to add or block remote host IP addresses to prevent unauthorized access. 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: •...
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway SNMP The SNMP function allows users to adjust SNMP related settings. To enable the SNMP function, select the Enable checkbox. Community Name: This field specifies the read/write community string used for the SNMP Agent. This is a text password mechanism that is used to weakly authenticate queries to agents of managed network devices.
MGate MB3000 Modbus Gateway 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.
This will tell you which physical unit corresponds with the unit that you selected. 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 Modbus Gateway 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.
Page 74
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway To stop capturing the log, press the Stop button. 10-28...
MGate MB3000 Modbus Gateway Configuring the Modbus Gateway 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...
Firmware updates for the MGate MB3000 are located at http://www.moxa.com. 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.
MGate MB3000 devices, setting network configurations, changing passwords, upgrading firmware, and importing/exporting configurations. All MGate MB3000 series devices can be recognized by MXview. However, be sure your MGate device has the proper firmware version installed, as listed in the following table:...
Case Studies The following topics are covered 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 guide you. If you can not find a case similar to yours, it does not mean the MGate MB3000 is not suitable for you. Please contact Moxa, and we will work it out with you.
MGate MB3000 Modbus Gateway 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 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.
The MGate MB3000 provides a patent-protected function that tests all attached devices and recommends a response time-out value. This function saves considerable time and effort for system integrators, and it results...
The 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 or 32 TCP masters.
Need help?
Do you have a question about the MGate MB3000 and is the answer not in the manual?
Questions and answers