This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus TCP Polling Delay
#7
Hello admin,

I was testing the resident script (1sec sleep interval) for polling in combination with the modbus profile for writing to the modbus.
The delay is much better now and I like that the objects are being updated quickly into the KNX bus. But I have a new problem when the value of the objects is changed from the KNX bus.
The modbus profile is writing the value to the modbus imediatelly and the touch panel is updated correctly, but while the resident script is running every 1sec the moment it polls the data the slave probably is replying the previous value and this overwrites the value of the knx object. It happens most of sometimes not always.

I am wondering if we can make the resident script with 0sec sleep interval and have a loop with a 1sec delay to do the polling. But in this loop we have to check if the object is written by the KNX bus and pause the loop for some (2) seconds before it can poll the modbus again.

Can something like this be easily implemented?

Thank you in advance for any effort.
Reply


Messages In This Thread
Modbus TCP Polling Delay - by manos@dynamitec - 08.09.2022, 10:23
RE: Modbus TCP Polling Delay - by Daniel - 08.09.2022, 10:40
RE: Modbus TCP Polling Delay - by admin - 08.09.2022, 11:28
RE: Modbus TCP Polling Delay - by admin - 08.09.2022, 11:49
RE: Modbus TCP Polling Delay - by manos@dynamitec - 09.09.2022, 13:14
RE: Modbus TCP Polling Delay - by admin - 12.09.2022, 12:08
RE: Modbus TCP Polling Delay - by admin - 14.09.2022, 06:54

Forum Jump: