• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Modbus 6 digit addressing

    Modbus4J general discussion
    2
    6
    5.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fred
      last edited by

      Matthew,

      Do you know how big a deal it would be for Modbus4J to support both 5 digit and 6 digit addressing?

      Regards,

      Fred

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        I don't believe the protocol supports it.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • F
          Fred
          last edited by

          I'll defer to your expertise in this area as I am absolutely not an authority on Modbus.

          I had asked because I had seen numerous references to products accessing holding registers in the 400000-499999 range. I assumed this was due to an evolution in the protocol.

          I did find this doc on the web that shed some additional light:

          http://www.google.com/url?sa=t&source=web&ct=res&cd=5&ved=0CCUQFjAE&url=http%3A%2F%2Fforums.mrplc.com%2Findex.php%3Fact%3Dattach%26type%3Dpost%26id%3D6514&rct=j&q=modbus+6+digit+addressing&ei=2hvgS5L-Foi6Nt34pc8J&usg=AFQjCNFNCkIDwxBYztiswCnM4gOoqR8M1g

          Thanks.

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler
            last edited by

            Ah, right. Now i recall. I was always a bit put off by that spec inconsistency. In any case it looks like Modbus4J should allow "6 digit" addressing, but in an indirect way.

            When you create do a read from a ModbusMaster or create a locator with RangeAndOffset object, you're subject to a 0-9999 constraint. The constructor has this comment:

            This constructor provides a best guess at the function and offset the user wants, with the assumption that the offset will never go over 9999.

            But, you can also specify the range and offset separately, in which case the offset is subject to a 0-65535 range. There shouldn't be any reason why this won't work.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • F
              Fred
              last edited by

              Ok, I was looking for support pretty much from the slave side only. I assume that would just be to relax the offset validation in the ProcessImage class. I'll try that and see what happens.

              Thanks.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post