Page 3
Table of Contents Introduction ............................5 Getting Started ............................. 6 Connecting the Power ..........................6 Connecting Serial Devices ........................6 Connecting to a Network ........................6 Installing DSU Software .......................... 6 Log In to the Web Console ........................7 microSD ............................... 7 Web Console Configuration and Troubleshooting .................
Page 4
Class Attribute List ........................58 Instance Attribute List ........................58 Common Service List ........................59 Message Router Object ......................... 59 Class Attribute List ........................59 Instance Attribute List ........................59 Common Service List ........................59 Connection Manager Object ........................59 Class Attribute List ........................
Page 5
1. Introduction The MGate 5135/5435 gateways are 1- and 4-port industrial Ethernet gateways, with the former for Modbus RTU/ASCII/TCP and the latter for EtherNet/IP network communications. To integrate existing Modbus devices onto an EtherNet/IP network, use the MGate 5135/5435 gateway as a Modbus client to collect data and exchange data with EtherNet/IP host.
Page 6
2. Getting Started Connecting the Power The unit can be powered by connecting a power source to the terminal block: Connect the 12 to 48 VDC power line or DIN-rail power supply to the MGate’s power terminal block. Tighten the screws on both sides of the terminal block. Turn on the power source.
Page 7
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 Google Chrome to connect to the MGate, using the HTTPS protocol.
Page 8
Duplicating current configurations to another MGate gateway Power off the MGate and insert a new microSD card. Power on the MGate. The configuration will be copied from the MGate to the microSD card. Power off the MGate and insert the microSD card to the other MGate. Power on the second MGate.
Page 9
3. Web Console Configuration and Troubleshooting This chapter provides a quick overview of how to configure the MGate 5135/5435 by web console. System Dashboard This page gives a system dashboard of the MGate 5135/5435 gateway. You can change your password or log out using the options on the top-right corner of the page. MGate 5135/5435 Series User Manual...
Page 10
System Settings System Settings—General Settings On this page, you can change the name of the device and time settings. System Settings Parameter Value Description Enter a name that can help you uniquely identify the Host Name Alphanumeric string device. For example, you can include the name and function of the device.
Page 11
Parameter Value Description Shows the current time zone selected and allows change to Time zone User-selectable time zone a different time zone. Daylight saving Enable Enable and set up the daylight saving time; or, disable time Disable daylight saving time. Use this setting to manually adjust the time (1900/1/1- Manual 2037/12/31) or sync with the browser time...
Page 12
System Settings—Network Settings You can change the IP Configuration, IP Address, Netmask, Default Gateway, and DNS settings on the Network Settings page. Parameter Value Description The Switch mode allows users to install the device with daisy- chain topology. The Dual IP mode allows the gateway to have two different IP addresses, each with distinct netmask and gateway settings.
Page 13
Parameter Value Description 255.255.255.0 Netmask Identifies the server as belonging to a Class A, B, or C network. (or other 32-bit number) 0.0.0.0 The IP address of the router that provides network access Gateway (or other 32-bit number) outside the server’s LAN. Preferred DNS 0.0.0.0 The IP address of the primary domain name server.
Page 14
Click the “pen” icon to configure serial port parameters, such as the interface, baudrate, terminator, and pull-up/pull-down resistor. Parameter Value Description Alphanumeric Allows you to define an alias to a port for easier identification. Alias string Max. 16 characters. RS-232, RS-422, Interface RS-485 2-wire, RS-485 4-wire...
Page 15
Parameter Value Description The internal buffer of UART. Disabling FIFO can reduce the FIFO Enable, Disable latency time when receiving data from serial communications, but this will also slow down the throughput. RTS Toggle The RTS Toggle function is available only in the RS-232 mode. This flow-control mechanism is achieved by toggling the RTS pin in the transmission direction through a software setting.
Page 16
Parameters Description A text password mechanism that is used to weakly authenticate queries to Read Only Community agents of managed network devices. A text password mechanism that is used to weakly authenticate changes to Read/Write Community agents of managed network devices. Minimum Minimum Authentication/Privacy Password Length must be between 8 and Authentication/Privacy...
Page 17
If you need to change the SNMP Account settings created previously, click on the button on right of the configured SNMP item to change settings, such as Authentication Type, or Privacy Type. Parameters Value Description Specifies a maximum number of authentication Max Authentication 1 to 10 (default 5) failures.
Page 18
System Settings—SNMP Settings—SNMP Trap Set up the SNMP trap server to send the trap events, such as warning messages. Configure the SNMP trap server by inputting the server’s IP or domain name. Parameters Description SNMP server IP address or domain name; the maximum number of trap servers is Server IP Port SNMP server IP Port.
Page 19
Protocol Settings Protocol Settings—Modbus Client Settings You can manage Modbus devices and their Modbus command tables on this page. The MGate supports csv file import/export for Modbus settings, it is easy to use when you back up the settings or during installation stage. Click TCP or the serial port column to set up the Modbus device.
Page 20
Parameter Value Default Description Some Modbus servers/slaves may take more time to boot up than other devices. In some environments, this may cause the entire system to experience repeated exceptions during Initial delay 0 to 30000 ms the initial boot-up. After booting up, you can force the MGate to wait before sending the first request with the Initial Delay setting.
Page 21
Step 1: Add Modbus device information Parameter Value Default Description Device Name Alphanumeric string Max. 32 characters. 0.0.0.0 to Slave IP 0.0.0.0 The IP address of a remote server/slave device. 255.255.255.255 The TCP port number of a remote server/slave Slave Port 1 to 65535 device.
Page 22
Step 2: Add Modbus commands Parameter Value Default Description Command Name Alphanumeric string Max. 32 characters. 1 – Read Coils 2 – Read Discrete Inputs 3 – Read Holding Registers 4 – Read Inputs Registers 5 – Write Single Coil When a message is sent from a client to a Function server device, the function code field tells the...
Page 23
Parameter Value Default Description Data Byte Swapping None: Don’t need to swap None Byte: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0B, Byte 0x0A, 0x0D, 0x0C Endian Swap None Word Word: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0C, Byte and Word 0x0D, 0x0A, 0x0B. Byte and Word: 0x0A, 0x0B, 0x0C, 0x0D becomes 0x0D, 0x0C, 0x0B, 0x0A.
Page 24
Step 3: Quick review result, click DONE to finish If you already have backed up a frequently used meter profile, just import or export one Modbus device CSV file. MGate 5135/5435 Series User Manual...
Page 25
Follow the same steps for Modbus RTU/ASCII basic settings and devices settings in serial port. Parameters Description Defines the time interval between an RTU response and the next RTU request. The system will automatically determine the delay time of the data frame transmission from the server device to the upstream.
Page 26
Parameters Description The time interval between characters in one frame. When the serial side of the MGate receives one character, and the next one comes after the “inter-character timeout” defined, the frame will be discarded because of timeout. Inter-character The system will automatically determine the timeout interval between characters for timeout (only for Modbus devices.
Page 27
Protocol Settings—EtherNet/IP Adapter Settings You can configure the EtherNet/IP adapter setting on this page. Click EDIT to adjust the EtherNet/IP basic settings. Parameter Value Default Description Encapsulation Unit: second 0 to 3600, (0 inactivity timeout If there is no data exchange in for a while, the Ethernet/IP for disable) (sec) connection will be disconnected.
Page 28
Click on the Connection button to add O -T and T-O data. Click EDIT in the connection column to adjust the connection parameters MGate 5135/5435 Series User Manual...
Page 29
Parameter Value Default Description Name for connection. For example, Name Connection[x] Connection1 O->T connection point 1 to 2147483647 EtherNet/IP connection instance T->O connection point 1 to 2147483647 EtherNet/IP connection instance O->T (Output) data size Unit: byte 0 to 496 (bytes) O->T: Originator to Target Unit: byte T->O (Input) data size (bytes) 0 to 496...
Page 30
Diagnostics Diagnostics—Protocol Diagnostics Diagnostics—Protocol Diagnostics—Modbus RTU/ASCII Diagnostic The MGate provides status information for Modbus RTU/ASCII/TCP, EtherNet/IP troubleshooting. Verify data or packet counters to make sure the communications are running smoothly. MGate 5135/5435 Series User Manual...
Page 31
Diagnostics—Protocol Diagnostics-Modbus TCP Diagnostics Diagnostics—Protocol Diagnostics-EtherNet/IP Diagnostics MGate 5135/5435 Series User Manual...
Page 32
Diagnostics—Protocol Traffic Diagnostics—Protocol Traffic-Modbus RTU/ASCII Traffic 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 csv file.
Page 33
Diagnostics—Event Log-Policy Settings The event policy settings enable the MGate to record important events, which can be recorded in the Remote Log to Syslog server and Local Log, which will be stored with up to 10,000 events in the MGate. The MGate can also send email alerts, SNMP Trap messages, or open/close the circuit of the relay output when a selected event was triggered.
Page 34
Local Log Settings Description Overwrites the oldest event log Event Log Overwrite Policy Stops recording event log Capacity Threshold (%) When the log amount exceeds the warning SNMP Trap Warning By Email Remote Log Settings MGate 5135/5435 Series User Manual...
Page 35
Remote Log Settings Description Syslog Server IP IP address of a server that will record the log data Syslog Server port Enable TLS authentication. Notice TLS files must be uploaded for a successful TLS Authentication connection. SNMP Trap Settings Email Settings Parameters Description Mail Server (SMTP) The mail server’s domain name or IP address.
Page 36
Parameters Description 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 Email address from which automatic email warnings will be sent. address) To (Email address, separated by Email addresses to which automatic email warnings will be sent.
Page 37
Diagnostics—Network Connections You can see network-related information, including protocol, address, and state. Diagnostics—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 on the web console immediately.
Page 38
Diagnostics—LLDP You can see LLDP related information, including Port, Neighbor ID, Neighbor Port, Neigh Port Description, and Neighbor System. Also, you can adjust the transmit interval for LLDP by clicking the EDIT button. After clicking EDIT, if you need to enable or disable LLDP service, click on the “Service” hyperlink or navigate to Security >...
Page 39
Security Security—Account Management Security—Account Management—Accounts Only the Administrator group can create or edit accounts for user management. Click CREATE to add new accounts. Click the dot icon to edit the account. Parameters Value Description Users can change the password for different accounts. The MGate provides three build-in account groups: administrator, operator and Administrator, guest.
Page 40
Security—Account Management—Groups Three MGate build-in types of groups are shown; you can also create your own group by clicking CREATE. MGate 5135/5435 Series User Manual...
Page 41
Parameters Value Description Basic Information Includes Name and Description for the new Group. No display Corresponding to the configuration menu on the left-hand side of the Access Permissions Read only web console, you can select different permissions for a new group. Read write Displays will not show the page on the right-hand side menu.
Page 42
Security—Service Parameter Value Description To enhance security, all HTTP requests will redirect to HTTPS HTTP Service Enable/Disable when the HTTP service is enabled. You can also disable the HTTP service. Disabling this service will disable the web console and search utility connections, thus cutting off access to the HTTPS Service Enable/Disable...
Page 43
Security—Allow List These settings are used to restrict access to the MGate by the IP address. Only IP addresses on the list will be allowed to access the device. Notice the restriction includes configuration and protocol conversion. MGate 5135/5435 Series User Manual...
Page 44
Security—DoS Defense Users can select from several options to enable DoS Defense in order to fend off cybersecurity attacks. A denial-of-service (DoS) attack is an attempt to make a machine or a network resource unavailable. Users can select from the following options to counter DoS attacks. MGate 5135/5435 Series User Manual...
Page 45
Security—Login Policy Login Message You can input a message for Login or for Login authentication failure messages. Login Lockout Parameter Value Description You can specify the maximum number of failure retries. If Max Failure Retry 1 to 10 (default 5) retry times are exceeded, the MGate will lock out for that Times account login.
Page 46
Login Session Parameter Value Description Maximum login users The number of users that can access the MGate at 1 to 10 (default 5) for HTTP+HTTPS the same time. Auto logout setting 1 to 1440 (default 1440) Sets the auto logout period. (min.) Security—Certificate Management Use this function to load the Ethernet SSL certificate.
Page 47
Maintenance Maintenance—Configuration Import/Export 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 at different sites. You can export the configuration as a file and then import the configuration file onto other units.
Page 48
Maintenance—Firmware Upgrade Firmware updates for the MGate are available on the Moxa website. After you have downloaded the new firmware onto your PC, you can use the web console to write it onto your MGate. 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.
Page 49
Restart You can reboot the MGate by clicking the RESTART button. ATTENTION Unsaved configuration files will be discarded during a reboot. Status Monitoring The Status Monitoring function provides status information of field devices when the MGate is being used as a Modbus client.
Page 50
4. Network Management Tool (MXstudio) Moxa’s MXstudio industrial network management suite includes tools such as MXconfig and MXview. MXconfig is for industrial network configuration; MXview is for industrial management software. The MXstudio suite in the MGate includes MXconfig and MXview, which are used for the mass configuration of network devices and monitoring network topology, respectively.
Page 51
A. SNMP Agents with MIB II and RS-232- Like Groups The MGate 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. RFC1213 MIB-II Supported SNMP Variables System MIB Interfaces MIB IP MIB ICMP MIB...
Page 53
B. CIP Objects of EtherNetIP Several communication objects are defined in Common Industrial Protocol (CIP). Moxa’s MGate supports the following objects for PLCs and SCADA systems to monitor: Identity Object • TCP/IP Interface Object • Ethernet Link Object • Assembly Object •...
Page 54
Access Attr ID Name (Struct.) Data Type Description Rule The assigned MGate name, for example: Same as the server name set in the basic Get/Set Assigned Name STRINGI settings. By default, it is “MGate xxxx_xx” (xxxx_xx represents the product series number and serial number).
Page 55
Access Attr ID Name (Struct.) Data Type Description Rule Interface capability flags Bit map of capability flags: Bit 0: BOOTP Client Configurati DWORD (32) Bit 1: DNS Client on Capability Bit 2: DHCP Client Bit 3: DHCP-DNS Update Bit 4: Configuration Settable Interface control flags Bit map of control flags: Bit 0 to 3: Startup Configuration...
Page 56
Instance Mapping to Number Ethernet Link class MGate Ethernet port MGate Ethernet port The following tables summarize the attributes of the Ethernet Link object. There are some vendor specific attributes in the table (Starting from attribute Id 100). Class Attribute List Access Attr ID Name...
Page 57
Access Attr ID Name (Struct.) Data Type Description Rule Multiple Successfully transmitted frames which UDINT (32) Collisions experienced more than one collision. SQE Test The number of times the SQE test error UDINT (32) Errors message is generated. Deferred Frames for which first transmission attempt is UDINT (32) Transmissi ons delayed because the medium is busy.
Page 58
Bit(s) Called Definition Indicates the status of link auto-negotiation 0 = Auto-negotiation in progress. 1 = Auto-negotiation and speed detection failed. Using default values for speed and duplex. Default values are product-dependent; recommended Negotiation Status defaults are 10Mbps and half duplex. 2 = Auto negotiation failed but detected speed.
Page 59
Access Attr ID Name (Struct.) Data Type Description Rule Size UINT (16) Number of bytes in Attr. 3 Common Service List Implementation Service Service Name Description Code Class Instance 0x0E Get_Attribute_Single Used to read an object instance attribute Message Router Object The object within a node that distributes messaging requests to the appropriate application objects.
Page 60
The supported connection trigger type is cyclic and change of state. The instance attribute list is introduced as the following. Class Attribute List Access Attr ID Name Data Type Description Rule Revision UINT (16) Revision of this object Common Service List Service Implementation Service Name...
Page 61
Access Attr ID Name (Struct.) Data Type Description Rule Node number of this device on port. The Node Padded range within this data type is restricted to a Address EPATH Port Segment. Port Routing Bit string that defines the routing capabilities DWORD (32) Capabilities of this port.
Need help?
Do you have a question about the MGate 5135 Series and is the answer not in the manual?
Questions and answers