0

Today's Production Time %

I have a Boolean tag that represents a machine's productive state, 1 = Productive, 0 = Not Productive.  I would like to display in an Axiom application value box, the percentage of today the state is productive.  My first stab at it was to use these settings.... AggregateInterval: D, AggregateKind:  DurationInStateNonZero, AggregateStartTime: D.  With a value transform of: (value/1000/60)/1440*100.  I get a value but then I started thinking about my logic and I think I am wrong.  I want to know my productive time today, thus far, so my denominator shouldn't be total minutes in a day but, how many have passed up to right now.  Is there a way to do this, where essentially the minute denominator is dynamic based on the minutes elapsed so far today, not the total minutes in a day.  Thank you in advanced for any time pondering this.  

Regards,

Tim

Reply

null

Content aside

print this pagePrint this page
  • 5 hrs agoLast active
  • 1Views
  • 1 Following