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

heartbeat in mango, to send it every five seconds to each controller


  • Hello,
    I want to create heartbeat in mango, to send it every five seconds to each controller. (TCP / IP Modbus)

    Thus, in case of loss of this bit of life, the automaton can go into fallback mode.

    I think that must be achievable.

    The simplest way to create this bit of life seems to me to be to create a schedule event with a cron pattern.

    But I found nowhere, indication on this cron pattern.
    The links to a tutorial are no longer active.

    Best regards


  • Hi JF89,

    I would use a scripting data source on a cron pattern of 0/5 * * * * ? and the modbus point you'll be setting the value to in the context.

    The links to a tutorial are no longer active.

    And that help dialogue isn't provided in the new UI, instead there is a widget to help craft cron patterns.


  • Hello Phil, thank you for your answer.
    You said: instead there is a widget to help craft cron patterns.

    But where are those widgets ? and how works cron patterns ?
    Does it requires a new module ?

    best regards


  • If you are up to date nothing would be required, simply create / edit a scripting data source in the new UI and click the icon to open the widget:

    0_1565817440104_cronWidget.png


  • Hello Phil,

    Thank you for your answer for setting a CRON Patern variable with a script.

    From now on, I understand how it will work.

    The problem is that you have to master the scripts (apparently JavaScript), master their syntax and their language with the mango software.

    0_1565855799856_Screenshot_cron pattern script.png

    Without help adapted to the variables that are used in the mango software, or with examples, it will be very difficult for me to master these scripts

    The mango Software is very powerful, with its widgets and associated functions (time program, excel report, bulk data point edit, Watchlist etc .. that I hadexperimented.
    I have not yet approached angular JS, which actually seems as very powerful.

    The problem is that I am an PLC programmer and not a computer programmer.

    It is possible to copy, pieces of scripts, provided that it is commented, and incorporate them into the program, or to modify a little theses scripts, but not to invent scripts. (It becomes the work of a real computer programmer
    ).

    Best regards


  • You certainly don't always need to know scripting, but it does enable the full flexibility Mango provides in many features. And certainly mastery isn't required either for simple tasks.

    Without help adapted to the variables that are used in the mango software, or with examples, it will be very difficult for me to master these scripts

    Fortunately there is help as your screenshot shows, and there is this forum where many examples of things have been provided, and others are often only a question away!

    The Dashboard Designer can alleviate a lot of the need to be an AngularJS master, but again the forum is here to help.

    Thanks for the kind words!


  • Good evening Phil,

    Thank you for your answer.
    Where to find the syntax to control with that script, the points (coils) of the IP modbus device?

    Best regards


  • Where to find the syntax to control with that script, the points (coils) of the IP modbus device?

    I'm not sure I understand - in your image is the help for the scripting data source with examples of setting values to context points. There is also a help document available in the upper right corner of the script entry area in your screenshot. All you would need to do is add the point to the scripting data source's context and set values to it.