Wiesemann & Theis GmbH

Networking, sensors and interface technology for industry, office and IT

House
Application page

Com-Server Box-to-Box:

Connecting remote RTU slaves with RS485
to an RTU master via network

Model diagram for the application

The Com Servers operate here in ’box-to-box’ mode (hereinafter also referred to as B2B). All received serial data is transmitted character-transparently through a permanent TCP tunnel to the other side and vice versa.

Quick Startup

  • Configure the RS485 2-wire mode in both Com-Servers using the internal DIP switches: 1, 2, 5 = ON, rest = OFF. The activation of termination (switches 6 and 7) depends on the existing RS485 bus structure. A physical RS485 segment may contain a maximum of two termination networks.

  • Connect the power supply and the serial port of the Com servers to the RS485 bus, e.g. using the RS485 screw-in adapter.

    Product photo of screw-in adapter

  • Assign the IP parameters (IP address, subnet mask, gateway) to both Com servers with WuTility.

    Screenshot: Setup using WuTility

  • Set the serial transmission parameters on both COM-Servers to match the RS485 bus—this is usually identical on both COM-Servers. The handshake must be None.

    Screenshot

  • Activate the packeting option Interpacket Delay = 3 ms on both Com-Servers. This ensures that Modbus datagrams are transmitted closed in a network packet.

    Screenshot

  • Set up box-to-box mode on the Com-Server selected as the B2B master, including the option Activ. Packet Options.

    Screenshot

  • Check the option Activ. Packet Options also in the Com-Server operating as a B2B slave.

    Screenshot

  • Important: All settings made in the Com servers must be saved via the logout page.

    Screenshot: ’Save’

In the best case scenario, the connection between the Modbus master and the Modbus slaves connected via the box-to-box connection is now working.

Possible problems

The page Setup Port x → Port State provides information about the network connection status and may contain error messages. The page does not refresh automatically and must therefore be refreshed manually by pressing F5:

Screenshot

Connection State

Both in B2B Master and in B2B Slave, the Connection State must show the status ’Locked’:

Screenshot

"Scanning," "Unlocked," and other messages indicate network-related problems. For example, the respective counterpart cannot be reached at all, or the TCP connection attempt is rejected. Check the following:

  • The settings for the B2B configuration in the Master-Com-Server
  • The basic IP parameters of the Com-Servers (IP address, subnet mask, gateway)
  • The network connection between the two Com-Servers
  • Whether firewalls in the infrastructure are blocking the connection

Error State

Errors reported by the serial transmission module (UART) during data reception are displayed here (framing or parity error).

Screenshot

All serial communication is initiated by the Modbus master, so that the Error State should first be checked on the connected Com-Server. First delete the current list to remove old errors. If new errors occur after manual updates to the website, the following causes may be possible:

  • The baud rate, parity, or number of data bits are not configured identically on the Modbus master and Com-Server.
  • The A/B and +/- connections of the RS485 bus are reversed.
  • There are no (or more than two) terminations on the RS485 bus.

Byte Count (Serial Trans und Serial Rec)

Regardless of the operating mode, all characters received (= Serial Rec) and sent (= Serial Trans) by the respective Com server are counted here. The website does not update automatically, so you must manually reload it (F5) to see the current values. Some examples:

1. Everything is fine:

Graphical representation

2. The RTU slave does not send a response:

Graphical representation

Possible causes:

  • Inconsistent settings for serial transmission parameters on the COM-Server and RTU slave
  • Reversed bus polarity on the RTU slave side
  • Cable break, incorrect pin assignment, etc. on the RTU slave side
  • Invalid Modbus addresses in the requests
  • The packeting options on the B2B master are not configured or activated.

3. All counters are counting up correctly, but the RTU master still reports timeouts or errors for the RTU slaves connected behind the network tunnel.

Graphical representation

Possible causes:

  • The packeting options on the B2B slave are not configured or activated.
  • Response timeout set too short on the RTU master

Products

  • #58665

    Product photo: Com-Server PoE 3x Isolated
    Com-Server ++

    1x RS232/422/485

  • #58662

    Product photo: Com-Server ++
    Com-Server ++

    1x RS232/422/485

  • Support

    Person with headset
    Could you use some assistance?
    We’re here for you!

    You can reach our applications engineers at +49 202-2680-110

Related pages

  • Application

    Schematic representation of the application
    Modbus/TCP gateway:

    Connecting serial Modbus/RTU slaves to a Modbus/TCP master

  • Application

    Schematic representation of the application
    Windows COM Port Redirector:

    Operation of a Modbus/RTU master in virtual environments

^