You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am having the following problem:
I am using a function (from another library) called CN0391_set_data( ).
This function is quite time consuming and causes the slave.poll( ) function to time out.
(Note: I get the same problem when replacing CN0391_set_data( ) with for example delay(2000) or delay(5000)).
I have tried solving this with the following code (my actual sketch has more, but I left it out as I know this is not the problem):
However the time-out time for slave.poll( ) does not appear to have changed.
I say this because when reading registers with a Modbus troubleshooting tool (ModbusTool (V1.1.1.0)) I get the error message
"Block with function 3 is timed out" (I am doing read holding registers) after around 1 second.
If the time-out for slave.poll( ) was actually 10000 ms (and the error lay elsewhere) then you would expect this time to pass and then for the error message to occur.
So my question is this:
How can I modify the time-out time for slave.poll?
Can this be done with functions available through including the library or do I have to modify the .h file in some way?
/ Einar.
The text was updated successfully, but these errors were encountered:
Hello,
I am having the following problem:
I am using a function (from another library) called CN0391_set_data( ).
This function is quite time consuming and causes the slave.poll( ) function to time out.
(Note: I get the same problem when replacing CN0391_set_data( ) with for example delay(2000) or delay(5000)).
I have tried solving this with the following code (my actual sketch has more, but I left it out as I know this is not the problem):
However the time-out time for slave.poll( ) does not appear to have changed.
I say this because when reading registers with a Modbus troubleshooting tool (ModbusTool (V1.1.1.0)) I get the error message
"Block with function 3 is timed out" (I am doing read holding registers) after around 1 second.
If the time-out for slave.poll( ) was actually 10000 ms (and the error lay elsewhere) then you would expect this time to pass and then for the error message to occur.
So my question is this:
How can I modify the time-out time for slave.poll?
Can this be done with functions available through including the library or do I have to modify the .h file in some way?
/ Einar.
The text was updated successfully, but these errors were encountered: