Logged In: NO

Mr Vardin,

I have used the library and had similiar problems. I have not
yet figured out the problem of the 62 registers yet. However,
the problem with the wrong register values seems to be in the
ModbusMaster class. The problem I was having was that the
class was not properly parsing numbers that came out
negative it the ethernet response packet. I fixed it by
changing the line:

results[i] = ((response.buff[3+2*i] << 8) + (response.buff
[4+2*i] << 0)) & 0xFFFF;

into

results[i] = ((response.buff[3+2*i] << 8) + ((response.buff
[4+2*i] << 24)>>>24)) & 0xFFFF;

This seems to fix the problem.