TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.8.5 MC_AxRtLoggerRead_BkPlcMc (from V3.0)

PLCopen Motion Control sArg : The value of the optional argument, if it is of type STRING. Behaviour of the function block If pBuffer was supplied correctly and points to an ST_TcPlcMcLogBuffer [ } 107] , 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. 4.4.8.4 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 [ } 218] . VAR_INPUT Spare: INT; END_VAR VAR_INOUT pBuffer: POINTER TO ST_TcPlcMcLogBuffer; END_VAR Spare :

The required number of free messages in the LogBuffer. pBuffer : This parameter is used to transfer the address of a variable of type ST_TcPlcMcLogBuffer [ } 107] . Behaviour 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 [ } 187] function block should be used to include the whole history in the Windows Event Viewer. NOTE! 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.

4.4.8.5 MC_AxRtLoggerRead_BkPlcMc (from V3.0) The function block reads a message from the LogBuffer of the library. Further information about creating a log buffer can be found under FAQ #10 in the Knowledge Base [ } 218] . NOTE! This function block is used by diagnostics tools via ADS. A direct call from the PLC application generally makes no sense. VAR_INOUT Entry: INT:=0; pBuffer: POINTER TO ST_TcPlcMcLogBuffer; pEntry: POINTER TO ST_TcPlcMcLogEntry; END_VAR VAR_OUTPUT Result: DWORD:=0; END_VAR PLC Library Hydraulics 186 Version: 1.4