Table of Contents Introduction ............................1-1 Overview ............................1-2 Package Checklist ..........................1-2 Product Features ..........................1-3 Getting Started..........................2-1 Connecting the Power ......................... 2-2 Connecting PROFIBUS Devices ......................2-2 Connecting Serial Devices ........................2-2 Connecting to a Host or the Network ..................... 2-2 Installing the Software (Optional) ......................
All the MGate 5111 gateways have dual DC power input for redundancy. Magnetic serial port isolation is also provided. In this chapter, we give an introduction to the MGate 5111. The following topics are covered in this chapter: Overview ...
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 MGate 5111’s firmware. The utility automatically connects to all available MGate 5111 units on the local area network (LAN). A user-friendly web console is provided to configure the device from a web browser.
Getting Started This chapter provides basic instructions for installing the MGate 5111. The following topics are covered in this chapter: Connecting the Power Connecting PROFIBUS Devices Connecting Serial Devices Connecting to a Host or the Network ...
MGate 5111 Getting Started Connecting the Power 1. The unit can be powered by connecting a power source to the terminal block. 2. The power input range is from 12 to 48 VDC. To remove the wire from the terminal block, use a flathead screwdriver to push the orange slot next to the terminal block hole, and then pull the wire out.
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 5111. When plugged in, the MGate 5111’s internal components generate heat, and consequently the board may be too hot to touch. You should also observe the following common wiring rules: •...
MGate 5111 Getting Started LED Indicators Color Description PWR 1, Green Power is on PWR 2 Power is off Ready Green Steady on: Power is on, and the unit is functioning normally Blinking: The unit is responding to the software’s Locate function...
To set the pull up/down 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 up/down setting on the MGate 5111 when using the RS-232 interface. Doing so will degrade the RS-232 signals and reduce the effective communication distance.
– (default) Pin Assignments The MGate 5111 uses DB9 serial ports to connect to Modbus RTU or ASCII devices. Each port supports three serial interfaces that is selected by software: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RJ45 (Ethernet, Console)
Hardware Installation The MGate 5111 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 mount the device to the wall.
Details: See www.moxa.com/warranty microSD Card The MGate 5111 gateway series is equipped with a microSD card slot for easy configuration. The microSD card can be used to store an MGate’s system configuration settings and the MGate’s system log. In addition, a configuration stored on a microSD card can be uploaded automatically to an MGate.
MGate 5111 Getting Started Backing Up a Configuration Use the following procedure to copy the configuration of an MGate gateway to a microSD card: Use a PC to format the microSD card to support FAT file systems and delete all of the data on the card.
MGate 5111 Getting Started Step 2: Select Protocol Then, you have to select the protocols used on your devices that are connected through the MGate. After selection, the MGate will automatically change its role to the correct one. For example, if the device is set as a Modbus TCP Server, the MGate will then automatically configure as a Modbus TCP Client by itself.
MGate 5111 Getting Started Step 5: Finish Once all the configurations are done, you can check if all parameters are correct on this webpage. Moreover, if you want to determine the data mapping status, you can click the View I/O data mapping to know more details.
Device Search Utility The following topics are covered in this chapter: Installing the Software Starting the Device Search Utility (DSU) Broadcast Search Search IP Locate Assign IP Unlock Import/Export Upgrading the Firmware...
Installing the Software The following instructions explain how to install the Device Search Utility (DSU), a utility for configuring and monitoring MGate 5111 units over a network. 1. Locate and run the following setup program to begin the installation process: dsu_setup_[Version]_Build_[DateTime].exe...
Page 24
MGate 5111 Device Search Utility 5. Click Install to start copying the software files.
Page 25
MGate 5111 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 the 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 5111 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.
Click Search and a new Search window will pop up. When the search is complete, every MGate 5111 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...
IP address carefully. Another possibility is that the MGate 5111 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...
MGate 5111 Device Search Utility Locate The Locate function will cause the unit to beep, so you can determine which unit is the target. Assign IP The Assign IP function allows you to change the unit’s IP addresses. Unlock Use the Un-Lock function to execute Import, Export, and Upgrade actions. The default account and password...
You can obtain the latest firmware for the MGate 5111 from www.moxa.com. After downloading the new firmware file to your PC, you can use the DSU to write it to your MGate 5111. Select the desired unit from the DSU list and then click Upgrade to begin the process.
Web Console Configuration The MGate 5111 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 ...
Once logged in to the web console, you will see the previous login record. If the login record is not as what you accessed previously, please change the password immediately. The welcome page shows information relevant to the MGate 5111. Basic Settings Server Settings and Time Settings are shown on the Basic Settings page.
MGate 5111 Web Console Configuration Server Setting Parameter Value Description Server Name (an alphanumeric string) You can enter a name to help you identify the unit, such as the function, etc. Server Location (an alphanumeric string) You can enter a name to help you identify the unit location.
MGate 5111 Web Console Configuration Parameter Value Description IP configuration Static IP, DHCP, BOOTP Select Static IP if you are using a fixed IP address. Select one of the other options if the IP address is set dynamically. IP address 192.168.127.254...
Web Console Configuration Protocol Settings The MGate 5111 supports PROFIBUS, Modbus RTU/ASCII, Modbus TCP, EtherNet/IP and PROFINET protocols. Each role is determined by your device's settings. Modbus TCP (Client/Server), Modbus RTU/ASCII (Master/Slave), EtherNet/IP (Adapter), and PROFINET (IO Device) can be selected.
Page 36
MGate 5111 Web Console Configuration Parameter Description Name Enter a name to help identify the module, such as the location, function, etc. I/O Type Input: Used to map into input memory Output: Used to map into output memory Input (status): Used to retrieve status of Modbus TCP servers or Modbus RTU/ASCII slaves.
Page 37
This allows the Modbus system to continue the operation even if a slave device is disconnected or faulty. On the MGate 5111, the Response timeout field is used to configure how long the gateway will wait for a response from a Modbus slave.
Page 38
Modbus TCP server device. To avoid problems in case the opposite side fails, the MGate 5111 can be configured to react in one of three ways: keep latest data, clear data to zero, user-defined value.
Page 39
MGate 5111 Web Console Configuration 3. Modbus TCP Server (Slave) Settings Server Settings Parameter Value Default Description Unit ID 1 - 255 The Modbus slave ID that this slave module will accept. TCP port 1 - 65535 The TCP port number.
Page 40
This allows the Modbus system to continue operations even if a slave device is disconnected or faulty. On the MGate 5111, the Response timeout field is used to configure how long the gateway will wait for a response from a Modbus ASCII or RTU slave.
Page 41
You can select Automatic for I/O data size configuration to automatically map OT (Originator to Target) and TO (Target to Originator) data sizes. 7. PROFINET IO Device Setting The MGate 5111 can play the role of the PROFINET IO device. All you have to set is the device name of the MGate. 4-11...
MGate 5111 Web Console Configuration I/O Data Mapping You can verify the gateway’s memory allocation on the I/O Data Mapping page. Select the Modbus data flow you want to see. System Management This configuration tab includes several system level settings. Most of these settings are optional.
MGate 5111 Web Console Configuration To allow access to a specific IP address Enter the IP address in the corresponding field; enter 255.255.255.255 for the netmask. To allow access to hosts on a specific subnet For both the IP address and netmask, use 0 for the last digit (e.g., “192.168.1.0” and “255.255.255.0”).
MGate 5111 Web Console Configuration 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. The available information that can be recorded includes the following events:...
MGate 5111 Web Console Configuration Auto Warning Settings Auto Warning is triggered by different events. When a checked trigger condition occurs, the MGate can send e-mail alerts, SNMP Trap messages, or open/close the circuit of the relay output and trigger the Fault LED to start blinking.
MGate 5111 Web Console Configuration SNMP Trap Settings Parameters Description SNMP trap server IP Use this field to indicate 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 5111 Web Console Configuration 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. The name of the field indicates which level of access it refers to. For...
MGate 5111 Web Console Configuration 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 in the web console. Misc. Settings This page includes console settings, password, and relay output.
MGate 5111 Web Console Configuration Session Settings Value Description Maximum Login User for 1 - 10 The number of users that can access the MGate at the same HTTP+HTTPS time. Auto Logout Setting 0 - 1440 min. Set the auto logout time period.
Firmware updates for the MGate 5111 are located at www.moxa.com. After you have downloaded the new firmware onto your PC, you can use the web console to write it onto your MGate 5111. Select the desired unit from the list in the web console and click Upgrade Firmware to begin the process.
MGate 5111 Web Console 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 5111 Web Console Configuration System Monitoring System Status Network Connections Go to Network Connections under System Status to view network connection information. System Log Go to System Log under System Status to view network connection information. Relay State 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.
MGate 5111 Web Console Configuration LLDP Table You can see LLDP related information, including Port, Neighbor ID, Neighbor Port, Neighbor Port Description, and Neighbor System. Protocol Status I/O Data View This page displays the internal memory information for input and output data transfers. View updated values for communication verification here.
Page 55
For troubleshooting or management purposes, you can monitor the Modbus RTU/ASCII data passing through the MGate 5111 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.
The MGate 5111 allocates one bit of the gateway’s specified memory address to indicate the status of each Modbus command as being normal or abnormal. If a command has run successfully, the status value will continuously be 1.
MGate 5111 Web Console Configuration 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 Restart to activate all the changes.
Need help?
Do you have a question about the MGate 5111 and is the answer not in the manual?
Questions and answers