F_HresultCreate

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
Return value
Name | Type | Description |
---|---|---|
F_HresultCreate | HRESULT | Created |
Inputs
Name | Type | Description |
---|---|---|
nFeedback | UDINT | Error code to be integrated into HRESULT. |
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) |