How-to
How to log Ignition tags every 15 minutes to a database
Short answer
To capture Ignition tag values on a strict 15-minute schedule, use a scheduled SQL Bridge transaction group that inserts a snapshot row into a database table, then point the report's query at that table. The tag historian is deadband-driven and stores asynchronously, so it cannot be set to one fixed 15-minute timestamp.
On this page
- Why won't the tag historian log on a fixed 15-minute schedule?
- Which module writes the scheduled snapshots?
- How do you verify the tags before scheduling writes?
- How do you build the 15-minute transaction group?
- How many rows will the schedule write?
- How do you point the report at the snapshot table?
- What breaks 15-minute logging in practice?
- Questions asked
You cannot set a 15-minute capture interval in the report. The Reporting module's designer displays data that has already been collected; it does not decide when values are taken. To log tags every 15 minutes, build a SQL Bridge transaction group scheduled at a 15-minute interval so each execution inserts a snapshot row into a database table, then point the report's query at that table. Keep three jobs separate while you commission this: acquire the values into tags, record them on schedule, and display the stored rows — a report full of quarter-hour timestamps proves nothing about when the values were captured.
Why won't the tag historian log on a fixed 15-minute schedule? #
Because the Tag Historian stores timestamped values asynchronously: each tag's own tag group execution rate and deadband decide when a value is written, so there is no single 15-minute timestamp setting anywhere in the historian.
That is the design, not a defect. The historian is built for trends, where storage volume follows how often values change; a scheduled, row-oriented write is built for records at known times — shift reports, batch records, billing totals. Decide which of the two you need before touching a group:
| You need | Use | What lands in the database |
|---|---|---|
| One row written every 15 minutes with the current values | A scheduled SQL Bridge transaction group | A snapshot row per execution |
| A trend of everything that changed, viewed in 15-minute buckets | Tag Historian plus a historical query | Averaged or interpolated points, not captured values |
For the storage-side trade-offs between those two paths, read Tag Historian versus SQL Bridge storage for a short-term trend database. If the real requirement is logging only while a condition holds rather than on a clock, that is conditional collection — logging a tag only while another tag is true — not a scheduled snapshot.
Which module writes the scheduled snapshots? #
SQL Bridge does: its transaction groups execute at a fixed time interval or on a user-defined schedule, and an execution generally inserts a new row into an ordinary database table.
The user manual states both behaviors plainly, and the vendor's free Inductive University videos walk the same ground. Before you build the group, confirm three prerequisites in the Gateway: the SQL Bridge module is installed, a database connection is configured and healthy, and you have decided whether the group creates its destination table or writes to one you prepare yourself. Inspect the resulting schema yourself — column types and the timestamp column are your contract with the report.
One safety note belongs here: transaction groups are bi-directional, and items can be mapped to write database values back out to OPC addresses. This job is logging. Map every item in the tag-to-database direction only, and leave the write-back direction unmapped.
How do you verify the tags before scheduling writes? #
Check each tag's live value and quality in the Designer, and confirm its tag group execution rate is well under 15 minutes: a snapshot stores the value the tag last read, so the tag's own rate bounds how fresh each row is.
The arithmetic is direct. A tag executing every 60 s is at most about 60 s stale in any snapshot; the same group fed by a tag on a 10-minute rate can write a value up to 10 minutes old at a quarter-hour boundary. The field rule is the same at any interval: poll faster than you record. Prove updates reach Ignition with one controlled process change, and if quality is bad, work upstream — device connection, driver diagnostics, tag address, tag group mode. A good live tag with a wrong stored value points downstream instead: item mapping, then query, then report binding. For the end-to-end method, tracing a PLC tag from controller to historian display applies unchanged.
How do you build the 15-minute transaction group? #
Create the group as a one-way snapshot — tags in, one new row out, executed on a 15-minute timer — and take it in seven steps from empty project to verified table.
- Create a transaction group in the project and select the database connection that holds, or will hold, the snapshot table.
- Add each tag as a group item and map it to a destination column, matching the column type to the tag's data type and engineering units.
- Include a timestamp column populated by the group, so every row carries its own execution time instead of trusting the report's clock.
- Configure the operation so each execution inserts a new record; an update-style operation keeps overwriting one row and defeats a time series.
- Set timing to a 15-minute interval, or choose the user-defined schedule option when rows must land on :00, :15, :30 and :45.
- Clear any trigger condition that would suppress executions — the manual documents that a trigger can be used to prevent a planned execution.
- Run one execution, inspect the schema and the inserted row, then enable the group and watch its execution status for errors.
Two commissioning tests settle the behavior the manual leaves to configuration. Force one tag to bad quality and inspect what the row contains, so a bad-quality row is a decision you made, not a surprise during an audit. Stop the database connection briefly and confirm the failed execution is visible in the group's status, so a silent gap cannot pass unnoticed.
How many rows will the schedule write? #
One row per execution: 96 rows a day and 35,040 a year, and the number of tags in the group changes the column count, never the row count.
Worked example, six tags in one group:
- Executions per day: 24 h × 4 executions/h = 96
- Rows a year: 96 executions/day × 365 days = 35,040
- Payload per row: 8-byte timestamp + 6 values × 4 bytes = 32 bytes (illustrative)
- Stored size at an illustrative 100 bytes per row: 35,040 × 100 B = 3,504,000 B ≈ 3.3 MB a year
At roughly 3 MB a year, a snapshot table will not outgrow anything, and you can leave it alone. Historian storage is the opposite case: its volume follows change rate and deadband, so retention there is governed by setting historian pruning and retention, not by the snapshot schedule.
How do you point the report at the snapshot table? #
Query the snapshot table directly: select the timestamp and value columns, filter rows between the report's start and end, sort by timestamp ascending, and bind the report's table or chart to the returned dataset.
The report's refresh rate is a display setting; it collects nothing. Use a half-open range — start inclusive, end exclusive — so adjoining periods share each boundary row exactly once. Preview a range that contains rows you have already inspected and compare cell values against the table itself. When something is missing, split the fault the same way as with tags: a row present in the table but absent from the report is a query filter or binding fault; a row absent from the table is a group execution or database write fault. Also compare a stored timestamp with its displayed form once, because time-zone conversion or formatting between Gateway, database and report can shift what the operator reads.
What breaks 15-minute logging in practice? #
Five faults cover nearly every bad snapshot table: update-style operation, a trigger skipping executions, rows lost or duplicated around database reconnects, an overreaching delete action, and timestamps that never land where you expected.
Each has a fix you can commit to now:
- One row that keeps changing. The operation is updating, not inserting; reconfigure the operation to insert new records and verify two new rows from two executions.
- The timer runs but rows skip. A trigger condition is suppressing executions; remove it, or make it an explicit documented condition and prove it with the same test.
- Gaps and duplicate rows after a connection drop. A failed execution leaves a gap, and a reconnect can duplicate writes — resolving Ignition transaction group duplicate rows after a reconnect covers the pattern.
- A trimming delete action. If you add one to cap table size, prove it on a copy first; a transaction group delete action that removed all rows is the documented failure mode.
- Timestamps off the quarter-hour. A plain interval's phase follows when the group started; if the boundaries must be clock-aligned, switch to the user-defined schedule option and re-verify four consecutive rows.
None of this is visible in the report designer, which is exactly why the report is the last thing you configure: table first, query second, layout last.
Questions asked
Can I make the tag historian itself log every 15 minutes?
Not with one setting. The historian writes when a tag's value changes beyond its deadband, at that tag's execution rate. Stretching the deadband to 15 minutes would store long flat lines and hide every change between them. For a row written on a clock, use a scheduled transaction group.
Why does my report show quarter-hour data while the snapshot table stays empty?
The report is bound to a different source, such as tag history or another table, not your snapshot table. Open the report's data query and confirm its connection and table name. If the query already targets the right table, the fault is upstream in transaction group execution, not in the report.
Should the stored timestamps land exactly on :00, :15, :30 and :45?
Only if the report labels periods by wall-clock quarter-hour. A plain 15-minute interval guarantees spacing, not alignment, because its phase follows when the group started. Run the group for an hour, read four timestamps back from the table, and if boundaries are required but missing, switch to the user-defined schedule option.
What happens to snapshots during a database outage?
Executions that cannot write fail and leave gaps; the group does not backfill those intervals when the connection returns. After any reconnect, check the table for duplicate rows as well as missing ones before trusting that day's report.
How much database space does a 15-minute snapshot table need?
One row per execution: 96 a day and 35,040 a year, independent of tag count, because tags set columns rather than rows. At an illustrative 100 bytes per stored row, a six-tag group uses about 3.3 MB a year, which is not a constraint worth engineering around.