User manual

IEC61131 User and Reference Manual
April 22, 2008
248
If the full file handling is configured to Stop logging when the maximum number of records
and maximum number of log files has been reached and the buffer is filled then data logging
fails.
If Logging mode is set for Internal drive then the log file is saved on the internal
drive.
If the logging mode is set for Internal drive, auto copy then once a mass storage
drive is inserted in the USB host port the data files are copied to the mass storage
device.
If the logging mode is set for Internal drive, auto move then once a mass storage
drive is inserted in the USB host port the data files are moved to the mass storage
device.
If the logging mode is set for Mass storage drive then the log file is saved on the
mass storage drive.
If the full file handling is configured to Overwrite oldest log file when the maximum number
of records and maximum number of log files has been reached and the buffer is filled then
data logging continues by overwriting the oldest log file. In this case Log file 1 is over written
and the process continues repeatedly.
File Formats
Data Log to file requires 2 types of files.
The first is the directory file which is stored for each log in the specified path on the
target drive.
The second type of file is the actual data files. There may, and likely will be, multiple
data files for each log that is created.
Directory File
The directory file contains the list of all datalog filenames, excluding path information, for the
specified log. Each file name is on a new line separated by the log file tag. This file is used to
determine the actual log file names so that they can be read by SCADALog, or another
process.
The directory file is stored in XML format on the target drive in the same directory as the log
files. Its name is controllerID_logname.xml. The path is excluded from controllerID_logname.
The attribute name in the logDirectory tag contains the full log name.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<logDirectory logName="datalogName">
<!--List of data log files-->
<logFile>A288389_ datalogName _20080324_082311.nlg</logFile>
<logFile>A288389_ datalogName _20080324_083011.nlg</logFile>
<logFile>A288389_ datalogName _20080324_083611.nlg</logFile>
<logFile>A288389_ datalogName _20080324_084311.nlg</logFile>
<logFile>A288389_ datalogName _20080324_085011.nlg</logFile>
</logDirectory>