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 .................
EtherNet/IP 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 5122 Series User Manual...
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 5122 Series User Manual...
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 5122 Series User Manual...
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. MGate 5122 Series User Manual...
This chapter provides a quick overview of how to configure the MGate 5122 by web console. System Dashboard This page gives a system dashboard of the MGate 5122 gateway. Change your password or log out using the options on the top-right corner of the page. MGate 5122 Series User Manual...
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 5122 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 5122 Series User Manual...
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 5122 Series User Manual...
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 5122 Series User Manual...
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 5122 Series User Manual...
Page 14
When the number of authentication failures exceeds Account Disabled Time the value set in Max Authentication Failure Times, 1 to 60 (default 10) Interval (min) the MGate will disable the SNMPv3 for Account Disabled Time Interval. MGate 5122 Series User Manual...
Page 15
Set up the SNMP trap server to send the trap events, such as warning messages. Parameters Description 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 MGate 5122 Series User Manual...
Protocol Settings—Protocol Conversion Select CANopen, J1939, or CAN proprietary on this page. 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. MGate 5122 Series User Manual...
Description Vendor Vendor name Product Name Product name Vendor ID registered in CiA Vendor ID organization Revision EDS file revision EDS file EDS file name RxPDOs Supports number of RxPDO TxPDOs Supports number of TxPDO MGate 5122 Series User Manual...
Page 18
Enable message. TIME is a 6 bytes value with UAT format. Time-COB ID 0x0000 to 0xFFFF 0x0100 Standard TIME COB ID is 0x0100 Time-Interval (ms) 0 to 65535 1000 Interval time for the TIME message. MGate 5122 Series User Manual...
Page 19
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 5122 Series User Manual...
Page 20
Object index/ slave EDS parameter. sub-index 1 to 7 Bit Data Type 1 Bit Tag data type 1 to 8 Byte Alphanumeric Create Tag names. Select tags in the northbound protocol Tag Name string setting. MGate 5122 Series User Manual...
Page 21
ADD the slave device manually or SCAN the devices on the CANbus. 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 5122 Series User Manual...
Page 22
The MGate will send SDO requests to set the slave’s communication parameters when the 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 5122 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 5122 Series User Manual...
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 5122 Series User Manual...
Page 25
The baudrate used in J1939 1Mbps Under 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 5122 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 5122 Series User Manual...
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. Select the CAN settings for CAN port 1. Click SAVE AS DRAFT button. MGate 5122 Series User Manual...
Page 28
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. Click ADD TRANSACTION button to select the CAN data frame type Produce, Consume, or Request/Response. MGate 5122 Series User Manual...
Page 29
100 to 65535 60000 Defines the communication timeout on the opposite side. (ms) Disable When receiving a remote transmission request (RTR) for Tigger by RTR Disable Enable a specific CAN-ID, it triggers the produce transaction. MGate 5122 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 and Protection (Hex) select “Proceed—Set to User-defined Value” MGate 5122 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 display the Frame Settings below. MGate 5122 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 5122 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 5122 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 the Response tab. MGate 5122 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 5122 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 5122 Series User Manual...
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. MGate 5122 Series User Manual...
Page 38
Click EDIT in the connection column to adjust the connection parameters. 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 MGate 5122 Series User Manual...
Page 39
The selection sequence will also decide the sequence in the EtherNet/IP data frame. The selected tags will display in the data mapping column by default with byte offset. Adjust the offset in the EtherNet/IP IO data frame manually. MGate 5122 Series User Manual...
Protocol Settings—SNMP Mapping Settings 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 5122 Series User Manual...
1.3.6.1.4.1.8691.21.5122.3.1.2 array of names {tags}.2 Tag name 1.3.6.1.4.1.8691.21.5122.3.1.1.x value of array[x] {array of values}.x Index of tag value 1.3.6.1.4.1.8691.21.5122.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 5122 Series User Manual...
Page 42
In the Slave Status tab, check the detailed information regarding slave status and change CANopen state of the machine at the right-hand side. Furthermore, you can open the Object Parameter tab to check and change the slave device's CANopen object value. MGate 5122 Series User Manual...
Page 43
Diagnostics—Protocol Diagnostics—J1939 Diagnostics The Live List function allows you to check how many live devices are on the same network. MGate 5122 Series User Manual...
Page 44
Diagnostics—Protocol Diagnostics—CAN Proprietary Diagnostics Diagnostics—Protocol Diagnostics—EtherNet/IP Diagnostics MGate 5122 Series User Manual...
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 5122 Series User Manual...
Diagnostics—Protocol Traffic—CAN Proprietary Traffic Diagnostics—Event Log Diagnostics—Event Log—Log View Review and export all event information in the event log. MGate 5122 Series User Manual...
Page 47
I/O Device is connected, I/O Device is disconnected, I/O Controller is running, I/O PROFINET Controller has stopped CANopen Device state 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 5122 Series User Manual...
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 5122 Series User Manual...
Page 49
Syslog Server IP IP address of a server that will record the log data Syslog Server port Enable TLS authentication. Note that TLS files must be uploaded for a TLS Authentication successful connection. SNMP Trap Settings MGate 5122 Series User Manual...
This field is for your mail server’s password, if required. From (Email address) Email address from which automatic email warnings will be sent. To (Email address, Email addresses to which automatic email warnings will be sent. separated by semicolon) MGate 5122 Series User Manual...
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 CAN device. MGate 5122 Series User Manual...
Diagnostics—LLDP 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. MGate 5122 Series User Manual...
We also provide a guideline of recommended steps as best practices for secure configurations in most applications. For this, refer to the Security Hardening Guide for the MGate 5000 Series. Security—Account Management Security—Account Management—Accounts MGate 5122 Series User Manual...
Page 54
Administrator Group Operator, account can access all settings. Operator accounts can access most Guest settings, except security categories. Guest account can only view the overview page. Create your own group for account management. Security—Account Management—Groups MGate 5122 Series User Manual...
Page 55
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. MGate 5122 Series User Manual...
Page 56
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 5122 Series User Manual...
Always enable and In the disabled mode, the MGate will still enable the Reset after 60 sec disable after 60 sec. button for 60 seconds after bootup, just in case you really need to reset the device. MGate 5122 Series User Manual...
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. Select from the following options to counter DoS attacks. MGate 5122 Series User Manual...
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 5122 Series User Manual...
1 to 1440 (default 1440) Sets the auto logout time 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 5122 Series User Manual...
Moxa’s Technical Service Team when maintenance visits are requested. For cybersecurity reasons, you can export the configuration file with an authentication key, length from 8 to 16 characters. Importing will fail if the configuration file’s key doesn’t match the exported file’s key. MGate 5122 Series User Manual...
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 5122 Series User Manual...
(for example, the EtherNet/IP adapter 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 EtherNet/IP. MGate 5122 Series User Manual...
Page 64
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 5122 Series User Manual...
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 5122 Series User Manual...
UINT (16) Class Attributes the class definition implemented in the device Maximum ID Number The attribute ID number of the last instance attribute UINT (16) Instance Attributes of the class definition implemented in the device MGate 5122 Series User Manual...
UINT (16) Class Attributes the class definition implemented in the device Maximum ID Number The attribute ID number of the last instance attribute UINT (16) Instance Attributes of the class definition implemented in the device MGate 5122 Series User Manual...
Page 70
Instance 0x01 Get_Attribute_All Returns the contents of all attributes of the class 0x0E Get_Attribute_Single Used to read an object instance attribute 0x10 Set_Attribute_Single Used to change an object instance attribute MGate 5122 Series User Manual...
Outbound packets that contain errors (Struct.) Alignment Received frames that are not an integral Media UDINT (32) Errors number of octets in length Counters Received frames that do not pass the FCS FCS Errors UDINT (32) check MGate 5122 Series User Manual...
Page 72
Capability Bits DWORD (32) speed/duplex Indicates speed/duplex pairs supported in (Struct.) Interface the Interface Control attribute Capability USINT (8) Speed/Duplex Array Count Speed/Duplex Options (Array Struct.) Speed/Duplex Array UINT (16) Interface Speed USINT (8) Interface Duplex Mode MGate 5122 Series User Manual...
UINT (16) Revision of this object Instance Attribute List Attr ID Access Rule Name (Struct.) Data Type Description Data Array of BYTE The implicit messaging content Size UINT (16) Number of bytes in Attr. 3 MGate 5122 Series User Manual...
Revision of this object Common Service List Service Implementation Service Name Description Code Class Instance 0x0e Get_Attribute_Single Returns the contents of the specified attribute 0x4E Forward_Close Closes a connection 0x54 Forward_Open Opens a connection MGate 5122 Series User Manual...
Common Service List Implementation Service Service Name Description Code Class Instance 0x0E Get_Attribute_Single Used to read an object instance attribute Returns the contents of all attributes of the 0x01 Get_Attributes_All class/instance MGate 5122 Series User Manual...
Need help?
Do you have a question about the MGate 5122 Series and is the answer not in the manual?
Questions and answers