TcEventEntry_TO_AdsErr
This function converts a TcEventEntry into a standard ADS error.
Syntax
Definition:
FUNCTION TcEventEntry_TO_AdsErr : BOOL
VAR_INPUT
stEventEntry : TcEventEntry;
eErrorId : REFERENCE TO E_AdsErr;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stEventEntry | Event definition to be converted. | |
eErrorId | REFERENCE TO E_AdsErr | Outputs the resulting error code. |
Return value
Name | Type | Description |
---|---|---|
TcEventEntry_TO_AdsErr | 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 |