You can use this function to perform calculations based on calculation formulas in the PI sheet. You can, for example, calculate the total material quantity consumed in all phases. You can then use a process message to report the calculated value.
You have already defined the following parameters for the XStep.
Parameters that you use in the calculation formulas (for example VALUE1 + VALUE2 )
Parameters in which the calculated values are to be written.
You define the calculation formulas using XStep parameters, which are inserted as variables in the formula. Additionally, you can also write the value calculated in the PI sheet to a parameter.
Carrying Out the Calculation
The calculation can be carried out in the PI sheet in the following ways:
Manually
If you have not specified an event in the XStep process instruction, you must trigger the calculation in the PI sheet manually by choosing icon ( ) .
Event-Triggered
If you have specified an event in the XStep process instruction, the system carries out the calculation in the PI sheet, as soon as the specified event occurs.
For more information about events, see Events in PI Sheets and Cockpits .
You create an XStep process instruction of type Control Calculation.
In the process instruction, you specify:
A description, that is displayed in the PI sheet next to the calculated value.
A parameter, if necessary, in which the calculated value is to be written
An event, if necessary, that triggers the calculation automatically
A calculation formula, that is used to calculate the value
Refer to Syntax of Calculation Formulas