# Modbus write random delay

**URL:** <https://discourse.nodered.org/t/modbus-write-random-delay/83313>\
**Category:** General\
**Tags:** modbus\
**Created:** [30 November 2023 14:23 UTC](https://discourse.nodered.org/t/modbus-write-random-delay/83313 "2023-11-30T14:23:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiraho](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shiraho/32/85415_2.png) [@Shiraho](https://discourse.nodered.org/u/Shiraho)\
**Post date:** [30 November 2023 14:23 UTC](https://discourse.nodered.org/t/modbus-write-random-delay/83313/1 "2023-11-30T14:23:42Z")

</div>

Hello,

I have a MQTT, Node-Red and modbus server installed on the same device. What I want to do is:

- read temperature from mqtt device in node-red---\> working fine
- convert temperature from float to int ---\> working fine
- converted temperature send to modbus register 2101 ---\> not working

 ![Screenshot_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/784d81f86cad6673f5d6d81c4e57f4d789b16eab.png)

Details: I made a square signal loop (10 sec true and 10 sec false repeating - temporarily) which goes to input of mqtt to load data. Data from mqtt is loading fine.

Problem: The data are written to modbus register randomly. Sometimes it is many times in a minute and sometimes it is hours. I want to see real data every minute so waiting a few hours is unaccaptable.

I am unexperienced in Node-Red so I would be grateful for any advice.

Note: Node-Red and all addtional packages are up to date.

Thank you.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 December 2023 10:33 UTC](https://discourse.nodered.org/t/modbus-write-random-delay/83313/2 "2023-12-01T10:33:48Z")

</div>

Welcome to the forum @Shiraho

> [@Shiraho](#):
>
> send to modbus register 2101

Are you sending it to a modbus device or are you sending it to a modbus server on the same machine? If it is a modbus server what server is it?

Please select the two modbus nodes use the menu Export command to copy to the clipboard and paste here. When pasting use the `</>` button at the top of the edit window and paste the flow in. See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

How often is the data being sent to the modbus node?  
When it fails what does the status indicator under the Write node show?

---

<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:** [30 January 2024 10:34 UTC](https://discourse.nodered.org/t/modbus-write-random-delay/83313/3 "2024-01-30T10:34:22Z")

</div>

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