• 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

    How to set a data point to read communication status?

    Mango Automation general Discussion
    2
    6
    1.9k
    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.
    • M
      mothgo990
      last edited by

      How to set a data point within a datasource of Modbus TCP to read communication success or fail status, I want to use this point value.

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

        Hi mothgo990,

        Have you considered the "Create slave monitor points" option on the Modbus data sources? These are boolean points that reflect if a ModbusTransportException occurred in trying to read the points on a given slave ID, as opposed to a successful read or an error response.

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

          aha, I got it, that's what I need, thank you!

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

            @phildunlap said in How to set a data point to read communication status?:

            Create slave monitor points

            Another question, is there a way to "Create slave monitor points" to read point communication failure? I mean if the data source communication is good, but some point failed, is that also feedback a point value that we can read?

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

              Most certainly, but not as directly.

              The data points will be marked unreliable, which should appear in the UI. This could also be pulled out in a meta point if you wanted a point's unreliability to be a data point (I would update such a meta point on update events to the slave monitor points, since those will get an update every poll, and have the other point in context, then get the unreliability attribute like, return CONTEXt_POINTS["p123"].getAttribute("UNRELIABLE") === true; ). If you register for a point value websocket, the attributes should also come through in those messages.

              There will be an event raised on the data source which could be handled. I believe for Modbus this has the potential of happening many times in a single poll, so it's not necessarily the cleanest solution. Specifically, reads are batched based on the contiguous batches and batch size settings, and register ranges because of the protocol. Any particular request could have an illegal address in it, in which case all the points covered in the request would be marked unreliable, and the event could be raised and returned to normal several times as the data source processes the responses.

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

                yes, people may need that point status value to control a .gif etc.
                how about to feedback 0 or some special value for point value to indicate communication failed?

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