beckhoff TF4100 — 4.2.1.6.2 FB_CTRL_LOG_DATA

PLC API Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_LOG_DATA_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_LOG_DATA_PARAMS: STRUCT tLogCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; sFileName : STRING; sNetId : T_AmsNetId := ''; tFileOperationTimeou : TIME := T#3s; nNumberOfColumn : INT(1..10); arColumnHeadings : ARRAY [1..10] OF STRING; bAppendData : BOOL := FALSE; bWriteTimeStamps : BOOL := TRUE; bWriteColumnHeadings : BOOL := TRUE; bWriteAbsoluteTimeStamps : BOOL := FALSE pLogBuffer_ADR : POINTER TO BYTE; nLogBuffer_SIZEOF : UDINT; END_STRUCT END_TYPE TF4100 126 Version:

2.2.4 Name Type Description eState E CTRL STATE _ _ State of the function block bFileOpen BOOL A TRUE at this output indicates that the file has successfully been opened. bFileClosed BOOL A TRUE at this output indicates that the file has successfully been closed. fBufferUsage FLOAT Current fill level of the external buffer as a percentage bBusy BOOL A TRUE at this output indicates that logging a row is active. eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL LOG _ _ _ DATA PARAMS _ Parameter structure of the logging function block