Posts: 59
Threads: 3
Joined: Nov 2016
Reputation:
0
Hello, how can I reduce the polling time for the Modbus RTU protocol? I only have one module on the network RS-485, it allows a polling time of 100 ms and I would like to put 100 ms to increase the speed instead of 1 second. Is this possible?
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Hi,
If you use a resident script then just set the script interval to x seconds, if you use the modbus template then you can set the polling interval on the device by double click the device and set the interval.
BR,
Erwin
Posts: 59
Threads: 3
Joined: Nov 2016
Reputation:
0
Hi, the tab can be minimized only 1 second. And how to make less than 1 second?
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Hi,
Create a resident script with interval 0 and read the device from this script and include a os.sleep(0.1) to reduce the interval from max cpu speed to 100ms.
I wunder if this won't give issues when the object is refreshed at this interval... I think that is the reason why the template has the lowest option to set it to 1 sec.. But you can always try..
BR,
Erwin
Posts: 59
Threads: 3
Joined: Nov 2016
Reputation:
0
09.04.2017, 15:25
(This post was last modified: 09.04.2017, 15:51 by Igor68.)
thanks, I'll try
I tried, unfortunately, the reaction rate is small
Posts: 7769
Threads: 42
Joined: Jun 2015
Reputation:
447
Which device do you need to poll this often? If you only have one device and you don't need to write to it, then a script is be a better solution.
Posts: 59
Threads: 3
Joined: Nov 2016
Reputation:
0
Hi,
The device has only one digital input-output terminal of 8 channels, controls lighting, so the response delays are critical
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
10.04.2017, 15:10
(This post was last modified: 10.04.2017, 15:34 by Erwin van der Zwart.)
Hi,
This is why they invented KNX (:
BR,
Erwin
Posts: 59
Threads: 3
Joined: Nov 2016
Reputation:
0
Hi,
So after all, the RS485 interface has a polling capability of less than 100 ms and then the response rate is good. I have other equipment running fast with the modbus RTU.
It would be nice if the user himself could set the parameters according to the protocol capabilities))))