EasyModbusTCP.NET icon indicating copy to clipboard operation
EasyModbusTCP.NET copied to clipboard

Infinite Loop when node is not present.

Open bcooper87 opened this issue 6 years ago • 2 comments

I am running into an issue when I try to read a holding register. If the address is not present it just keeps calling the same registers and never throws an error that there is no response. Is there a way I can scan addresses for their presence and not get suck in this loop or is there a timeout setting that I am using. I am using Modbus RTU with a serial port.

bcooper87 avatar Sep 24 '19 19:09 bcooper87

If I step through it from the start it works as intended. If I only do break points, every time it stops at them, countRetries is reset to 0.

bcooper87 avatar Sep 24 '19 23:09 bcooper87

This only happens if the address is 0. Which is a broadcast address.

bcooper87 avatar Sep 25 '19 14:09 bcooper87