PLC-API tFileOperationTimeout : TIME := T#3s; (* file operation timeout *) nNumberOfColumns : INT(1..10); arColumnHeadings : ARRAY [1..10] OF STRING; bAppendData : BOOL := FALSE; bWriteTimeStamps : BOOL := TRUE; bWriteColumnHeadings : BOOL := TRUE; bWriteAbsoluteTimeStamps : BOOL := FALSE; (* Set to true if the NT-time form the local machine should logged in the first column. *) (* The log cycle time must than be greater or equal T#5s!!! *) pLogBuffer_ADR : POINTER TO BYTE; nLogBuffer_SIZEOF : UDINT; END_STRUCT END_TYPE tLogCycleTime : Cycle time with which entries are written into the log file. This must be greater than or equal to the TaskCycleTime. tTaskCycleTime :
Cycle time with which the function block is called. If the block is called in every cycle this corresponds to the task cycle time of the calling task. sFileName : Name and path of the log file, e.g.: d:\Logfile.csv. sNetId : The file is written on the system with this net id. tFileOperationTimeout : Timeout for all file operations. nNumberOfColums : Number of columns written into the file (maximum 10). arColumnHeadings : Array of strings that contain the column headings. bAppendData : If this parameter is TRUE, then new data sets are appended when a file is opened again. Otherwise the file is overwritten without query , and this will delete any content that already exists. bWriteTimeStamps :
If this parameter is set to TRUE, the time stamp of the measurement is written into the first column of the file. bWriteColumnHeadings : If this parameter is set to TRUE, the column headers are written into the first row of the file. bWriteAsoulteTimeStamps : If true, the NT-time from the local system is used as timestamp. In this case, the minimum log cycle time is 5s! pLogBuffer_ADR : Address of the external LogBuffer. To be recognised, the buffer's address must be unequal to 0. nLogBuffer_SIZEOF : Size of the LogBuffer. The buffer must be an ARRAY OF BYTE with at least 256 elements. The size of the buffer can be optimised with the aid of the fBufferUsage output.
NOTE The parameter set can only be changed when the file is closed (bFileClosed = TRUE)! Otherwise, errors can occur during file handling! TS4100 115 Version: 1.1