GetCause

GetCause 1:

This method returns the cause.

Syntax

METHOD GetCause : BOOL
VAR_INPUT
    sResult     : REFERENCE TO STRING;
    nResult     : UDINT; // buffer size in bytes
END_VAR

GetCause 2: Inputs

Name

Type

Description

sResult

REFERENCE TO STRING

Reference to a string in which the result is to be stored.

nResult

UDINT

Length of the sResult

GetCause 3: Outputs

Name

Type

Description

GetCause

BOOL

Returns the success whether a cause was provided.