Modbus Gateway Configuration Guide for the USR N540 Serial Device Server

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

1. Overview

The USR N540 is a 4-port RS485 serial device server that supports the Modbus RTU to Modbus TCP gateway function. This article explains in detail how to configure the Modbus gateway on the USR-N540.

2. Hardware Connection

  • Connect the Ethernet port to a computer or switch
  • Connect the RS485 ports to downstream devices (PLCs, instruments, etc.)
  • Power supply: DC 5-36 V

3. Web Configuration Interface

  1. Enter the module's default IP in the browser: 192.168.0.7
  2. Enter the username and password (default admin/admin)
  3. Enter the configuration interface

4. Modbus Gateway Configuration

4.1 Serial Port Parameter Configuration

ParameterDescription
Baud rateMust match the downstream device (e.g. 9600)
Data bits8 bits
ParityMust match the downstream device
Stop bits1 bit

4.2 Operating Mode Selection

  • Select the "Modbus Gateway" mode
  • TCP port number: 502 (the standard Modbus TCP port)
  • Supports bidirectional conversion between Modbus RTU and Modbus TCP

4.3 Multi-Port Mapping

Serial PortNumber of TCP ConnectionsDescription
RS485-1Up to 4First serial port
RS485-2Up to 4Second serial port
RS485-3Up to 4Third serial port
RS485-4Up to 4Fourth serial port

5. FAQ and Troubleshooting

  • Check whether the serial port parameters match those of the downstream device
  • Confirm that the operating mode is set to Modbus Gateway
  • Check whether the TCP port is already occupied
  • Note that each serial port supports at most 4 TCP clients

6. Summary

Key points for configuring the USR N540 Modbus gateway:

  • Configure the serial port parameters to match the downstream device
  • Select the Modbus Gateway operating mode
  • The default TCP port is 502
  • The 4 RS485 ports work independently without interfering with one another
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.