SendHresult()
Logs a message in the EventLogger with the hexadecimal representation of the error code.
Syntax:
METHOD SendEqualMessage : HRESULT
VAR_INPUT
stEventEntry: TcEventEntry; // TcEventEntry to be created and send
hr: HRESULT; // Hresult for additional event
END_VAR
Inputs
Name | Type | Description |
---|---|---|
stEventEntry | Event from an event configuration. | |
hr | HRESULT | Error code to be displayed. |
Outputs
Name | Type | Description |
---|---|---|
SendHresult | HRESULT | Return value with feedback on the success of the execution. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.42 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.6.2) |