Automatic Control Module – Multiply triggers

Forum Home Forums Understanding the Software Automatic Control Module – Multiply triggers

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6297
    athes
    Participant

    Hi Mikhail,

    Is there any solution how to combine different triggers before sending a command?
    I want to use Time trigger & value trigger together:
    If the (time is 13:00) AND a (specific value is < -10) then send a command (only once in a day)

    Thanks.

    #6305
    Mikhail
    Moderator

    Hi,

    You should create a time trigger as usual. Then in the output channel formula, check
    Val(101) < -10 ? Cmd : double.NaN

    double.NaN cancels the command.

    #6312
    athes
    Participant

    Wow, what a magic. It works, thank you!

    Can I use ‘Formulas’ also for this purpose? If yes, how? (my formula returns with a 0 or 1)

    Does it work in output formula field?
    CustomFormula(Val(101), Val(102), Val(103)) = 1 ? Cmd : double.NaN

    #6314
    Mikhail
    Moderator

    Can I use ‘Formulas’ also for this purpose?

    What purpose?

    Does it work in output formula field?

    Such formula will work. But CustomFormula() == 1 …

    #6315
    Mikhail
    Moderator

    Formula of output channel is calculated in a moment when a command is sent.

    #6317
    athes
    Participant

    Got it, thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.