F_HresultFailure

F_HresultFailure 1:

This method is used to generate a HRESULT value that is interpreted as an error.

Syntax:

FUNCTION F_HresultFailure : HRESULT
VAR_INPUT
    nFeedback:          UDINT;
END_VAR

F_HresultFailure 2: Return value

Name

Type

Description

F_HresultFailure

HRESULT

Generated HRESULT value.

F_HresultFailure 3: Inputs

Name

Type

Description

nFeedback

UDINT

Error code to be integrated into the HRESULT.

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