Analysis does not write final result into PI point
I made elapsed working time calculation for process equipment in AF analysis.
Problem is writing a final result (time in seconds) into PI point.
ON/OFF triggering working fine, and when i manually test result shall be recorded.
But when it is started and stopped automatically (amperage) result is not written.
Maybe is a reason long elapsed time (500+ hours), but it's very strange.
‘Status’ in amperage (0 – OFF, >0 – ON)
IF BadVal('WorkingTime') then 0 else (IF (('Status' = 0) AND (PrevVal('Status','*') > 0)) THEN Int('*'-NextEvent('Status',FindEq('Status',PrevEvent('Status',PrevEvent('Status','*')),'*-1h',0))) Else NoOutput())
Condition BadVal('WorkingTime') is because when I create a new element from template displayed value is Calc Failed.
Unfortunately, I don't have latest event frames version to solve problem of writing final values into PI point.
Do you have an idea how to solve this?