• 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 a coil value

    How-To
    2
    5
    3.6k
    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
      mmn666
      last edited by

      Hi,

      i try set a coil value in my I/O device but the time of the value is set, is much short. How i can set the value of a device for more time(or permanent)?

      sorry my ignorance...
      and thanks for your patience

      regards,
      Mario

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

        The value that is set should stay unless the device is changing it back for some reason.

        Best regards,
        Matthew

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

          Hi Lohbihler,

          I need to know how can I set a coil value in my I/O device for 5 seconds?

          I try to use the point link, using the same point as source point and target point, but my code is not validated

          my code:
          TIMESTAMP = new Date().getTime();
          x=0;
          x.end(5000);
          return source.value;

          thanks for your patience

          regards,
          Mario

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

            No, that's not going to work. Here's what to do, assuming that you want to set the coil to "true" for 5 seconds.

            1. Create a point event detector on the point that fires when the point has been "true" for 5 seconds.
            2. Create an event handler for the event in 1) that sets the point to false when it activates, and does nothing when it deactivates.

            Best regards,
            Matthew

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