Show TOC

 XStep: Calculations Locate this document in the navigation structure

Use

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.

Prerequisites

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.

Features

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 .

Activities

  1. You create an XStep process instruction of type Control Calculation.

  2. 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