MC_AxRtLogAxisEntry_BkPlcMc (from V3.0)

MC_AxRtLogAxisEntry_BkPlcMc (from V3.0) 1:

The function block enters an axis-related 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_AxRtLogAxisEntry_BkPlcMc (from V3.0) 2:

All axis-related library function blocks use this function block for message outputs.

MC_AxRtLogAxisEntry_BkPlcMc (from V3.0) 3: 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.

MC_AxRtLogAxisEntry_BkPlcMc (from V3.0) 4: Inputs/outputs

VAR_INOUT
    Axis:           POINTER TO Axis_Ref_BkPlcMc;
END_VAR

Name

Type

Description

Axis

POINTER

Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred

Behavior of the function block

The only difference between the function block and MC_AxRtLogEntry_BkPlcMc is that the axis name appears before the message.