Menu

.ReadDiscreteInputs doesn't always return the right value

Anonymous
2016-06-02
2016-06-11
  • Anonymous

    Anonymous - 2016-06-02

    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!

     
    • Rossmann Engineering

      Hello, maybe you try the new Library.

      I tried it verious times to read Those registers, and it worked.

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.