Menu

Issue reading coils

Anonymous
2016-10-13
2016-10-15
  • Anonymous

    Anonymous - 2016-10-13

    When connected to a modbus device consisting of 10 coils the read coils results are incorrect. With all 10 coils on
    the results are True, True, False, False, False, False, False, False, True, True.
    When using the Client and server examples simulating 10 coils all turned on the following results are returned:
    Client to Server
    All 10 coils True returned data 00 01 00 00 00 05 01 01 02 FF 03
    Client to MODBUS Device
    Coils 1,2,9,10 True 3-8 False returned data 00 01 00 00 00 05 01 01 02 03 FF
    The last two bytes are swapped. I believe this is the cause for the readcoils method returning the incorrect result.

     
  • Rossmann Engineering

    Hi,

    i was trying with your values and I did not get any problems. Do you hve some more informations? Screenshots of the client server connection...

    Stefan

     

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.