Skip to main content

Archive tables and assignments

History is organised in archive tables: each table says how values are recorded (on change or periodically) and how long they are kept. Assignments say which signals go into which table. For the background, see How history is recorded.

Before you begin​

  • The project is open in the configuration editor. Changing the history settings needs Configuration editing.

Steps​

1. Look at the archive tables​

In the activity bar, click Historian and then Archive tables. A new project has hist_values for measured values and hist_events for events.

Historian with Archive tables, Type assignments, Point assignments, Attribute names and Historian settings; the Archive tables grid with hist_events (Events) and hist_values (Values, On change).
ColumnMeaning
Namehist_ followed by lower-case letters, digits and _
KindValues or Events
Store modeOn change or Periodic (values tables)
Cycle (s)Period of a periodic table
Max interval (s), Min interval (ms)Repeat an unchanged value after this time; hold back faster changes
Columns, AspectsWhat is stored with each value
Max days, Max (GB)Retention: the oldest days are removed beyond these limits
Protect daysThe last days that are never removed for size
ActiveThe table records

Add a table with New row, for example hist_energy with Periodic, Cycle (s) 60 and Max days 3650 for energy counters. Apply the change as usual.

2. Assign signal types​

Type assignments records every instance of a signal type in a table, optionally only one Element of the type (empty: the whole type), with its own Deadband abs or Deadband (%).

Type assignments grid with the columns Table, Signal type, Element, Deadband abs and Deadband (%).

An assignment for an element wins over one for the whole type. Point assignments do the same for single signals by Path; Include no there removes a signal from its type's table.

3. Set the archive of a single signal​

Open the signal, tick Archive on the General tab and open the Archive tab:

Archive tab of the signal Level with History table (type / project default), Include Yes, Default: hist_values — on change · 1 year, Manage tables…, Deadband (absolute), Deadband (% of span), counter (wraps around) and Counter max.
FieldMeaning
History tableThe table; (type / project default) uses the type's assignment or the project default (hist_values for measured values, hist_events for on/off and enumerated signals)
IncludeInherit (type), Yes or No
Deadband (absolute), Deadband (% of span)A change smaller than this is not recorded; empty uses the type's setting
counter (wraps around), Counter maxFor counters that restart at a maximum

On/off and enumerated signals are stored on every change. Manage tables… goes to the archive tables.

4. Plan the capacity​

Click Tools › Archive tables…. The planner lists each table with its number of signals, Retention (days), Quota (GB), current Size, Growth / day over the last seven days, the size At retention, when the quota is reached and the state. Change retention days and quotas there, click Stage N changes, then apply.

Archive tables planner with hist_events and hist_values, their retention, quota, size, growth per day and state OK.

The planner needs the project to be running; otherwise it says that the data volume is unavailable.

5. Check the historian settings​

Historian settings holds the settings of the whole project:

Historian settings with Min free 10 %, Min free 20 GB, Disk warn 80, Disk high 90 and Disk crit 95.
SettingDefaultMeaning
Min free (%), Min free (GB)10, 20Free space below the smaller of the two starts the cleanup
Disk warn (%), Disk high (%), Disk crit (%)80, 90, 95Disk alarm levels; at the critical level value recording pauses
Watch paths—Further disks to watch
Default events tablehist_eventsTable for events
Reserve file (GB)2Space kept free for emergencies
History enabledonOff: nothing is recorded, and an alarm says so
Playback enabledonAllows replaying the history

Result​

The assigned signals are recorded in their tables from the next value on. Check the growth in the planner after a few days and adjust retention and quotas.