Modbus Slave Decimal Addressing

rckalex
2022-02-07
2022-02-07
  • rckalex - 2022-02-07

    I've configured a Modbus TCP Slave underneath my ethernet adapter but can't seem to find the appropriate decimal offset to externally poll the configured registers.

    Holding Registers begin at %QW0
    Input Registers begin at %QW20
    Coils begin at %QB80
    Discrete Inputs begin at %QB82

    All attempts at polling the registers result in an illegal data address exception.

    Could someone please point me at the documentation describing the decimal offsets for a Codesys 3.5 Modbus TCP Slave?

     

    Last edit: rckalex 2022-02-07
  • i-campbell

    i-campbell - 2022-02-07

    By default, they all start at address 0, which in many clients is address 1.

    The help maybe doesn't make that obvious, but the coils under data model are also under the label 'starting address'. You can find this on the general tab.

     
    • rckalex - 2022-02-07

      That's what I assumed. Even though the TCP Slave shows running as soon as I start polling I still get the illegal address reply. I'll keep poking at it but I appreciate the reply!

       
    • rckalex - 2022-02-07

      Tripped myself up by accidentally adjusting the starting addresses in the data model field. Thanks for your help!

       

Log in to post a comment.