MC_AxRtLogEntry_BkPlcMc (from V3.0)

MC_AxRtLogEntry_BkPlcMc (from V3.0) 1:

The function block enters a message in the LogBuffer of the library. Further information about creating a log buffer can be found under FAQ #10 in the Knowledge Base.

MC_AxRtLogEntry_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    pBuffer:        POINTER TO ST_TcPlcMcLogBuffer;
    LogLevel:       DWORD:=0;
    Source:         DWORD:=0;
    Message:        STRING(255);
    ArgType:        INT:=0;
    diArg:          DINT:=0;
    lrArg:          LREAL:=0;
    sArg:           STRING(255);
END_VAR

Name

Type

Description

pBuffer

POINTER

Here the address of a variable of type ST_TcPlcMcLogBuffer is to be transferred.

LogLevel

DWORD

A coded specification of the message type. A Logger Levels value from the Global Constants should be used.

Source

DWORD

A coded specification of the message source. A Logger Sources value from the Global Constants should be used.

Message

STRING

The message text.

ArgType

INT

The type of the optional argument.

diArg

DINT

The value of the optional argument, if it is of type DINT.

lrArg

LREAL

The value of the optional argument, if it is of type LREAL.

sArg

STRING

The value of the optional argument, if it is of type STRING.

Behavior of the function block

If pBuffer was supplied correctly and points to an ST_TcPlcMcLogBuffer, which has capacity for at least one further message, the transferred message data are complemented with local time information and entered in the message buffer.