Following the code line:
for each idx ...
...
reg = master(idx).ReadInputRegisters(slvAdd, regAdd, tmpStr)
...
next
I'm making the read operation polling every 1 sec scrolling the idx
for all the slaves.
I use maximum 3 registers per slave.
If I try the same operation for each slave one by one it works good
but when I use the for statement I got a timeout error from one
slave..
If I remove one slave from the network, the problem goes to another
slave.
Even if I poll every 10 seconds and I set the Transport.ReadTimeout to
1000 ms.
Anybody knows about the problem?
Thanks in advance..
andx
Following the code line:
for each idx ...
...
Threading.Thread.Sleep(10)
reg = master(idx).ReadInputRegisters(slvAdd, regAdd, tmpStr)
...
next
Any suggestion?