- The difference between NPort and MGate
- NPort and MGate examples of application
- More about NPort and set-up
- More about MGate and set-up
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.
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.
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.
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
If you have any questions about MOXA products, please telephone us on +357 (25) 752 250 or email at email@example.com