• 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 4 Documentation Website Mango 5 Documentation Website Radix IoT LinkedIn

    Modbus Scaling

    Scheduled Pinned Locked Moved Mango Automation general Discussion
    5 Posts 2 Posters 4.4k Views 1 Watching
    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.
    • A Offline
      aussieMESH
      last edited by

      Hi all,

      What is the best way to scale data in Mango?

      Getting RAW data from my new ADAM - 2031 Zigbee wireless temperature/humidity sensor node.
      The RAW data is 0 - 65535.

      The formula is Degrees C = -46.85 + 175.72 * [RAW TEMP] / 65535

      I have this working by means of:
      Creating a new Virtual Data Source "Scaled data"
      Creating a new Data Point called "Converted temp", which is settable, numeric, no change and start value of 0.
      Create a Point Link with Source as "2031 - RAW data" and Target as "Scaled Data - Converted Temp"
      Create a script in this Point link containing the script "return -46.85 + 175.72 * source.value/65535"

      Is this the easiest way to do these conversions? Seems very cumbersome.

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

        Yes, that is one way of doing it. And unless your point is in a modbus data source, the only way (besides doing something similar with meta points). Modbus points have linear conversion built it.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • A Offline
          aussieMESH
          last edited by

          They are MODBUS points, but in point settings, I can only see multiply and add (or subtract).
          I don't think I can do the above equation there. Am I missing something?

          I have checked out meta points, and yea, that method is pretty much the same as using point links.

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

            Your augend would be -46.85, and the multiplicand would be 0.00268 (175.72 / 65535).

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post