...
All four types of archives can be created using template archives:
- Archive object values - (primary archives) allows to archive allow archiving of items of Device Definition. Archiving can be either periodical or on value change.
- Calculate archived values by statistical function (statistical archives) - allows applying of a statistical function to a defined template archive.
- Calculate archived values by defined statement (evaluated archives) - allows defining a custom formula using existing objects of Historical value type. The formula is defined in the Statement tab. The results of the calculation are again values, that will be archived.
- Fill archive from the script (Value storage) - values can be written either from an ESL script or manually from the process D2000 HI.
...
- The "Publish values" option must be checked.
- The Target object (or Target column or Target structure) must be specified, which is the Device Definition item (e.g. DD.Generator^PowerArc).
- The template archive name is derived from the Device Definition name and the item name configured as the Target object (for example, if the Target object is DD.Generator^PowerArc, the template archive name will be DD.Generator.PowerArc).
Note: this feature automatically ensures that no other template archive (or another template eval tag) is accidentally published to the same item. - Access to archive values (from an ESL script, from a HI process, from a graph, etc.) is through an item of a specific Device (configured as a Target Object) that has this Device Definition (e.g. DI.Generator1^PowerArc).
Kotva archivovat_hodnoty_objektov archivovat_hodnoty_objektov
ARCHIVE OBJECT VALUES
| archivovat_hodnoty_objektov | |
| archivovat_hodnoty_objektov |
This archive allows defining a template primary archive that provides primary archiving of Devices that are based on this Device Definition.
...
The Target object must be an item of Device Definition (e.g. DD.Generator^PowerArc) - it must be the same Device Definition that is configured as an Archived object (but of course, the column must be different).
Figure 1: Example configuration of the DD.Generator.PowerArc template primary archive, which archives the Power item from the DD.Generator Device Definition and publishes it to the PowerArc item of the same DD.Generator Device Definition.Kotva obr1 obr1
Kotva prepocet_stat_funkciou prepocet_stat_funkciou
CALCULATE ARCHIVED VALUES BY STATISTICAL FUNCTION
| prepocet_stat_funkciou | |
| prepocet_stat_funkciou |
This archive allows the definition of a template statistical archive, which ensures the calculation of a statistical function over another source archive - a Historical value, which must be another template archive.
The Target object must be an item of Device Definition (e.g. DD.Generator^PowerArcAvg) - it must be the same Device Definition that the source archive configured as a Historical value has as a Target object (but of course, the column must be different).
Figure 2: Example of the DD.Generator.PowerArcAvg template statistics archive configuration, which calculates statistics over the DD.Generator.PowerArc template archive (see Figure 1) and publishes it to the PowerArcAvg item of DD.Generator Device Definition.Kotva obr2 obr2
Kotva prepocet_zad_vyrazom prepocet_zad_vyrazom
CALCULATE ARCHIVED VALUES BY DEFINED STATEMENT
| prepocet_zad_vyrazom | |
| prepocet_zad_vyrazom |
Todo - unimplemented
This archive allows you to define a template calculated archive over other template archives and, possibly, over other non-template archives. The following must be true:
- only template archives that work with the same Device Definition that is configured as a Target column of this template archive can appear in the expression
- other, non-template archives may appear in the expression. However, zero-index structured archive entries must not occur (e.g. H.MyStruct[0]^Col1 or H.MyStructCol[0])
Kotva archiv_plneny_skriptom archiv_plneny_skriptom
FILL ARCHIVE FROM SCRIPT (VALUE STORAGE)
| archiv_plneny_skriptom | |
| archiv_plneny_skriptom |
This archive allows you to define a template value storestorage. No source is specified when configuring the value store. The Target structure must be am an item of Device Definition (e.g. DD.Generator^PlanArc).
Figure 4: Example of the DD.Generator.PlanArc template value store storage configuration, which publishes values to the PlanArc item of DD.Generator Device Definition.Kotva obr4 obr4
...

