ARS – Archive store value

Block SymbolLicensing group: STANDARD
PIC

Function Description
The block allow to store value into archive subsystem. Written value must be connected to the u input. Value could be simple like bool, int or float, string or matrix/vector. Type of value must be set by the type parameter. The the parameter codetype=13:Reference must be set for vector or matrix. There is one archive item for each column of the matrix. Data are stored only if the input RUN=on is set. The parameter subtype allow write alarm type that write other alarm blocks (for example L->H for bool alarm, HiHi for numeric alarm). the value of this parameter is in range 0 to 7 and is not used in vector/matrix items. This parameter is usualy not needed.

Note 1: The archive subsystem is limited for 255 values, but no more then 512 bytes in one archive item (e.g. 128 values of type Short, 64 values of type Long, 32 values of type Double). Vector (matrix’s column) is truncated to this size and stored into archive and no error nor warning is indicated, if the input array is bigger.

Note 2: The string value is limited to 65535 byte (i.e. characters if only characters from english keyboard is used; UTF-8 encoding is used). String is truncated to this size and stored into archive and no error nor warning is indicated, if the input string is bigger. It is recomended to not overcome 4000 bytes, because some reading functions has limited buffer and could failed for long strings.

Note 3: The parameter id is intended as bind source block (and also source signal) with item in archive (and with alarm subsystem in same cases). So REXYGENcheck unique this binding. The ARS block is intend to be low-level-function writing into archive, therefore parameters are not checked (mainly unique of id is not checked).

Inputs

u

Value to store into archive

Any

RUN

Enable execution

Bool

Parameters

type

Type of all trend buffers  12

Byte (U8)

1 ....

Bool

2 ....

Byte (U8)

3 ....

Short (I16)

4 ....

Long (I32)

5 ....

Word (U16)

6 ....

DWord (U32)

7 ....

Float (F32)

8 ....

Double (F64)

9 ....

Time

10 ...

Large (I64)

11 ...

Error

12 ...

String

13 ...

Reference

arc

List of archives to write the events to

Word (U16)

id

Archive item ID. The block not check if id is unique in whole configuration.  1

Word (U16)

lvl

Alarm level  1

Word (U16)

Desc

Event description string  Value Description

String

subtype

alarm subtype (for special ussage only)

Output

iE

Error code

Error

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