# Modbus scan rate

**URL:** <https://forum.inductiveautomation.com/t/modbus-scan-rate/94169>\
**Category:** General Discussion\
**Created:** [August 5, 2024, 2:13pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169 "2024-08-05T14:13:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santiago\_Sereno](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Santiago\_Sereno](https://forum.inductiveautomation.com/u/Santiago_Sereno)\
**Post date:** [August 5, 2024, 2:13pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/1 "2024-08-05T14:13:30Z")

</div>

In a solar park project, I am reading multiple inverters with different Modbus IDs through a Modbus Gateway. The problem is that performing many polls in a short time saturates the channel. Therefore, I need a way to set a scan rate per slave or per query to manage how often each device is polled. Thank you.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 5, 2024, 2:18pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/2 "2024-08-05T14:18:21Z")

</div>

The rate of the Tag Group these tags belong to is really the only control you have over the polling.

Do you have a single device connection defined to this Modbus gateway or do you have one per slave?

---

<div class="post-metadata">

**Author:** ![Santiago\_Sereno](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Santiago\_Sereno](https://forum.inductiveautomation.com/u/Santiago_Sereno)\
**Post date:** [August 5, 2024, 2:31pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/3 "2024-08-05T14:31:55Z")

</div>

Yes, there is a single connection to the Modbus gateway to poll multiple slaves according to the Modbus ID each one has. Is there a way to define that each slave is polled, for example, every 5 seconds?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 5, 2024, 2:36pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/4 "2024-08-05T14:36:18Z")

</div>

No, not easily.

You could create a Tag Group for each slave and put it into Driven mode, then drive the execution yourself on whatever schedule you like. There can be some additional difficulties in this approach if the Modbus device/gateway you're connected to closes "idle" connections after some time and you're polling slower than whatever that time is.

---

<div class="post-metadata">

**Author:** ![Santiago\_Sereno](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Santiago\_Sereno](https://forum.inductiveautomation.com/u/Santiago_Sereno)\
**Post date:** [August 5, 2024, 2:40pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/5 "2024-08-05T14:40:03Z")

</div>

Do you have any script examples for polling a Modbus device at a specified interval?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [August 5, 2024, 3:24pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/6 "2024-08-05T15:24:22Z")

</div>

If it's an issue, you may have to go to using Kepware for a Modbus driver. Kepware makes things like this easy to poll devices serially so that the connection doesn't get overloaded. I don't know about @pturmel's driver, but he may have something like this in his driver also, but since I haven't used it, I'm not certain.

---

<div class="post-metadata">

**Author:** ![Santiago\_Sereno](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Santiago\_Sereno](https://forum.inductiveautomation.com/u/Santiago_Sereno)\
**Post date:** [August 5, 2024, 4:06pm UTC](https://forum.inductiveautomation.com/t/modbus-scan-rate/94169/7 "2024-08-05T16:06:13Z")

</div>

We don't have KEPServer, so we need a script to adjust the Modbus polling intervals.
