Calculation of how many times my production line is stopped?

Hi guys, I have an attribute that gives me the value of false when the production line is stopped and true when it is running, I want to make an analysis of how many times it stopped in the day and the week, could you help me to know how to do it, thanks in advance

Parents
  • Hi. This is a straight forward task using two analyses.

     

    1. Create an analysis called Production Stop Indicator. Trigger it from the production line attribute you mentioned, and use logic to output 1 when the production is stopped, and no output when it's running. Then write the values to a PI Point output attribute. The expression is: if 'ProductionLineStatusAttribute' = false then 1 else NoOutput()
    2. Create another analysis that is triggered from the output of the Production Stop Indicator (first analysis created). Then you have a choice between the two following methods to obtain the number of stops in your desired time period:
      1. Use the EventCount function to count all events of the Production Stop Indicator attribute. Since we only output values when the production is stopped, you can safely consider the count of the events the number of stops.
      2. Use the TagTot function to return the sum of all the stops (i.e. value 1) in the Production Stop Indicator attribute. Make sure you use the TagTot function overload with 6 input parameters, and the sixt one needs to be "EventWeighted"

     

    PS! It's important this is implemented as two analyses. It doesn't work if you have two expressions in the same analysis!

Reply
  • Hi. This is a straight forward task using two analyses.

     

    1. Create an analysis called Production Stop Indicator. Trigger it from the production line attribute you mentioned, and use logic to output 1 when the production is stopped, and no output when it's running. Then write the values to a PI Point output attribute. The expression is: if 'ProductionLineStatusAttribute' = false then 1 else NoOutput()
    2. Create another analysis that is triggered from the output of the Production Stop Indicator (first analysis created). Then you have a choice between the two following methods to obtain the number of stops in your desired time period:
      1. Use the EventCount function to count all events of the Production Stop Indicator attribute. Since we only output values when the production is stopped, you can safely consider the count of the events the number of stops.
      2. Use the TagTot function to return the sum of all the stops (i.e. value 1) in the Production Stop Indicator attribute. Make sure you use the TagTot function overload with 6 input parameters, and the sixt one needs to be "EventWeighted"

     

    PS! It's important this is implemented as two analyses. It doesn't work if you have two expressions in the same analysis!

Children
No Data