TcEventEntry_TO_HRESULTAdsErr
This function converts a TcEventEntry into a standard ADS error (HRESULT).
Syntax
Definition:
FUNCTION TcEventEntry_TO_HRESULTAdsErr : BOOL
VAR_INPUT
stEventEntry : TcEventEntry;
hr : REFERENCE TO E_HRESULTAdsErr;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stEventEntry | Event definition to be converted. | |
hr | REFERENCE TO E_HRESULTAdsErr | Outputs the resulting error code. |
Return value
Name | Type | Description |
---|---|---|
TcEventEntry_TO_HRESULTAdsErr | BOOL | Returns TRUE if the conversion was carried out successfully and FALSE if the event class is unknown. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.20 | PC or CX (x64, x86, ARM) | Tc3_EventLogger |