# I cant read more than 5 modbus Holding register

**URL:** https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730
**Category:** General
**Tags:** node-red-dashboard, modbus
**Created:** [24 July 2024 16:23 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730 "2024-07-24T16:23:23Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [24 July 2024 16:23 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/1 "2024-07-24T16:23:23Z")

</div>

Hi! Im creating a Dashboard to show diferent values extracted from an equipment. I can read the just 5 modbus adress, but when I try to get 6 or more readings lost all the connections. How can I fix it?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [24 July 2024 19:11 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/2 "2024-07-24T19:11:40Z")

</div>

Hi unfortunately nowhere near enough info I'm afraid.

What device is it? What address are you accessing? Can you link to a manual that lists the registers?

Lastly, can you clarify this ...

> [@nago93](#):
>
> but when I try to get 6 or more readings lost all the connections

... What exactly happens?

---

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [25 July 2024 02:56 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/3 "2024-07-25T02:56:01Z")

</div>

Hi! Im Agree, I going to try to be clearest:

**Device:** Battery Energy Storage System-  
**Address:** I can read any address, but just 5 as maximum, If I try to read 6 address so it disconnect some nodes.

In the first image Just **reading 5 address** (from 12295 to 12299) and all ok:

 ![5 address](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/a/3af130c6b6c5c535c8dbf57536e247a243f7150b.jpeg)

In the second image **trying to read 6 address** (from 12295 to 12300) but I dont understand why it disconnect some nodes:

 ![6 address](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/76d8a70a9da97fd2cb4802a535608e8cada74da4.jpeg)

**Function Code:** 3 read holding register  
**Poll rate:** 2 seconds

best regards!!

---

<div class="post-metadata">

### Author: ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)
#### Post date: [25 July 2024 03:37 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/4 "2024-07-25T03:37:53Z")

</div>

I read 60 registers with no issue but use only one node. why do you have so many nodes ?

can you not put address 12295 and put 10 quantity ?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c49e4ef6331f49ede0f4f5d9f764c7e11cf09c8a.png)

can you show the setting of the node like above ?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [25 July 2024 05:26 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/5 "2024-07-25T05:26:08Z")

</div>

> [@nago93](#):
>
> In the first image Just **reading 5 address** (from 12295 to 12299) and all ok:
> 
> ![5 address](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/a/3af130c6b6c5c535c8dbf57536e247a243f7150b.jpeg)

This is the least efficient and most problematic way of gathering data I'm afraid. This document has some good advice and practical info directly related to your requirement: [Modernize your legacy industrial data. Part 2. • FlowFuse](https://flowfuse.com/blog/2023/09/modernize-your-legacy-industrial-data-part2/)

---

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [27 July 2024 19:39 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/6 "2024-07-27T19:39:46Z")

</div>

Thanks, I Feel this is the best option. But Im concerning about use just one node in my scenarios , let me show you how the registers address are distributed:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5a0496655c5f32639db6d6b3b708090f2f0b6f80.png)

In this case, is ok read in one node from 257 until 24643 address? it mean 24386 registers, I feel it is a lot, but Im not sure if it is any problem.

---

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [27 July 2024 19:42 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/7 "2024-07-27T19:42:24Z")

</div>

Thanks! I read it, it is too helpful to understand more about the modbus efficiency!

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [27 July 2024 19:50 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/8 "2024-07-27T19:50:11Z")

</div>

> [@nago93](#):
>
> is ok read in one node from 257 until 24643 address? it mean 24386 registers, I feel it is a lot

No, the maximum read count is 125 registers in one request.

---

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [27 July 2024 20:45 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/9 "2024-07-27T20:45:59Z")

</div>

Got it. So, it is a limitation for my case? is any way to get all the data? or should I look for something different to node-red?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [27 July 2024 21:19 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/10 "2024-07-27T21:19:36Z")

</div>

The limitation is the modbus specification, not node-red. Other software will have exactly the same limitations. The are some exceptions like certain PLC's but typically, 125 is the protocol limitation

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [27 July 2024 21:31 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/11 "2024-07-27T21:31:18Z")

</div>

Your best bet is to read those ranges 1 at a time by connecting the modbus nodes in series instead of parallel.

---

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [27 July 2024 21:53 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/12 "2024-07-27T21:53:27Z")

</div>

Thanks, do you mean something similar like this?? [How to create an Modbus-TCP alarm status dashboard - #20 by Steve-Mcl](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/20)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [27 July 2024 22:48 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/13 "2024-07-27T22:48:41Z")

</div>

In series, like that example, yes.

---

<div class="post-metadata">

### Author: ![nago93](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nago93](https://discourse.nodered.org/u/nago93)
#### Post date: [28 July 2024 14:05 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/14 "2024-07-28T14:05:29Z")

</div>

thanks it work for me. Is my first time in this forum and the experience was so good.

---

<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: [11 August 2024 14:06 UTC](https://discourse.nodered.org/t/i-cant-read-more-than-5-modbus-holding-register/89730/15 "2024-08-11T14:06:23Z")

</div>

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