Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

AF Formulas

$
0
0

I am trying to create an AF Formula...

 

I have a tag we will call tag 1 that has values like:

 

1st Forward

2nd Forward

3rd Forward

 

I also have values in tag 2 that are numeric

 

I want to

- Take just the first character of the value of tag 1 (so that i only have 1 or 2 or 3)

- Then i want to display the tag 2 value when the current value to tag 1 is 2 and the previous value is 1

 

So it might look something like...

 

If([Tag 2] = 2 and PrevVal([Tag 2]) = 1)) THEN [Tag 1]

 

My question is what is the syntax for those two operations.


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>