ST_TcPlcMcLogEntry (from V3.0)

A variable with this structure contains a message of the LogBuffer of the library. Used as a component in ST_TcPlcMcLogBuffer. Further information about creating a log buffer can be found under FAQ #10 in the Knowledge Base.

ST_TcPlcMcLogEntry (from V3.0) 1:

The data in this structure must not be modified by the application.

Syntax

TYPE ST_TcPlcMcLogEntry:
STRUCT
    TimeLow:    UDINT:=0;
    TimeHigh:   UDINT:=0;
    LogLevel:   DWORD:=0;
    Source:     DWORD:=0;
    Msg:        STRING(255);
    ArgType:    INT:=0;
    diArg:      DINT:=0;
    lrArg:      LREAL:=0;
    sArg:       STRING(255);
END_STRUCT
END_TYPE

Parameter

Name

Type

Description

TimeLow

UDINT

The timestamp of the message. Records the time at which the message was generated.

TimeHigh

UDINT

LogLevel

DWORD

Indicates the urgency of the message. Only values from a specified pool of numbers should appear here.

Source

DWORD

Indicates the source of the message. Only values from a specified pool of numbers should appear here.

Msg

STRING

The message text with an optional placeholder for a variable component.

ArgType

INT

The type of the optional component.

diArg

DINT

If an optional component of type DINT is used, its value can be found here.

lrArg

LREAL

If an optional component of type LREAL is used, its value can be found here.

sArg

STRING

If an optional component of type STRING is used, its value can be found here.