Introduction Welcome to the MGate 5119 series of protocol gateways designed for the power industry, featuring easy protocol conversion between Modbus RTU/ASCII/TCP, IEC 60870-5-101/104, DNP3 TCP/serial and IEC 61850 MMS protocols. This chapter is an introduction to the MGate 5119 Series.
Hardware The following topics are covered in this chapter: Power Input and Relay Output Pinouts LED Indicators Dimensions Pin Assignments Hardware Installation Procedure Reset Button Pull-High, Pull-Low, and Terminator for RS-485 microSD...
MGate 5119 Series Hardware Power Input and Relay Output Pinouts Shielded DC Power DC Power DC Power DC Power N.O. Common N.C. Ground Input 2 Input 2 Input 1 Input 1 LED Indicators Agent Mode: Color Description Ready Power is off or a fault condition exists...
MGate 5119 Series Hardware Console Port (RS-232) The MGate 5119 Series can use a RJ45 serial port to connect to a PC for device configuration. RS-232 Hardware Installation Procedure 1. Connect the MGate 5119's terminal block to the power supply, which could provide 12 to 48 VDC.
MGate 5119 Series Hardware 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. five seconds). Pull-High, Pull-Low, and Terminator for RS-485 Remove the MGate 5119’s top cover, and you will find DIP switches to adjust each serial port’s pull-high...
Page 10
MGate 5119 Series Hardware Malfunctioning MGate replacement 1. Replace the malfunctioning MGate with a new MGate. 2. Insert the microSD card into the new MGate. 3. Power on the MGate. 4. The configuration file stored on the microSD card will automatically copy to the MGate.
Getting Started The following topics are covered in this chapter: Connecting the Power Connecting Serial Devices Connecting to a Network Installing DSU Software Log In to the Web Console...
MGate 5119 Series Getting Started Connecting the Power The unit can be powered by connecting a power source to the terminal block: 1. Loosen or remove the screws on the terminal block. 2. Turn off the power source and then connect a 12–48 VDC power line to the terminal block.
MGate 5119 Series Getting Started The DSU window should appear as shown below. Click Search and a new Search window will pop up. Log In to the Web Console Use the Web console to configure the MGate through Ethernet or verify the MGate’s status. Use a web browser, such as Microsoft Internet Explorer or Google Chrome to connect to the MGate, using the HTTP/HTTPS protocol.
Page 14
MGate 5119 Series Getting Started When you log in the web console for the first time, a message will pop up. Emphasizing a higher security level, we suggest you change the password. Change the password in the following path: System Management Misc. Settings Account...
Web Console Configuration and Troubleshooting This chapter provides a quick overview of how to configure the MGate 5119 by web console. The following topics are covered in this chapter: Overview Basic Settings Network Settings Serial Settings ...
MGate 5119 Series Web Console Configuration and Troubleshooting Overview This section gives an overview of the MGate 5119 status. Basic Settings On this webpage, you can change the name of the device and time zone settings. Server Setting Parameter Value...
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Description Time zone User’s selectable time zone This field shows the currently selected time zone and allows you to select a different time zone. Local time User’s adjustable time (1900/1/1-2037/12/31)
MGate 5119 Series Web Console Configuration and Troubleshooting Serial Settings The MGate 5119’s serial interface supports RS-232, RS-422, and RS-485 interfaces. You must configure the baudrate, parity, data bits, and stop bits before using the serial interface with Modbus RTU/ASCII or IEC 60870-5-101 or DNP3 serial protocol.
MGate 5119 Series Web Console Configuration and Troubleshooting Protocol Settings—Protocol Conversion The MGate 5119 brings Modbus, DNP3, and IEC 60870-5-101/104 devices to an IEC 61850 system. In the protocol conversion setting: role 1 of the MGate 5119 is fixed to an IEC 61850 server that is connected to an IEC 61850 client;...
MGate 5119 Series Web Console Configuration and Troubleshooting Protocol Settings—Modbus TCP Client (Master) Settings Client Settings Parameter Value Default Description Initial delay 0 to 30000 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 21
MGate 5119 Series Web Console Configuration and Troubleshooting Add Modbus Commands Parameter Value Default Description Name (an alphanumeric string) Command1 Max. 32 characters. Slave IP address 0.0.0.0 to 0.0.0.0 The IP address of a remote slave device. 255.255.255.255 Port 1 to 65535 The TCP port number of a remote slave device.
Page 22
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Endian swap None None Data Byte Swapping Byte None: Don't need to swap Byte: 0x0A, 0x0B, 0x0C, 0x0D becomes Word Byte and Word 0x0B, 0x0A, 0x0D, 0x0C Word: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0C, 0x0D, 0x0A, 0x0B.
MGate 5119 Series Web Console Configuration and Troubleshooting Protocol Settings—Modbus RTU/ASCII Master Settings Master Settings Parameter Value Default Description Mode RTU or ASCII The Modbus protocol type Initial delay 0 to 30000 ms Some Modbus slaves may take more time to boot up than other devices.
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description (only for Modbus upstream. The MGate 5119 will automatically determine RTU) the time interval if it is set to 0. Add Modbus Commands Refer to Modbus TCP Client (Master) Settings.
Page 25
MGate 5119 Series Web Console Configuration and Troubleshooting Add IEC 60870-5-104 Server List Parameter Value Default Description Device name An alphanumeric string Device 1 You can enter a name to help you identify the unit, such as the function, etc.
Page 26
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Cyclic interrogation 0 to 86400 s; 0 for Interrogation group polling intervals. group interval disable Initial counter Enable/Disable Enable IEC 60870-5-104 client counters interrogation interrogation with the server after connecting.
Page 27
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Object Type Single point, Double Single point The server object that the point, Step position, MGate would like to Bitstring of 32 bit, collect. Measured value (Normalized), Measured...
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description User-defined Value Single point: Off/On Single point: Off The user-defined values Double point: Double point: applicable for the data Intermediate/Off/On/ Intermediate bits when the Set to user Indeterminate...
Page 29
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Originator address 0 to 255 The address of the IEC 60870-5-101 master. Frame timeout 1 to 2073600000 ms 15000 Timeout for the serial port to decide whether or not a frame is completely received.
Page 30
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Device name An alphanumeric string Device 1 You can enter a name to help you identify the unit, such as the function, etc. Link address 0 to 65534 Shows link address of IEC 60870-5- 101 slave that the MGate connects to.
Page 31
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Wait terminate timeout 1 to 100 s The time waiting for ACT TERM from the slave upon completion of all control commands. Initial clock sync Enable/Disable Enable IEC 60870-5-101 master synchronize clock of IEC 60870-5-101 slave or not.
Page 32
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description IOA(start…end) 1 to 16777215 – Set a range of IOA. The maximum number of points in each point range list is up to 255. Pulse Duration None, Short Pulse, Long None –...
MGate 5119 Series Web Console Configuration and Troubleshooting Protocol Settings—DNP3 TCP/UDP Master Settings Configuration of a DNP3 TCP/UDP master comprises two parts: Master settings and Outstation List. The Master settings specify the MGate's Master address and connection type with the outstation. The Outstation List is a list of all the outstations that the MGate connects to.
Page 34
MGate 5119 Series Web Console Configuration and Troubleshooting Adding an Entry to the Outstation List (Outstation Settings) Click on Add option to open the Outstation Settings page, which comprises three sections: Basic Settings, Advanced Settings, Security Settings, and DNP3 Object Settings.
Page 35
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Default Description Polling class 2 event None Cyclic (5000 ms) The method to poll class-2 At start up only events. Cyclic (100 to 600000 ms) Polling class 3 event None...
Page 36
MGate 5119 Series Web Console Configuration and Troubleshooting Freeze Function Code (options 7, 8, 9, and 10) This function copies the value of the current point of an outstation counter to a second and separate memory location associated with the same point. The copied value is referred to as the frozen value and remains constant until the next freeze operation for the same point of the outstation counter is performed.
Page 37
MGate 5119 Series Web Console Configuration and Troubleshooting Binary Input You can input the Point index range. Configure the range of Point index between 0 to 65535. The maximum number of points in each point range list is up to 255.
Page 38
MGate 5119 Series Web Console Configuration and Troubleshooting Analog Input You can input the Point index range. Configure the range of Point index between 0 to 65535. The maximum number of points in each point range list is up to 255.
MGate 5119 Series Web Console Configuration and Troubleshooting Protocol Settings—DNP3 Serial Master Settings Master Settings Parameter Value Default Description DNP3 master address 0 to 65519 DNP3 master address. Outstation List Refer to Protocol Settings—DNP3 TCP/UDP Master Settings section. Protocol Settings—IEC 61850 Server Settings...
Page 40
MGate 5119 Series Web Console Configuration and Troubleshooting NOTE Changing the SCL file options will reset the mapping list. SCL Source – Basic Settings First, we should configure Basic Setting for the SCL file, which should include Header ID, IED Name, Access point name, Logical device name, and Subnetwork name.
Page 41
MGate 5119 Series Web Console Configuration and Troubleshooting Under the Local SCL file generator function, we list the current logical nodes that we support below: Supported Logical Nodes Default Objects Supported Objects CSWI – Switch controller Beh, Mod, Pos Beh, Mod, Pos GGIO –...
Page 42
MGate 5119 Series Web Console Configuration and Troubleshooting SCL Source – Report Control You can configure Report Control by clicking the Add button, and then the setting page will pop up. Parameters for Add Report Control: Parameter Value Description Report control name (an alphanumeric string) The name of the report control block.
Page 43
MGate 5119 Series Web Console Configuration and Troubleshooting Parameters of Trigger Options: Trigger Options Description Data change If enabled, the MGate will send reports to the client when the value is changed. Quality change If enabled, the MGate will send reports to the client when the quality is changed.
Page 44
MGate 5119 Series Web Console Configuration and Troubleshooting Tag Name Data Type Description Freeze INT16 If the value is set as 1, the DNP3 master will send a freeze command to the DNP3 outstation. Then, you can send a read command to get the value from Frozen Counter.
MGate 5119 Series Web Console Configuration and Troubleshooting Parameter Value Description Name (an alphanumeric string) Give a name for the IEC 61850 client system. IP address 192.168.127.254 The IP (Internet Protocol) address of the EC (or other 32-bit number) 61850 client system.
MGate 5119 Series Web Console Configuration and Troubleshooting You may add a specific address or range of addresses by using a combination of an IP address and a netmask as follows: To allow access to a specific IP address: Enter the IP address in the corresponding field; enter 255.255.255.255 for the netmask.
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—System Log Settings The system log settings enable the MGate firmware to record important events, which can be record in two ways: Syslog and Local Log (stored in the MGate). The information that can be recorded includes the following events:...
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—Auto Warning Settings Auto Warning is triggered by different events. When a checked trigger condition occurs, the MGate can send email alerts, SNMP Trap messages, or open/close the circuit of the relay output and trigger the Fault LED to blink.
MGate 5119 Series Web Console Configuration and Troubleshooting Parameters Description SNMP trap server IP Use this field to show the IP address that is used for receiving SNMP traps. Trap version Use this field to select the SNMP trap version.
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—LLDP Settings The Link Layer Discovery Protocol (LLDP) standardizes the method that devices on a network periodically use to send information about their configuration and status. This self-identification method keeps all LLDP devices on a network informed of each other's status and configuration.
Page 51
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—Misc. Settings—Console Settings Configuration Value Description HTTP/HTTPS Enable/Disable This setting is to enable/disable the web console. For security issues, users can only enable the HTTPS or just disable all settings. Telnet/SSH Enable/Disable The MGate Telnet/SSH function can be enabled or disabled.
Page 52
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—Misc. Settings—Notification Message Users can input a message for Login or for Login authentication failure message. System Management—Misc. Settings—Account Management Parameters Value Description Account admin, user Users can change the password for different accounts. MGate provides two different level accounts: admin and user.
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—Misc. Settings—Login Password Policy Account Password Policy Value Description Minimum length 4 to 16 The minimum password length Enable password complexity Select how the MGate checks the password’s strength strength check Password lifetime 90 to 180 days Set the password’s lifetime period.
Page 54
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—Maintenance—Firmware Upgrade Firmware updates for the MGate 5119 are 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 5119. Select the desired unit from the list in the web console and click Submit to begin the process.
MGate 5119 Series Web Console Configuration and Troubleshooting System Management—Maintenance—Load Factory Default To clear all the settings on the unit, use the Load Factory Default to reset the unit to its initial factory default values. ATTENTION Load Default will completely reset the configuration of the unit, and all the parameters you have saved will be discarded.
Page 56
MGate 5119 Series Web Console Configuration and Troubleshooting System Monitoring—System Status—System Log Go to Network Connections under System Log to view the history of the logs. System Monitoring—System Status—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 5119 Series Web Console Configuration and Troubleshooting System Monitoring—Protocol Status System Monitoring—Protocol Status—Tag View This page displays the tag live value generated by field devices and updates the values periodically. It is an easy and useful tool if you want to check whether the MGate receives correct data from field devices. If the protocol communicates data with a timestamp, such as IEC 60870-5-101/104 or DNP3, the source timestamp comes from the device.
Page 58
MGate 5119 Series Web Console Configuration and Troubleshooting Modbus TCP Diagnostics (Client/Master) IEC 60870-5-104 Diagnostics (Client) IEC 60870-5-101 Diagnostics (Master) 4-44...
Page 59
MGate 5119 Series Web Console Configuration and Troubleshooting DNP3 Serial Master Diagnose DNP3 TCP/UDP Master Diagnose 4-45...
Page 60
MGate 5119 Series Web Console Configuration and Troubleshooting IEC 61850 Diagnostics System Monitoring—Protocol Status—Traffic In order to troubleshoot efficiently, the MGate provides a traffic monitoring function that can capture communication traffic for all protocols. These logs present the data in an intelligent, easy-to-understand format with clearly designated fields, including source, destination, function code, and data.
Page 61
MGate 5119 Series Web Console Configuration and Troubleshooting NOTE If the packet exceeds the upper limit, it will stop recording. NOTE We suggest you execute only one traffic monitor application at a time. If you execute two or more applications simultaneously, it may affect the system’s performance.
MGate 5119 Series Web Console Configuration and Troubleshooting Status Monitoring For agent mode design, if a slave device fails, or a cable comes loose, the gateway cannot receive up-to- date data from the slave device. The out-of-date data will be stored in the gateway’s memory and will be retrieved by the client/master system, which will not be aware that the slave device is not providing up-to- date data.
Configuration (Text Mode Console) The MGate 5119 supports a text-mode console with serial interface, Telnet, and SSH protocol. The user interface is the same in all text mode consoles. Note that the text mode console does not support all configuration items. You must configure some parameters through the web console. 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.
Network Management Tool (MXstudio) Moxa’s MXstudio industrial network management suite includes tools such as MXconfig, MXview and N-Snap. MXconfig is for industrial network configuration; MXview is for industrial management software; and N-Snap is for industrial network snapshot. The MXstudio suite in the MGate 5119 includes MXconfig and MXview, which are used for mass configuration of network devices and monitoring network topology, respectively.
SNMP Agents with MIB II and RS-232- Like Groups The MGate 5119 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 Appendix: ...
Need help?
Do you have a question about the MGate 5119 Series and is the answer not in the manual?
Questions and answers