AnsweredAssumed Answered

Analysis does not write final result into PI point

Question asked by igreguri Champion on Jun 20, 2018
Latest reply on Jul 2, 2018 by igreguri

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.

 

Trigger

‘Status’ in amperage (0 – OFF, >0 – ON)

 

Final result

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?

Regards,

Igor

Outcomes