beckhoff TF4100 — 4.2.1.6.3 FB_CTRL_LOG_MAT_FILE

PLC API Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_LOG_MAT_FILE_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_LOG_MAT_FILE_PARAMS: STRUCT tLogCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; sFileName : STRING; nNumberOfRows : INT(1..10); sMatrixName : STRING; arRowDescription : ARRAY [1..10] OF STRING(25); bWriteTimeStamps : BOOL := TRUE; bWriteRowDescription : BOOL := TRUE; pLogBuffer_ADR : POINTER TO ST_CTRL_MULTIPLE_PWM_OUT_DATA; nLogBuffer_SIZEOF : UDINT; END_STRUCT END_TYPE TF4100 129 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 nLogged Columns DINT Number of columns written in the file 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 _ _ _ MAT FILE _ _ PARAMS Parameter structure of the logging function block