I need to calculate pump running time and sent notification if pump is running too long.
Trigger is in some other PumpStatus PI point like value "START" or "STOP".
When pump start, trigger start counting time (in hours) until stop.
After stop time must be reset to 0.
How to do this with performance equation point (this will be a trigger for notification)?
Regards,
Igor
You will need to have two counters, one for runtime and for Stop-time
Here is how I built my totalizer for runtime - note that I created mine for the random tag BA:ACTIVE.1 which has two states Active and Inactive:
This totalizer will calculate the runtime and write the final value (and reset to 0) when the status does not equal "Active"
Note that I am not using double-quotes around my status because it is a digital state. If it were a string tag, then you would need the double quotes.
Gabriel