Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling the Value of an Analog Tag based upon the Value of a Digital Input

I have a Backwash Flow tag which I want to have a value only when a Backwash Valve is open. Else, I want the tag to be zero.
0 Kudos
Message 1 of 2
(2,795 Views)
JoeSCADA wrote:
>I have a Backwash Flow tag which I want to have a value only when a
>Backwash Valve is open. Else, I want the tag to be zero.

Instead of referencing the Backwash Flow tag directly, you can use an expression
object.
That allows you to use the if function for the expression. The expression
would look
something like "if(BackwashValveOpen,BackwashFlowTag,0)".
Almost seems too easy, but it works very well.
0 Kudos
Message 2 of 2
(2,795 Views)