GetExternalEventValue: Get Current Value of an External Event

Function Description

Use this function to get the value associated with an external event task.

NOTE: The function must be called from within an external event task.

Graphical Representation

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variables Description

This table describes the input variables:

Inputs

Type

Comment

pValue

POINTER TO DINT

Address of the variable where the value is copied if the function returns EXTEVT_VAL_OK.

This table describes the output variables:

Outputs

Type

Comment

GetExternalEventValue

EXTEVT_VAL_RES

Returns one of the following values:

  • EXTEVT_VAL_OK: Valid value

  • EXTEVT_VAL_FAILED: Unable to obtain value

  • EXTEVT_VAL_NOT_IN_EXT_EVT_TASK: Function was not called from within an external event task

  • EXTEVT_VAL_NOT_AVAILABLE: No value available for this external task