Mgate 5119 Series User'S Manual: Version 1.0, February 2022
Mgate 5119 Series User'S Manual: Version 1.0, February 2022
www.moxa.com/product
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
Trademarks
Disclaimer
Information in this document is subject to change without notice and does not represent a commitment on the part of
Moxa.
Moxa provides this document as is, without warranty of any kind, either expressed or implied, including, but not
limited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to
the products and/or the programs described in this manual, at any time.
Information provided in this manual is intended to be accurate and reliable. However, Moxa assumes no responsibility
for its use, or for any infringements on the rights of third parties that may result from its use.
This product might include unintentional technical or typographical errors. Changes are periodically made to the
information herein to correct such errors, and these changes are incorporated into new editions of the publication.
www.moxa.com/support
Moxa Americas Moxa China (Shanghai office)
Toll-free: 1-888-669-2872 Toll-free: 800-820-5036
Tel: +1-714-528-6777 Tel: +86-21-5258-9955
Fax: +1-714-528-6778 Fax: +86-21-5258-5505
Moxa India
Tel: +91-80-4172-9088
Fax: +91-80-4132-1045
Table of Contents
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.
Overview
The MGate 5119 is a protocol gateway that is mainly dedicated to substation automation applications. To
integrate existing Modbus, IEC 60870-5-101/104, or DNP3 TCP serial devices into an IEC 61850 MMS
network, use the MGate 5119 as a Modbus master or IEC 60870-5-101/104 or DNP3 master to collect data
and exchange data with an IEC 61850 MMS system.
2
2. Hardware
LED Indicators
Agent Mode:
LED Color Description
Ready Off Power is off or a fault condition exists
Green Steady: Power is on, and the MGate is functioning normally
Red Steady: Power is on, and the MGate is booting up
Blinking slowly: Indicates an IP conflict, or the DHCP or BOOTP server is not
responding properly
Flashing quickly: microSD card failed
MB/101/104/DNP3 Off No communication with a Modbus/DNP3/101/104 device
Green Normal Modbus/DNP3/101/104 communication is in progress
Red When the MGate 5119 acts as a Modbus master:
2-2
MGate 5119 Series Hardware
Dimensions
Unit: mm (inch)
Pin Assignments
Serial Port (Male DB9)
Pin RS-232 RS-422/RS-485 RS-485 (2W)
(4W)
1 DCD TxD-(A) –
2 RXD TxD+(B) –
3 TXD RxD+(B) Data+(B)
4 DTR RxD-(A) Data-(A)
5* GND GND GND
6 DSR – –
7 RTS – –
8 CTS – –
9 – – –
*Signal ground
2-3
MGate 5119 Series Hardware
Pin RS-232
1 DSR
2 RTS
3 GND
4 TXD
5 RXD
6 DCD
7 CTS
8 DTR
2-4
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).
1 2 3
SW
Pull-high resistor Pull-low resistor Terminator
ON 1 kΩ 1 kΩ 120 Ω
OFF 150 kΩ* 150 kΩ* –*
*Default
microSD
The MGate 5119 provides users with an easy way to back up, copy, replace, or deploy. The MGate is
equipped with a microSD card slot. Users can plug in a microSD card to back up data, including the system
configuration setting, and system data log.
First time using the MGate gateway with a new microSD card
1. Format the microSD card as FAT file system through a PC.
2. Power off the MGate and insert the microSD card (ensure that the microSD card is empty).
3. Power on the MGate. The default settings will be copied to the microSD card.
4. Manually configure the MGate via web console, and all the stored changes will copy to the microSD card
for synchronization.
First time using the MGate with a microSD card containing a configuration file
1. Power off the MGate and insert the microSD card.
2. Power on the MGate.
3. The configuration file stored in the microSD card will automatically copy to the MGate.
2-5
MGate 5119 Series Hardware
1. The microSD card has less than 20 Mbytes of free space remaining.
2. The microSD card is write-protected.
3. The file system is corrupted.
4. The microSD card is damaged.
The MGate will stop working in case of the above events, accompanied by a flashing Ready LED and beeping
alarm. When you replace the 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.
2-6
3
3. Getting Started
Note that the unit does not have an on/off switch. It automatically turns on when it receives power. The
PWR LED on the top panel will glow to show that the unit is receiving power. For power terminal block pin
assignments, refer to the Power Input and Relay Output Pinout section in chapter 2.
Connecting to a Network
Connect one end of the Ethernet cable to the MGate’s 10/100M Ethernet port and the other end of the cable
to the Ethernet network. The MGate will show a valid connection to the Ethernet in the following ways:
• The Ethernet LED maintains a solid green color when connected to a 100 Mbps Ethernet network.
• The Ethernet LED maintains a solid orange color when connected to a 10 Mbps Ethernet network.
• The Ethernet LED will flash when Ethernet packets are being transmitted or received.
The following instructions explain how to install the DSU, a utility to search for MGate 5119 units on a
network.
1. Locate and run the following setup program to begin the installation process:
dsu_setup_[Version]_Build_[DateTime].exe
3-2
MGate 5119 Series Getting Started
When the MGate gateway appears on the DSU device list, select the gateway and right-click the mouse
button to open a web console to configure the gateway.
On the first page of the web console, enter admin for the default Account name and moxa for the default
Password.
3-3
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
Management
3-4
4
4. Web Console Configuration and
Troubleshooting
This chapter provides a quick overview of how to configure the MGate 5119 by web console.
Overview
Basic Settings
Network Settings
Serial Settings
Protocol Settings (Agent Mode)
Protocol Settings—Protocol Conversion
Protocol Settings—Modbus TCP Client (Master) Settings
Protocol Settings—Modbus RTU/ASCII Master Settings
Protocol Settings—IEC 60870-5-104 Client Settings
Protocol Settings—IEC 60870-5-101 Master Settings
Protocol Settings—DNP3 TCP/UDP Master Settings
Protocol Settings—DNP3 Serial Master Settings
Protocol Settings—IEC 61850 Server Settings
System Management
System Management—Accessible IP List
System Management—DoS Defense
System Management—System Log Settings
System Management—Auto Warning Settings
System Management—Email Alert
System Management—SNMP Trap
System Management—SNMP Agent
System Management—LLDP Settings
System Management—Certificate
System Management—Misc. Settings
System Management—Maintenance
System Monitoring (Troubleshooting)
System Monitoring—System Status
System Monitoring—Protocol Status
Status Monitoring
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 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. Such as “Cabinet A001.”
Time Settings
The MGate 5119 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. The console will display the “real time” according to the
time zone relative to GMT. If you would like to modify the real-time clock, select Local time. MGate’s
firmware will modify the GMT time according to the Time Zone.
4-2
MGate 5119 Series Web Console Configuration and Troubleshooting
ATTENTION
If the dispersion of the time server is higher than the client (MGate), the client will not accept NTP
messages from the time server. MGate's dispersion is 1 second. You must configure your time server with a
dispersion value lower than 1 sec for the NTP process to complete.
Network Settings
The Network Settings is where the unit’s network settings are configured. You can change the IP
Configuration, IP Address, Netmask, Default Gateway, and DNS.
4-3
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. Incorrect settings will cause communication failures.
RTS Toggle
The RTS Toggle function is used for RS-232 mode only. This flow-control mechanism is achieved by
toggling the 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 the data transmission is finished, the RTS pin will toggle
OFF for the specified time interval.
NOTE We suggest you configure the master side first and then the slave side.
The following sections contain detailed MGate configuration instructions organized as per the above outline.
4-4
MGate 5119 Series Web Console Configuration and Troubleshooting
For instance, if your device is a Modbus RTU slave, the device setting should be configured as a Modbus
RTU/ASCII slave; role 2 of the MGate 5119 will change to a Modbus RTU/ASCII master accordingly.
Device 1 Device 2
IEC 61850 client Modbus RTU/ASCII slave
IEC 61850 client Modbus TCP server
IEC 61850 client IEC 60870-5-101 slave
IEC 61850 client IEC 60870-5-104 server
IEC 61850 client DNP3 TCP/UDP outstation
IEC 61850 client DNP3 serial outstation
After protocol selection, we have to configure each side of MGate’s role. In a typical application, one side of
MGate will be set as a server/slave while the other side will be set as a client/master. You will find the
corresponding lists under Protocol Settings. The following configuration settings are possible:
4-5
MGate 5119 Series Web Console Configuration and Troubleshooting
Client Settings
Parameter Value Default Description
Initial delay 0 to 30000 0 Some Modbus slaves may take more time to boot up than other
ms devices. In some environments, this may cause the entire system
to suffer from repeated exceptions during the initial boot-up. After
booting up, you can force the MGate to wait before sending the
first request with the Initial Delay setting.
Max. retry 0 to 5 3 This is used to configure how many times the MGate will try to
communicate with the Modbus slave when the Modbus command
times out.
Response 10 to 120000 1000 Based on the Modbus standard, the device manufacturer defines
timeout ms the time taken by a slave device to respond to a request. A
Modbus master can be configured to wait a certain amount of time
for a slave’s response. If no response is received within the
specified time, the master will disregard the request and continue
operation. This allows the Modbus system to continue the
operation even if a slave device is disconnected or faulty. On the
MGate 5119, the Response timeout field is used to configure
how long the gateway will wait for a response from a Modbus
slave. Refer to your device manufacturer’s documentation to
manually set the response timeout.
4-6
MGate 5119 Series Web Console Configuration and Troubleshooting
4-7
MGate 5119 Series Web Console Configuration and Troubleshooting
4-8
MGate 5119 Series Web Console Configuration and Troubleshooting
Master Settings
Parameter Value Default Description
Mode RTU or ASCII RTU The Modbus protocol type
Initial delay 0 to 30000 ms 0 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. After booting up,
you can force the MGate to wait before sending the first
request with the Initial Delay setting.
Max. retry 0 to 5 3 The number of times the master will retry the same
request when the response times out.
Response 10 to 120000 ms 1000 According to the Modbus standard, the device
timeout manufacturer defines the time it takes for a slave device
to respond to. Based on this response time, a master can
be configured to wait a certain amount of time for a
slave’s response. If no response is received within the
specified time, the master will disregard the request and
continue operation. This allows the Modbus system to
continue operations even if a slave device is disconnected
or faulty. On the MGate 5119, the Response timeout
field is used to configure how long the gateway will wait
for a response from a Modbus ASCII or RTU slave. Refer
to your device manufacturer’s documentation to manually
set the response time.
Inter-frame 10 to 500 ms 0 Use this function to determine the timeout interval
delay between characters for Modbus devices that cannot
(only for Modbus receive Rx signals within an expected time interval. If the
RTU) response is timed out, all received data will be discarded.
The MGate 5119 will automatically determine the timeout
interval if the timeout value is set to 0.
Inter-character 10 to 500 ms 0 The users can determine the time delay to transmit the
timeout data frame received from the slave device to the
4-9
MGate 5119 Series Web Console Configuration and Troubleshooting
4-10
MGate 5119 Series Web Console Configuration and Troubleshooting
4-11
MGate 5119 Series Web Console Configuration and Troubleshooting
When connecting to an IEC 60870-5-104 server, you must add the objects you want to collect and configure
them.
4-12
MGate 5119 Series Web Console Configuration and Troubleshooting
4-13
MGate 5119 Series Web Console Configuration and Troubleshooting
4-14
MGate 5119 Series Web Console Configuration and Troubleshooting
After basic and advanced settings, you must configure the slave lists of the MGate you would like to connect
to.
4-15
MGate 5119 Series Web Console Configuration and Troubleshooting
4-16
MGate 5119 Series Web Console Configuration and Troubleshooting
When the MGate functions as an IEC 60870-5-101 master, you must create space to collect the data from
IEC 60870-5-101 slave device. Define the points in the range with different object types.
4-17
MGate 5119 Series Web Console Configuration and Troubleshooting
4-18
MGate 5119 Series Web Console Configuration and Troubleshooting
Master Settings
Parameter Value Default Description
DNP3 master address 0 to 65519 1 DNP3 master address.
Network Type TCP TCP Network type.
UDP
After configuring the Master Settings, click on Add in the Outstation List section.
NOTE When the MGate acts as a DNP3 TCP/UDP master, the TCP/UDP port is fixed at 20000.
4-19
MGate 5119 Series Web Console Configuration and Troubleshooting
Click on Add option to open the Outstation Settings page, which comprises three sections: Basic
Settings, Advanced Settings, Security Settings, and DNP3 Object Settings.
Basic Settings
4-20
MGate 5119 Series Web Console Configuration and Troubleshooting
Advanced Settings
4-21
MGate 5119 Series Web Console Configuration and Troubleshooting
Security Settings
4-22
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.
Binary Output
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.
Counter Settings
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.
4-23
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.
Analog Output
You can input the Point index range. Configure the range of Point index c between 0 to 65535. The
maximum number of points in each point range list is up to 255.
4-24
MGate 5119 Series Web Console Configuration and Troubleshooting
Master Settings
Parameter Value Default Description
DNP3 master address 0 to 65519 1 DNP3 master address.
Outstation List
Refer to Protocol Settings—DNP3 TCP/UDP Master Settings section.
SCL Source
The MGate as an IEC 61850 server should have its own substation configuration language (SCL) file, which
can be imported or created by the MGate itself. If you have created a SCL file for the MGate, you can select
SCL file import and click the Import button to import the SCL file.
Typically, the SCL file is generated by a third party tool. This can increase costs and be time-consuming. To
overcome this pain point, the MGate has a built-in SCL generator, which can easily generate SCL files
through the web console. You can select Local SCL file generator and click the Create & Edit button to
create the SCL file.
4-25
MGate 5119 Series Web Console Configuration and Troubleshooting
NOTE Changing the SCL file options will reset the mapping list.
For example, if you want to create a logical node to monitor power quality, you can select the Class as
MMXU-Measurement (three-phase), input the Start instance number, and Instance count, choose
what objects you want to create (here showing TotW, Hz, A), then click OK. You will see the logical node of
MMXU has been listed in the table. If you want to copy the logical node with objects, you can select
Existing logical node type duplication.
NOTE The maximum number of Start instance and Instance count is 100
4-26
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:
4-27
MGate 5119 Series Web Console Configuration and Troubleshooting
4-28
MGate 5119 Series Web Console Configuration and Troubleshooting
Tag List (from Modbus, DNP3, IEC101/104) shows all the tags generated from the Modbus, DNP3, IEC
60870-5-101/104 settings.
4-29
MGate 5119 Series Web Console Configuration and Troubleshooting
1. The tag from Modbus: The timestamp followed by the MGate system time will be added when
receiving the data. If the data is not changed, the timestamp will not be updated. Then, the timestamp
will be automatically mapped to the tag from IEC 61850.
2. The tag from DNP3, IEC 60870-5-101, IEC 60870-5-104 without a timestamp: The timestamp
followed by the MGate system time will be added when receiving the data. If the value is not changed,
the timestamp will not be updated. Then, the timestamp will be automatically mapped to the tag from
IEC 61850.
3. The tag from DNP3, IEC 60870-5-101, IEC 60870-5-104 with a timestamp: The timestamp will
use the original timestamp from the slave device. Then, the timestamp will be automatically mapped to
the tag from IEC 61850.
4-30
MGate 5119 Series Web Console Configuration and Troubleshooting
The MGate 5119 also supports a secure IEC 61850 connection. You can upload the related certificates.
Parameter Description
Encryption (SSL) To encrypt IEC 61850 MMS communication.
Authentication certificate To identify whether the certificate from the IEC 61850 client is whitelisted.
CA certificate To authenticate signatures in SSL and MAC (MMS Application Certificate).
Server certificate The MGate’s certificate used in establishing SSL connections and
authentication.
System Management
These settings are used to restrict access to the module by the IP address. Only IP addresses on the list will
be allowed access to the device. The restriction difference listed as below table: (check box “Apply
additional restrictions” only can be activated if “Active the accessible IP list” is activated.
Active the Apply additional IPs on the list IPs NOT on the list
accessible IP list restrictions (Active checked) (Active NOT checked)
All protocol communication Protocol communication is not
and services* are allowed. allowed, but services* are still
allowed.
All protocol communication All services* are not allowed.
and services* are allowed.
*Services shows HTTP, HTTPS, TELNET, SSL, SNMP, SMTP, DNS, NTP, DSU (Device Search Utility)
4-31
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.
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”).
To allow access to all IP addresses: Make sure that Enable the accessible IP list is not checked. These
settings are used to restrict access to the module by the IP address. Only IP addresses on the list will be
allowed access to the device. You may add a specific address or range of addresses by using a combination
of an IP address and a netmask as follows:
4-32
MGate 5119 Series Web Console Configuration and Troubleshooting
4-33
MGate 5119 Series Web Console Configuration and Troubleshooting
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. To enable an email alert, configure the email address on the Email Alert page. Likewise, to enable
SNMP trap alerts, configure SNMP trap server on the SNMP Trap page.
Parameters Description
Mail server (SMTP) The mail server’s domain name or IP address.
Username This field is for your mail server’s username, if required.
Password This field is for your mail server’s password, if required.
From email address This is the email address from which automatic email warnings will be sent.
To email address 1 to 4 Email addresses to which automatic email warnings will be sent.
4-34
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.
Trap community Use this field to designate the SNMP trap community.
Parameters Description
SNMP To enable the SNMP Agent function, select the Enable option, and enter a
community name (e.g., public).
Contact name The optional SNMP contact information usually includes an emergency contact
name and telephone number.
Read community string This is a text password mechanism that is used to weakly authenticate queries
to agents of managed network devices.
Write community string This is a text password mechanism that is used to weakly authenticate changes
to agents of managed network devices.
SNMP agent version The MGate 5119 supports SNMP V1, V2c, and V3.
Parameters Description
Username Use this optional field to identify the username for the specified level of access.
Authentication mode Use this field to select MD5 or SHA as the method of password encryption for the
specified level of access, or to disable authentication.
Privacy mode Use this field to enable or disable DES_CBC data encryption for the specified level
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.
4-35
MGate 5119 Series Web Console Configuration and Troubleshooting
The MGate web interface lets you enable or disable LLDP and set the LLDP transmit interval. In addition, you
can go to System Monitoring–System Status–LLDP Table to view the MGate’s neighbor-list, which is
created based on the information reported by neighboring devices on the network.
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
4-36
MGate 5119 Series Web Console Configuration and Troubleshooting
4-37
MGate 5119 Series Web Console Configuration and Troubleshooting
Users can input a message for Login or for Login authentication failure message.
4-38
MGate 5119 Series Web Console Configuration and Troubleshooting
System Management—Maintenance
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.
4-39
MGate 5119 Series Web Console Configuration and Troubleshooting
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.
ATTENTION
DO NOT turn off the MGate power before the firmware upgrade process is completed. The MGate will erase
the old firmware to make room for the new firmware to flash memory. If you power off the MGate and end
the progress, the flash memory will contain corrupted firmware and the MGate will fail to boot. If this
happens, contact Moxa RMA services.
There are three main reasons for using the Import and Export functions:
• Applying the same configuration to multiple units. The Import/Export configuration function is a
convenient way to apply the same settings to units in different sites. You can export the configuration as
a file and then import the configuration file onto other units.
• Backing up configurations for system recovery. 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
4-40
MGate 5119 Series Web Console Configuration and Troubleshooting
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. Do not use this function unless you are sure you want to completely reset your unit.
4-41
MGate 5119 Series Web Console Configuration and Troubleshooting
Go to Network Connections under System Log to view the history of the logs.
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.
You can see LLDP related information, including Port, Neighbor ID, Neighbor Port, Neighbor Port Description,
and Neighbor System.
4-42
MGate 5119 Series Web Console Configuration and Troubleshooting
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.
If the protocol communicates data without a timestamp, such as Modbus, it will generate the source
timestamp when the MGate receives the data from the device.
The gateway timestamp shows the time to update the data to the tag.
The MGate provides status information for Modbus RTU/ASCII/TCP, IEC 60870-5-101, and IEC 60870-5-104
troubleshooting. Verify data or packet counters to make sure the communications are running smoothly.
4-43
MGate 5119 Series Web Console Configuration and Troubleshooting
4-44
MGate 5119 Series Web Console Configuration and Troubleshooting
4-45
MGate 5119 Series Web Console Configuration and Troubleshooting
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. Save the
complete log in a file by clicking Export TXT File or Export PCAP File for later analysis. For the PCAP file
specifically, it is compatible with the popular troubleshooting tool Wireshark that can easily find the root
cause. Here is an example of Modbus TCP IEC 61850 traffic.
4-46
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.
4-47
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. The MGate 5119 supports the Status Monitoring function, which provides a warning mechanism
to report the list of slave devices that are still active, for example, the MGate as Modbus TCP client and IEC
61850 server.
If the MGate detects a Modbus communication error, the corresponding quality(q) of IEC 61580 objects will
show invalid. However, if the MGate Modbus is working fine, the corresponding quality(q) of IEC 61580
objects will show good.
The conditions for when quality(q) of the IEC 61850 server shows Invalid.
Protocols Conditions
Modbus RTU Command timeout, received exception code
Modbus TCP Command timeout, received exception code, disconnected communication
IEC 60870-5-101 The source of flag shows invalid, overflow
IEC 60870-5-104 The source of flag shows invalid, overflow
DNP3 Serial The source of flag shows OFFLINE, COMM_LOST, OVER_RANGE, REFERENCE_ERR
DNP3 TCP The source of flag shows OFFLINE, COMM_LOST, OVER_RANGE, REFERENCE_ERR
The MGate supports device status. When we create southbound device settings, each device has its own
status that is used to monitor device communication status. You can map status to the IEC 61850, then you
can monitor the southbound device status in IEC 61850 client. Once the MGate detects response timeout or
a disconnected connection, the device status will turn to invalid (0). Instead, for other conditions, the device
status will be valid (1).
4-48
5
5. 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. The serial console parameters are 115.2 kbps; parity: none; 8 data bits; and one
stop bit (115200, 8/N/1).
For Telnet and SSH, use HyperTerminal or PuTTY to connect to the MGate. Note that the Telnet protocol will
transfer the account and password information over the Internet using plain text, so Telnet is essentially
obsolete and should be replaced by the SSH protocol.
To connect to the MGate Telnet/SSH console, load the Telnet/SSH program and connect to the MGate IP
address.
On the first page, input the account and password. The account supports two types of users: admin and
user. An “admin” account can change all of the settings, but a “user” account can only review the settings.
A “user” account cannot change the configuration. The default password for admin is moxa.
The text mode console will display the menu-driven interface. Users can use an arrow key to move the
menu bar. To select the option, press the Enter key to go to the next level menu. To go to previous level
menu, press the Esc key to quit. If necessary, the MGate will need to restart to activate the setting.
6
6. 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.
The following functions are supported:
**Security View can check the security level of devices under the IEC62443-4-2 standard.
A
A. 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.
A-2
MGate 5119 Series SNMP Agents with MIB II and RS-232-Like Groups
A-3