Table of Contents Introduction ............................5 Overview .............................. 5 Package Checklist ..........................5 Power Input and Relay Output Pinouts...................... 6 LED Indicators ............................6 Dimensions ............................7 Pin Assignments ............................ 7 Modbus (Modbus RTU/ASCII) Pin Assignment ..................7 Console (RS-232) Pin Assignment ....................7 Mounting the Unit ..........................
Page 4
Web Console Configuration and Troubleshooting ................70 Overview ............................70 Common Settings ..........................71 Protocol Settings ..........................71 System Management ..........................72 System Monitoring ..........................73 Fault Protection and Status Monitoring ....................79 Fault Protection ..........................79 Status Monitoring ......................... 80...
Web-based GUI for I/O data visualization • -40 to 75°C wide operating temperature range models available • Package Checklist All models of the MGate 5105-MB-EIP Series are shipped with the following items: Standard Accessories: 1 MGate 5105-MB-EIP Modbus-to-EtherNet/IP Gateway • Documentation & software CD •...
Received frame error (parity error, checksum error) Timeout (server/slave device no response) When MGate 5105 acts as RTU/ASCII Server/Slave: Received invalid function code Client/Master accessed invalid register address or coil addresses Received frame error (parity error, checksum error) MGate 5105-MB-EIP Series User Manual...
– RxD+ Data+ RxD- Data- – – – – – – – – – Console (RS-232) Pin Assignment The MGate 5105-MB-EIP Series uses an RJ45 connector to connect to a PC for device configuration. RS-232 MGate 5105-MB-EIP Series User Manual...
Reset Button Restore the MGate to factory default settings by using a pointed object (such as a straightened paper clip) to hold the reset button down until the Ready LED stops blinking (approx. 5 seconds). MGate 5105-MB-EIP Series User Manual...
MGate gateway’s microSD card, the microSD card will synchronize the configurations stored on the MGate gateway. Note that the replacement microSD card should not contain any configuration files on it; otherwise, the out-of-date configuration will copy to the MGate device. MGate 5105-MB-EIP Series User Manual...
You must use a DB9-to-RJ45 cable to connect the serial console port on the MGate gateway’s front panel to the serial port on the host. The serial console parameters are 115.2 kbps; parity: none; 8 data bits; and one stop bit. MGate 5105-MB-EIP Series User Manual...
Except for the Broadcast Search feature, you can also use the Device Search Utility (DSU) to detect MGate gateways on your network, which can be downloaded from Moxa's website at http://www.moxa.com. This utility can further support multiple gateways configurations to ease your job. MGate 5105-MB-EIP Series User Manual...
The Quick Setup function is not supported by northbound protocols of MQTT/Cloud feature from version 4.0 or above firmware. System Setup First, configure the Server Settings to identify the units and Network Settings of the MGate. MGate 5105-MB-EIP Series User Manual...
Then, select your devices' protocols on each side. After the protocols have been selected, the MGate will change its role to the correct one. For example, if the device is set as an EtherNet/IP Scanner, the MGate will then automatically configure as an EtherNet/IP Adapter by itself. MGate 5105-MB-EIP Series User Manual...
Here is an example of Role 1 as an EtherNet/IP Adapter and Role 2 as a Modbus RTU/ASCII Master. To configure a Modbus command, please refer to Modbus RTU/ASCII Settings: MGate 5105-MB-EIP Series User Manual...
View I/O data mapping to know more details. If all of them are correct, press Save to turn the parameters on. Basic Settings On this webpage, you can change the name of the device and time zone settings. MGate 5105-MB-EIP Series User Manual...
If you select EtherNet/IP Adapter as your device, the MGate 5105-MB-EIP will be configured as Ethernet/IP Scanner. In Scanner mode, you must designate the parameters for each connection. Refer to your EtherNet/IP adapter’s datasheet to fill out O(T and T(O parameters. MGate 5105-MB-EIP Series User Manual...
Page 18
Click Add to add EtherNet/IP commands. NOTE A PLC may use Output and Input instead of OT and TO. MGate 5105-MB-EIP Series User Manual...
Modbus client/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 client/master device and will send the Modbus request to the Modbus network actively. MGate 5105-MB-EIP Series User Manual...
The MGate gateway also supports both Modbus TCP Client (i.e. Master) and Server (i.e. Slave) modes. In Modbus TCP Server mode, assign the Unit ID and confirm that your Modbus device on the remote side can send commands via the corresponding TCP port. MGate 5105-MB-EIP Series User Manual...
Page 21
For Modbus TCP Client mode, refer to your Modbus TCP device’s datasheet to specify the Modbus command one by one manually. Refer to your Modbus device’s datasheet to add Modbus commands. MGate 5105-MB-EIP Series User Manual...
Parameters Value Default Description Target to connect MQTT broker address and port, e.g.,:192.168.1.101:1883 Remote MQTT Broker prefix.iot.us-east- 2.amazonaws.com:8883 Client ID MQTT Client ID Username Username MGate 5105-MB-EIP Series User Manual...
Page 23
Message/Stop buffering message when storage is full. Stop updating data when storage is full. The frequency of uploading data to the cloud when the Cyclic sending intervals (50 to 60000 ms) IoT connection has been recovered. MGate 5105-MB-EIP Series User Manual...
Page 24
(1000 to 86400000 ms, Enable/Disable the sending Cyclic sending intervals 0 for disable) interval of cyclic messages Specify Apply to all tags/Specify Send tag messages under change Tag changes individual tag individual tag settings of value settings MGate 5105-MB-EIP Series User Manual...
Page 25
60 modules. Moreover, the value of Message ID can be modified by users, and the Date Time and Tag Status Monitoring functions can be enabled by users as well. To add the module or the tag for the topic of the message: MGate 5105-MB-EIP Series User Manual...
Page 26
Related tag name Information Additional user information, such as “Alarm”:true, Append information “Info”: Device, is overheating. Parameters Description The Append Information will be included in the sent messages. For example, Append information “SiteName”:”Taipei 101”, “GPS_DMS”:”34°01'46.6"N 118°28'11.3"W” MGate 5105-MB-EIP Series User Manual...
If you select MQTT RAW Broker as your northbound connection, the MGate 5105-MB-EIP will be configured as MQTT RAW Client. In Client mode, you can set up MQTT broker basic settings, general topic settings, TLS secure transmission, last will message, connection lost data settings, and advanced settings. MGate 5105-MB-EIP Series User Manual...
Page 28
Send the message under the change of Onchange trigger Disable/Enable Disable value from the tag Most of the MQTT RAW Broker Configuration is the same as MQTT JSON Broker Configuration. Please find the instruction from MQTT JSON Broker Configuration section. MGate 5105-MB-EIP Series User Manual...
Stop buffering storage is full. Stop updating data when storage is full The frequency of uploading data to Cyclic Sending Intervals 50 to 60000 ms the cloud when the IoT connection is recovered MGate 5105-MB-EIP Series User Manual...
Page 30
(1000 to 86400000 ms, Sending interval for cyclic Cyclic sending intervals 0 for disable) messages Specify Apply to all tags/Specify Send tag messages under change Tag changes individual tag individual tag settings of value settings MGate 5105-MB-EIP Series User Manual...
Page 31
The module name of the triggered tag event for name Conditional User Information The tag name of the triggered event for Conditional User Related tag name Information Additional user information, such as “Alarm”:true, “Info”: Append information Device, is overheating MGate 5105-MB-EIP Series User Manual...
Device Name from Alibaba Cloud Device secret Device Secret from Alibaba Cloud Most of the Alibaba Cloud IoT Device Configuration is the same as the Azure IoT Device Configuration. Please find the instruction from Azure IoT Device Configuration section. MGate 5105-MB-EIP Series User Manual...
Page 33
Specify Apply to all tags/Specify Send tag messages under change Tag changes individual tag individual tag settings of value settings To add the module or the tag for the topic of the message. MGate 5105-MB-EIP Series User Manual...
Page 34
The module name of the triggered tag event for Related module name Conditional User Information The tag name of the triggered event for Conditional User Related tag name Information Additional user information, such as “Alarm”:true, Append information “Info”: Device, is overheating MGate 5105-MB-EIP Series User Manual...
Communication Analysis After finishing all configurations, use Communication Analysis to confirm that the settings are correct. Click Start and wait 10 seconds for the analysis report to appear and describe fail status details, warnings, and hints. MGate 5105-MB-EIP Series User Manual...
Page 36
110. Your EtherNet/IP scanner (e.g. PLC, SCADA) needs to use these two instances to communicate with the MGate. For example, provide an Output (i.e., OT) instance of 100 and an Input (i.e., TO) instance of 110 for a Rockwell PLC, as shown below. MGate 5105-MB-EIP Series User Manual...
I/O Data View I/O Data View is designed to check all I/O modules’ exchanging data. Select data flow directions to get the correct data from Modbus or EtherNet/IP packets. MGate 5105-MB-EIP Series User Manual...
The latest version might be named MGM_Setup_Verx.x_Build_xxxxxxxx.exe. You will be greeted by a Welcome window. Click Next to continue. When the Select Destination Location window appears, click Next to continue. You may change the destination directory by first clicking on Browse. MGate 5105-MB-EIP Series User Manual...
Page 39
MGate Manager on your desktop. Click Next to copy the software files. A progress bar will appear. The procedure should take only a few seconds to complete. MGate 5105-MB-EIP Series User Manual...
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. The MGate Manager window should appear as shown below. MGate 5105-MB-EIP Series User Manual...
Specify by IP Address is used for MGate Ethernet Gateways, such as the MGate 5000/MB3000/EIP300 Series, which are discovered via Ethernet by using a specific IP address. Click Specify by IP Address if you know the IP address of the unit and wish to connect to it directly. MGate 5105-MB-EIP Series User Manual...
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. The default password is moxa in all lowercase letters. MGate 5105-MB-EIP Series User Manual...
The MGate will request time information from the specified time server every 10 minutes. ATTENTION When modifying the local time, select the time zone first. The time display will be updated to reflect the specified time zone. MGate 5105-MB-EIP Series User Manual...
DNS Server 1 This is the IP address of the primary domain name server. (or other 32-bit number) 0.0.0.0 This is the IP address of the secondary domain name DNS Server 2 (or other 32-bit number) server. MGate 5105-MB-EIP Series User Manual...
RS-232 RS-422 Interface RS-485 2 wire RS-485 4 wire RTS on delay 0-100 ms Only available for RTS Toggle RTS off delay 0-100 ms Only available for RTS Toggle MGate 5105-MB-EIP Series User Manual...
Ethernet/IP session will be cleaned and the TCP connection will be disconnected. I/O data size Automatic, User-defined configuration O->T (Output) Unit: byte 0 to 496 data size O->T: Originator to Target T->O (Input) Unit:byte 0 to 496 data size T->O: Target to Originator MGate 5105-MB-EIP Series User Manual...
Page 48
Modbus side fails, the MGate 5105 can be configured to react in one of the three ways: keep the latest data, clear data to zero, or user-defined value Fault Timeout 0 to 60000 ms Define the communication timeout for the Modbus side. MGate 5105-MB-EIP Series User Manual...
Modbus RTU and Modbus ASCII protocols in slave mode. Parameters Value Description Mode selection Slave RTU or Slave ASCII The Modbus protocol. The Modbus Slave ID that this server/slave module will accept. Slave ID 0 to 255 0: Broadcasting 1–255: Device specific. MGate 5105-MB-EIP Series User Manual...
Page 50
“inter-character timeout” defined, the frame will be discarded because of timeout. The number of times the client/master will retry the same request when the Max. retry response times out. MGate 5105-MB-EIP Series User Manual...
Page 51
E.g., if the baudrate is 9600 bps, 1 character time is about 1 ms. In a serial frame (11 bits, including start bit, data, parity bit, and stop bit), 9600 bps approximately equals to 960 characters/s, so transmitting 1 character needs about 1/960 = 1 Inter-frame delay (only for Modbus RTU) MGate 5105-MB-EIP Series User Manual...
Page 52
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 500 to 1,200,000 ms. MGate 5105-MB-EIP Series User Manual...
502, so you may need to change if there is a firewall in place. Parameters Value Description Slave ID 1 to 247 The Modbus address of the MGate. TCP Port 1 to 65535 The local TCP port for the MGate. MGate 5105-MB-EIP Series User Manual...
Page 54
This is used to configure how long the MGate will wait for a Response Timeout 10 to 12000 ms response from a Modbus server/slave. This is used to configure how many times the MGate will Max. retry 0 to 99 try to communicate with the Modbus server/slave. MGate 5105-MB-EIP Series User Manual...
Page 55
01: Read coils 02: Read discrete inputs 03: Read holding registers Function 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 MGate 5105-MB-EIP Series User Manual...
Defines the communication timeout for the EtherNet/IP side. The range is from 0 Fault Timeout to 60000 ms. I/O Data Mapping To confirm or adjust the internal memory data mapping for both sides, use the web console. MGate 5105-MB-EIP Series User Manual...
Desired IP Range IP Address Field Netmask Field Any host Disable Enable 192.168.1.120 192.168.1.120 255.255.255.255 192.168.1.1 to 192.168.1.254 192.168.1.0 255.255.255.0 192.168.0.1 to 192.168.255.254 192.168.0.0 255.255.0.0 192.168.1.1 to 192.168.1.126 192.168.1.0 255.255.255.128 192.168.1.129 to 192.168.1.254 192.168.1.128 255.255.255.128 MGate 5105-MB-EIP Series User Manual...
Page 58
DoS Defense System Log Settings These settings enable the MGate firmware to record important events for future verification. The recorded information can only be displayed on the web console. MGate 5105-MB-EIP Series User Manual...
Page 59
SNMP Trap messages, or open/close the circuit of the relay output and trigger the Fault LED to blink. To enable an e-mail alert, configure the e-mail address on the E-mail Alert page. Likewise, to enable SNMP Trap alerts, configure SNMP trap server on the SNMP Trap page. MGate 5105-MB-EIP Series User Manual...
Page 60
Use this field to show the IP address to use for receiving SNMP traps. Trap version Use this field to select the SNMP trap version. Trap community Use this field to designate the SNMP trap community. MGate 5105-MB-EIP Series User Manual...
Page 61
Use this field to enable or disable DES_CBC data encryption for the specified level Privacy mode of access. Password Use this field to set the password for the specified level of access. Privacy Use this field to define the encryption key for the specified level of access. MGate 5105-MB-EIP Series User Manual...
Page 62
Session Settings Value Description Maximum Login User The number of users that can access the MGate at the same 1-10 for HTTP + HTTPS time. Auto Logout Setting 0-1440 min Sets the auto logout time period MGate 5105-MB-EIP Series User Manual...
Page 63
Group Admin, user 16 accounts. The admin account can access and modify all the settings through the web console. The user account can only view the settings and cannot change anything. MGate 5105-MB-EIP Series User Manual...
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. If not, click Cancel. MGate 5105-MB-EIP Series User Manual...
MGate Manager and click Upgrade Firmware to begin the process. The dialog boxes will guide you through the process. You will need to browse your PC for the firmware file. Make sure it matches your model. MGate 5105-MB-EIP Series User Manual...
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 5105-MB-EIP Series User Manual...
Enter a file name and use the Browse button to save the file to a specific path. Then, click the OK button. If you export the configuration file successfully, a confirmation message will pop up and the configuration file will be saved as a *.ini file. MGate 5105-MB-EIP Series User Manual...
If you power off the MGate and terminate the process, all settings will disappear and the MGate gateway will revert to factory defaults. If this happens, import the settings from the file again. MGate 5105-MB-EIP Series User Manual...
Choose either Create new configuration or Load exist configuration to edit the configuration. For more details, refer to Chapter 3: Modifying the Configuration above. When all configuration settings are finished, click OK to save the updates to the configuration file. MGate 5105-MB-EIP Series User Manual...
All available configuration items are listed in the left panel tree. Click on an item to view detailed options in the panel area on the right. To activate changes, click the Submit button before leaving the current page. If necessary, the MGate gateway will restart to activate the settings. MGate 5105-MB-EIP Series User Manual...
Protocol Settings – I/O Data Mapping Here, you could click left on EtherNet/IP I/O connection. For example, click on O-> T Instance #100, which will show what Modbus commands are included in the table on the right. MGate 5105-MB-EIP Series User Manual...
System Management – Certificate Use this function to load the Ethernet SSL certificate. Select or browse for the certificate file in the Select SSL certificate/key file field. This function is only available on the web console. MGate 5105-MB-EIP Series User Manual...
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. You can view the relay status on this page. MGate 5105-MB-EIP Series User Manual...
Page 74
System Monitoring – Protocol Status – Diagnose: Modbus and EhterNet/IP The MGate provides status information for EtherNet/IP, Modbus RUB/ASCII, and Modbus TCP troubleshooting. Verify data or packet counters to make sure the communications are running smoothly. MGate 5105-MB-EIP Series User Manual...
Page 76
System Monitoring – Protocol Status – Diagnose: MQTT/Cloud The MGate provides status information for northbound connectivity of MQTT/ Cloud for troubleshooting. Verify data or packet counters to make sure the communications are running smoothly. MGate 5105-MB-EIP Series User Manual...
Page 78
Events can be filtered in different ways, and the complete log can be saved to a file for later analysis. MGate 5105-MB-EIP Series User Manual...
The gateway will write the same data to the slave device. Clear data to zero The gateway will write the zero values to the slave device. User-define value A user-defined value will be written to the slave device. MGate 5105-MB-EIP Series User Manual...
However, if a command has failed under specified Tag Status Timeout period , the status will be set at 0. In this case, the MQTT broker/cloud will notice the failure status of the slave device. MGate 5105-MB-EIP Series User Manual...
Need help?
Do you have a question about the MGate 5105-MB-EIP Series and is the answer not in the manual?
Questions and answers