Omron CX-Supervisor User Manual page 171

Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Data Logging at Runtime
11-3-1-3 Number of files in a Data Set
Note:
11-3-1-4 Invalid Data Log Files
170
When a Data Set starts logging a file will be created to hold the logged items,
this file is known as a 'Live' or 'Active' log file (There is only one Live file in a
Data Set file set). When the time period for a Data Set log file expires a new
file is created with a more recent Timestamp, this file then becomes the 'Live'
file and the previous file is now known as a 'Dead' log file. Over a period of
time there can be many 'Dead' files in a Data Set but only one live one. If a
limit has been set on the number of dead files to be kept when this number is
reached the oldest file will be purged automatically as each new file is created.
The number of dead files to be kept for a particular Data Set is managed
automatically by specifying the 'Number of Files to Keep' from the Data Set
Properties Parameters when a Data Set is created. This field is only enabled
when the 'Keep all files' check box is 'unchecked'.
There will always be one Live file for each Data Set.
For example, if the number of files to keep is set to 24 then there the system
will keep 24 Dead files and one Live file, i.e. 25 files in total.
Caution:
No backups are taken when a file is purged. If you wish to keep any data you
must ensure that backups are taken before purging occurs.
If the Keep all files check box is checked no automatic purging will take place
and the System will store all the Dead files created until the disk is full.
Dead files can be copied, moved, deleted etc. as they will not be written to
again by the System.
Live files may be copied (i.e. backed up to another directory) while the Log file
is open but they cannot be moved or deleted as they are locked by the
System. In order to delete or move a live file it must first be closed. See
Opening and Closing Log Files.
Data log files generated during one project sessions will continue to be used in
subsequent sessions, if they are still live. For example, if a system runs during
the day and is shut down at night, then a Data Set with a duration of 7 days will
use the same file for the whole 7 days.
If a session is halted and Data Set Items changed, deleted or new ones added
it is not valid to continue using the existing file. When the session is restarted
and Data Set file opened CX-Supervisor checks to see if there are any
differences between the current Data Set and the Data Set stored in the file. If
any differences are detected the System will mark the existing file as invalid by
altering the Timestamp brackets from "[ ]" to "{{ }}" and create a new file.
For example, if a file Batch1[2000032922].dlv is detected as being invalid it
will be renamed Batch1{{2000032922}}.dlv. A new Batch1[2000032922].dlv
file will then be created to log the new data.
If the file Batch1{{2000032922}}.dlv already exists then the current invalid file
will be renamed Batch1{{2000032922}}_1.dlv and so on.
This is most likely to occur during the development of an application when
Data items are continually being amended and tested.
Invalid files are not part of the Data Set files and can not be purged or found by
the File Management 'next' or 'previous' searches. The data recorded in these
files is not lost and can be viewed using the Data Log Viewer and exported
from them using Export Log. Invalid files can only be deleted using Windows
explorer.
SECTION 11 Data Logging

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents