The difference between NPort and MGate: which should you choose?

14 December 2017 Knowledge Base
4afb6efef7a8fd1fa00fb3c6a0ce785b.jpg

Contents:

The difference between NPort and MGate

Engineers often have trouble deciding between NPort and MGate in their work. The answer lies in their specifications - let’s take a look!

NPort - these are serial device servers, i.e. devices that enable the connection of other devices with interface RS-232, RS-422 and RS-485 via Ethernet to your computer (or other device). Data is transferred in its original format and the program runs either with a virtual COM port or in TCP Client-Server mode.

e2eaba52d68c0fb583b30ec05d8f0c64.jpg

MGate – these are gateways that also enable the connection of devices with interface RS-232, RS-422 and RS-485 to your computer (or other device) via Ethernet. In addition, they are able to convert protocols from Modbus RTU/ASCII to Modbus TCP and vice versa (as well as other protocols). In this case, instead of using a virtual COM port, the connected devices can be reached through the gateway’s IP address using Modbus TCP.

9404d7bb8186fe158c01d3ea49760898.jpg

NPort and MGate application examples

Let’s look at a few cases of applying NPort and MGate in practice:

You need to process data from a barcode scanner with RS-485 interface and specific protocol onto your computer using the available software.

In this case, NPort can convert the RS-485 interface to Ethernet without any changes to the transferred data. This requires installation of a virtual COM and specific software. NPort can also work under other modes.


You need to extend the RS-232 interface via Ethernet using a device running a specific protocol, for which the cable length is only 15 meters.

For this, use two NPort devices in pairing mode or TCP Client/Server mode. This allows transfer of data from one COM port to another without any changes to it.


You need to connect an RS-485 module of input-output with Modbus RTU protocol via Ethernet to a remote computer, on which the SCADA system is set up.

The best way to approach this is to use the MGate gateway to convert Modbus RTU to Modbus TCP and RS-485 interface to Ethernet. MGate is especially designed to work with Modbus protocols; moreover, it facilitates the correct interconversion of protocols and minimises risk of data loss.


You need to extend a RS-485 line via Ethernet, through which data will be transferred using the Modbus RTU/ASCII protocol.

Best thing for this is to use two MGate gateways connected to each other.


You need to connect an electricity meter running a Modbus RTU protocol to a computer which lacks a COM port and is situated in the building next to you. The software available only recognises Modbus RTU and does not work with Modbus TCP.

There are two ways of tackling this:

  • Using an NPort to create a virtual COM port on the computer, whereby the protocol remains the same.
  • Using MGate series MB3x70, which supports the Pro COM function for creating the virtual COM port. The protocol remains Modbus RTU.

Now you can confidently decide between using MGate and NPort based on your specific purposes and apply them to your project.

More about Nport and set-up

You can learn more about NPort in this article Choosing NPort.

More about MGate and set-up

You can learn more about MGate in this article Converting protocols via MGate

Use our catalogue to choose your MGate and NPort.


If you have any questions about MOXA products, please telephone us on +357 (25) 752 250 or email at sales@ipc2u.com

Fast Product Request