• 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

    Setting Data Points in Modbus IP using HEX Addresses

    User help
    3
    12
    3.1k
    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.
    • N
      Nikospps
      last edited by Nikospps

      Hello Again!

      I am trying to set my data point finding a hex address of 1 word=2 byte (type 0x3502 for example). I set it as input register of 2 byte integer and as every other try that i made, i didn't take response, just null (0) value.
      My source device configured as modbus/ip with its local ip address.

      Any idea?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi Nikospps,

        I'm not really sure what you mean, can you post some screenshots?

        It sounds like you are trying to set a value to an input register, but these registers are not writable.

        Maybe you're just reading data. Addresses in Mango are in decimal, so you'll have to convert that address into decimal, 13570. That looks like it would be in the input status range?

        1 Reply Last reply Reply Quote 0
        • N
          Nikospps
          last edited by

          For example i am trying to set this address. It's not the first time that i try this. The problem is that using input register with 2 byte signed/unsigned and swapped integer (yes i used every possibility) it gives me null value.

          Using another freeware to check the values (modscan) gave me right the value (not null of course), but i use hex addresses in my display configuration.

          0_1510678727195_Hex_Addresses_Datapoints.PNG

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Is it possible the address bytes in that doc are flipped? 0x3000 --> 00 30 --> 48? Weird that the chart goes 0x3000, 0x3100

            Also bear in mind Mango's first modbus index is 0, while sometimes documents can start their indexing at 1. Therefore, you may need to subtract 1 from the offset.

            1 Reply Last reply Reply Quote 0
            • N
              Nikospps
              last edited by

              Flipped addresses? You may be right.

              Another one example, of this manual:

              0_1510679977810_Hex_Addresses_Datapoints.PNG

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by

                Hmm, probably not flipped address bytes. Have you tried reading the other register ranges, or just used the bulk tool to read large blocks of data? Can you post a screenshot?

                1 Reply Last reply Reply Quote 0
                • N
                  Nikospps
                  last edited by

                  When you said "bulk tool", you mean in Mango? Or an external tool?

                  1 Reply Last reply Reply Quote 0
                  • phildunlapP
                    phildunlap
                    last edited by

                    Yeah, in Mango, on the modbus data source edit page,

                    0_1510684619450_bulkread.png

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nikospps
                      last edited by

                      I used both Modbbus read data and locator test, and the values that i received where null.
                      In locator test i gave as offset the value (0x3702-->3702, input register and 2 byte signed/unsigned integer and swapped integer) and i also took null values.
                      I tried everything before the post.

                      1 Reply Last reply Reply Quote 0
                      • phildunlapP
                        phildunlap
                        last edited by

                        You seem to not post screenshots of this 'null'. Are you getting an error? Have you checked your ma.log file while you are doing this?

                        1 Reply Last reply Reply Quote 0
                        • N
                          Nikospps
                          last edited by

                          [SOLVED]

                          Hopefully that i found the solution, which was easy. I converted hex->decimal and used the result as offset gave me values.
                          I will finish my effort and keep you informed.

                          danD 1 Reply Last reply Reply Quote 0
                          • danD
                            dan @Nikospps
                            last edited by

                            @nikospps said in Setting Data Points in Modbus IP using HEX Addresses:

                            [SOLVED]

                            Hopefully that i found the solution, which was easy. I converted hex->decimal and used the result as offset gave me values.
                            I will finish my effort and keep you informed.

                            Yeh I've found I have had to convert the hex address to decimal (using Google's friendly calculator) and it works almost every time.

                            Dan

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