Moxa Technologies MGate 5118 Series User Manual

Moxa Technologies MGate 5118 Series User Manual

J1939 gateway
Hide thumbs Also See for MGate 5118 Series:

Advertisement

Quick Links

MGate 5118 Series J1939 Gateway
User's Manual
Edition 2.0, December 2017
www.moxa.com/product
© 2017 Moxa Inc. All rights reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Moxa Technologies MGate 5118 Series

  • Page 1 MGate 5118 Series J1939 Gateway User’s Manual Edition 2.0, December 2017 www.moxa.com/product © 2017 Moxa Inc. All rights reserved.
  • Page 2 MGate 5118 Series J1939 Gateway User’s 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 © 2017 Moxa Inc. All rights reserved.
  • Page 3: Table Of Contents

    Table of Contents Introduction ............................1-1 Overview ............................1-2 Package Checklist ..........................1-2 Product Features ..........................1-3 Getting Started..........................2-1 Connecting the Power ......................... 2-2 Connecting Serial Devices ........................2-2 RS-485 Termination and Pull High/Low Resistors ................2-2 Connecting to a Host or the Network ..................... 2-2 Installing the Software (Optional) ....................
  • Page 4: Introduction

    Introduction Welcome to the MGate 5118 CAN-J1939 gateway series that converts J1939 to Modbus RTU/ASCII/TCP, PROFINET, and EtherNet/IP protocols. All the 5118 gateways have dual DC power input for redundancy. Magnetic serial port isolation is also provided. In this chapter, we give an introduction to the MGate 5118. The following topics are covered in this chapter: ...
  • Page 5: Overview

    PLCs and SCADA systems that use the Modbus RTU/ASCII/TCP, EtherNet/IP, and PROFINET protocols. With regard to the MGate 5118 series, you can use the same gateway model in a variety of PLC environments. The MGate 5118 gateway series supports a web console for easy configuration and maintenance, and the built-in traffic monitor function monitors J1939 protocol traffic, allowing users to monitor the status of connected CAN devices, including error count, packet count, and bus-offline.
  • Page 6: Product Features

    MGate 5118 Introduction Product Features • Key-in-free J1939 command auto detection • Built-in J1939 traffic monitoring/diagnostics/live-list tools • Support J1939 to Modbus RTU/ASCII/TCP, EtherNet/IP, PROFINET protocol conversion • Ready for hazardous locations: C1D2, ATEX, IECEx • microSD card for configuration backup and event log •...
  • Page 7: Getting Started

    Getting Started This chapter provides basic instructions for installing the MGate 5118. The following topics are covered in this chapter:  Connecting the Power  Connecting Serial Devices  RS-485 Termination and Pull High/Low Resistors  Connecting to a Host or the Network ...
  • Page 8: Connecting The Power

    MGate 5118 Getting Started Connecting the Power The unit can be powered by connecting a power source to the terminal block. 1. The unit can be powered by connecting a power source to the terminal block. 2. The power input range is from 12 to 48 VDC. To remove the wire from the terminal block, use a flathead screwdriver to push the orange slot next to the terminal block hole, and then pull the wire out.
  • Page 9: Installing The Software (Optional)

    MGate 5118 Getting Started Installing the Software (Optional) The Device Search Utility (DSU) can be installed from the Documentation and software CD. The DSU can be used to connect the MGate with the PC. Follow the onscreen instructions after inserting the CD. For additional details, refer to Chapter 3: Device Search Utility.
  • Page 10: Led Indicators

    MGate 5118 Getting Started LED Indicators Color Description PWR 1, Green The power source is connected PWR 2 The power cable is disconnected Ready Power is off or a fault condition exists Green Steady on: Power is on, and the unit is functioning normally Blinking: The unit is responding to the software’s Locate function Steady on: Power is on, and the unit is booting up Blinking: Indicates an IP conflict, or the DHCP or BOOTP server is not responding...
  • Page 11: Dimensions

    MGate 5118 Getting Started Dimensions Unit = mm (inch) Adjustable Pull High/Low Resistors for the Serial Port In some critical environments, you may need to add termination resistors to prevent the reflection of serial signals. When using termination resistors, it is important to set the pull high/low resistors correctly so that the electrical signal is not corrupted.
  • Page 12: Pin Assignments

    MGate 5118 Getting Started Pin Assignments The MGate 5118 uses DB9 serial ports to connect to Modbus RTU or ASCII devices. Each port supports three serial interfaces that is selected by software: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RJ45 (Ethernet, Console) Ethernet Console (RS-232)
  • Page 13: Hardware Installation

    MGate 5118 Getting Started Hardware Installation The MGate 5118 is designed to be attached to a DIN rail or mounted on a wall. For DIN-rail mounting, push down the spring and properly attach it to the DIN rail until it "snaps" into place. For wall mounting, install the wall-mount kit (optional) first and then mount the device to the wall.
  • Page 14 MGate 5118 Getting Started Modbus Serial Interface Protocols: Modbus RTU/ASCII (Master/Slave) Number of Ports: 1 Serial Standards: RS-232/422/485, software selectable Connectors: DB9 male Pull High/Low Resistor for RS-485: 1 kΩ, 150 kΩ Terminator for RS-485: 120 Ω Isolation: 2 kV (built-in) Modbus Serial Communication Parameters Data Bits: 8 Stop Bits: 1, 2...
  • Page 15: Microsd Card

    MGate 5118 Getting Started EMS: IEC 61000-4-2 ESD: Contact: 4 kV; Air: 8 kV IEC 61000-4-3 RS: 80 MHz to 1 GHz: 10 V/m IEC 61000-4-4 EFT: Power: 2 kV; Signal: 1 kV IEC 61000-4-5 Surge: Power 1 kV; Signal: 1 kV IEC 61000-4-6 CS: 10 V IEC 61000-4-8;...
  • Page 16: Microsd Card Write Failure

    MGate 5118 Getting Started The configuration file stored on the microSD card will be copied automatically to the MGate gateway. microSD card Write Failure The following events will cause the microSD card to experience a write failure. The microSD card has less than 20 MB of free space. The MGate configuration file is read-only.
  • Page 17: Step 2: Select Protocol

    MGate 5118 Getting Started Step 2: Select Protocol Then, you have to select the protocols used on your devices that are connected through the MGate. After selection, the MGate will automatically change its role to the correct one. For example, if the device is set as a Modbus RTU Master, the MGate will then automatically configure as a Modbus RTU slave by itself.
  • Page 18 MGate 5118 Getting Started Modbus TCP Setting: Set Modbus TCP J1939 settings: J1939 related settings include the Device Network address, device name, and the transmit method. In addition, the J1939 input/output commands can be set by clicking the Add button. 2-12...
  • Page 19: Step 5: Finish

    MGate 5118 Getting Started Step 5: Finish Once all the configurations are done, you can check if all parameters are correct on this webpage. Moreover, if you want to determine the data mapping status, you can click the View I/O data mapping to know more details. If all of them are correct, press Save to make the settings effective.
  • Page 20: Device Search Utility

    Device Search Utility The following topics are covered in this chapter:  Installing the Software  Starting the Device Search Utility (DSU)  Connecting to the Unit  Broadcast Search  Search IP  Locate  Upgrading the Firmware...
  • Page 21: Installing The Software

    MGate 5118 Device Search Utility Installing the Software The following instructions explain how to install the Device Search Utility (DSU), a utility for configuring and monitoring MGate 5118 units over a network. 1. Insert the Document and software CD into the CD-ROM drive. Locate and run the following setup program to begin the installation process: dsu_setup_[Version]_Build_[DateTime].exe The latest version might be named dsu_setup_Ver2.0_Build_xxxxxxxx.exe, for example:...
  • Page 22 MGate 5118 Device Search Utility 4. When the Select Additional Tasks window appears, click Next to continue. You may select Create a desktop icon if you would like a shortcut to the DSU on your desktop. 5. Click Install to start copying the software files.
  • Page 23 MGate 5118 Device Search Utility 6. A progress bar will appear. The procedure should take only a few seconds to complete. 7. A message will indicate that the DSU is successfully installed. You may choose to run it immediately by selecting Launch DSU.
  • Page 24: Starting The Device Search Utility (Dsu)

    Before running the DSU, make sure that your PC and the MGate 5118 are connected to the same network. Alternatively, the MGate 5118 Series may be connected directly to the PC for configuration purposes. Refer to Chapter 2 for more details.
  • Page 25: Broadcast Search

    MGate 5118 Device Search Utility Broadcast Search Click Search and a new Search window will pop up.
  • Page 26: Search Ip

    MGate 5118 Device Search Utility When the search is complete, every MGate 5118 found on the LAN will appear in the DSU window. The MAC address, IP address, and firmware version of each unit will be shown. Select the one you would like to configure.
  • Page 27: Locate

    MGate 5118 Device Search Utility If the search is successful, the unit will be listed in the DSU window. Right click the unit to open a pop-up list of possible actions, or double click a unit to open the web console. Locate The Locate function will cause the unit to beep, so you can determine which unit is the target.
  • Page 28: Upgrading The Firmware

    MGate 5118 Device Search Utility To Import or Export the configuration file, click the icons to import the configuration file from a laptop, or export the currently used unit’s configuration file to a laptop. ATTENTION If Search IP fails to locate the MGate 5118, the IP address that you entered might be incorrect. Retry the search and reenter the IP address carefully.
  • Page 29: Web Console Configuration

    Web Console Configuration The MGate 5118 provides a web console for easy configuration through a web browser such as Microsoft Internet Explorer or Google Chrome. The following topics are covered in this chapter:  Overview  Basic Settings  Network Settings ...
  • Page 30: Overview

    MGate 5118 Web Console Configuration Overview To connect to the MGate web console, open a web browser and enter the MGate gateway’s IP address. http://<MGate IP address> The default IP addresses of LAN1 is 192.168.127.254. If you are unable to log in to the unit, you can use the DSU to first search for the unit.
  • Page 31: Basic Settings

    MGate 5118 Web Console Configuration Basic Settings Server Settings and Time Settings are shown on the Basic Settings page. Click Submit to save the current changes to the unit and click Restart once all the settings have been changed. The unit will reboot immediately to use the new settings.
  • Page 32: Network Settings

    MGate 5118 Web Console Configuration 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.
  • Page 33: Serial Settings

    MGate 5118 Web Console Configuration Serial Settings The Serial tab is where each serial port’s communication parameters are configured. You can configure Baudrate, Parity, Stop Bit, Flow Control, FIFO, Interface, RTS on delay, and RTS off delay. Parameter Value Baudrate 50 bps to 921600 bps Parity None, Odd, Even, Space, Mark...
  • Page 34: Device Settings

    MGate 5118 Web Console Configuration The setting of each protocol is described as follows: 1. J1939 Settings Device Settings Parameter Value Default Description Network address Numerical number 128-253 The MGate’s network address in the J1939 bus Device name The parameters FFFFFFFFFFFFFFFF A set of J1939 parameter regarding to J1939.
  • Page 35 MGate 5118 Web Console Configuration J1939 I/O Table: To modify the input/output commands of J1939,you have to manually add the J1939 commands into the MGate, according to the J1939 device it is attached to. Parameter Value Default Description Type Input, Output Input Data type Name...
  • Page 36 MGate 5118 Web Console Configuration AutoScan: For users’ convenience, the MGate 5118 is designed with an innovative command auto-learning function. It can learn all the output commands from the J1939 devices in the same CAN bus. Users don’t need to key in the commands one by one.
  • Page 37 MGate 5118 Web Console Configuration If further modification is required, click on the selected command and click Edit. Whenever the commands are set, remember to click the Submit button to activate. 2. Modbus TCP Client (Master) Settings Client Settings Parameter Value Default Description...
  • Page 38 MGate 5118 Web Console Configuration Parameter Value Default Description communicate with the Modbus slave. Response 10 - 1000 According to the Modbus standard, the time it takes for a slave timeout 120000 ms device to respond to a request is defined by the device manufacturer.
  • Page 39 MGate 5118 Web Console Configuration Parameter Value Default Description Data Change sent Disable Cyclic: The command is sent cyclically at the interval specified in the Poll Interval parameter. Data change: The data area is polled for changes at the time interval defined by Poll Interval.
  • Page 40: Server Settings

    MGate 5118 Web Console Configuration Parameter Value Default Description Fault value 00 00 The value for Set to user defined value. Fault timeout 1 - 86400 s 3600 Defines the communication timeout for the opposite side. 3. Modbus TCP Server (Slave) Settings Server Settings Parameter Value...
  • Page 41 MGate 5118 Web Console Configuration Master Settings Parameter Value Default Description Initial delay 0 - 30000 ms Some Modbus slaves may take more time to boot up than other devices. In some environments, this may cause the entire system to suffer from repeated exceptions during the initial boot-up.
  • Page 42 MGate 5118 Web Console Configuration Slave Settings Parameter Value Default Description Slave ID 1 - 255 The Modbus slave ID that this slave module will accept. 6. EtherNet/IP Setting The MGate 5118 supports Adapter and Scanner modes for EtherNet/IP protocol. Adapter Mode: You can select Automatic for I/O data size configuration to automatically map OT (Originator to Target) and TO (Target to Originator) data sizes with J1939 data.
  • Page 43 MGate 5118 Web Console Configuration In Scanner mode, all EtherNet/IP connections will be shown in a table. For the initial setup, click Add to create a new connection. Parameter Value Notes Name (an alphanumeric string) Connection Enable, Disable Enable or Disable this connection. Adapter IP address and Port IP address Default EtherNet/IP port is 44818...
  • Page 44 MGate 5118 Web Console Configuration Parameter Value Notes to the slave device. Fault timeout 60000 To set how long the gateway will wait to activate this function. 7. PROFINET Setting The MGate 5118 can play the role of PROFINET IO-Device. All you have to set is the Device name of the MGate. I/O Data Mapping You can verify the gateway’s memory allocation on the I/O Data Mapping page.
  • Page 45: System Management

    MGate 5118 Web Console Configuration System Management This configuration tab includes several system level settings. Most of these settings are optional. Accessible IP Settings These settings are used to restrict access to the module by IP address. Only IP addresses on the list will be allowed access to the device.
  • Page 46: Dos Defense

    MGate 5118 Web Console Configuration DoS Defense To avoid a DoS attack, some configurations can be set accordingly. They include Null Scan, Xmas Scan, SYN/FIN Scan, FIN Scan, and NMAP-ID Scan. The SYN-Flood and ICMP-Death can also be set on this page. System Log Settings These settings enable the MGate firmware to record important events for future verification.
  • Page 47 MGate 5118 Web Console Configuration Event Group Description Certificate Import, Configuration Import/Export Modbus TCP Modbus TCP Communication logs J1939 communication logs J1939 EtherNet/IP communication logs EtherNet/IP PROFINET communication logs PROFINET Local Log Settings Description Enable log capacity warning (%) When the log amount exceeds the warning percentage, it will trigger an event to SNMP Trap or Email.
  • Page 48 MGate 5118 Web Console Configuration E-mail Alert Settings Parameters Description Mail server The mail server’s domain name or IP address. User name This field is for your mail server’s user name, if required. Password This field is for your mail server’s password, if required. From e-mail address This is the e-mail address from which automatic e-mail warnings will be sent.
  • Page 49: Lldp Settings

    MGate 5118 Web Console Configuration Parameters Description SNMP To enable the SNMP Agent function, select the Enable option, and enter a community name (e.g., public). Read community string This is a text password mechanism that is used to weakly authenticate queries to agents of managed network devices.
  • Page 50: Misc. Settings

    MGate 5118 Web Console Configuration Misc. Settings This page includes console settings, password, and relay output. Console Settings Configuration Value Description HTTP/HTTPS Enable/Disable This setting is to enable/disable the web console. For security issues, users can only enable the HTTPS or just disable all settings.
  • Page 51: Account Management

    MGate 5118 Web Console Configuration Notification Message Users can input a message for Login or for Login authentication failure message. Account Management Parameters Value Description Account admin, user Users can modify the password for different accounts. Now the MGate provides two different level accounts: admin and user . The admin account can access and modify all the settings through the web console.
  • Page 52 MGate 5118 Web Console Configuration Login Password Policy Account Password Policy Value Description Minimum length 4-16 Enable password complexity Select how the MGate checks the password’s strength strength check Password lifetime 90-180 days Set the password’s lifetime period. Account Login Failure Value Description Lockout...
  • Page 53: Firmware Upgrade

    MGate 5118 Web Console Configuration Firmware Upgrade Firmware updates for the MGate 5118 are located 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 5118. Select the desired unit from the list in the web console and click Upgrade Firmware to begin the process.
  • Page 54: System Monitoring - System Status

    MGate 5118 Web Console Configuration Load Factory Default To clear all the settings on the unit, use the Load Factory Default to reset the unit to its initial factory default values. ATTENTION Load Default will completely reset the configuration of the unit, and all of the parameters you have saved will be discarded.
  • Page 55: System Monitoring - Protocol Status

    MGate 5118 Web Console Configuration Relay State The MGate gateway includes a built-in relay circuit that is triggered in the event of a power failure or if the Ethernet link is down. You can view the relay status on this page. LLDP Table You can see LLDP related information, including Port, Neighbor ID, Neighbor Port, Neighbor Port Description, and Neighbor System.
  • Page 56 MGate 5118 Web Console Configuration Modbus RTU/ASCII Diagnose (Master) Modbus RTU/ASCII Diagnose (Slave) Modbus TCP Diagnose (Client/Master) 4-28...
  • Page 57 MGate 5118 Web Console Configuration Modbus TCP Diagnose (Slave/Server) J1939 Diagnose PROFINET Diagnose Traffic Modbus RTU/ASCII/TCP Traffic For troubleshooting or management purposes, you can monitor the Modbus RTU/ASCII/TCP data passing through the MGate 5118 on the network. Rather than simply echoing the data, the web console presents the data in an intelligent, easy-to-understand format with clearly designated fields, including source, destination, contents, slave ID, function code, and raw data.
  • Page 58 MGate 5118 Web Console Configuration J1939 Traffic 4-30...
  • Page 59: Fault Protection And Status Monitoring

    MGate 5118 Web Console Configuration J1939 Live List The Live List function allows you to check how many live devices are in the same CAN bus of the MGate. And you may also click on the Question icon for more detail. Fault Protection and Status Monitoring Fault Protection The Fault Protection function sends a predefined setting to field devices to prevent incorrect actions when the...
  • Page 60: Restart

    MGate 5118 Web Console Configuration data. The MGate supports the Status Monitoring function, which provides a warning mechanism to report the list of slave devices that are still “alive.” The MGate 5118 allocates one bit of the gateway’s specified memory address to indicate the status of each J1939 command as being normal or abnormal.
  • Page 61: Mxconfig

    MGate 5118 Web Console Configuration MXconfig Moxa’s MXconfig is a comprehensive Windows-based utility that is used to install, configure, and maintain multiple Moxa devices in industrial networks. This suite of useful tools helps users set the IP addresses of multiple devices with one click, configure the redundant protocols and VLAN settings, modify multiple network configurations of multiple Moxa devices, upload firmware to multiple devices, export/import configuration files, copy configuration settings across devices, easily link to web and telnet consoles, and test device connectivity.

Table of Contents