Introduction Welcome to the MGate 5217 line of Modbus-to-BACnet/IP gateways. All models feature easy protocol conversion between Modbus RTU/ASCII, Modbus TCP, and BACnet/IP protocols. This chapter is an introduction to the MGate 5217. The following topics are covered in this chapter: ...
All models are DIN-rail mountable and comes with built-in serial isolation. The rugged design is suitable for industrial applications such as critical power and HVAC systems. Package Checklist All models of the MGate 5217 Series are shipped with the following items: Standard Accessories: •...
Hardware The following topics are covered in this chapter: Power Input and Relay Output Pinouts LED Indicators Panel Layouts Dimensions Pin Assignments Mounting the Unit Wall or Cabinet Mounting Reset Button Pull-high, Pull-low, and Terminator for RS-485...
MGate 5217 Series UM Hardware Power Input and Relay Output Pinouts V2+L V2-N V1+L V1-N Shielded AC/DC Power AC/DC Power AC/DC Power AC/DC Power Relay Output Relay Output Ground Input 2 Input 2 Input 1 Input 1 LED Indicators Name...
STEP 4: Connect the 12 to 48 VDC or 24 VAC power source to terminal block power input. Wall or Cabinet Mounting Mounting the MGate 5217 Series on to a wall requires two screws. The heads of the screws should be 5 to 7 mm in diameter, the shafts should be 3 to 4 mm in diameter, and the length of the screws should be more than 10.5 mm.
Page 11
MGate 5217 Series UM Hardware Pull-high, Pull-low, and Terminator for RS-485 Remove the MGate 5217’s top cover where you will find the DIP switches to adjust each serial port’s pull- high resistor, pull-low resistor, and terminator. Serial port1/port2 can be adjusted by SW1/SW2, respectively.
Getting Started The following topics are covered in this chapter: Connecting the Power Connecting Serial Devices Connecting to a Network Installing DSU Software Logging in to the Web Console...
MGate 5217 Series UM Getting Started Connecting the Power The unit can be powered by connecting a power source to the terminal block: 1. Loosen or remove the screws on the terminal block. 2. Turn off the power source and then connect a 12–48 VDC or 24 VAC power line to the terminal block.
MGate 5217 Series UM Getting Started The DSU window should appear as shown below. Click Search and a new Search window will pop up. Logging 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 Microsoft Internet Explorer or Google Chrome to connect to the MGate, using the HTTP/HTTPS protocol.
Web Console Configuration and Troubleshooting This chapter provides a quick overview of how to configure the MGate 5217 by web console. The following topics are covered in this chapter: Overview Basic Settings Network Settings Serial Settings ...
MGate 5217 Series UM Web Console Configuration and Troubleshooting Overview This section gives an overview of the MGate 5217 information. Basic Settings On this webpage, you can change the name of the device and time zone settings. Server Setting Parameter...
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameter Value Description Time Server IP or Domain address This optional field specifies your time server’s IP address (e.g., 192.168.1.1 or or domain name if a time server is used on your network.
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameter Value Description Flow control None, The RTS Toggle will turn off RTS RTS/CTS, signal when there is no data to be RTS Toggle sent. If there is data to be sent,...
MGate 5217 Series UM Web Console Configuration and Troubleshooting Protocol Settings—Configure MGate’s Role 1 and Role 2 The following shows the way to configure each role: A1. Modbus TCP Client (Master) Settings A2. Modbus RTU Master Settings A3. BACnet/IP Server Settings A1.
Page 20
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameter Value Default Description Response 10 to 120000 1000 The time taken by a slave device to respond to a request is timeout defined by the device manufacturer based on the Modbus standard.
Page 21
MGate 5217 Series UM Web Console Configuration and Troubleshooting Add Modbus Commands Parameter Value Default Description Enable Enable Enable Enable: The command is active. Name (an alphanumeric string) Command1 Max. 32 characters Data Format boolean boolean Boolean: 0 or 1.
Page 22
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameter Value Default Description Poll interval 100 to 1200000 ms 1000 Polling intervals are in milliseconds. Since the module sends all requests in turns, the actual polling interval also depends on the number of requests in the queue and their parameters.
Page 23
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameters Value Description Relinquish default -1000000000 to If there are no commanded values in the priority array, 10000000000 the present value will be changed to relinquish the default. COV increment 1 to 10000000000 COV will be triggered when |Current Reported Value - Last Reported Value| >...
Page 24
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameter Value Default Description Response timeout 10 to 120000 1000 The time taken by a slave device to respond to a request is defined by the device manufacturer, based on the Modbus standard. A Modbus master can be configured to wait a certain amount of time for a server/slave’s response.
Page 25
MGate 5217 Series UM Web Console Configuration and Troubleshooting After creating a Modbus device, we should configure the Modbus commands by double-clicking the device list or pressing the Edit icon. Then, click the Add icon to configure the Modbus commands.
Page 26
MGate 5217 Series UM Web Console Configuration and Troubleshooting Parameter Value Default Description Data Format boolean boolean Boolean: 0 or 1. uint16 Uint16: Unsigned integer with 16 bits. int16 Int16: Signed integer with 16 bits. uint32 Uint32: Unsigned integer with 32 bits.
Page 27
MGate 5217 Series UM Web Console Configuration and Troubleshooting After completing the above settings, the Modbus command should be converted to BACnet object, which needs to be configured. Parameters Value Description Convert to BACnet object Analog input Select the BACnet object type for this configured...
Page 28
MGate 5217 Series UM Web Console Configuration and Troubleshooting A3. BACnet/IP Server Settings The MGate gateway supports BACnet/IP server only. In BACnet/IP server mode, assign the Device name, Device instance, Network number, and BACnet/IP port. If the MGate and monitor system are not in the same subnet, the MGate provides a technology called BBMD –BACnet/IP Broadcast Management Device—that can forward broadcast messages to different subnet...
MGate 5217 Series UM Web Console Configuration and Troubleshooting Protocol Settings—I/O Data Mapping After you have configured Role 1 and Role 2 (client/master and server/slave) of the MGate settings, the SCADA/DDC in the BACnet/IP client role will start monitoring and controlling the remote Modbus slave device.
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management System Management—Accessible IP List The Accessible IP List function allows you to add or block remote host IP addresses to prevent unauthorized access. Access to the MGate 5217 is controlled by IP address. That is, if a host’s IP address is in the accessible IP table, then the host will be allowed to access the MGate 5217.
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—System Log Settings These settings enable the MGate firmware to record important events for future verification. The recorded information can only be shown on the System Log page. The available information that can be recorded includes the following events:...
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—Auto Warning Settings Auto Warning is triggered by different events. When a checked trigger event occurs, the MGate can send email alerts, SNMP Trap messages, or open/close the circuit of the relay output and trigger the Fault LED to start blinking.
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—SNMP Trap Along with activating the Trap function from events on the Auto Warning Settings page, the SNMP Trap should be set up. Parameters Description SNMP trap server IP Use this field to indicate the IP address to use for receiving SNMP traps.
MGate 5217 Series UM Web Console Configuration and Troubleshooting Read-only and Read/Write Access Control While selecting SNMP agent V3, the read-only and read/ write access control parameters need to be configured. The following fields allow you to define usernames, passwords, and authentication parameters for two levels of access: read-only and read/write.
Page 35
MGate 5217 Series UM Web Console Configuration and Troubleshooting For importing the third-party trusted SSL certificate: By importing the third-party trusted SSL certificate, the security level can be enhanced. A snapshot of the GUI for the web console is shown below. To generate the SSL certificate through the third party, here are...
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—Misc. Settings This page includes console settings, password and relay output. System Management—Misc. Settings—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 37
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—Misc. Settings—Notification Message Users can input a message for Login or for Login authentication failure message. System Management—Misc. Settings—Account Management Parameters Value Description Account admin, user Users can modify the password for different accounts. MGate provides two different level accounts: admin and user.
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—Misc. Settings—Login Password Policy Account Password Policy Value Description Minimum length 4-16 The minimum password length of the password Enable password complexity Select how the MGate checks the password’s strength...
Page 39
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—Maintenance—Firmware Upgrade Firmware updates for the MGate 5217 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 5217. Select the desired unit from the list in the web console and click Submit to begin the process.
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Management—Maintenance—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 41
MGate 5217 Series UM Web Console Configuration and Troubleshooting System Monitoring—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.
Page 42
MGate 5217 Series UM Web Console Configuration and Troubleshooting Modbus TCP Diagnostics BACnet/IP Diagnostics System Monitoring—Protocol Status—Traffic Modbus RTU/ASCII/TCP Traffic For troubleshooting or management purposes, you can monitor the Modbus RTU/ASCII/TCP data passing through the MGate 5217 on the network. Rather than simply echoing the data, Traffic features the data in an intelligent, easy-to-understand format with clearly designated fields, including type, destination, contents, and more.
Page 43
MGate 5217 Series UM Web Console Configuration and Troubleshooting BACnet/IP Traffic You can monitor the BACnet/IP data passing through the MGate 5217 on the network. The completed logs can be saved to TXT file or PCAP file for later analysis.
Configuration (Text Mode Console) The MGate 5217 supports a text-mode console with the Telnet protocol. The user interface is the same in all text mode consoles. Note that the text mode console does not support all configuration items. Some parameters must be configured through the web console. For Telnet, use HyperTerminal or PuTTY to connect to the MGate.
Network Management Tool (MXstudio) This chapter provides an overview of Moxa’s MXstudio industrial network management suite. The following topics are covered in this chapter: MXview MXconfig...
IEC 62443 component-level recommendations. Security View checks the security level of Moxa’s network devices, including MGate 5217 Series. Before adding the MGate 5217 devices to the MXview utility, you must add the plug-in package to MXview via Plug-in Manager.
Page 47
MGate 5217 Series UM Network Management Tool (MXstudio) Before configuring the MGate 5217 devices via MXconfig utility, you must add the plug-in package to MXconfig. You can download the plug-in package in the product page and execute plug-in package with just a few clicks.
Modbus Configuration Import/Export The MGate 5217 provides Modbus Configuration Import/Export feature. On a large scale, you may connect lots of Modbus devices, which have to configure lots of Modbus commands to get data. The MGate provides the Master Configuration Import/Export feature, which help you easily edit massive Modbus commands through Excel to save configuration time.
Page 49
MGate 5217 Series UM Modbus Configuration Import/Export Parameters Value Description Remark initDelay 0 to 30000 Some Modbus servers/slaves may take more Suggested value: 0 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 50
MGate 5217 Series UM Modbus Configuration Import/Export Parameters Value Description Remark devName Enter a name to help you to identify the Up to 39 characters alphanumeric Modbus device string) devIpAddr (other 32-bit Modbus TCP server device’s IP address number) devPort 1 to 65535 Modbus TCP server’s port number...
Page 51
MGate 5217 Series UM Modbus Configuration Import/Export Parameters Value Description Remark Byte Byte: 0x0A, 0x0B, 0x0C, 0x0D become - If 0x0B, 0x0A, 0x0D, 0x0C. cmdDataFormat=boolean, Word: 0x0A, 0x0B, 0x0C, 0x0D become cmdEndianSwap=* Word - If 0x0C, 0x0D, 0x0A, 0x0B. cmdDataFormat=uint16,...
Page 52
MGate 5217 Series UM Modbus Configuration Import/Export Parameters Value Description Remark cmdFaultProtTout Defines the communication timeout for the - If opposite side. cmdFaultProtType=Keep latest data, cmdFaultProtTout=* 0 to 65535 - If cmdFaultProtType= Clear all data bits to 0, cmdFaultProtTout=0 -...
Page 53
MGate 5217 Series UM Modbus Configuration Import/Export Parameters Value Description Remark bacnetUnit If bacnetObjectType =Binary Input, Binary Value, Binary Output, Multi-state Input, Multi- state Output, bacnetUnit=*= no-units (95) The codes of units can 0 to 254 While selecting a nonbinary value, the...
SNMP Agents with MIB II and RS-232- Like Groups The MGate 5217has built-in Simple Network Management Protocol (SNMP) agent software that supports SNMP Trap, RFC1317 and RS-232-like groups, and RFC 1213 MIB-II.The following topics are covered in this appendix: The following topics are covered in this appendix: ...
MGate 5217 Series UM SNMP Agents with MIB II and RS-232-Like Groups RFC1213 MIB-II Supported SNMP Variable System MIB Interfaces MIB IP MIB ICMP MIB sysDescr ifNumber ipForwarding icmpInMsgs sysObjectID ifIndex ipDefaultTTL icmpInErrors sysUpTime ifDescr ipInReceives icmpInDestUnreachs sysContact ifType ipInHdrErrors...
Need help?
Do you have a question about the MGate 5217 Series and is the answer not in the manual?
Questions and answers