F_SucceededHr

F_SucceededHr 1:

This method checks a HRESULT value for success and copies the result to a transferred variable if the check fails.

Syntax:

FUNCTION F_SucceededHr : BOOL
VAR_INPUT
    Source:                 HRESULT;
END_VAR
VAR_IN_OUT
    Destination:            HRESULT;
END_VAR

F_SucceededHr 2: Inputs/outputs

Name

Type

Description

Destination

HRESULT

Variable to which the HRESULT value is to be copied in the event of an error.

F_SucceededHr 3: Inputs

Name

Type

Description

Source

HRESULT

Error code to be checked.

F_SucceededHr 4: Return value

Name

Type

Description

F_SucceededHr

BOOL

TRUE if the check was successful.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticFunctions v3.12.4.26 or higher