AnsweredAssumed Answered

PIOPC with calculations for fixed time windows

Question asked by martin.klauck on Mar 25, 2015
Latest reply on Mar 26, 2015 by martin.klauck



I'm trying to solve following:

I have a PI point and need to do some calculations (e.g. avg, sum) for fixed time windows (e.g. every 5/10 or 30 minutes starting at midnight 0:00)

Just to clearify, that means if time is now 12:34 the calculation for a 10m window should return avg(12:20-12:30) of the pi point value as last value.

I saw in ProcessBook we can do all that with avg and PI Calc.

In AF I might do a formula but not sure how to solve the the fixed time window requirement.

Unfortunate I need to provide latest calculation via PI OPC and so far I don't know how to access a PI AF value from PI OPC or use PI CALC outside ProcessBook.

Does anyone know if this is possible at all?

Any suggestions/advise?




Martin Klauck