Search code examples
modbus

Intermittent Modbus speed


I have a Modbus program that configured to poll from a same model of device in several projects. Although I managed to collect all interested data (after some trials), but I found that the data refresh speed could be different significantly despite the number of data that I acquired are almost the same, ranging from 500 to 510 data. Could I possibly do anything wrong with those slow device?

Thank you for your kind help.


Solution

  • Make sure your Modbus program is optimized to poll efficiently.

    Through experience, sometimes Modbus polling is slow because the polling method is NOT intelligent and efficient.

    For example, if you need to poll from address 10, 11, 12, 13, 14, 15, 18, 20. Your program should poll 10 to 15 in one go, and poll from 18 and 20 separately.

    The essence is polling the consecutive address in one packet instead of polling one address at a time. This will definitely speed up your program significantly if your project is large.