MC_AxRtLoggerDeSpool_BkPlcMc (from V3.0)

MC_AxRtLoggerDeSpool_BkPlcMc (from V3.0) 1:

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

MC_AxRtLoggerDeSpool_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    Spare:      INT;
END_VAR

Name

Type

Description

spare

INT

The required number of free messages in the LogBuffer.

MC_AxRtLoggerDeSpool_BkPlcMc (from V3.0) 3: Inputs/outputs

VAR_INOUT
    pBuffer:    POINTER TO ST_TcPlcMcLogBuffer;
END_VAR

Name

Type

Description

pBuffer

POINTER

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

Behavior of the function block

With each call the function block removes a message from the LogBuffer, if the number of free messages is smaller than the minimum number transferred in Spare. An MC_AxRtLoggerSpool_BkPlcMc function block should be used to include the whole history in the Windows Event Viewer.

MC_AxRtLoggerDeSpool_BkPlcMc (from V3.0) 4:

Using this function block makes sense whenever a write-restricted mass storage medium is used (typically a FLASH DISK). As a minimum, a limited history of 10 to 15 messages is enabled.