Historians
The Historians category of the Connections screen holds the plant’s time-series databases: PI Web API, InfluxDB, TimescaleDB and the three on this page. Each one integrates through the technology the product offers:
| Historian | How the CMS talks to it | Collection | Delivery |
|---|---|---|---|
| AVEVA Historian (formerly Wonderware InSQL) | SQL Server — Runtime database | SQL_SERVER | SQL_SERVER_EXEC |
| Ignition | The SQL database where the gateway writes the history (SQL Server, PostgreSQL or MySQL) | that of the database | that of the database |
| Canary | Views Web API (read) and Store and Forward Web API (write) | Historian (PI / Canary) | Historian — write (PI / Canary) |
AVEVA Historian
It is SQL Server underneath: the Connection has the same fields as the SQL Server Connection,
with the Runtime database. The Collection is an SQL query on the Historian’s tables and views:
-- Latest values per tag
SELECT TagName, Value, DateTime, Quality FROM Live WHERE TagName IN ('Forno1.Temp', 'Forno1.Pressao');
-- History of the last hour, one row per minute (WideHistory: one column per tag)
SELECT DateTime, [Forno1.Temp], [Forno1.Pressao]
FROM WideHistory
WHERE DateTime >= DATEADD(hour, -1, GETDATE()) AND wwRetrievalMode = 'Cyclic' AND wwResolution = 60000;The user needs read access on Runtime. The Delivery writes through INSERT INTO History — the Historian
only accepts writes on tags that are not I/O tags (“manual” tags).
Ignition
The Ignition historian stores the samples in a customer SQL database: sqlth_te (tags), sqlth_partitions
(one partition per month) and sqlt_data_<driver>_<year>_<month> (the values). In the Ignition Connection,
choose the Historian database — SQL Server, PostgreSQL or MySQL — and fill in that database’s fields. The
Collection and the Delivery are those of the chosen database.
-- PostgreSQL: values of the last hour of a tag, in the current month's partition
SELECT te.tagpath, d.t_stamp, COALESCE(d.floatvalue, d.intvalue) AS valor, d.dataintegrity
FROM sqlt_data_1_2026_12 d
JOIN sqlth_te te ON te.id = d.tagid
WHERE te.tagpath = 'forno1/temp' AND d.t_stamp >= (EXTRACT(EPOCH FROM now() - interval '1 hour') * 1000);Canary


| Field | What it is for |
|---|---|
| Views Web API URL | Reading, e.g. https://server:55236 |
| Store and Forward URL | Writing, e.g. https://server:55293. Empty = read-only Connection |
| API token | Created in Canary Admin, under Identity > Security > API Tokens. With Tag Security on, the token needs read access on the Views and write access on the DataSets |
| Target historian | Server that receives the write in Store and Forward. Empty = localhost |
| Validate TLS certificate / CA certificate | Internal CA of the Canary server |
The Collection and the Delivery are the historian ones, the same as PI Web API: tags with an alias (the
full path in Canary, e.g. Planta.Forno1.Temp), current value, recorded, interpolated and
summary modes, a time window with {{ultimaExecucao}} (*-1h becomes now-1h in Canary) and emitting one
message with everything or one per instant. In summary mode, the summary type is the Canary aggregate
(e.g. TimeAverage2). Good quality is the OPC 192–255 range.
When writing, the tag is DataSet.Tag and the DataSet must already exist — the CMS does not create
DataSets. Each Delivery opens a session in Store and Forward, writes the values with quality 192 and releases
the session.