Pag. 109 di 152
10.3 Type 1 files
Type 1 files are dedicated to the “
load profiles logging service
(
file number
from 01.00 to 01.FF).
This service is mainly designed for recording load profiles (evolution of the energy counters vs. time) by
means of a periodical storage on file of the content of one or more Modbus registers (
input registers
and/or
holding registers
). It can therefore be used to record any group of parameters among those performed by
the instrument.
File 01.00 is a
configuration file
. It contains the registers to be sampled and the sampling interval.
File 01.00 is a non-homogeneous structured file where each data record is a
configuration profile
. A
validity time range may be specified for each profile. It is thus possible to program the instrument to
automatically switch from a configuration profile to another at a given moment in time.
Each configuration profile contains:
a descriptor for each configuration parameter (input variables) to which a value is assigned;
a descriptor for each output variable that will be written to the instrument generated files.
Writing one or more valid configuration profiles in file 01.00 automatically activates the service. To disable
the service, file 01.00 must be deleted.
The service will automatically generate a number of data files (one for each calendar day): each such file
contains samples collected between 00:00:00 and 24:00:00 hours of the corresponding day (the sampling
time is the system clock
wall time
).
The maximum number of data files on disk is 255 (files from 01.01 to 01.FF).
The name of the data files is the same as the configuration file valid at creation time.
The configuration file name is user defined.
The maximum number of data files to be stored on disk is configurable: after the maximum is reached,
oldest files will be overwritten.
The data files written by the instrument are homogeneous structured files: after collecting each sample, a
data record is appended at the end of the current data file, that is, the data file of the day when the
sampling time occurs (
wall time
).
Samples are collected:
at all times (
wall time
) multiples of the sampling interval, starting from time 00:00:00 (beginning of
the day);
each time one of the following events occur:
−
the instrument is turned on (after a power failure);
−
the instrument is reset;
−
the clock is set;
−
the service configuration is changed;
−
energy counters are reset;
Each data record contains:
a sample of each variable listed in the configuration file;
a time-stamp (with configurable format) of the sampling time;
an identification designating the reason (event) which triggered the sampling;
The maximum size of a data file can be set during the configuration: if the size limit is exceeded within the
same day, writing to the file is disabled until the day ends. Sampling is restarted the following day on a
new file.