Moxa Technologies MGate MB3660 User Manual

Moxa Technologies MGate MB3660 User Manual

Modbus gateway
Hide thumbs Also See for MGate MB3660:
Table of Contents

Advertisement

Quick Links

MGate MB3660 Modbus Gateway
User Manual
Version 6.3, September 2023
www.moxa.com/products
© 2023 Moxa Inc. All rights reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MGate MB3660 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Moxa Technologies MGate MB3660

  • Page 1 MGate MB3660 Modbus Gateway User Manual Version 6.3, September 2023 www.moxa.com/products © 2023 Moxa Inc. All rights reserved.
  • Page 2 MGate MB3660 Modbus Gateway User Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice © 2023 Moxa Inc. All rights reserved.
  • Page 3: Table Of Contents

    Table of Contents Introduction ............................5 Overview .............................. 5 Package Checklist ..........................6 Product Features ........................... 7 Getting Started ............................. 8 Connecting the Power ..........................8 Connecting Serial Devices ........................8 Connecting to a Host or the Network ......................8 Wiring Requirements ..........................
  • Page 4 Requests Need a Time Limit ........................83 Modbus Ethernet vs. Modbus Serial ......................84 Integrate Modbus Serial and Ethernet with Gateways ................84 SNMP Agents with MIB II and RS-232-Like Groups ................85 RFC1213 MIB-II Supported SNMP Variable ....................85 RFC1317 RS-232-Like Groups .......................
  • Page 5: Introduction

    1. 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.
  • Page 6: Package Checklist

    IP addresses, import/export configuration files, and upgrade the MGate MB3660’s firmware. The utility automatically connects to all available MGate MB3660 units on the LAN. A user-friendly web console (refer to Chapter 4) is provided to configure the device from a web browser.
  • Page 7: Product Features

    ID mapping (slave ID table) allows access for up to 256 TCP clients/masters. • Dual VDC or VAC power inputs with a wide power input range • 3-pin fault relay circuit for event alarms • 2 kV isolation protection (for “-I” models) MGate MB3660 Modbus Gateway User Manual...
  • Page 8: Getting Started

    • 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. MGate MB3660 Modbus Gateway User Manual...
  • Page 9: Wiring Requirements

    If the current goes over the allowed maximum, the wiring could overheat, causing serious damage to your equipment. Temperature Caution! Be careful when handling the MGate MB3660. When plugged in, the MGate MB3660’s internal components generate heat, and consequently the board may feel too hot to touch. You should also observe the following common wiring rules: •...
  • Page 10: Dimensions

    Dimensions AC-DB9 Models DC-DB9 Models MGate MB3660 Modbus Gateway User Manual...
  • Page 11: Adjustable Pull High/Low Resistors For The Rs-485 Port

    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 MB3660 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
  • Page 12: Sd Card

    SD card The MGate MB3660 provides users with an easy way to back up, copy, replace, or deploy. The MGate is equipped with an SD card slot. A First time using the MGate gateway with a new SD card Format the SD card as a FAT file system through a PC.
  • Page 13: Pin Assignments

    Pin Assignments The MGate MB3660 uses DB9 serial ports to connect to Modbus RTU or ASCII devices. Each port supports three serial interfaces that are selected by software: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RJ45 (Ethernet, Console) Ethernet Console (RS-232) –...
  • Page 14: Rackmount

    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 following figure.
  • Page 15: Device Search Utility

    Installing the Software 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. Please download the DSU from Moxa’s website at http://www.moxa.com. Then, run the following setup program to begin the installation process: dsu_setup_[Version]_Build_[DateTime].exe...
  • Page 16 Browse..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. MGate MB3660 Modbus Gateway User Manual...
  • Page 17 Click Install to copy the software files. A progress bar will appear. The procedure should take only a few seconds to complete. MGate MB3660 Modbus Gateway User Manual...
  • Page 18 7. A message will show that DSU is successfully installed. You may choose to run it immediately by selecting Launch DSU. You may also open DSU through Start > Programs > MOXA > DSU, as shown below. MGate MB3660 Modbus Gateway User Manual...
  • Page 19: Starting Device Search Utility (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.
  • Page 20: Broadcast Search

    Broadcast Search Click Search and a new Search window will pop up. MGate MB3660 Modbus Gateway User Manual...
  • Page 21 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 configure.
  • Page 22: Search Ip

    Locate The Locate function will cause the unit to beep, so you can determine which unit is the target. The Assign IP function allows you to change the unit’s IP addresses. MGate MB3660 Modbus Gateway User Manual...
  • Page 23: Upgrading The Firmware

    IP address carefully. Another possibility is that the MGate MB3660 is on the same LAN as your PC, but on a different subnet. In this case, you can change your PC’s IP address and/or netmask so that it is on the same subnet as the MGate MB3660.
  • Page 24: Web Console Configuration

    4. 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. Logging into the Web Console To connect to the MGate web console, open a web browser and enter the MGate gateway’s IP address. If you cannot log in to the unit, you can use the Device Search Utility (DSU) to first search for the unit.
  • Page 25: Basic Settings

    “Cabinet A001.” Time Settings The MGate MB3660 has a built-in real-time clock for time calibration functions. Functions such as the log function can add real-time information to the message. You can do time calibration either followed by local time or time server.
  • Page 26: Network Settings

    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 cannot respond, the unit will automatically be handed over to the backup LAN.
  • Page 27: Serial Settings

    RTS pin in the transmission direction. When activated, data will be sent after the RTS pin is toggled ON for the specified time interval. After data transmission is finished, the RTS pin will toggle OFF for the specified time interval. MGate MB3660 Modbus Gateway User Manual...
  • Page 28: Protocol Settings

    Protocol Settings The MGate MB3660 provides two operation modes for Modbus communication: Transparent mode and Agent Mode; and can select Disable to deactivate it. In Transparent mode, the gateway will bypass and translate Modbus commands between Modbus TCP and RTU/ASCII. In Agent mode, the gateway will actively poll the Modbus server/slave devices and store the data in the gateway’s memory.
  • Page 29 Modbus system to continue operation, even if a server/slave device is disconnected or faulty. The MGate MB3660 can also auto-detect the response timeout. Instead of manually figuring out the appropriate setting, you can click Auto Detection to have MGate figure out the setting for you. Once a value has been recommended, you can fine-tune it to get the best performance.
  • Page 30 In order to provide better performance as an agent gateway under transparent mode, but without requiring users to key in a lot of Modbus commands, the MGate MB3660 series of gateways are designed with an innovative command learning function, which can be enabled with a single mouseclick on Enable Intelligent Mode.
  • Page 31 Modbus requests with slave ID 006~010 will be routed to serial port2. Users must set their own customized routing. Select the one you want to set and click Add/Edit/Delete buttons to change the existing routing. Set each port one by one. MGate MB3660 Modbus Gateway User Manual...
  • Page 32 This snapshot shows the routing mechanism is in Auto mode, and the gateway detects that slave ID 1 and 2 are connected to port 1 and slave ID 3 is connected to port 2. MGate MB3660 Modbus Gateway User Manual...
  • Page 33 Virtual ID(Device ID recognized by Modbus Client/Master) Offset Device A Device B Original Setting Select the first channel and click Modify. The Slave ID here represents the Virtual ID recognized by the Modbus client/master. MGate MB3660 Modbus Gateway User Manual...
  • Page 34 Now, the Modbus client/master can send a request with slave ID 1 to the Modbus device A connected to serial port 1 as well as send a request with slave ID 2 to the Modbus device B connected in serial port 2. MGate MB3660 Modbus Gateway User Manual...
  • Page 35 To define a priority request, enable the appropriate priority scheme (i.e., Specified Masters, Specified TCP Port, or Specified Requests). Then, specify the parameter(s) that will show a priority request. Finally, click Add/Modify to apply this definition. (This last step is unnecessary for Specified TCP Port.) MGate MB3660 Modbus Gateway User Manual...
  • Page 36 This allows the Modbus system to continue operation even if a server/slave device is disconnected or faulty. On the MGate MB3660, the Modbus TCP response timeout field is used to configure how long the gateway will wait for a response from a Modbus ASCII or RTU server/slave. Refer to your device manufacturer’s documentation to manually set the response timeout.
  • Page 37 Intelligent Commands When the MGate MB3660 runs under transparent mode with the serial device as a Modbus server/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: Agent Mode

    (Modbus RTU/ASCII). Modbus TCP The MGate MB3660 supports a Modbus TCP function with Master and Slave modes. For slave mode, the MGate works as a server/slave and waits for incoming connections from the Modbus TCP client/master. In master mode, the MGate works as a client/master and tries to build a TCP connection with the remote Modbus TCP server/slave device.
  • Page 39 Slave Mode Settings The MGate MB3660 supports Modbus slave mode, which means the MGate will work as a server/slave 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 server/slave register to respond.
  • Page 40 Polling intervals are in milliseconds; since the module sends all requests in turns, Poll interval the actual polling interval also depends on the number of requests in the queue and their parameters. The range is from 10 to 1,200,000 ms. MGate MB3660 Modbus Gateway User Manual...
  • Page 41 To diagnose the upstream connection that is lost, the Fault Protection function would be quite useful by sending a predefined setting to field devices to prevent incorrect actions. This feature will appear while setting the “Write” function codes under Command Parameters. MGate MB3660 Modbus Gateway User Manual...
  • Page 42 Monitoring function supports diagnosing downstream connection lost. The Status Monitoring function supports and built-in MGate MB3660 Series, which provides status information of field devices when the MGate is being used as a client/master; information includes an alive list, counter, the result of commands issued, etc.
  • Page 43 Modbus serial slave ID. The Modbus serial client/master can retrieve the Modbus TCP server/slave devices’ status via Modbus command with the following information. Slave ID [MB3660’s Modbus RTU/ASCII slave ID] Function 0x03 or 0x04 Address 41001- Quantity 16 registers MGate MB3660 Modbus Gateway User Manual...
  • Page 44 IDs and the relative Modbus commands. Slave Mode Settings You will need to specify which Modbus protocols will run in Slave (MGate role) 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 45 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 46 To do this, manually add all Modbus commands that will handle the data exchange. The Add, Edit, Copy, and Delete buttons support the Modbus command arrangement. When you click on the Add and Edit buttons, the following dialog box will be displayed. MGate MB3660 Modbus Gateway User Manual...
  • Page 47 A Modus RTU/ASCII client/master may set several commands that are sent to server/slave devices. Some users are familiar with CSV file format to edit these commands. Therefore, the MGate MB3660 supports the import or export functions of CSV files. First, click Export to generate the template file. Then open the exported CSV file to further configure.
  • Page 48 Note 0: RTU Slave 1: RTU Master mode_type 0, 1, 2, 3 2: ASCII Slave 3: ASCII Master 1 to 8 (the MGate MB3660-8 Series) PortIndex Serial port number basic_setting 1 to 16 1 to 8 (the MGate (RTU/ASCII Slave...
  • Page 49 Two types of errors should be avoided. Format Error invalid character, absent/additional columns/rows below data block Data Range Error value is out of range (Ref Port Configuration Format) MGate MB3660 Modbus Gateway User Manual...
  • Page 50 We recommend using I/O Data Mapping to check the memory address of each command. The commands will be shown under the Modbus Master (MGate role) mode. While using I/O Data mapping function, the MGate MB3660 Series supports both manual and automatic ways for mapping to an internal address.
  • Page 51 On the contrary, you can also set the internal address manually. For example, if you add two Modbus commands that Command1 uses addresses 1 to 20, whereas Command2 uses addresses 1 to 20, then obviously, a memory overlap exists. MGate MB3660 Modbus Gateway User Manual...
  • Page 52: System Management

    The Accessible IP List function allows you to add or block remote host IP addresses to prevent unauthorized access. Access to the MGate MB3660 is controlled by the 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 MB3660.
  • Page 53 When the log amount exceeds the warning percentage, it will trigger an event to Warning (%) SNMP Trap or Email SNMP Trap Warning by Email Event log oversize Overwrites the oldest event log action Stops recording event log MGate MB3660 Modbus Gateway User Manual...
  • Page 54 This field is for your mail server’s password, if required. From e-mail address This is the e-mail address from which automatic e-mail warnings will be sent. To e-mail address 1 to 4 This is the e-mail address or addresses MGate MB3660 Modbus Gateway User Manual...
  • Page 55 This is a text password mechanism that is used to weakly authenticate changes Write community string to agents of managed network devices. SNMP agent version The MGate MB3660 Series supports SNMP V1, V2c, and V3. MGate MB3660 Modbus Gateway User Manual...
  • Page 56 The MGate can be searched by the Device Search Utility Moxa command Enable/Disable (DSU). If you have any security concerns, you can choose Disable to deny the DSU right to access. MGate MB3660 Modbus Gateway User Manual...
  • Page 57 Session Settings Value Description The MGate MB3660 offers not only local authentication Console Authentication Local/ Radius/ Radius- network but also Remote Authentication Dial-In User type Local/ Local-Radius Service (RADIUS) network service. While selecting combination types of console Try next types on...
  • Page 58 Select how the MGate checks the password strength check 90 to 180 Password lifetime Set the password lifetime period days Account Login Failure Logout Value Description 1 to 10 Retry failure threshold time(s) Lockout time 1 to 60 min MGate MB3660 Modbus Gateway User Manual...
  • Page 59 “admin” and the Service-Type as “Login”. Maintenance Ping The MGate gateway will send an ICMP packet through the network to a specified host, and the result can be viewed on the web console immediately. MGate MB3660 Modbus Gateway User Manual...
  • Page 60 The export function allows you to export configuration files that can be imported onto other gateways to restore malfunctioning systems within minutes. Troubleshooting. • Exported configuration files can help administrators to identify system problems that provide useful information for Moxa’s Technical Service Team when maintenance visits are requested. MGate MB3660 Modbus Gateway User Manual...
  • Page 61 The maximum key length of the MGate devices supports 2,048 bits. Some well-known third-party CA (Certificate Authority) companies are listed below for your reference: (https://en.wikipedia.org/wiki/Certificate_authority): IdenTrust (https://www.identrust.com/) DigiCert (https://www.digicert.com/) Comodo Cybersecurity (https://www.comodo.com/) GoDaddy (https://www.godaddy.com/) Verisign (https://www.verisign.com/) MGate MB3660 Modbus Gateway User Manual...
  • Page 62: System Monitoring

    System Monitoring System Log Go to System Log under System Status to view network connection information. MGate MB3660 Modbus Gateway User Manual...
  • Page 63 Relay State 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 checkbox in the Auto Warning Settings. When a warning event occurs, the relay circuit will activate to enable the warning device, such as a beeper.
  • Page 64 This function is only available on the web console. Modbus RTU/ASCII Diag It includes the Diagnose function, which provides status information for Modbus RTU/ASCII/TCP troubleshooting. Verify the connection status or packet counters to make sure communications are running smoothly. Modbus TCP Diagnostics MGate MB3660 Modbus Gateway User Manual...
  • Page 65: Serial Redirector Settings

    For troubleshooting or management purposes, you can monitor the Modbus RTU/ASCII data passing through the MGate MB3660 on the network. Rather than simply echoing the data, the web console presents the data in an intelligent, easy-to-understand format with clearly designated fields, including source, type, destination, contents, and more.
  • Page 66 Now, you want to add a Modbus TCP client/master such as SCADA into the system and keep the serial Modbus RTU system. Set up the serial redirector using a MGate MB3660. Configuring with the following steps allows the serial client/master to continue controlling the serial servers/slaves even when implementing a new TCP network.
  • Page 67 MGate MB3660 Modbus Gateway User Manual...
  • Page 68 1 and it is connected to serial port 2. Select Serial type and set the destination port 2 for slave ID 1, so the Modbus RTU requests sent to slave ID 1 will be routed to serial port 2. MGate MB3660 Modbus Gateway User Manual...
  • Page 69 Modbus TCP server/slave such as PLC into the system and keep the serial Modbus RTU system. Set up the serial redirector using a MGate MB3660. Configuring with the following steps allows the serial client/master to continue controlling the serial servers/slaves even when implementing a new TCP network.
  • Page 70 MGate MB3660 Modbus Gateway User Manual...
  • Page 71 ID 1, so the Modbus RTU requests sent to slave ID 1 will be routed to serial port 1. Select TCP type and set the IP address 192.168.127.87:502 to be the destination for slave ID 2, then Modbus RTU requests sent to slave ID 2 will be routed to 192.168.127.87:502. MGate MB3660 Modbus Gateway User Manual...
  • Page 72: Save/Restart

    Additionally, the Moxa MXview supports Security View function to follow Moxa’s security guidelines, which are based on current IEC 62243 component-level recommendations. Security View checks the security level of Moxa’s network devices, including MGate MB3000 Series. MGate MB3660 Modbus Gateway User Manual...
  • Page 73 MXview via Plug-in Manager. The Plug-in Manager is automatically installed when setting up MXview. You can download the plug-in package on the product page. Please execute Plug-in Manager and add the plug-in package. MGate MB3660 Modbus Gateway User Manual...
  • Page 74: Mxconfig

    Before configuring the MGate MB3000 devices via MXconfig utility, you must add the MB3000 plug-in package to MXconfig. You can download the plug-in package from the product page and execute plug-in package with just a few clicks. MGate MB3660 Modbus Gateway User Manual...
  • Page 75 For more detailed information regarding MXview/MXconfig, download the user’s manual from Moxa’s website http://www.moxa.com MGate MB3660 Modbus Gateway User Manual...
  • Page 76: Typical Applications

    Most modern PLCs and host computers support Modbus TCP over Ethernet. To access discrete Modbus RTU/ASCII devices for data collection and control, they can rely on the MGate MB3660 Modbus gateway. The MGate MB3660 supports Modbus TCP with up to 256 simultaneous connections. The serial interface supports both RS-232 and RS-422/485, selectable through software.
  • Page 77: Serial Clients/Masters With Multiple Ethernet Servers/Slaves

    Control System). However, many DCSs are now Ethernet-based and operate as a Modbus TCP server/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 server/slave devices are supported by each MGate MB3660.
  • Page 78: Serial Client(S)/Master(S) With Serial Servers/Slaves

    Servers/Slaves Let Modbus serial devices communicate The MGate MB3660 provides a feature for connecting serial client(s)/master(s) with serial server/slave devices by using transparent mode. You only need to set up the slave ID routing mechanism. MGate MB3660 Modbus Gateway User Manual...
  • Page 79: Case Studies

    The MGate MB3660 can connect to each serial server/slave so Ethernet SCADA clients/masters will control them. However, since slave IDs cannot be repeated in a system, we will need to change the IDs of some of...
  • Page 80: Replace Serial Clients/Masters With Ethernet Client(S)/Master(S), Fixed Slave Ids

    In this scenario, the serial control system is a direct, low-latency system. The serial client/master must not be replaced, but Ethernet clients/masters will need to have access to the serial servers/slaves for monitoring or supervision. MGate MB3660 Modbus Gateway User Manual...
  • Page 81: Serial Redirector

    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.
  • Page 82: Modbus Overview

    For broadcast commands, no response is expected. This is illustrated by three scenarios as follows: Normal The client/master sends a request to the server/slave. The server/slave sends a response with the requested information. MGate MB3660 Modbus Gateway User Manual...
  • Page 83: Requests Need A Time Limit

    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 more accurate timeout settings.
  • Page 84: Modbus Ethernet Vs. Modbus Serial

    The Modbus TCP standard recommends that servers/slaves be able to queue up to 16 requests at a time. The MGate MB3660 will queue up to 32 requests from each TCP client/master, for up to 16 TCP clients/masters.
  • Page 85: Snmp Agents With Mib Ii And Rs-232-Like Groups

    B. SNMP Agents with MIB II and RS-232- Like Groups The MGate MB3660 has built-in Simple Network Management Protocol (SNMP) agent software that supports SNMP Trap, RFC1317 and RS-232-like groups, and RFC 1213 MIB-II.The following topics are covered in this...
  • Page 86: Rfc1317 Rs-232-Like Groups

    RFC1317 RS-232-Like Groups RS-232 MIB Async Port MIB rs232Number rs232AsyncPortIndex rs232PortIndex rs232AsyncPortBits rs232PortType rs232AsyncPortStopBits rs232PortInSigNumber rs232AsyncPortParity rs232PortOutSigNumber rs232PortInSpeed rs232PortOutSpeed Input Signal MIB Output Signal MIB rs232InSigPortIndex rs232OutSigPortIndex rs232InSigName rs232OutSigName rs232InSigState rs232OutSigState MGate MB3660 Modbus Gateway User Manual...

Table of Contents