Download Print this page
Moxa Technologies MGate 5121 Series User Manual
Moxa Technologies MGate 5121 Series User Manual

Moxa Technologies MGate 5121 Series User Manual

Hide thumbs Also See for MGate 5121 Series:

Advertisement

Quick Links

MGate 5121 Series User Manual
Version 1.1, January 2025
www.moxa.com/products
© 2025 Moxa Inc. All rights reserved.

Advertisement

loading
Need help?

Need help?

Do you have a question about the MGate 5121 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Moxa Technologies MGate 5121 Series

  • Page 1 MGate 5121 Series User Manual Version 1.1, January 2025 www.moxa.com/products © 2025 Moxa Inc. All rights reserved.
  • Page 2 MGate 5121 Series User Manual 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 © 2025 Moxa Inc. All rights reserved. Trademarks The MOXA logo is a registered trademark of Moxa Inc.
  • Page 3 Table of Contents Introduction ............................4 Getting Started ............................. 5 Connecting the Power ..........................5 Connecting CAN Devices ......................... 5 Connecting to a Network ........................5 Installing DSU Software .......................... 5 Log In to the Web Console ........................6 microSD ............................... 6 Web Console Configuration and Troubleshooting .................
  • Page 4 Modbus TCP host or SNMP client. All models are protected by a rugged and compact metal housing and are DIN-rail mountable. The rugged design is suitable for industrial applications such as factory automation and other process automation industries. NOTE CAN proprietary (CAN 2.0 A/B) is supported in firmware version V2.0 and later. MGate 5121 Series User Manual...
  • Page 5 A message will show the DSU has been successfully installed. You may choose to run it immediately by selecting Launch DSU. You may also open the DSU through Start > Programs > MOXA > DSU. MGate 5121 Series User Manual...
  • Page 6 First time use of a microSD card containing a configuration file with the MGate gateway Power off the MGate and insert the microSD card. Power on the MGate. The configuration file stored in the microSD card will automatically copy to the MGate. MGate 5121 Series User Manual...
  • Page 7 MGate gateway. Note that the replacement microSD card should not contain any configuration files on it; otherwise, the out-of-date configuration will be copied to the MGate device. MGate 5121 Series User Manual...
  • Page 8 This chapter provides a quick overview of how to configure the MGate 5121 by web console. System Dashboard This page gives a system dashboard of the MGate 5121 gateway. You can change your password or log out using the options on the top-right corner of the page. MGate 5121 Series User Manual...
  • Page 9 First-time users should select the time zone first. The console will display the actual time in your time zone relative to the GMT. If you would like to change the real-time clock, select Local time. MGate’s firmware will change the GMT time according to the Time Zone setting. MGate 5121 Series User Manual...
  • Page 10 This optional field specifies the IP address or domain name of the time server on your network. The module supports Auto SNTP (RFC-1769) for automatic time calibration. The MGate will request the time information from the specified time server per the set configured time. MGate 5121 Series User Manual...
  • Page 11 Select Static IP if you are using a fixed IP address. Select the IP Configuration DHCP, Static IP DHCP option if you want the IP address to be dynamically assigned. 192.168.127.254 IP Address The IP Address identifies the server on the TCP/IP network. (or other 32-bit number) MGate 5121 Series User Manual...
  • Page 12 Default is empty. Type in the community string when selecting v1 v2c or v1 v2c v3 version. Minimum Minimum Authentication/Privacy Password Length must be between 8 and Authentication/Privacy Password Length MGate 5121 Series User Manual...
  • Page 13 If you need to change the SNMP Account settings created previously, click on the button on the right of the configured SNMP item to change settings, such as Authentication Type or Privacy Type. MGate 5121 Series User Manual...
  • Page 14 1 to 60 (default 10) Interval (min.) the MGate will disable the SNMPv3 for Account Disabled Time Interval. System Settings—SNMP Settings—SNMP Trap Set up the SNMP trap server to send the trap events, such as warning messages. MGate 5121 Series User Manual...
  • Page 15 SNMP server IP address or domain name; the maximum number of trap servers is Server IP Port SNMP server IP Port. Disable SNMPv1 Trap Version SNMPv2c SNMPv3 Protocol Settings Protocol Settings—Protocol Conversion You can select CANopen, J1939, or CAN proprietary on this page. MGate 5121 Series User Manual...
  • Page 16 Click Edit at the “Edge Device” right-hand side and select your device protocol roles. Click SAVE then APPLY on the warning pop-up window. Protocol Settings—CANopen Master Settings Manage CANopen devices on this page. MGate 5121 Series User Manual...
  • Page 17 For those CAN devices that need longer time to boot up, the MGate needs to wait until the device is ready Initial Delay (ms) 0 to 120000 for communication. Set the initial delay time to wait for the device to boot up. MGate 5121 Series User Manual...
  • Page 18 PDO COB ID. For example, if you want to mapping slave ID 2’s RPDO4 to MGate TPDO1, type in COB ID 0x0502 in the CANopen master TPDO1. If you want to mapping slave ID2’s TPDO1 to CANopen master RPDO2, type in COB ID 0x0182 in RPDO2. MGate 5121 Series User Manual...
  • Page 19 0x0000 to COB ID by Slave Node ID and choose PDOx from Slave PDO. COB ID 0x0000 0xFFFF Alternatively, you can manually enter the COB ID when Slave PDO is set to "-- Select One --". MGate 5121 Series User Manual...
  • Page 20 0x11 22 33 44 55 66 77 88  0x88 77 66 55 44 33 22 11 Reverse with byte swap: Reverse the order of bytes first, then switch the order of bytes. 0x11 22 33 44 55 66 77 88  0x77 88 55 66 33 44 11 22 MGate 5121 Series User Manual...
  • Page 21 You can ADD the slave device manually or SCAN the devices on the CAN bus. Import slave EDS files before adding or scanning the slave devices. Click the ADD button and select the slave device from the EDS repository. MGate 5121 Series User Manual...
  • Page 22 The MGate will send SDO requests to set the slave’s communication parameters when CANopen bus is ready. Select Heartbeat to retrieve the slave’s status and set Master Heartbeat Consuming Timeout time for the CANopen slave parameter. Heartbeat tag view status MGate 5121 Series User Manual...
  • Page 23 SDOs. Click the Edit device parameters. In the following window, you can see the default value from the EDS file, and you may type in the new value in the value column, and then click the SAVE button. MGate 5121 Series User Manual...
  • Page 24 J1939 bus The parameters A set of J1939 parameter combinations Device name FFFFFFFFFFFFFFFF regarding to J1939. represented in hex value Start output To determine the way the transmission Data update, startup Data update transmission by starts MGate 5121 Series User Manual...
  • Page 25 The baudrate used in J1939 1Mbps In the I/O Table tab, change the input/output commands of J1939. Click ADD to add the J1939 commands into the MGate, according to the J1939 device it is attached to. MGate 5121 Series User Manual...
  • Page 26 User-defined the slave device. Value Proceed—Clear data to zero: The gateway will write zero values to the slave device. Proceed—Set to User Defined Value: A user- defined value will be written to the slave device. MGate 5121 Series User Manual...
  • Page 27 Import or export offline excel CAN data frame configuration by clicking the IMPORT or EXPORT button on the right-hand side. Or, click CAN Port 1 to configure manually. Click the EDIT button to set the CAN proprietary settings. MGate 5121 Series User Manual...
  • Page 28 Software configurable CAN bus termination resistor. resistor 120 Enable ohms Click ADD DEVICE to add the CAN devices, type in a 1- to 64-character device name. Click SAVE AS DRAFT to save the configuration temporarily. MGate 5121 Series User Manual...
  • Page 29 Defines the communication timeout for the opposite 100 to 65535 60000 Timeout(ms) side. Disable When receiving a remote transmission request (RTR) for Tigger by RTR Disable Enable a specific CAN-ID, it triggers the produce transaction. MGate 5121 Series User Manual...
  • Page 30 User-defined Set the user-defined value in the data block when you Value for Fault activate Fault Protection in the Produce Settings step Protection (Hex) and select “Proceed—Set to User-defined Value” MGate 5121 Series User Manual...
  • Page 31 (An alphanumeric string) 1 to 32 characters. Length(byte) 1 to 8 Data length of constant value. 0x0000000000000000 to Value 0x0000000000000000 Set the constant value in Hex. 0xFFFFFFFFFFFFFFFF The configuration will be displayed below Frame Settings. MGate 5121 Series User Manual...
  • Page 32 1 to 64 characters. Name string) The timeout value in milliseconds. If the consume Consume 10 to 65535 10000 transaction is not received within the timeout time, the Timeout (ms) device will be considered offline. MGate 5121 Series User Manual...
  • Page 33 Type in the CAN-ID, according to the CAN device user manual. Click the ADD FUNCTION BLOCK button to add Data blocks or Constant blocks. The block setting is the same as the producer. Refer to the Produce Frame Settings’ description. Confirm the transaction settings. Click SAVE AS DRAFT. MGate 5121 Series User Manual...
  • Page 34 Fault Timeout (ms) 100 to 65535 60000 opposite side. The request retries counts when a timeout occurred without receiving a response. The Maximum retry (count) 0 to 5 response timeout value is set in Response tab. MGate 5121 Series User Manual...
  • Page 35 Here set the request and response frame settings according to the CAN device user manual, including the CAN-ID, Data blocks or Constant blocks. The block setting is the same as the producer. Refer to Produce Frame Settings’ description. MGate 5121 Series User Manual...
  • Page 36 Confirm the transaction settings. Then click SAVE AS DRAFT. After all settings have been created, click the icon on the right-hand side of each transaction to edit, delete or clone it. Finally, click APPLY to activate all settings. MGate 5121 Series User Manual...
  • Page 37 1 to 255 The Modbus server ID that this slave module will accept. Server Port 1 to 65535 The TCP port number. TCP Alive Check 0 to 99 The time to check TCP alive. Time (min) MGate 5121 Series User Manual...
  • Page 38 The selection sequence will also decide the sequence in the Modbus TCP register/coil address. The selected tags will display in the data mapping column by default with register/coil address. You may adjust it manually. MGate 5121 Series User Manual...
  • Page 39 Protocol Settings—SNMP Mapping Settings You can manage CAN to SNMP mapping data on this page; for detailed SNMP protocol settings, go to the SNMP Trap Server page. Click ADD TAGS to add tags in the CAN settings. MGate 5121 Series User Manual...
  • Page 40 1.3.6.1.4.1.8691.21.5121.3.1.2 array of names {tags}.2 Tag name 1.3.6.1.4.1.8691.21.5121.3.1.1.x value of array[x] {array of values}.x Index of tag value 1.3.6.1.4.1.8691.21.5121.3.1.2.x name of array[x] {array of names}.x Index of tag name Diagnostics Diagnostics—Protocol Diagnostics Diagnostics—Protocol Diagnostics—CANopen Diagnostics MGate 5121 Series User Manual...
  • Page 41 In the Slave Status tab, check the detailed information regarding the slave status and change CANopen state machine at the right-hand side. You can open the Object Parameter tab to check and change the slave device's CANopen object value. MGate 5121 Series User Manual...
  • Page 42 Diagnostics—Protocol Diagnostics—J1939 Diagnostics The Live List function allows you to check how many live devices are on the same network. MGate 5121 Series User Manual...
  • Page 43 Diagnostics—Protocol Diagnostics—CAN Proprietary Diagnostics Diagnostics—Protocol Diagnostics—Modbus TCP Diagnostics MGate 5121 Series User Manual...
  • Page 44 Click START to start traffic log. You can also read/write CAN data manually by clicking the TEST button and type in the CAN data frame. Diagnostics—Protocol Traffic—J1939 Traffic Click START to start J1939 traffic log. MGate 5121 Series User Manual...
  • Page 45 Diagnostics—Protocol Traffic—CAN Proprietary Traffic Diagnostics—Protocol Traffic—Modbus TCP Traffic Click START to start Modbus TCP traffic log. Diagnostics—Event Log Diagnostics—Event Log—Log View Review and export all event information in the event log. MGate 5121 Series User Manual...
  • Page 46 I/O Device is connected, I/O Device is disconnected, I/O Controller is running, I/O PROFINET Controller has stopped CANopen Device status changed; CAN bus-off; slave initialization failed J1939 CAN bus-off CAN Error Passive, CAN bus-off, Transaction Success, Transaction Failed, Transaction CAN proprietary Timeout MGate 5121 Series User Manual...
  • Page 47 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 5121 Series User Manual...
  • Page 48 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 MGate 5121 Series User Manual...
  • Page 49 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. semicolon) MGate 5121 Series User Manual...
  • Page 50 CANopen_master NMT state showing the master current state, 0 means the master is in operational mode, 1 it is in preoperational mode, and 2 it is stop mode. Write a value to the CAN device via Write value directly to test the communication with the CAN device. MGate 5121 Series User Manual...
  • Page 51 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. MGate 5121 Series User Manual...
  • Page 52 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 > Service page to enable or disable it. MGate 5121 Series User Manual...
  • Page 53 Group Operator, Administrator account can access all settings. Operator accounts can Guest access most settings, except security categories. Guest account can only view the overview page. Create your own group for account management. MGate 5121 Series User Manual...
  • Page 54 Security—Account Management—Groups Three MGate built-in types of groups are shown; you can also create your own group by clicking CREATE. MGate 5121 Series User Manual...
  • Page 55 Description Password Minimum Length 8 to 128 The minimum password length Password Complexity Strength Select how the MGate checks the password’s strength Check Password lifetime Setting 90 to 180 days Set the password’s lifetime period. MGate 5121 Series User Manual...
  • Page 56 In the disabled mode, the MGate will still enable the after 60 sec disable after 60 sec. Reset button for 60 seconds after booting up, just in case you really need to reset the device. MGate 5121 Series User Manual...
  • Page 57 Users can select from several options to enable DoS Defense 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 5121 Series User Manual...
  • Page 58 Specify the reset period time when enabling the "reset the Reset Period (min) login failure counter" function When the number of login failures exceeds the threshold, Lockout Time(min) 1 to 60 (default 10) the MGate will lock out for a period. MGate 5121 Series User Manual...
  • Page 59 1 to 1440 (default 1440) Sets the auto logout period. (min) Security—Certificate Management Use this function to load the Ethernet SSL certificate. Import or delete SSL certificate/key files. This function is only available for the web console. MGate 5121 Series User Manual...
  • Page 60 For cybersecurity reasons, you can export configuration file with an authentication key, length from 8 to 16 characters. If the key to the imported configuration file differs from the key to the exported file, the import process will fail. MGate 5121 Series User Manual...
  • Page 61 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. MGate 5121 Series User Manual...
  • Page 62 (for example, the Modbus TCP Server page). Cick ADD TAGS and select canopen_master as the tag provider and select the "status" tag. The MGate will automatically add a mapping from this CAN-based tag to the Modbus TCP. MGate 5121 Series User Manual...
  • Page 63 The highest significant bit shows the status. 1 is invalid, 0 is valid. Further details on the status codes: Valid (0x00000000) - Indicates the status is connected. Invalid (0x80000000) - Indicates the status is unknown. Invalid (0x80000001) - Indicates the status is offline. MGate 5121 Series User Manual...
  • Page 64 After importing/installing the plugin files, the MGate products can be supported by MXview/MXconfig. Refer to the Moxa MGate product website to download plugin files: http://www.moxa.com. For more detailed functions such as supported functions on MXview/MXconfig, refer to the Tech Note: Configuring and Monitoring with MXview One/MXview and MXconfig. MGate 5121 Series User Manual...
  • Page 65 MGate 5121 Series User Manual...
  • Page 66 MGate 5121 Series User Manual...