# Providing data on modbus for external device

**URL:** https://discourse.nodered.org/t/providing-data-on-modbus-for-external-device/60284
**Category:** General
**Tags:** modbus
**Created:** [24 March 2022 08:32 UTC](https://discourse.nodered.org/t/providing-data-on-modbus-for-external-device/60284 "2022-03-24T08:32:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [24 March 2022 08:32 UTC](https://discourse.nodered.org/t/providing-data-on-modbus-for-external-device/60284/1 "2022-03-24T08:32:07Z")

</div>

Hello everyone,  
It´s the first for me, that I have to use modbus so I come here with some questions, just to make sure I understood right.  
I want to provide data on nodered-side using modbus. Therfore I installed contrib-modbus and set up a test flow.

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/a/3a4b66a1386f32c6ec43b56d9525469ea1f2aeaa.png)

Currently I am generating 2 random numbers and write them to 2 registers.  
Also I am able to read those generated numbers using the Flex Getter.  
Would it be possible for an external application to read those numbers already,  
Or am I missing some steps here?

Connection settings:

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/1/81b3c930d78c45e5946ba76b75ea80270c5f0ce1.png)

Edit:  
Started Nodered local on my pc and tried to read the generated values mentioned above:

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/eeb0faa7e527a5ec9f7f0b80d544f75bce453156.png)

turns out: it´s not working 😕

---

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [24 March 2022 10:49 UTC](https://discourse.nodered.org/t/providing-data-on-modbus-for-external-device/60284/2 "2022-03-24T10:49:34Z")

</div>

Solved!

I had to set the Server-IP to the device ip.  
So instead of using 127.0.0.1 I entered 172.16.200.220 (which is the devices ip).  
Now it´s working fine 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [7 April 2022 10:50 UTC](https://discourse.nodered.org/t/providing-data-on-modbus-for-external-device/60284/3 "2022-04-07T10:50:19Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
