MGate 5216 Series Quick Installation Guide
Version 1.0, September 2024
Technical Support Contact Information: www.moxa.com/support
© 2024 Moxa Inc. All rights reserved.
P/N: 1802052160010
Overview
The MGate 5216 is an industrial Ethernet gateway that converts data between the Modbus RTU/ASCII, proprietary serial, and EtherCAT protocols. All models are protected by a rugged metal housing, are DIN-rail mountable, and offer built-in serial isolation.
Package Checklist
Before installing the MGate 5216, verify that the package contains the following items:
- 1 MGate 5216 gateway with a DIN-rail mounting kit preinstalled
- Quick installation guide (printed)
- Warranty card
Optional Accessories (can be purchased separately)
- Mini DB9F-to-TB: DB9-female-to-terminal-block connector
- WK-51-01: Wall-mounting kit, 51 mm wide
Panel Layouts
Top View
The top view of the MGate 5216 shows the microSD card slot, the terminal block for dual power inputs and relay output, the reset button, and the RJ45 serial console port.
Front View
The front view of the MGate 5216 displays the LED indicators, multiple RJ45 Ethernet ports, DB9 serial ports, and RJ45 EtherCAT ports.
LED Indicators
LED | Color | Description |
---|---|---|
PWR1, PWR2 | Green | Power is on |
Off | Power is off | |
READY | Green | Steady: Power is on, and the MGate is functioning normally. Blinking (1 second): The MGate has been located by the Moxa utility DSU Location function. |
Red | Steady: Power is on, and the MGate is booting up. Blinking (0.5 second): Indicates an IP conflict, or the DHCP server is not responding properly. Blinking (0.1 second): microSD card has failed. | |
ECAT RUN | Green | Steady: I/O data exchanged. |
Off | No I/O data exchanged | |
ECAT ERR | Green | No error |
Red | Flash: Invalid configuration. Two flashes: Watchdog timeout. Steady: Fetal error. | |
Off | No communication | |
PORT1, PORT2 | Green | Blinks once: Indicates a protocol-layer confirmation that the serial data is transmitted or received successfully. |
Red | Steady: Micro Python mode: Script executed error. Flash: A communication error occurred. Modbus Master mode: 1. Received an exception code or framing error (parity error, checksum error). 2. Command timeout (the server (slave) device is not responding). Micro Python mode: 1. Python return error when receiving incorrect serial data. 2. Serial communication timeout (the serial device is not responding). | |
Eth1, Eth2 (2 each on the ports) | Green | Shows a 100 Mbps Ethernet connection. |
Amber | Shows a 10 Mbps Ethernet connection. | |
Off | The Ethernet cable is disconnected. |
Pin Assignments
Ethernet and EtherCAT Port (RJ45)
Pin | Signal |
---|---|
1 | Tx+ |
2 | Tx- |
3 | Rx+ |
6 | Rx- |
Diagram of an RJ45 connector showing pins 1, 2, 3, and 6 with their corresponding signals: Tx+, Tx-, Rx+, and Rx-.
Serial Port (Male DB9)
Pin | RS-232 | RS-422/ RS-485 (4W) | RS-485 (2W) |
---|---|---|---|
1 | DCD | TxD-(A) | |
2 | RXD | TxD+(B) | |
3 | TXD | RxD+(B) | Data+(B) |
4 | DTR | RxD-(A) | Data-(A) |
5* | GND | GND | GND |
6 | DSR | ||
7 | RTS | ||
8 | CTS | ||
9 |
*Signal ground
Diagram of a DB9 male connector with pins 1 through 9. It details the pin assignments for RS-232, RS-422/RS-485 (4W), and RS-485 (2W) configurations.
Console Port (RS-232)
The MGate 5216 Series can use an RJ45 serial port to connect to a PC to configure the device.
Pin | Signal |
---|---|
1 | DSR |
2 | RTS |
3 | GND |
4 | TXD |
5 | RXD |
6 | DCD |
7 | CTS |
8 | DTR |
Diagram of an RJ45 connector showing pins 1 through 8 with signal assignments for an RS-232 console port.
Power Input and Relay Output Pinouts
Diagram of a terminal block illustrating connections for two DC power inputs (V1+, V1-, V2+, V2-) and relay outputs (N.O., Common, N.C.).
Pull-up, Pull-down, and Terminator for RS-485
For serial port 1, on the MGate's left side panel, you will find DIP switches to adjust each serial port's pull-up resistor, pull-down resistor, and terminator. For serial port 2, you may need to open the case, and find the DIP switch on the PCB.
SW | 1 (Pull-up resistor) | 2 (Pull-down resistor) | 3 (Terminator) |
---|---|---|---|
ON | 1 KΩ | 1 KΩ | 120 Ω |
OFF | 150 KΩ (default) | 150 KΩ (default) | - (default) |
Diagram of DIP switches for RS-485 configuration, showing three switches (1, 2, 3) and their settings for pull-up resistor, pull-down resistor, and terminator in ON and OFF states.
Dimensions
DIN-rail Mounting
Unit: mm (inch)
Schematic views of the MGate 5216 showing dimensions for DIN-rail mounting. Dimensions are provided in millimeters and inches, with callouts for width (118.3 mm / 4.66 in), height (150.51 mm / 5.93 in), and depth (46.8 mm / 1.84 in), along with other specific measurements.
Wall Mounting
Unit: mm (inch)
Schematic views of the MGate 5216 showing dimensions for wall mounting. Dimensions are provided in millimeters and inches, with callouts for width (107 mm / 4.21 in), height (188.1 mm / 7.41 in), and depth (45.8 mm / 1.8 in), along with specific mounting hole dimensions.
Hardware Installation Procedure
- Connect the power adapter. Connect the 12-48 VDC power line or DIN-rail power supply to the MGate terminal block. Make sure the adapter is connected to an earthed socket.
- Use an EtherCAT cable to connect the MGate to an EtherCAT PLC or other EtherCAT master.
- Use a serial cable to connect the MGate to the Modbus or other serial devices.
- The MGate is designed for standalone installation and 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 screw the device onto the wall.
Wall or Cabinet Mounting
Two metal plates are provided for mounting the unit on a wall or inside a cabinet. Attach the plates to the unit's rear panel with screws. With the plates attached, use screws to mount the unit on a wall. 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.
For each screw, the head should be 6 mm or less in diameter, and the shaft should be 3.5 mm or less in diameter.
Illustration detailing screw specifications for wall or cabinet mounting: screw head diameter (5-7 mm, or less than 6 mm), shaft diameter (3-4 mm, or less than 3.5 mm), and minimum screw length (10.5 mm).
Software Installation Information
Please download the user's manual and Device Search Utility (DSU) from Moxa's website: www.moxa.com. Please refer to the User's Manual for additional details on using the DSU.
The MGate 5216 also supports login via a web browser.
- Default IP address: 192.168.127.254
- Default account: admin
- Default password: moxa
Reset Button
Restore the MGate to factory default settings by using a pointed object (such as a straightened paper clip) to hold the reset button down until the Ready LED stops blinking (approximately five seconds).
Specifications
Parameter | Value |
---|---|
Power Input | 12 to 48 VDC |
Power Consumption (Input Rating) | 12 to 48 VDC, 416 mA (max.) |
Relays Contact Current Rating (Resistive load) | 2 A @ 30 VDC |
Operating Temperature | Standard Models: 0 to 60°C (32 to 140°F) |
Storage Temperature | -40 to 85°C (-40 to 185°F) |
Ambient Relative Humidity | 5 to 95% (non-condensing) |
IP Rating | IP 30 (Under the condition when covered with microSD and RS-485 DIP switch) |
Dimensions | 45.8 x 105 x 134 mm (1.8 x 4.13 x 5.28 in) |
Weight | 589 g (1.30 lb) |
Alert Tools | Built-in buzzer and RTC |
MTBF | 2,305,846 hrs |
Conditions of Safe Use
- The manufacturers intend Ethernet communications devices to be mounted in a tool-accessible IP54 enclosure and used in an area with no more than pollution degree 2, as defined by IEC/EN 60664-1.
- Conductors suitable for an ambient temperature greater than 85°C must be used for the power supply terminal.
- When using a connection to the external grounding screw, you must use a 4 mm² conductor.
- To prevent the rated voltage from exceeding 140% of the peak-rated voltage during transient disturbances, provisions should be made either in the equipment or external to it.
When wiring the relay contact (R), digital input (DI), and power inputs (P1/P2), we suggest using American Wire Gauge (AWG) 16 to 20 as a cable and the corresponding pin-type cable terminals. The connector can withstand a maximum torque of 5 pound-inches. We recommend a stripping length of 8 to 9 mm. The wire temperature rating should be at least 85°C.
The shielding ground screw (M4) is near the power connector. When you connect the shielded ground wire (min. Through the shielding ground screw (M4), the noise is directly routed from the metal chassis to the ground.
Functional earth terminal. ?
- This device is an open-type equipment and intended to be installed in a suitable enclosure.
- If the equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired.
- When installing the device, the assembler is responsible for the securing the safety of the system in which the equipment is incorporated.
이 기기는 업무용 환경에서 사용할 목적으로 적합성평가를 받은 기기로서가정용 환경에서 사용하는 경우 전파간섭의 우려가 있습니다.
This equipment has KC approval to be used in industrial environments and therefore it has the possibility of interferences with household equipment.
Contact Information for Repair or Maintenance
For any repair or maintenance needs, please contact Moxa Inc. at:
No. 1111, Heping Rd., Bade Dist., Taoyuan City 334004, Taiwan
+886-03-2737575