AnsweredAssumed Answered

How to count starts of the machine using PE functions?

Question asked by Andrey.Novikov on Feb 8, 2018
Latest reply on Feb 19, 2018 by Andrey.Novikov

Hi all,


Here in the company, we have an idea to do some maintenance based on the number of starts of the machine.

I've found the solution but the problem is that our maintenance system doesn't support DataLink functions


How can I get the result of

PIAdvCalcExpVal("tagval('TAGNAME','*') = 1 and prevval('TAGNAME','*') = 0";"*";"*";"count";"event-weighted";"compressed";"10m";0;1;0;"SERVER")

[the number of times the tag was equal to 1]

using PE functions?


Thank you in advance

     and sorry if this kind of problem was already solved by the community (I really tried to use the search )