2 Replies Latest reply on Aug 2, 2018 7:27 PM by sraposo

    AF Asset Analytics: defining specific timestamp as start time in downtime performance equation

    JacobAWeber

      Hi everyone,


      I want to create a downtime analysis. The runtime tag is called 'TFT' and has values as a string in the format "dd:hh:mm:ss". I want to define an analysis to determine the time when each reactor isn't running, using the TimeEq function. We just created this tag recently, but going forward I want to make this a totalized downtime from August 1st at midnight. Once this works, I will do a rollup to sum this on every reactor. However, I get this error shown in the screenshot. How can I input a specific timestamp as the start time in my performance equation?

       

      Thanks!

        • Re: AF Asset Analytics: defining specific timestamp as start time in downtime performance equation
          Rick Davin

          Hi Jacob,

           

          First of all, timestamps and time spans are denoted by SINGLE quotes.  You have double quotes, which is for literal strings.  So the middle two parameters should be in single quotes.  The 4th and final parameter should be in double quotes since you state the input tag comes from a string attribute.

           

          Secondly, hard-coding an absolute timestamp into an Analysis is a horrible idea.  No matter what end time you provide, the start time will always be Aug 1, 2018, even if you ran this for May 2019.  Instead, you can use the relative PI Time of  '1' to get midnight of the first day of the current month.

          1 of 1 people found this helpful
          • Re: AF Asset Analytics: defining specific timestamp as start time in downtime performance equation
            sraposo

            Hi Jacob,

             

            In addition to Rick's points, are you using any other data around these down times? I think capturing these downtime in event frames might be a possible alternative if you want some to consume some contextual data around these downtimes. You can use the new functionality in Analysis 2017 R2 to output to an AF Attribute the duration of the Event Frame and then do a roll up on this attribute if you want to know the cumulative downtime.

             

            If you would like to know more about this approach, please let us know!

             

            Thanks,

            Seb