Table of Contents Introduction ............................1-1 Overview ............................1-2 Package Checklist ..........................1-3 Product Features ..........................1-3 Getting Started..........................2-1 Connecting the 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 .........................
Introduction Welcome to the MGate MB3660 Series of 8 or 16-port Modbus gateways that convert between Modbus TCP and Modbus RTU/ASCII protocols. All MB3660 gateways (MB3660-8, MB3660-16) have dual AC/DC power inputs and dual IP addresses built in for redundancy. Magnetic serial port isolation is also provided for “-I” models.
A Windows-based utility is provided to make it easy to search for and locate devices, assign IP addresses, import/export configuration files, and upgrade the the MGate MB3660’s firmware. The utility automatically connects to all available MGate MB3660 units on the LAN. A user-friendly web console is provided to configure the device from a web browser.
MGate MB3660 Modbus Gateway Introduction Package Checklist All models in the MGate MB3660 Series are shipped with the following items: Standard Accessories • 1 MGate MB3660 Modbus gateway • 1 8-pin RJ45-to-DB9 female serial cable for console setting • 2 L-shaped brackets for wall mounting •...
Getting Started This chapter provides basic instructions for installing the MGate MB3660. The following topics are covered in this chapter: Connecting the 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, refer to the hardware reference chapter for your model. ATTENTION Do not use the 1 KΩ pull high/low setting on the MGate MB3660 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
For initial configuration or for troubleshooting purposes, you may connect the unit directly to a PC. The unit’s Link LED will light up to indicate a live Ethernet connection. The MGate MB3660 has two Ethernet ports with two MAC addresses. Hence, the unit can be connected by two different IP addresses.
Getting Started LED Indicators Item Description Reset Button Press the Reset button for five seconds to load factory defaults. The MGate MB3660 will beep twice when the configuration has been reset. (LEDs) PWR 1, PWR 2 Power connection Power cable is not connected...
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 MB3660 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
You have two options. You can lock either the front or rear panel of the MGate MB3660 to the front of the rack. Locking the front panel is shown in the...
MGate MB3660 Modbus Gateway Getting Started Specifications Ethernet Interface Number of Ports: 2 ports (2 IP addresses) Speed: 10/100 Mbps, Auto MDI/MDIX Connector: RJ45 x 2 Protocols: Modbus TCP Client/Server Serial Interface Number of Ports: MGate MB3660-8: 8 ports MGate MB3660-16: 16 ports...
Page 14
MGate MB3660 Modbus Gateway Getting Started Power Consumption: MGate MB3660-8-2AC: 144mA/110V, 101mA/220V MGate MB3660-8-2DC: 312mA/24V, 156mA/48V MGate MB3660I-8-2AC: 244mA/110V, 159mA/220V MGate MB3660-16-2AC:178mA/110V,120mA/220V MGate MB3660-16-2DC: 390mA/24V, 195mA/48V Standards and Certifications Safety: UL 60950-1, EN 60950-1 (LVD) EMC: CE, FCC EMS: EN 55032/24...
Device Search Utility The following topics are covered in this chapter: Installing the Software Starting Device Search Utility (DSU) Connecting to the Unit Broadcast Search Search IP Locate Upgrading the Firmware...
Page 16
The following instructions explain how to install the Device Search Utility (abbreviated DSU), a utility for configuring and monitoring MGate MB3660 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: dsu_setup_[Version]_Build_[DateTime].exe...
Page 17
MGate MB3660 Modbus Gateway Device Search Utility 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 DSU on your desktop. 5. Click Install to start copying the software files.
Page 18
MGate MB3660 Modbus Gateway Device Search Utility 6. A progress bar will appear. The procedure should take only a few seconds to complete. 7. A message will indicate that DSU is successfully installed. You may choose to run it immediately by selecting Launch DSU.
The DSU 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 all MGate MB3660 units on the LAN. Search 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 MB3660 Modbus Gateway Device Search Utility Broadcast Search Click Search and a new Search window will pop up.
Page 21
Device Search Utility When the search is complete, every MGate MB3660 found on the LAN will appear in the DSU window. The MAC address, IP address, and Firmware version of each unit will be shown. Select the one you would like to...
MGate MB3660 Modbus Gateway Device Search Utility Search IP Click Search IP if you know the IP address of the unit and wish to connect to it directly. Enter the unit’s IP address and click OK. If the search is successful, the unit will be listed in the DSU window. Right click the unit to open a pop-up list of possible actions, or double click a unit to open the web console.
You can obtain the latest firmware for the MGate MB3660 from www.moxa.com. After downloading the new firmware file to your PC, you can use the DSU to write it to your MGate MB3660. Select the desired unit from the DSU list and then click Upgrade to begin the process.
Web Console Configuration The MGate MB3660 provides a web console for easy configuration through a web browser such as Microsoft Internet Explorer or Google Chrome. The following topics are covered in this chapter: Overview Basic Settings Network Settings ...
DSU to first search for the unit. Refer to the Device Search Utility. The welcome page shows information relevant to the MGate MB3660. Basic Settings Server Settings and Time Settings are shown on the Basic Settings page. Click Submit to save the current changes to the unit and click Save/Restart once all the settings have been changed.
Single IP mode allows users to use the same IP address on both Ethernet ports. You need to choose which LAN port will be active when the device boots up. The MGate MB3660 will continuously send PING requests to the assigned host to determine the network status. If the active LAN fails to respond, the unit will automatically hand over to the backup LAN.
MGate MB3660 Modbus Gateway Web Console Configuration Parameter Value Notes LAN mode Dual Subnet, Single IP Use two different IP addresses for the two Ethernet ports, or use one IP address for both ports. LAN IP configuration Static IP, DHCP, BootP, or Select Static IP if you are using a fixed IP address.
MGate MB3660 Modbus Gateway Web Console Configuration Protocol Settings The MGate MB3660 provides two operation modes for Modbus communication: Transparent mode and Agent Mode. In Transparent mode, the gateway will bypass and translate Modbus commands between Modbus TCP/RTU/ASCII. In Agent mode, the gateway will actively poll the Modbus slave devices and store the data in the gateway’s memory.
MGate MB3660 Modbus Gateway Web Console Configuration Transparent Mode Mode Double click the intended serial port column to set detailed Modbus parameters, or click Edit to enter the settings page.
Page 30
Rx signals within an expected time interval. If the response is timed out, all received data will be discarded. The MGate MB3660 will automatically determine the timeout interval if the timeout value is set to 0.
Page 31
MGate MB3660 Modbus Gateway Web Console Configuration Auto Device Routing (patent pending) The Moxa Modbus gateways provide an auto routing mechanism that eliminates the burdensome task of setting the slave ID table manually. Now, users no longer need to set the routing table. The Moxa Modbus gateways will help detect and route correctly.
Page 32
MGate MB3660 Modbus Gateway Web Console Configuration Click OK to delete the existing (factory default or user-set) routing table; the auto routing mechanism will automatically find the correct serial port that connects to the target Modbus device. Moreover, if a device is added to the gateway later, the gateway can also route it correctly.
Page 33
MGate MB3660 Modbus Gateway Web Console Configuration On the other hand, if you have manually set routing table already and would like to enable the auto routing mechanism for the newly added devices, click No to keep the existing routing table. The gateway will keep the existing user-set routing table and automatically route the newly devices.
Page 34
MGate MB3660 Modbus Gateway Web Console Configuration Select the first channel and click Edit. The Slave ID here represents the Virtual ID recognized by the Modbus master. The routing table will be as follows: Then, select the second channel and click Edit. Since the virtual ID recognized by the Modbus master side is 2, and the real slave ID of the device B is ID 1, the offset should be set as -1.
MGate MB3660 Modbus Gateway Web Console Configuration The routing table will be as follows: Now, the Modbus master can send a request with slave ID 1 to the Modbus device A connected to serial port 1 as well as sent a request with slave ID 2 to the Modbus device B connected in serial port 2.
Initial Delay setting. Modbus TCP Exception The MGate MB3660 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.
Page 37
Intelligent Mode When the MGate MB3660 runs under transparent mode with the serial device as a Modbus slave, you do not need to type Modbus commands (copied from the SCADA system) into the gateway. However, transparent mode uses a traditional round-robin polling mechanism, which supports only one request-response action at a time, resulting in poor performance.
Page 38
MGate MB3660 Modbus Gateway Web Console Configuration Once activated, the gateway will learn and memorize the Modbus commands it receives. Once a command has been learned, the gateway will act as though it were in agent mode and actively send Modbus requests to the relevant Modbus devices.
(Modbus RTU/ASCII). Modbus TCP Settings The MGate MB3660 supports a Modbus TCP function with Master (Client) and Slave (Server) modes. For slave mode, the MGate works as a server and waits for incoming connections from the Modbus TCP client. In master mode, the MGate works as a client and tries to build a TCP connection with the remote Modbus TCP slave device.
Page 40
Slave Mode Settings The MGate MB3660 supports Modbus slave mode, which means the MGate will work as a server and wait for incoming connection requests. The default TCP listen port is 502. In this mode, the MGate will wait for incoming Modbus TCP requests and use the internal memory as the slave register to respond.
Page 41
MGate MB3660 Modbus Gateway Web Console Configuration Parameters Value Description Initial delay 0-30000 ms Some Modbus slaves may take more time to boot up than other devices. In some environments, this may cause the entire system to suffer from repeated exceptions during the initial boot-up.
Page 42
MGate MB3660 Modbus Gateway Web Console Configuration Parameters Description Enable To enable/disable this Modbus command Name Enter a name to help identify the command, such as the location, function, etc. Slave IP address The IP address of remote slave device.
Page 44
MGate MB3660 Modbus Gateway Web Console Configuration Use the Timeout for serial side’s data update item to set how long the gateway will wait to activate this function. Status Monitoring The Status Monitoring function provides status information of field devices when the MGate is being used as a master/client;...
Page 45
Modbus RTU/ASCII Settings According to the Modbus RTU/ASCII settings, the MGate MB3660 will act as a Modbus master or Modbus slave in order to communicate with your Modbus RTU/ASCII devices. For Slave mode, the MGate acts as a slave and waits for the incoming connection from the Modbus master.
Page 46
Web Console Configuration Slave Mode Settings You will need to specify which Modbus protocols will run in Slave mode. The MGate MB3660 supports Modbus RTU and Modbus ASCII protocols in Slave mode. Double click a serial port for additional settings, or click the intended serial port and then click Edit.
Page 47
Web Console Configuration Master Mode Settings You will need to specify which Modbus protocols will run in Master mode. The MGate MB3660 supports Modbus RTU and Modbus ASCII protocols in Master mode. The MGate MB3660 also provides several advanced settings for specific application requirements. The following settings are optional for most applications.
Page 48
Rx signals within an expected time interval. If the response is timed out, all received data will be discarded. The MGate MB3660 will automatically determine the timeout interval if the timeout value is set to 0.
A Modus RTU/ASCII master may set several commands that are sent to slave devices. Some users are familiar with CSV file format to edit these commands. Therefore, MGate MB3660 supports the import or export functions for CSV files. First, click Export to generate the template file.
Page 50
MGate MB3660 Modbus Gateway Web Console Configuration Then open the exported CSV file to further configure. Make sure to follow the format or an error will occur when the file is imported. The detail description of the format is shown below.
Page 51
MGate MB3660 Modbus Gateway Web Console Configuration Item Value Note cmdSlaveId 1 to 255 (Slave ID) cmdFunc 1-6,15,16,23 (Function) cmdTrigger 1, 2 1:Cyclic (Trigger) 2:Data Change cmdPollinterval 10 to 1200000 ms (Poll interval) cmdEndianSwap 0, 1, ,2, 3 0:None (Endian swap)
Page 52
MGate MB3660 Modbus Gateway Web Console Configuration I/O Data Mapping You can verify the gateway’s memory allocation on the I/O Data Mapping page. First select the Modbus data flow you want to see. In agent mode, you need to manually set Modbus commands one-by-one and assign a gateway memory address for storing this data.
Page 53
MGate MB3660 Modbus Gateway Web Console Configuration You can click on the Re-Arrange button to automatically address the internal address. The update internal address will become as follows: Example 2 On the contrary, you can also set the internal address manually. For example, if you add two Modbus commands that Command1 uses addresses 0 to 19, whereas Command2 uses addresses 10 to19, then obviously a memory overlap exists.
MGate MB3660 Modbus Gateway Web Console Configuration To rectify the error, click Command2 to change its starting address from 10 to 20. Once the change has been made, each of the two commands will be allocated to unique address ranges in the gateway’s memory.
Page 55
MGate MB3660 Modbus Gateway Web Console Configuration These settings are used to restrict access to the module by IP address. Only IP addresses on the list will be allowed access to the device. You may add a specific address or range of addresses by using a combination of...
Page 56
MGate MB3660 Modbus Gateway Web Console Configuration Email Alert Settings Parameters Description Mail server The mail server’s domain name or IP address. User name This field is for your mail server’s user name, if required. Password This field is for your mail server’s password, if required.
Page 57
Firmware updates for the MGate MB3660 are located at www.moxa.com. After you have downloaded the new firmware onto your PC, you can use DSU to write it onto your MGate MB3660. Select the desired unit from the list and click to begin the process. Choose the correct file and click Submit to upgrade the firmware.
Exported configuration files can help administrators to identify system problems provide useful information for Moxa’s Technical Service Team when maintenance visits are requested. The import or export function saves all the configuration settings and parameters of the MGate MB3660 in a *.ini file. To begin, click the Import or Export button.
The MGate MB3660 provides two system monitoring functions: Relay status and Protocol status. Relay Status The MGate MB3660 has a built-in 3-pin relay output. It can be triggered by power input failure and LAN link down. Enable the relay output functions by clicking the relay check box in the Auto Warning Settings.
Page 60
Web Console Configuration Protocol Status The MGate MB3660 has a built-in Modbus traffic monitor function. For troubleshooting or management purposes, you can monitor Modbus RTU/ASCII/TCP data passing through the MGate MB3660. Rather than simply echoing the data, the DSU presents the data in an intelligent, easy-to-understand format with clearly designated fields including source, type, destination, contents, and more.
MGate MB3660 Modbus Gateway Web Console Configuration Save/Restart All changes will be activated by clicking the Submit button first and then restarting the gateway. If a lot of settings need to be changed, you can click Submit for each setting and then click Save/Restart to activate all the changes.
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...
System). However, many DCSs are now Ethernet-based and operate as a Modbus TCP slave device. The MGate MB3660 Modbus gateway can link a serial-based HMI to distributed DCSs over an Ethernet network. Up to 128 Modbus TCP slave devices are supported by each MGate MB3660.
Serial Master(s) with Serial Slaves Let Modbus serial devices communicate The MGate MB3660 provides a feature for connecting serial master(s) with serial slave devices by using transparent mode. You only need to set up the slave ID routing mechanism.
Case Studies The following topics are covered in this chapter: Introduction Replace Serial Masters with Ethernet Master(s), Configurable Slave IDs Replace Serial Masters with Ethernet Master(s), Fixed Slave IDs Keep Serial Master and Add Ethernet Master(s) ...
The MGate MB3660 can connect to each serial slave so Ethernet SCADA masters will be able to control them. However, since slave IDs cannot be repeated in a system, we will need to change the IDs of some of the slaves...
MGate MB3660 Modbus Gateway Case Studies Replace Serial Masters with Ethernet Master(s), Fixed Slave IDs 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 can be used to assign virtual slave IDs. For more information about virtual slave IDs, refer to Set Up Slave ID Mapping, chapter 4.
One system may use a different baudrate than another, or may use Modbus ASCII instead of Modbus RTU. The MGate MB3660 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 MB3660 provides a patent-pending function that tests all attached devices and recommends a response timeout value. This function saves considerable time and effort for system integrators and results in...
The Modbus TCP standard recommends that slaves be able to queue up to 16 requests at a time. The MGate MB3660 will queue up to 32 requests from each TCP master, for up to 16 TCP masters.
Need help?
Do you have a question about the Mgate MB3660 and is the answer not in the manual?
Questions and answers