Menu

Exception using ReadDiscreteInputs

Anonymous
2014-09-17
2014-11-11
  • Anonymous

    Anonymous - 2014-09-17

    Hi

    Great little tool. I like it, but...

    modbus.ReadCoils(0, 8); // works ok.
    modbus.ReadDiscreteInputs(0, 8); // Exception: "Starting address invalid or starting address + quantity invalid"

    I have tried numerous different combinations, but always get same exception.
    Help!

     
  • Rossmann Engineering

    Hi!

    I tried it without problems.
    This Exception is thrown, if the Server answers with an error code. I think the source of the fault must be your server. The Server responds with the error code.

     
  • Anonymous

    Anonymous - 2016-03-22
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2023-07-25
    Post awaiting moderation.

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.