ARC – REXYGEN archive

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio prev next ARC

Function Description
The ARC block is intended for archives configuration in the REXYGEN control system. The archives can be used for continuous recording of alarms, events and history trends directly on the target platform. The output Archives of the EXEC block must be connected to the prev input of the first archive. The following archives can be added by connecting the input prev with the preceding archive’s output next. Only one archive block can be connected to each next output, the output of the last archive remains unconnected. The resulting archives sequence determines the order of allocation and initialization of individual archives in the REXYGEN system and also the index of the archive, which is used in the arc parameter of the archiving blocks (see chapter 10). The archives are numbered from 1 and the maximum number of archives is limited to 15 (archive no. 0 is the internal system log).

The atype parameter determines the type of archive from the data-available-after-restarting point of view. The admissible types depend on the target platform properties, which can be inspected in the Diagnostics section of the REXYGEN Studio program after successful connecting to the target device. The following options are usually available:

  • 1: RAM memory: The archive is allocated in RAM memory (it is irretrievably lost after restarting RexCore).
  • 2: Permanent memory: The archive is allocated in backup memory, e.g. CMOS (remains after restarting RexCore).
  • 3: Disk: Archive is saved to disk (remains after restarting RexCore).

Archive consists of sequenced variable-length items (memory and disk space optimization) with a timestamp. Therefore the other parameters are the total archive size in bytes asize and maximum number of timestamps nmarks for speeding-up the sequential seeking in the archive.

The frequency of writing values can be influenced by the period parameter. For devices using flash memory or SD cards as a disk, it is not suitable to write values too often, therefore it is appropriate to set this parameter to a value in the order of minutes. Furthermore, it is possible to select a suitable source of time stamps with the timesrc parameter.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

Input

prev

Input for chaining archives

Long (I32)

Parameter

atype

Archive type  1

Long (I32)

1 ....

RAM memory

2 ....

Permanent memory

3 ....

Disk

asize

Archive size [bytes]   256 102400

Long (I32)

nmarks

Number of time stamps   2 720

Long (I32)

ldaymax

Maximum size of archive per day [bytes]   1000  2147480000 1048576

Large (I64)

period

Period of writing data to disk [s]  60.0

Double (F64)

timesrc

Source of timestamps  1

Long (I32)

1 ....

CORETIMER

2 ....

CORETIMER (precise)

3 ....

RTC (UTC)

4 ....

RTC (localtime)

5 ....

PFC

6 ....

TSC

Output

next

Output for chaining archives

Long (I32)

2024 © REX Controls s.r.o., www.rexygen.com