Show TOC

 Type 0: Definition of Calculations to Be Executed Automatically Locate this document in the navigation structure

Use

You can use this function to execute calculation functions automatically in the PI sheet and manufacturing cockpit on an event-driven basis. As the condition, you specify a manufacturing event that is to trigger the calculation.

Prerequisites

OPC Events

To use events of the service OAE (OPC Alarms/Events), you must first have created a subscription in Customizing.

To do so, go to Customizing for Process Management and choose SAP ODA (OPC Data Access) .

For more information about SAP ODA, see SAP OPC Data Access .

Activities

Value Assignment of PPPI_EVENT

You must assign an address to PPPI_EVENT that contains the name of the event to which the PI sheet or cockpit wants to subscribe. The system distinguishes between internal events and external events.

For more information on internal and external events, see:

When defining calculations to be executed automatically, you define the following characteristics in the process instruction in the sequence specified:

Characteristic

Meaning

Value

PPPI_CALCULATED_VALUE

Characteristic to be calculated

Message characteristic

PPPI_EVENT

Internal or external event

Address with name of the event

PPPI_CALCULATION_FORMULA

Calculation formula

Arithmetic expression;

see: Syntax

Example

The input field "Value" contains default value 25. Variable MYVAR refers to this input field. Value Parameter Changed was defined as the triggering event. This means that once the input value changes, the calculation function is executed automatically and the result of the calculation is updated.

PPPI_INPUT_REQUEST

Value

PPPI_DEFAULT_VALUE

25

PPPI_VARIABLE

MYVAR

PPPI_INPUT_REQUEST

Result

PPPI_VARIABLE

MYRESULT

PPPI_CALCULATED_VALUE

PPPI_MATERIAL_CONSUMED

PPPI_EVENT

Parameter Changed

PPPI_CALCULATION_FORMULA

MYVAR + 3