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 First Time Configuration ....................... 2-3 Installing the Software .........................
Introduction Welcome to the MGate W5108/W5208 series WiFi Modbus/DNP3 gateways, which are used to connect Modbus or DNP3 serial devices to a wireless LAN. The MGate W5108/5208 series gateway is an ideal choice for connecting the Modbus/DNP3 serial devices to a wireless LAN.
MGate W5108/W5208 Series Introduction Overview The MGate W5108/W5208 wireless Modbus/DNP3 protocol gateways provide maximum flexibility for integrating industrial Modbus/DNP3 networks of all types and sizes. The MGate W5108/W5208 gateways are designed to integrate Modbus TCP, ASCII, and RTU devices in almost any master and slave combination, including serial master to serial slave, or simultaneous serial and Ethernet masters.
MGate W5108/W5208 Series Introduction Product Features • Retrieve Modbus/DNP3 serial data through an 802.11 network • Serial tunneling communication (supports TCP Server/Client modes) • Slave mode supports 16 TCP masters/clients and up to 31 or 62 serial slaves at the same time •...
Getting Started This chapter provides basic instructions for installing the MGate W5108/W5208. The following topics are covered in this chapter: Connecting the Power Connecting Serial Devices RS-485 Termination and Pull High/Low Resistors First Time Configuration Installing the Software ...
MGate W5108/W5208 Series Getting Started Connecting the Power The unit can be powered by connecting a power source to the terminal block. 1. We recommend using 24 to 16 AWG wire. Strip 9 to 10 mm of insulation off the end of the wire before inserting it into the terminal block hole.
MGate W5108/W5208 Series Getting Started First Time Configuration To configure the gateway for the first time, use an Ethernet cable to connect the 10/100BaseT Ethernet port located on the front panel to a PC. The unit’s Link LED will light up to indicate a live Ethernet connection. To connect to the MGate to the web console, open a web browser and enter the MGate gateway's IP address.
MGate W5108/W5208 Series Getting Started You should also observe the following common wiring rules: • Use separate paths to route wiring for power and devices. If power wiring and device wiring paths must cross, make sure the wires are perpendicular at the intersection point. NOTE: Do not run signal or communication wiring and power wiring in the same wire conduit.
MGate W5108/W5208 Series Getting Started MGate W5208 Adjustable Pull High/Low Resistors for the RS-485 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.
MGate W5108/W5208 Series Getting Started Pin Assignments The MGate W5108/W5208 uses DB9 serial ports to connect to Modbus RTU/ASCII or DNP3 devices. Each port supports three serial interfaces that select by software: RS-232, RS-422, and RS-485 (both 2 and 4-wire). RJ45 (Ethernet) Ethernet –...
MGate W5108/W5208 Series Getting Started I/O Wiring Diagram DI Dry Contact DI Wet Contact DO (Sink) Mounting the Unit 1. Connect the power adaptor. Connect the 12–48 VDC power line or DIN-rail power supply to the MGate W5108/W5208 device’s terminal block. 2.
Page 18
MGate W5108/W5208 Series Getting Started Software Configuration Options: Web console, Serial console, Telnet console Utilities: Device Search Utility (DSU) for Windows 95, 98, ME, NT, 2000, Windows XP, Server 2003, Vista, Server 2008 (x86/x64), Windows Server 2008 R2, Windows 7/8/8.1/10 (x86/x64), Windows Server 2012 (x64), Windows 2012 R2 Network protocols: TCP/IP, UDP, HTTP, SMTP, NTP, DNS, DHCP Client, SNMP (v1, v2, v3), Private MIB, ARP, Telnet...
MGate W5108/W5208 Series Getting Started Reliability MTBF (mean time between failures): 668,518 hrs Alarm Functions: relay, e-mail Alert Tools: Built-in buzzer Warranty Warranty Period: 5 years Details: See www.moxa.com/warranty microSD Card The MGate W5108/W5208 series gateway is equipped a microSD card slot for easy configuration. The microSD card can be used to store an MGate’s system configuration settings and the MGate’s system log.
Page 20
MGate W5108/W5208 Series Getting Started The MGate gateway will halt the write action if any of the above conditions exists. The MGate’s Ready LED will flash and the beeper will sound to inform the user of the write failure. If you are replacing the microSD card, the microSD card will be synchronized with the configurations stored on the MGate device.
Device Search Utility The following topics are covered in this chapter: Installing the Software Starting Device Search Utility (DSU) Connecting to the Unit Broadcast Search Search IP Locate Upgrading the Firmware...
MGate W5108/W5208 Series Device Search Utility Installing the Software The following instructions explain how to install the Device Search Utility (abbreviated DSU), a utility for configuring and monitoring MGate W5108/W5208 units over the 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 23
MGate W5108/W5208 Series 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 DSU on your desktop. 5. Click Install to start copying the software files.
Page 24
MGate W5108/W5208 Series 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 DSU is successfully installed. You may choose to run it immediately by selecting Launch DSU.
MGate W5108/W5208 Series Device Search Utility Starting Device Search Utility (DSU) DSU is a Windows-based utility that is used to configure the MGate W5108/W5208 Series. Before running DSU, make sure that your PC and the MGate W5108/W5208 are connected to the same network. Alternatively, the MGate W5108/W5208 Series may be connected directly to the PC for configuration purposes.
MGate W5108/W5208 Series Device Search Utility Broadcast Search Click Search and a new Search window will pop up.
Page 27
MGate W5108/W5208 Series Device Search Utility When the search is complete, every MGate W5108/W5208 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.
MGate W5108/W5208 Series Device Search Utility Search IP Click Search IP if you know the IP address of the unit and wish to connect to it directly. Enter the unit’s IP address and click OK. If the search is successful, the unit will be listed in the DSU window. Right click the unit to open a popup list of possible actions, or double click a unit to open the web console.
MGate W5108/W5208 Series Device Search Utility The Assign IP function allows you to change the unit’s IP addresses. Use the Un-Lock function to execute Import, Export, and Upgrade actions. The default password is moxa. 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.
Web Console Configuration The MGate W5108/W5208 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 ...
MGate W5108/W5208 Series 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 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.
MGate W5108/W5208 Series Web Console Configuration Network Settings General Settings The Network tab is where the unit’s network settings are configured. You can modify the IP Configuration, IP Address, Netmask, Default Gateway, and DNS. Parameter Value Notes IP configuration Static IP, DHCP, BootP, or Select “Static IP”...
MGate W5108/W5208 Series Web Console Configuration WLAN Settings The MGate can operate in Ad-hoc mode or Infrastructure Mode. For all wireless networking devices, there are two network types for communication with another wireless device. Devices that are configured for Ad-hoc Mode automatically detect and communicate directly with each other and do not require a wireless access point (AP) or gateway.
Page 34
MGate W5108/W5208 Series Web Console Configuration Parameter Value Notes Authentication Open System, Shared Key, This field specifies how wireless devices will be WPA, WPA-PSK, WPA2, authenticated. If a RADIUS server is used, this setting WPA2-PSK must match the setting on the RADIUS server. Open System: The MGate will simply announce a desire to associate with another station or access point.
Page 35
MGate W5108/W5208 Series Web Console Configuration Parameter Value Notes Encryption Disable, WEP, TKIP, AES-CCMP This field specifies the type of encryption to use during wireless communication. Different encryption methods are available depending on the Authentication setting. Also, each encryption method has its own set of parameters that may also require configuration.
Page 36
MGate W5108/W5208 Series Web Console Configuration Parameter Value Notes WEP key source Manual, Generate WEP keys by This field specifies whether the WEP key will be passphrase generated manually or through a user-specified passphrase. A passphrase is equivalent to a free-text password that will be used to generate the WEP key.
MGate W5108/W5208 Series Web Console Configuration Parameter Value Notes Trusted Server (Text) This field is available for PEAP, TLS, and TTLS EAP Certificate. methods only. It displays information on the trusted server certificate that is installed on the MGate. To install a trusted server certificate, visit the corresponding page in the System Management >...
The MGate W5108/W5208 series gateways support three kinds of communication protocols: Modbus, DNP3, and Raw TCP. For the MGate W5208 series, two serial ports can be set to different protocols. In Modbus mode, the MGate converts Modbus RTU/ASCII to Modbus TCP through the WiFi interface. In DNP3 mode, the MGate converts DNP3 serial to DNP3 IP through the WiFi interface.
MGate W5108/W5208 Series Web Console Configuration Modbus Protocol Choose from 4 detailed settings: Mode, Slave ID Map, Priority Control, and Advanced Settings. Mode Click on one of the serial ports to select the role of the Modbus serial device connected to that port. The following detailed Modbus settings page will appear when you click on one of the serial ports.
Page 40
MGate W5108/W5208 Series Web Console Configuration Parameters Description Inter-character timeout Use this function to determine the timeout interval between characters for Modbus (only for Modbus RTU) devices that cannot receive Rx signals within an expected time interval. If the response is timed out, all received data will be discarded. The MGate W5108/W5208 will automatically determine the timeout interval if the timeout value is set to 0.
Page 41
MGate W5108/W5208 Series Web Console Configuration How Slave ID Map is Defined The slave ID map consists of entries (channels), the range of virtual ID versus real ID, and the destination of the serial port. Setting Value Notes This specifies the range of IDs that will be routed to the (numeric range from selected set of slave devices.
Page 42
MGate W5108/W5208 Series Web Console Configuration Priority Control The Priority Control tab is where emergency requests are enabled and configured. Priority control is designed for requests that are sent to Modbus RTU/ASCII slaves. Since Modbus RTU/ASCII slaves cannot handle multiple requests, the Modbus gateway must send each request individually and wait for the response before sending the next request.
Page 43
MGate W5108/W5208 Series Web Console Configuration Parameter Value Initial delay 0-30000 ms Modbus TCP exception Enable or Disable Modbus TCP listen port 1-65535 Modbus TCP response timeout 10-120000 ms Self-Slave ID for digital I/O control 1-255 Initial Delay Some Modbus slaves may take more time to boot up than other devices. For certain environments, this may cause the entire system to suffer from repeated exceptions during the initial boot-up.
MGate W5108/W5208 Series Web Console Configuration DNP3 Protocol The MGate W5108/W5208 series gateways support DNP3 protocols. The MGate converts Outstation and Master’s data between DNP3 IP and DNP3 serial. If the serial port is connecting with an Outstation device, set the operation mode of the port as Outstation.
Page 45
MGate W5108/W5208 Series Web Console Configuration Similarly, for DNP3 packet frames coming from the serial side, you need to assign the DNP3 device’s address and IP address. The default IP address is 192.168.1.1; modify the IP address based on your DNP3 equipment settings.
MGate W5108/W5208 Series Web Console Configuration Raw TCP Socket The MGate W5108/W5208 series gateways support a raw data transmission mechanism for user-developed programs. It includes TCP Server mode and TCP Client mode. The timing for using these two modes depends on whether the connection is initiated from the gateway or from the network host.
Page 47
MGate W5108/W5208 Series Web Console Configuration Parameters Value Description TCP alive check time Default: 7 minutes This field specifies how long the MGate will wait for a 0~99 minutes response to “keep alive” packets before closing the TCP connection. The MGate checks connection status by sending periodic “keep alive”...
Page 48
MGate W5108/W5208 Series Web Console Configuration Parameters Value Description Connection goes down always low, This field specifies what happens to the RTS and DTR RTS/DTR always high signals when the Ethernet connection goes down. For some applications, serial devices need to know the Ethernet link status through RTS or DTR signals sent through the serial port.
MGate W5108/W5208 Series Web Console Configuration Parameters Value Description Force transmit 0 to 65535 ms This field controls data packing by the amount of time that elapses between bits of data. When using this field, make sure that Inactivity time is disabled or set to a larger value.
MGate W5108/W5208 Series Web Console Configuration 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. You may add a specific address or range of addresses by using a combination of IP address and netmask, as follows: To allow access to a specific IP address Enter the IP address in the corresponding field;...
MGate W5108/W5208 Series Web Console Configuration System Log Settings The system log settings enable the MGate firmware to record important events for future verification. The recorded information can only be displayed on the web console. Event Group Description System System Cold Start, System Warm Start Network DHCP/BOOTP Get IP/Renew, NTP Connect Fail, IP Conflict, Network Link Down...
MGate W5108/W5208 Series Web Console Configuration Auto Warning Settings Auto Warning is triggered by different events. When a checked trigger condition occurs, the MGate can send e-mail alters, SNMP Trap messages, or open/close the circuit of the relay output and trigger the Fault LED to start blinking.
MGate W5108/W5208 Series Web Console Configuration SNMP Trap Settings Parameters Description SNMP trap server IP Use this field to indicate the IP address to use for receiving SNMP traps. Trap version select the trap version used in SNMP Sever. Trap community Use this field to designate the SNMP trap community.
MGate W5108/W5208 Series Web Console Configuration Read-only and Read/write access control The following fields allow you to define user names, passwords, and authentication parameters for two levels of access: read-only and read/write. The name of the field will indicate which level of access it refers to. For example, Read only authentication mode allows you to configure the authentication mode for read-only access, whereas Read/write authentication mode allows you to configure the authentication mode for read/write access.
Page 55
MGate W5108/W5208 Series Web Console Configuration 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. Telnet/SSH Enable/Disable The MGate telnet/SSH function can be enabled or disabled. Serial console Enable/Disable The MGate serial console function can be enabled or disabled.
Page 56
MGate W5108/W5208 Series Web Console Configuration Parameters Value Description Account admin, user Users can modify the password for different accounts. MGate provides two different level accounts: admin and user. Admin account can access and modify all the settings through the web console. User account can only view the setting and can’t change anything.
Page 57
MGate W5108/W5208 Series Web Console Configuration ATTENTION DO NOT turn off the MGate power before the firmware upgrade progress completes. The MGate will be erasing the old firmware to make room for the new firmware to flash memory. If you power off the MGate and terminate the progress, the flash memory will contain corrupted firmware and the MGate will fail to boot.
MGate W5108/W5208 Series Web Console Configuration Click Submit to restore the unit to 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. Do not use this function unless you are sure you want to completely reset your unit. Certificate SSL Certificate Use this function to load the Ethernet SSL certificate.
MGate W5108/W5208 Series Web Console Configuration CA Certificate When using this function of RADIUS, the trusted CA certificate of the RADIUS server must be installed when the MGate uses WPA (WPA2)/TLS. Select or browse for the certificate file in the Select certificate file field. System Monitoring The MGate W5108/W5208 series gateways support three system monitoring functions: Serial Status, System Status, and Protocol status.
MGate W5108/W5208 Series Web Console Configuration Serial Port Settings The Serial Port Settings page is located under Serial Status in the System Monitoring folder. On this page, you can view the current communication settings for each serial port. System Status Network Connection Go to Network Connections under System Status to view network connection information.
Page 61
MGate W5108/W5208 Series Web Console Configuration Relay Status 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. When a warning event occurs, the relay circuit will activate the warning device, such as a beeper.
MGate W5108/W5208 Series Web Console Configuration WLAN status The WLAN status can be checked on this page, including IP address, SSID, Channel, security setting, Signal Strength, RSSI, etc. Protocol Status The MGate W5108/W5208 series gateways now support Modbus/DNP3/Raw data traffic monitoring. For troubleshooting or management purposes, you can monitor the protocol’s data passing through the MGate W5108/W5208 on the network.
MGate W5108/W5208 Series Web Console Configuration Restart All changes will be activated by clicking the Submit button first and then restarting the gateway. If a lot of settings need to be changed, you can click Submit for each setting, and then click the Submit button on Restart page again to activate all the changes.
Federal Communication Commission Interference Statement This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
Page 65
MGate W5108/W5208 Series Federal Communication Commission Interference Statement Information for the OEMs and Integrators The following statement must be included with all versions of this document supplied to an OEM or integrator, but should not be distributed to the end user. 1.
Need help?
Do you have a question about the MGate W5208 Series and is the answer not in the manual?
Questions and answers