Fabulous tool. However, I have an issue where reading a single discrete input does not always return the right value - particularly with register 8 for some reason. However, when I read the same register as part of a group, I get the right value.
Said another way...
.ReadDiscreteInputs(8,1) returns a boolean array containing a single incorrect value.
.ReadDiscreteInputs(0,16) returns a boolean arraywhere the 9th element (register 8) is correct.
I believe from my testing that when I ask for register 8, I am actually getting register 16! Maybe some sort of bit shifting error going on.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Fabulous tool. However, I have an issue where reading a single discrete input does not always return the right value - particularly with register 8 for some reason. However, when I read the same register as part of a group, I get the right value.
Said another way...
.ReadDiscreteInputs(8,1) returns a boolean array containing a single incorrect value.
.ReadDiscreteInputs(0,16) returns a boolean arraywhere the 9th element (register 8) is correct.
I believe from my testing that when I ask for register 8, I am actually getting register 16! Maybe some sort of bit shifting error going on.
Thanks!
Hello, maybe you try the new Library.
I tried it verious times to read Those registers, and it worked.