IEC 62056-21:2002 File I/O

IEC 62056-21:2002 File I/O

IEC62056-21:2002 File I/O communication protocol

Supported device types and versions


This protocol analyzes the files containing measurement data according to the IEC 62056 international standard.

Communication line configuration


  • Communication line category File I/O (communication via files).

File I/O communication line configuration parameters:

  • Input file - complete path to the file or directory with data.

In the case of analyzing a particular file, its size is tested with a 1-second period. If the file does not increase in size during two consecutive periods, it is processed.

If a directory is entered (in the case of a Win32 platform with a backslash (\) at the end), all files that match the mask are processed (see Station protocol parameters).

  • Archive directory -path to the directory, where the processed files are archived. If the directory is not specified, the processed files will be deleted.

Communication line protocol parameters


Dialog window communication line configurationProtocol parameters tab, select the "IEC62056-21:2002 File I/O" protocol.

Table 1

Parameter

Description

Unit

Default value

Profile

Analyzed profile.

-

P.01

Gorlitz PRM62 Module

Files from device Gorlitz PRM62 are analyzed.

YES/NO

NO

Archive Subdirectory Time Mask

Mask for creating subdirectories in the main archive directory according to the time of file processing or timestamp of the file (if the Input file parameter specifies a directory).

-

rrrrmmdd

Formatted Codes (Annex C)

Numerical addresses of I/O tags are used according to the specification of the IEC62056-21 standard, Annex C.
If numerical addresses are used, the station address is acquired from the value of the object with address D000, the timestamp is acquired from the value of the object with address C001.

YES/NO

NO

External Command File 1, 2

The complete path to a periodically called external command file (.cmd). It is used only if a non-empty value has been configured. It is possible to configure two independently executed command files with different periods.

-

-

External Command File Period 1,2

Call period of the external command file 1 or 2.

mi:ss

1:00

Call External Command File 1,2 Synchronously

Call external command files 1 or 2 synchronously.

YES/NO

YES

Ext. Command File After Activation

The complete path to the external command file which is launched on change of redundancy status to HS. It is called only once and always synchronously. It is used only if a non-empty value has been configured.

-

-

Debug Files Flow

Show debug information about processed files.

YES/NO

YES

Debug Files Content

Show debug information with the content of processed files.

YES/NO

YES

Debug Values

Show debug information with measured values of the measure points.

YES/NO

YES

Files Checking Period

Period of input directory content check (if the Input file parameter specifies a directory).

mi:ss

1:00

Unknown Files Backup Directory

File, where unknown files are saved (if the Input file is a directory). If it is not written, the files will be canceled. The unknown files are the files not-matching the configured mask (see Station protocol parameters) or the station with the required device number was not found.

-

-

Future Data Filter

Time data filter. If the timestamp of acquired values is newer than the current time by more than the configured number of hours, they are ignored. Enter 0 (zero) to ignore the time filter.

hours

24

History Data Filter

Time data filter. If the timestamp of acquired values is older than the current time by more than the configured number of hours, they are ignored. Enter 0 (zero) to ignore the time filter.

days

31

Abnormal Timestamp Data Dir

Directory where the files with ignored data by time filter will be saved (Future Data Filter and History Data Filter).

-

-

After Processing Timeout

A delay, which is inserted after the file was analyzed.

ss.mss

0.100

Additional Error Logfile

Error file to write information about errors during processing (unknown file in directory, too old or too new values). An empty value means that this error file will not be created.

-

-

Communication station configuration


  • Communication protocol "IEC62056-21:2002 File I/O".

  • Station address - the station address is ignored if the Input file is the particular file. If the directory is entered, the device number (electrometer) must be entered to assign the processed file to a particular station. If the station with this number does not exist, the file is considered to be unknown (see communication line protocol parameter Unknown files backup directory).

Station protocol parameters