F_HresultCreate

F_HresultCreate 1:

This method is used to create a HRESULT value. Whether the value is interpreted as a success depends on the input parameter bSuccess.

Syntax:

FUNCTION F_HresultSuccess : HRESULT
VAR_INPUT
    bSuccess:           BOOL;
    nFeedback:          UDINT;
END_VAR

F_HresultCreate 2: Return value

Name

Type

Description

F_HresultCreate

HRESULT

Created HRESULT value.

F_HresultCreate 3: Inputs

Name

Type

Description

nFeedback

UDINT

Error code to be integrated into HRESULT.
Only accepted if bSuccess = FALSE.

bSuccess

BOOL

Indicator for the success.

Requirements

Development Environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.66

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v12.10.0.0)