MC_AxRtLoggerDeSpool_BkPlcMc (from V3.0)
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.
Inputs
VAR_INPUT
Spare: INT;
END_VAR
Name | Type | Description |
---|---|---|
spare | INT | The required number of free messages in the LogBuffer. |
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.
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. |