SendMessage()

SendMessage() 1:

Logs a message in EventLogger, unless the message has been sent before.

Syntax:

METHOD SendMessage : HRESULT
VAR_INPUT
    stEventEntry:       TcEventEntry;   // TcEventEntry to be created and send
    sString:            STRING(255);    // additional STRING attribute
END_VAR

SendMessage() 2: Inputs

Name

Type

Description

stEventEntry

TcEventEntry

Event from an event configuration.

sString

STRING(255)

Additional information that will be attached to the event.

SendMessage() 3: Outputs

Name

Type

Description

SendMessage

HRESULT

Return value with feedback on the success of the execution.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.5.0)