2 Replies Latest reply on Dec 18, 2017 12:21 PM by Abhi2017

    The Evaluate button works fine and gives the correct result, but the calculation writes 'Calc Failed' value to the PI Tag.

    Abhi2017

      Hi,

       

      I have one Performance equation tag and whenever the evaluate button clicks it's works fine and gives the correct result, but the calculation write always 'Calc Failed' value in the latest event value to the PI Tag.

      What would be the cause please?

       

       

      Regards,

      Abhilash

        • Re: The Evaluate button works fine and gives the correct result, but the calculation writes 'Calc Failed' value to the PI Tag.
          gristock

          Hi Abhilash,

           

          "Calc Failed" is usually written to the PI Data Archive from a Performance Equation (PE) whenever the PE includes a mathematical error, or points used in the equation have values like "Bad" or "No Data."  In order to prevent these "Calc Failed" messages from being archived, check the syntax of your PE and include a check for source point error values in your PE (KB00498 has an example on how to do this).

           

          The difference in results that you get when you click the "Evaluate" button and when the PE is triggered is due to the input values it uses at that moment. When you click the "Evaluate" button, the PE uses the most recently archived values for the tags included in the PE at that moment. When it is triggered by the PE Scheduler Service, it uses the snapshot values at the time that it is triggered.

           

          My suspicion is that at the moments that the PE outputs "Calc Failed," one of the input tags has a value that doesn't allow the PE to be evaluated properly.

           

          Here are some first troubleshooting steps to take to diagnose this issue:

          • Check the syntax for your PE to see if the expression is valid.
          • Check when it's scheduled to evaluate - is it triggered by a tag, or is it clock-based scheduled?
          • Check that the tags used in the PE have a healthy value at the time the PE was evaluating.

           

          Regards,

          Georg

          1 of 1 people found this helpful