SendMessage()
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
Inputs
Name | Type | Description |
---|---|---|
stEventEntry | Event from an event configuration. | |
sString | STRING(255) | Additional information that will be attached to the event. |
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) |