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.