Welcome to the MGate 5105-MB-EIP line of Modbus-to-EtherNet/IP gateways. All models perform easy protocol conversions between Modbus RTU/ASCII, Modbus TCP, and EtherNet/IP protocols. This chapter is an introduction to the MGate 5105-MB-EIP and includes the following sections: Overview Package Checklist ...
MGate 5105-MB-EIP Introduction Overview The MGate 5105-MB-EIP is a line of protocol gateways that provides users with the following features: • Gateway function to transfer data between Modbus RTU/ASCII, Modbus TCP and EtherNet/IP • Support for both EtherNet/IP adapter and scanner •...
MGate 5105-MB-EIP Introduction LED Indicators Color Description Power is off or a fault condition exists Steady: Power is on, and the MGate is functioning normally Green Blinking: The MGate has been located by MGate Manager’s Location function Ready Steady: Power is on, and the MGate is booting up...
3. Use an Ethernet cable to connect the MGate to the EtherNet/IP controller. 4. The MGate 5105-MB-EIP is designed to be attached to a DIN rail or mounted on a wall. For DIN-rail mounting, push down the spring and properly attach it to the DIN rail until it “snaps” into place. For wall mounting, install the wall-mount kit (optional) first, and then screw the device onto the wall.
Ready LED stops blinking (approx. 5 seconds). Pull-high, Pull-low, and Terminator for RS-485 Remove the MGate 5105-MB-EIP’s top cover and you will find DIP switches to adjust each serial port’s pull-high resistor, pull-low resistor, and terminator.
MGate 5105-MB-EIP Introduction microSD The MGate 5105-MG-EIP provides users with an easy way to backup, copy, replace, or deploy. The MGate is equipped with a microSD card slot. Users can plug in a microSD card to backup data, including the system configuration setting, GSD files, and system data log.
MGate 5105-MB-EIP Introduction Configuration Methods MGate 5105-MB-EIP provides three ways to configure an MGate. 1. MGate Manager (Windows utility) Use MGate Manager to configure the MGate through Ethernet, or check the MGate status. Refer to Chapter 3 for details. 2. Web console Use the web console to configure the MGate, or verify the MGate’s status, by Ethernet.
Quick Configuration Guide This chapter provides a quick overview of how to configure the MGate 5105-MB-EIP by web console. For more detailed information on how to configure the MGate 5105-MB-EIP, refer to Chapters 3 and 4. The following topics are covered in this chapter: ...
MGate 5105-MB-EIP Quick Configuration Guide Cable Connection The MGate gateway supports Modbus RTU/ASCII, Modbus TCP, and EtherNet/IP protocol. If the MGate gateway needs to communicate with Modbus RTU/ASCII devices, connect your Modbus device to the MGate gateway’s Modbus port. Regardless, at least one of your devices should be Modbus TCP or EtherNet/IP interface. Connect your Modbus TCP or EtherNet/IP device to the MGate gateway’s 10/100M Ethernet port as well.
MGate 5105-MB-EIP Quick Configuration Guide Network Settings First, configure the IP address and Netmask. Contact your network administrator for the appropriate IP settings information. Serial Settings Second, refer to the datasheet of your Modbus RTU/ASCII devices to configure Serial parameters for Modbus...
Modbus RTU/ASCII <-> Modbus TCP EtherNet/IP Configuration If you select EtherNet/IP Scanner as your device, MGate 5105-MB-EIP will be configured as Ethernet/IP Adapter. In Adapter mode, you can choose Automatic configuration to automatically map OT (Originator to Target) and TO (Target to Originator) data sizes to Modbus data.
MGate 5105-MB-EIP Quick Configuration Guide In Scanner mode, you must designate the parameters for each connection. Refer to your EtherNet/IP adapter’s datasheet to fill out OT and TO parameters. NOTE A PLC may use Output and Input instead of OT and TO.
Page 18
MGate 5105-MB-EIP Quick Configuration Guide In RTU/ASCII Slave mode, the MGate gateway works as a Modbus slave device and waits for the incoming query from the Modbus master device. You only need to identify the Modbus Slave ID when in Slave mode In RTU/ASCII Master mode, the MGate works as a Modbus master device and will send the Modbus request to the Modbus network actively.
MGate 5105-MB-EIP Quick Configuration Guide Modbus TCP Configuration The MGate gateway also supports both Modbus TCP Master (i.e. Client) and Slave (i.e. Server) modes. In Slave mode, assign the Slave ID and confirm that the Modbus device on the remote side can send commands via the corresponding TCP port.
MGate 5105-MB-EIP Quick Configuration Guide I/O Data Mapping The MGate provides an internal memory for data exchange between Modbus and EtherNet/IP protocols. After finishing the protocol settings, go to the I/O Data Mapping page and check if the data mapping is connected. In some cases, you may need to switch to manual arrangement to adjust the internal address for each command.
Page 21
MGate 5105-MB-EIP Quick Configuration Guide Some Diagnose pages are provided to help check whether any Modbus and EtherNet/IP communication issues happened. (E.g., invalid response or timeout issue) NOTE When the MGate gateway acts as an EtherNet/IP adapter, the OT instance is 100 and TO instance is 110.
MGate 5105-MB-EIP Quick Configuration Guide I/O Data View I/O Data View is designed to check all I/O modules’ exchanging data. Select data flow directions to obtain the correct data from Modbus or EtherNet/IP packets. 2-10...
MGate Manager Configuration The following topics are covered in this chapter: Installing the Software Starting MGate Manager Connecting to the Unit Modifying the Configuration Configure Device Network Settings Serial Settings Protocol Settings ...
MGate 5105-MB-EIP MGate Manager Configuration Installing the Software The following instructions explain how to install MGate Manager, a utility for configuring and monitoring MGate 5105-MB-EIP gateways 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 25
MGate 5105-MB-EIP MGate Manager Configuration 5. Click Next to start copying the software files. 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 5105-MB-EIP. Before running MGate Manager, make sure that the MGate 5105-MB-EIP is connected to your PC. You may open MGate Manager from the Windows Start menu by clicking Start Programs MGate Manager MGate Manager.
MGate 5105-MB-EIP MGate Manager Configuration When you click OK, MGate Manager will immediately use your chosen language. ATTENTION Set your MGate Manager to Default Language before contacting Moxa Technical Support. With support for multiple languages, MGate Manager is more user-friendly and accessible. However, if you need assistance from Moxa Technical Support, please change the language to Default Language.
MGate 5105-MB-EIP MGate Manager Configuration 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. Password Protection For safety reasons, account/password protection is enabled by default so you must provide the correct password to unlock the device before configuring the device.
You can enter a name to help you identify the unit location. Such as “Cabinet A001.” Time Settings The MGate 5105-MB-EIP 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. ATTENTION First-time users should select the time zone first.
MGate 5105-MB-EIP MGate Manager Configuration 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. Ethernet Settings Parameter Value Notes IP Configuration Static IP, DHCP, BOOTP Select Static IP if you are using a fixed IP address.
MGate Manager Configuration Serial Settings The MGate 5105-MB-EIP’s serial interface supports RS-232, 2-wire RS-485, 4-wire RS-485, and RS-422 interfaces. You must configure baudrate, parity, data bits, and stop bits before using the serial interface with Modbus RTS/ASCII protocol. Incorrect settings will result in communication failures.
MGate 5105-MB-EIP MGate Manager Configuration Protocol Settings The MGate gateway supports Modbus RTU/ASCII, Modbus TCP, and EtherNet/IP protocols. The possible combinations are listed in the following table. • Option-1: EtherNet/IP <-> Modbus RTU/ASCII • Option-2: EtherNet/IP <-> Modbus TCP •...
MGate Manager Configuration EtherNet/IP Settings The MGate 5105-MB-EIP supports Adapter and Scanner modes for EtherNet/IP protocol. In Adapter mode, you can select Automatic for I/O data size configuration to automatically map O->T (Originator to Target) and T->O (Target to Originator) data sizes with Modbus data.
Page 34
MGate 5105-MB-EIP MGate Manager Configuration Parameter Value Notes Name Name Connection Enable, Disable Enable or Disable this connection. Adapter IP address IP address Default EtherNet/IP port is 44818 and Port Port: 1 to 65535 Instance number 1 to 2147483647 Data size O->T: 0 to 496...
= 1,600 ms). Modbus RTU/ASCII Settings According to the Modbus RTU/ASCII settings, the MGate 5105-MB-EIP 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 36
MGate 5105-MB-EIP MGate Manager Configuration The MGate 5105-MB-EIP also provides several advanced settings for specific application requirements. The following settings are optional for most applications. It is suggested to use the default settings to test the MGate 5105-MB-EIP. Parameters Description Initial delay Some Modbus slaves may take more time to boot up than other devices.
Page 37
MGate 5105-MB-EIP MGate Manager Configuration Modify the Modbus command parameters to finish the configuration. You will need to configure each Modbus command through this dialog box. Parameters Description Name Enter a name to help to identify the command, such as the location, function, etc.
Slave Mode Settings The MGate 5105-MB-EIP supports Modbus TCP 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 39
MGate 5105-MB-EIP MGate Manager Configuration Parameters Value Description setting. Response Timeout 10 to 12000 ms This is used to configure how long the MGate will wait for a response from a Modbus slave. Max. retry 0 to 99 This is used to configure how many times the MGate will try to communicate with the Modbus slave.
MGate 5105-MB-EIP MGate Manager Configuration Parameters Description 04: Read input register 05: Write single coil 06: Write single register 15: Write multiple coils 16: Write multiple registers 23: Read/Write multiple registers Trigger Disable: The command is never sent Cyclic: The command is sent cyclically at the interval specified in the Poll Interval parameter.
MGate 5105-MB-EIP MGate Manager Configuration System Settings This configuration tab includes several system level settings, such as security, alarm, and information log. Most of these settings are optional. Accessible IP Settings 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.
Page 42
MGate 5105-MB-EIP MGate Manager Configuration System Log Settings These settings enable the MGate firmware to record important events for future verification. The recorded information can only be displayed in the web console. The available information that can be recorded includes the following events:...
Page 43
MGate 5105-MB-EIP MGate Manager Configuration E-mail 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 44
This is a text password mechanism that is used to weakly authenticate changes to agents of managed network devices. SNMP agent version The MGate 5105-MB-EIP supports SNMP V1, V2c, and V3. Read-only and Read/write access control The following fields allow you to define user names, passwords, and authentication parameters for two levels of access: read-only and read/write.
Page 45
MGate 5105-MB-EIP MGate Manager Configuration LLDP Settings Parameters Description Message transmit Default is 30 seconds. The allowable range is between 5 and 32,768 seconds. interval Misc. Settings This page includes console settings, password and relay output. Console Settings Parameters Value...
MGate 5105-MB-EIP MGate Manager Configuration Load Default To clear all the settings on the unit, use the Load Default button to reset the unit to its initial factory default values. Click Load Default and review the confirmation message. If you are sure you would like to reset the configuration to factory defaults, click the OK button.
Firmware updates for the MGate 5105-MB-EIP are located at www.moxa.com. After you have downloaded the new firmware onto your PC, you can use MGate Manager to write it onto your MGate 5105-MB-EIP. Select the desired unit from the list in MGate Manager and click Upgrade Firmware to begin the process.
MGate 5105-MB-EIP MGate Manager Configuration ATTENTION DO NOT turn off the MGate power before the firmware upgrade process is completed. The MGate will be erasing the old firmware to make room for the new firmware to flash memory. If you power off the MGate and terminate the progress, the flash memory will contain corrupted firmware and the MGate will fail to boot.
MGate Manager Configuration Export Function The export function saves all the configuration settings and parameters of the MGate 5105-MB-EIP in a *.ini file. To begin, click the Export button. Enter a file name and use the Browse button to save the file to a specific path. Then, click the OK button.
MGate gateway will revert to factory defaults. If this happens, import the settings from the file again. GSD Management GSD Management is designed for PROFIBUS gateways (e.g., the MGate 5102-PBM-PN), so it cannot be used for the MGate 5105-MB-EIP. 3-28...
MGate 5105-MB-EIP MGate Manager Configuration Offline Configuration Create or modify the configuration file manually through MGate Manager by first generating the configuration file with the Export function. The file generated by this function can also be used for the Import function. To use this function, click the Off-Line Configuration button to load the configuration window.
Web Console Configuration and Troubleshooting The following topics are covered in this chapter: Overview Common Settings Protocol Settings System Management System Monitoring...
Web Console Configuration and Troubleshooting Overview The MGate 5105-MB-EIP supports configuration and troubleshooting by web console. This chapter will focus only on the settings that can be configured by web console. These include monitoring and troubleshooting functions, such as how to check I/O data transmission, troubleshoot configurations, run diagnostics, etc. More detailed information about other configuration settings can be found in Chapter 3.
MGate 5105-MB-EIP Web Console Configuration and Troubleshooting Common Settings Refer to the appropriate reference section in Chapter 3: MGate Manager Configuration of this user’s manual for each MGate Manager settings page. MGate Manager Settings Page Reference Section in Chapter 3...
MGate 5105-MB-EIP Web Console Configuration and Troubleshooting System Management System Management – Maintenance – Ping This network testing function is available only in the web console. The MGate gateway will send an ICMP packet through the network to a specified host, and the result can be viewed in the web console immediately.
MGate 5105-MB-EIP Web Console Configuration and Troubleshooting System Monitoring System Monitoring – System Status – Network Connections Go to Network Connections under System Status to view network connection information. System Monitoring – System Status – System Log System Monitoring – System Status – Relay Status The MGate gateway includes a built-in relay circuit that is triggered in the event of a power failure or if the Ethernet link is down.
Page 57
MGate 5105-MB-EIP Web Console Configuration and Troubleshooting System Monitoring – System Status – LLDP Tables You can see LLDP related information, including Port, Neighbor ID, Neighbor Port, Neighbor Port Description, and Neighbor System. System Monitoring – Protocol Status – I/O Data View This page displays the internal memory information for input and output data transfers.
Page 58
For troubleshooting or management purposes, you can monitor the Modbus RTU/ASCII data passing through the MGate 5105-MB-EIP on the network. Rather than simply echoing the data, MGate Manager presents the data in an intelligent, easy-to-understand format with clearly designated fields, including source, type, destination, contents, and more.
Page 59
MGate 5105-MB-EIP Web Console Configuration and Troubleshooting System Monitoring –Communication Analysis After finishing all configurations, you can use Communication Analysis to confirm whether the settings are correct. Click Start and wait for 10 seconds, and an analysis report will appear with detailed fail statuses,...
Need help?
Do you have a question about the MGate 5105-MB-EIP and is the answer not in the manual?
Questions and answers