AnsweredAssumed Answered

Getting the number of times a digital state is triggered for a specific time range

Question asked by Mohammad.Albatat on Aug 5, 2016
Latest reply on Sep 7, 2016 by pthivierge

Hi,

 

I have a digital point that is being turned ON and OFF throughout the day and I would like to know how many times is it has been ON for the last 24 hours.

 

I have used the TimeEQ function to get the total time it has been ON using :

 

Time_on = Alarm_Point.TimeEQ(Now.AddDays(-1), Now, "ON")

 

How can I get how many times this point has been "ON" for the last 24 hours?

 

Thanks,

Mohammad.

Outcomes