Toggle Formula

This topic contains 1 reply, has 2 voices, and was last updated by Mikhail Mikhail 6 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4167

    Gonederra
    Participant

    Hi Mikhail,

    I don’t really understand how to implement formulas in this SCADA system. I need to create a switch with an Execute command over a dynamic picture.

    For that, i need the execute function to send two different answers depending on an specific channel. I know how to program that in C/C++ (my main languages) but don’t really understand how to implement it here. Something like:

    if (Channel 1 >=250) {Channel 11 =4;}
    else if (Channel 1 <250) {Channel 11 =8;}

    Thanks in advance

    #4169
    Mikhail
    Mikhail
    Moderator

    Hi,

    Use C# syntax in a formula for an output channel:
    Val(1) < 250 ? 8 : 4

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.