F_HresultFailure
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
Return value
Name | Type | Description |
---|---|---|
F_HresultFailure | HRESULT | Generated |
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 |