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:
To enter this information, you assign the following characteristics to the process instruction in the order specified below:
Characteristic |
Meaning |
Allowed Values |
PPPI_INPUT_REQUEST |
Text displayed before the formula result |
Any short text |
In PI sheets only: < PPPI_GLOBAL_VARIABLE |
Variable definition for value calculated: < Global variable |
|
PPPI_CALCULATED_VALUE |
Message characteristic to be calculated |
Message characteristic |
PPPI_CALCULATION_FORMULA |
Calculation formula |
Arithmetic expression; |

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.