Show TOC

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

Use

You can use this function to execute dynamic function calls 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 dynamic function call.

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 dynamic function calls to be executed automatically, you define the following characteristics in the process instruction in the sequence specified:

Characteristic

Meaning

Characteristic Value

PPPI_FUNCTION_NAME

Function module name

Name of the function module you want to call

PPPI_EVENT

Internal or external event

Address with name of the event

Parameter characteristics:

< PPPI_EXPORT_PARAMETER

< PPPI_CHANGING_PARAMETER

< PPPI_IMPORT_PARAMETER

Parameters according to definition in function module:

< Import parameters

< Changing parameters

< Export parameters

Parameters of the function module

< Import parameters

< Changing parameters

< Export parameters

Characteristic for the variable/constant that has the same data type as the parameter

Value transfer in constant:

< PPPI_STRING_CONSTANT

< PPPI_FLOAT_CONSTANT

< PPPI_DATE_CONSTANT

< PPPI_TIME_CONSTANT

Value transfer in variable:

< PPPI_STRING_VARIABLE

< PPPI_FLOAT_VARIABLE

< PPPI_DATE_VARIABLE

< PPPI_TIME_VARIABLE

For value assignment through message characteristic:

< <Message characteristic>

Value transfer in constant:

< Alphanumeric value

< Floating point number

< Date

< Time

Value transfer in variable:

< Alphanumeric value

< Floating point number

< Date

< Time

For value assignment through message characteristic:

< Message characteristic

Any fixed value of data type:

< Alphanumeric value

< Floating point number

< Date

< Time

Existing variable of data type:

< Alphanumeric value

< Floating point number

< Date

< Time

For value assignment through message characteristic:

< Any message characteristic

Example

The input field "Date" contains the current date as the default value. Variable MYDATE refers to this input field. Function module DATE_TO_DAY has been defined that is to calculate the day from the date when the corresponding button is pressed. In addition, a triggering event with the value Process Instruction Deactivated was defined. This means that once the process instruction is deactivated, the system automatically calculates the relevant day and displays it.

PPPI_INPUT_REQUEST

Date

PPPI_VARIABLE

MYDATE

PPPI_REQUESTED_VALUE

PPPI_EVENT_DATE

PPPI_FUNCTION_NAME

DATE_TO_DAY

PPPI_FUNCTION_DURING_DISPLAY

Permitted

PPPI_EVENT

Process Instruction Deactivated

PPPI_EXPORT_PARAMETER

DATE

PPPI_DATE_VARIABLE

MYDATE

PPPI_IMPORT_PARAMETER

WEEKDAY

PPPI_STRING_VARIABLE

MYWEEKDAY

PPPI_OUTPUT_TEXT

Day of the week

PPPI_OUTPUT_VARIABLE

MYWEEKDAY