I need support to create a losses accumulator on PI AF that works in a loop during my batch production

I Have a variable that capture duration of different event that is higher than my limit.

I need to tantalize those times during my batch production following the rule:

When variable 10 is 0 return total time accumulated of preview losses

When variable 10 is > 0 (I'm having a loss event) it return preview losses accumulated + present loss happening.

Those values will be saved on "Totalizador Perdas" for next calculation - Variable 11

 

For instance it is just capturing Max value, I know that variable 11 is incorrect but I don't know how to fix

Parents
  • Hello ​ ,

     

    With rather complex calculations it is sometimes difficult to follow. You already split your calculation over multiple variables which should definitely help to see interim results. Variable11 is still rather complex because it uses different inputs. You may want to further split up this variable.

    It is also helpful to test your your calculation. For the purpose you may want to link calculation inputs to PI points you manually update. This way you can adjust the inputs as needed.

    Good luck!

Reply
  • Hello ​ ,

     

    With rather complex calculations it is sometimes difficult to follow. You already split your calculation over multiple variables which should definitely help to see interim results. Variable11 is still rather complex because it uses different inputs. You may want to further split up this variable.

    It is also helpful to test your your calculation. For the purpose you may want to link calculation inputs to PI points you manually update. This way you can adjust the inputs as needed.

    Good luck!

Children
No Data