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

Time Syntax

$
0
0

Hi, it's me again.

 

This time I've a question to the PI Time Syntax.

 

In my case I like to compare a current tag value with the value of now before 30s.

 

So the PI Calculation is:

 

'Tag_Name' - PrevVal ('Tag_Name','*-30s')=0.

 

Is it true (1) -> Alarm

or False (0) -> Ok.

 

But my problem is... In PI ProcessBook it is possible to select a time range in past. Which code is used to use this bygone time as now?

 

So for example. Now is 9:55 am. I go back to the time range 6:55 am to 7:55 am. The current time in the PI Calculation should be now 7:55 am.

 

I hope you guys get my problem and you have a good tip for me.

 

Thanks a lot.

 

 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



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