Does anyone know of a simple method of calculating a filtered TIMEEQ calc? ie: I want to calculate the time a tag is in a state but only when an associated equipment status is "Running"
One way to do it is to create a PE tag that is the AND of your two conditions; i.e. it is 1 if and only if your original tag's value is equal to the desired value AND the equipment status is "Running". Then you can run TIMEEQ on this PE tag.
I think this question somewhat similar to this other question that Arthur was asking.
Ahmad's suggestion will work, but i guess if we have more information on what kind of tools or how you would like the result to be displayed, more suggestions can be given.
I am trying to determine the Time on Control for an application over a period of time..ie: 1 day.. but only when a piece of equipment is running. If I use Ahmad's suggestion, I can test if the equipment is running now, but then can only determine if the instrument is On Control for that moment... I could do this hourly & then totalize the Time on Control, but that seems awkward.
The PE I was suggesting captures all the conditions you are interested in checking. So at the end of the day you would be able to do any kind of aggregation and statistics on it. I have to say though, as the logic gets more complicated you would be better off using PI ACE. PEs are meant to be an efficient solution for not too complex operations on the server.
yes, thank you Ahmed ... however I was hoping for a single PE for this calculation... it would be wonderful if the TIMExx functions allowed filtering!
Retrieving data ...