When defining the value to be calculated, you must enter the following information in the process instruction (see graphic below):
A text to be displayed before the calculated value
The key of the message characteristic whose value is to be calculated
The calculation formula to be used
If required, you can also specify a unit of measurement for the calculated value. In the PI sheet, the unit is displayed after 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_CALCULATED_VALUE |
Message characteristic to be calculated |
Message characteristic |
PPPI_CALCULATION_FORMULA |
Calculation formula |
Arithmetic expression; see Syntax |
PPPI_UNIT_OF_MEASURE |
Unit of measurement |
Any unit of measurement |
Note
In the case of text characteristics (for example, PPPI_INPUT_REQUEST), you can insert the value of another characteristic into this text using a text symbol; see Text Symbols Within Characteristic Texts .
See also:
Process Data Calculation Formula / Message Category - Example
Additional Function
If you want to use the characteristic value in a subsequent process instruction of the same process order, you can define a variable that refers to this message characteristic; see Definition of Variables .