Type 0: Definition of Calculations

Use

You can use this function to perform calculations in the browser-based PI sheet or process manufacturing cockpit. You can, for example, calculate the total quantity of a material consumed in all phases. You can then use a process message to report the calculated value. You can define a variable to pass on the calculated values to a function module, for example.

Activities

When defining calculations, you specify the following information in the process instruction:

  • A text to be displayed before the calculated value in the PI sheet or cockpit

  • If required, a variable that refers to the characteristic to be calculated

  • The message characteristic whose value you want to calculate

  • The calculation formula to be used to calculate the value

To enter this information, you assign the following characteristics to the process instruction in the sequence specified below:

Characteristic

Meaning

Allowed Values

PPPI_INPUT_REQUEST

Text displayed before the formula result

Any short text

< PPPI_VARIABLE

In PI sheets only:

< PPPI_GLOBAL_VARIABLE

Variable definition for value calculated:

< Variable

< Globale Variable

New variable name

See: Definition of Variables

PPPI_CALCULATED_VALUE

Message characteristic to be calculated

Message characteristic

PPPI_CALCULATION_FORMULA

Calculation formula

Arithmetic expression;

see: Syntax

Note Note

In the case of text characteristics (such as PPPI_INPUT_REQUEST), you can insert the value of another characteristic into this text using a text symbol; see Text Symbols in Characteristic Texts.

End of the note.