184
19 DATA LOGGING FUNCTION
19.5 Details of Specifications
File switching condition
In continuous logging, a file switching condition is selected from the following. Note that trigger logging does not require the
configuration of these settings because the stack file is automatically switched to a storage file after as much data as the
specified number of records is written into the stack file.
Special relay (logging data storage file switching in progress) can be used to check if storage file switching is in progress.
The following table lists the setting items that can be used to specify the file switching condition.
*1 File switching occurs before the file grows beyond the specified size.
However, file switching occurs regardless of the setting when:
• The number of records has reached 65500;
• The file size has reached 16M bytes;
• The CPU module is stopped or suspended/resumed.
• Data logging is started and there is an existing stack file.
■Operation example
The following figures show operation examples for various file switching timings.
At the timing in each operation example, file switching (the processing below) is performed.
• Creating a storage file
• Deleting data in a file that is collecting data (the file becomes a file containing only a header.)
Number of records: 1000
File size specification: 512KB
File switching is performed before the file grows beyond the specified size. When the file format is a CSV file, since the output
size of one row (record) varies depending on the data value, the timing of file switching is judged by estimating the next output
size based on the current output size.
Setting item Description
Number of records Specify the number of records within the range of 1 to 65500.
File size
*1
Specify the number of kilobytes within the range of 10 to 16384K bytes.
Condition specification
*1
Specify conditions of the device data to be executed for file switching.
File n
File switching
File n+1
Number of lines
(number of records)
997th
line
998th
line
999th
line
1000th
line
1st
line
2nd
line
3rd
line
Logging Logging Logging Logging Logging Logging Logging
File n
File switching
File n+1
File
size
501K
bytes
504K
bytes
507K
bytes
510K
bytes
3K
bytes
6K
bytes
9K
bytes
Logging Logging Logging Logging Logging Logging Logging