SendHresult()

SendHresult() 1:

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

SendHresult() 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event from an event configuration.

hr

HRESULT

Error code to be displayed.

SendHresult() 3: 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)