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