Modbus write random delay

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

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.

Welcome to the forum @Shiraho

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

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

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