1. Home
  2. RN17X Family Help
  3. RS17 output from RN485X
  1. Home
  2. Developing a radio node
  3. RS17 output from RN485X

RS17 output from RN485X

Thank you for purchasing the DEKIST RN17x.

RN17x supports Modbus TCP/IP. Therefore, you can connect to the MODBUS TCP/IP network and take the measured data values ​​from the server. In addition, by connecting the converter to the network, measurement data can be received from devices using RS485 interface such as PC, PLC, recorder, etc.

The settings for using Modbus TCP/IP inside RN17x are as follows. “5.MODBUS TCP Setup.” in the console menu Please refer to the contents.

- under -

  • Data in “HOLDING REGISTER” is updated in real time.
  • Supported formats are 4 BYTE FLOATING POINT and 2 BYTE INTEGER, and read only.
  • 2 In case of BYTE INTEGER format, the number after the decimal point is ignored and only integer values ​​are passed. Transaction ID, Protocol ID, and Unit ID in the header are ignored internally.
  • “3” is used as the function code, and the data does not matter what value is entered.

1. Connecting to a Modbus TCP/IP network

In order to register to Modbus TCP/IP network in the console menu of RN17x, set the environment.
Setting up RN17x for MODBUS/TCP connection

2. Modbus → RS485 conversion preparation

Preparing equipment to convert Modbus → RS485 (NET485-MB – Modbus RS485 Adapter)

1. DeviceInstaller Program Download
2. NET485-MB Data Sheet Download
3. Modbus Protocol User Guide PDF Download
4. RS-485 converter (Model: Sena LTC100) Data Sheet Download
5.USB to Serial Conversion Cable

Schematic diagram of RS485 device connection in Modbus TCP/IP network

3. Modbus → RS485 converter wiring method

To prevent noise, it is recommended to connect the cable with a twist.

1. Connect NET485-MB TXD A pin and RXD A pin, TXD B pin and RXD B pin as shown below.
2. Connect NET485-MB TXD A pin to Converter TX + pin and TXD B pin to Converter TX-pin.
3. Connect the 8-24VDC adapter to supply power.
4. Connect to PC using USB to serial Conversion cable in Converter.

converter Connecting RS485 output line from NET485 product

Connection diagram for RS485 interworking test on PC

It converts TCP/IP data unit to RS485 interface signal unit and configures RS485 signal unit to enable PC and USB communication.

4. NET485-MB setting method

NET485-MB – Modbus RS485 Adapter

1. Run the program - Click the Start button on the taskbar and select Programs\DeviceInstaller, the DeviceInstaller device installer main dialog box will appear from the list of options. The program will automatically detect your device.

<Picture 1. Run DeviceInstaller Program>

2. Figure 1 shows one device found on the network using the IP address assigned by the DHCP server. The device IP address is usually set to 0.0.0.0 at the factory. Hardware addresses are permanent addresses assigned to specific devices on a private network. The hardware address is indicated on the product label. The device type marked XPort-IAP is a Modbus device.

<Picture 2. Device Info>

3. If you double-click XPort-IAP in the device installer window, information related to the device is displayed in the right pane of the screen as shown in Figure 2.

<Picture 3. Web Configuration Click>

4. Click the Web Configuration tab (4th tab from the left) in DeviceInstaller Utility, the IP address and port number are displayed. To view the Web-Manager in the DeviceInstaller window, click the navigation icon[→], or to open the Web Manager in the default web browser (recommended), click the external browser icon (far right).

When the password window appears, leave the Username and Password fields blank and click the OK button. By default, there is no password protection in the device server configuration.

<Picture 4. Network Settings>

5. Figure 4 is a network configuration screen. You can change the floating or fixed IP settings for NET485 MODBUS / TCP products. The IP address must be set to a unique value for the network.

<Picture 5. RS485 Serial Settings>

6. Figure 5 is a RS485 serial configuration screen. Change the Boud Rate (Data Rate), Data Bits, Parity, Stop bits, and Flow Control to those supported by the user's device.

<Figure 6. Modbud/TCP Settings>

7. The Modbus / TCP device in Figure 6 is defined as Master or Slave.
The default value of RN17x Modbus / TCP Port number is 502. When receiving data via RS17 by sending data from RN485x to Modbus / TCP, select it as Master. Start ID and End ID are Unit ID. Enter 10 here. Enter the IP address of RN17x (192.168.1.84) as the Host Address.

5. Example of data reception method (operation check process)

Radzio Modbus Master Simulator Program (RMMS)

RMMS You can test it for free through the program called.
You can receive RS485 or Modbus TCP data.
Radzio Modbus Master Simulator (RMMS) Downroad

Connection> Settings

Select Connection> Settings tab, NET485-MB – Modbus RS485 AdapterEnter the RS485 Serial Settings value. Port (The Harbour District)In the case of, select the Comfort connected to the PC.

<Picture 7. RMMS Settings>

Select File> new tab and when a window as shown in the picture above appears, the Device ID is NET485-MB – Modbus RS485 Adapter Enter the Unit ID value set in (10). Holding Register and Display options select 17Bit Float because RN32x product supports FORMAT method 4Bit Float (32 Byte Floating point).

PC with NET485-MB – Modbus RS485 Adapter is connected, the RX/TX LED of the converter will blink repeatedly. The above figure is an example of reading the two channel values ​​with RS-485 and displaying the results on the PC screen.

Updated on January 2022, 2

Was this article helpful?

Related Articles

Leave a Comment