• 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 Scaling

    Mango Automation general Discussion
    2
    5
    3.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.
    • A
      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
        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
          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
            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
            • First post
              Last post