Explainer
Log one-second trends and one-minute reports in one historian
Short answer
Yes. One historian archive serves both rates: keep the one-second acquisition for trends and add either a second one-minute logging schedule on the same tag or a one-minute aggregate computed from the one-second records. Choose the aggregate for sums and averages, the second schedule only when the report must acquire its own minute value; one-second logging stores 60 times the records.
On this page
- Can I use the same historian for 1-second trends and 1-minute reports?
- Should the one-minute values come from a second schedule or an aggregate?
- How do I choose the one-minute path for an energy meter?
- How much more data does 1-second logging generate?
- How many archive files does a one-minute save cycle create per day?
- How do I prove both the trend and the report path work?
- When is a second archive the right answer after all?
- Questions asked
One historian can carry both rates. Keep the meter tag logging at one second for the trend, and feed the one-minute report either from a second one-minute logging schedule on the same tag or from a one-minute aggregate computed over the one-second records; a second historian is not required. The choice between those two one-minute paths is about what the report number means: a scheduled sample is a value acquired at the minute, an aggregate is a calculation across the sixty one-second values inside that minute. Below are the decision rule, the volume arithmetic behind the fast cycle, the file-rotation cost of a one-minute save cycle, and the checks that prove both paths.
Can I use the same historian for 1-second trends and 1-minute reports? #
Yes — one historian archive can serve both use cases without a second historian: either add a one-minute logging schedule beside the one-second schedule, or build a one-minute aggregate over the one-second records. Serving two use cases from one archive is a normal historian pattern; the same flexibility that separates long-term storage from short-term trend data also carries two intervals in one place. Where the setting lives depends on the platform: in InTouch HMI, historical logging is configured from the File menu through Configure to Historical logging, and the tag-level options there define the logging cycle.
Two preconditions decide whether it works on your system. The historian must accept more than one logging schedule writing to the same archive, or offer aggregation over an existing archive; confirm both in the logging configuration before planning around either. And the tag chain must be sound: the variable on the trend screen, the tag the driver updates, and the tag the historian is bound to must be the same identity, with the driver scanning the meter at one second or faster. Logging at one second a tag the driver updates every five seconds stores repeated values, not extra information.
Should the one-minute values come from a second schedule or an aggregate? #
Use a second schedule when the report must acquire its own value each minute; use an aggregate when the report needs a calculation — a sum, an average, a minimum or a maximum — across the one-second records inside the minute. The two paths store different facts. A scheduled sample answers what the meter read at the minute mark; an aggregate answers what it did across the minute. A report that asks for consumed energy or average load needs the aggregate; a report that needs a reading acquired independently, such as a demand snapshot on its own schedule, needs the second schedule.
Whatever aggregates you use, pin down three definitions before believing the numbers: which samples belong to a minute (window boundary), whether the result is stamped at the window start or end, and what happens when samples are missing or bad quality. When the one-second history already exists, the same one-minute values can also be produced when the report runs instead of being stored — downsampling old Ignition historian data to one-minute averages walks that route for data already collected.
| One-minute path | What it stores | The number means | Choose when |
|---|---|---|---|
| Second logging schedule | one acquired value per tag per minute | the reading at the acquisition instant | the report must sample on its own schedule |
| Aggregate over the 1-second records | one computed value per tag per minute | a sum, average, minimum or maximum across the minute | totals, averages, peaks |
| Report-time downsampling | nothing new; computed when the report runs | the same aggregates, on demand | history exists and storage must not grow |
How do I choose the one-minute path for an energy meter? #
For an energy report, take the aggregate path: sixty one-second samples averaged and converted give 4.2 kW × (1 ÷ 60) h = 0.07 kWh per minute, a figure no single one-minute sample can produce. There are two correct routes, depending on the tag type. With a power tag in kW, average the one-second samples and multiply by the window length in hours. With a cumulative kWh register, never sum the readings; take the last value minus the first.
Worked minute, both routes over the same window:
- Power route: the sixty one-second kW samples average 4.2 kW, so the minute carries 4.2 kW × (1 min ÷ 60 min/h) = 4.2 × 0.0167 h = 0.07 kWh.
- Register route: the register moves from 1,284.60 kWh to 1,284.67 kWh, so 1,284.67 − 1,284.60 = 0.07 kWh.
The two routes agree to the digit, and that agreement is the acceptance test for the aggregation configuration. Keep revenue billing on the meter's own registers; these historian figures are operational. The second-schedule path earns its place only when the report must show a value the system acquired itself at the minute mark.
How much more data does 1-second logging generate? #
Sixty times the scheduled records: a minute holds sixty one-second intervals, and a day holds 86,400 seconds against 1,440 minutes, so 86,400 ÷ 1,440 = 60 records per variable where a one-minute schedule writes one. Worked sizing for an illustrative ten meter variables:
- At one second: 10 tags × 86,400 s/day = 864,000 records per day.
- At one minute: 10 tags × 1,440 min/day = 14,400 records per day.
- Ratio: 864,000 ÷ 14,400 = 60.
Storage, with a stated assumption of 24 bytes per stored record (your historian's record size and metadata differ; the ratio does not): 864,000 × 24 B = 20,736,000 B = 20.7 MB per day, and 20,736,000 × 365 = 7,568,640,000 B ≈ 7.6 GB per year. The one-minute equivalent is 14,400 × 24 B = 345,600 B per day, and 345,600 × 365 = 126,144,000 B ≈ 126 MB per year. Before committing, read the retention side too: when fast and slow data land in separate connections on Ignition, why two Ignition historian connections share one pruning boundary matters, because retention can be enforced once for both.
How many archive files does a one-minute save cycle create per day? #
The documented figure is 1,440 files per day at a one-minute save cycle — 24 h × 60 min/h — from a setup where the historian writes one file per save cycle. That count is specific to that archive organization, so verify your historian rotates the same way before projecting any file count. The lever is the save cycle, not the computation interval: the historian can still compute one value per minute while writing files less often. On the same one-file-per-save-cycle behavior, a 15-minute save cycle gives 24 × 4 = 96 files per day and an hourly cycle gives 24 files per day.
How do I prove both the trend and the report path work? #
Judge the archive, not the trend line: after activation, check successive raw records at one-second spacing, exactly one value per minute on the reporting path, and recompute one minute by hand before trusting the report. Work through five checks:
- Confirm the live tag moves with plausible values and engineering units, and that the driver scan rate is one second or faster.
- Read raw archive records across a full minute: spacing at one second, quality good, no gaps the trend rendering can hide.
- Read the reporting path over the same minute: exactly one value per tag per minute, or per aggregation window.
- Recompute one minute by hand — the average of the sixty samples, or the register difference — and compare with the stored one-minute value to rounding.
- Run the trend and the report over the same time range and confirm both resolve to the same tag identity.
If the trend moves but the archive stays empty, the fault is binding or schedule activation — the pattern behind why Ignition historian tags stopped recording but live data is good. If the archive is good but the report is wrong, check window boundaries, timestamp convention and missing-sample handling first; when the aggregation happens in a script layer, start from troubleshooting a WinCC VBScript SQL aggregation record count before touching the historian.
When the report leaves as a file, exporting historian trend CSV at one-minute intervals is the path to test end to end.
When is a second archive the right answer after all? #
Only when the historian supports neither a second schedule writing into the same archive nor aggregation over it — then one archive per interval is the fallback, not the starting design. A second archive is also justified when the two uses need different retention and access: trend data pruned after weeks, report data kept for years under different backup rules. That is the same one-archive-per-use-case pattern, chosen deliberately rather than forced. And if the one-minute numbers only ever feed a spreadsheet, logging PLC process data to Excel at one-minute intervals keeps the second store out of the historian entirely.
Questions asked
Does a deadband change the 60x record estimate?
Yes, downward. A deadband writes a record only when the value moves by more than the band, so a steady tag stores far fewer records than the schedule implies while a cycling tag still writes every scan. One reviewed archive combined a 10% deadband with a one-minute interval and still preserved its steps. Treat 60x as the scheduled worst case, not a promise of stored rows.
Should the report query the raw one-second records or the aggregate?
Query the aggregate. A report that averages raw one-second records itself pulls sixty times the rows per tag per minute through the query layer, and its row count then depends on the logging trigger and any deadband, so totals shift with signal behavior. Precomputed one-minute values hand the report a predictable one row per tag per minute and keep the heavy scan inside the historian.
Should the one-minute value carry the window start or end timestamp?
Pick one convention and apply it everywhere. An average stamped at the window start describes the sixty seconds that follow it; stamped at the window end, the sixty seconds that preceded it. Mixing the two shifts every daily total by one minute and makes two reports disagree even though the underlying records are identical.
Can I sum one-second readings of a cumulative kWh register?
No, that double counts. A cumulative kWh register is a running total, so the minute's energy is the last reading minus the first. Sum one-second samples only when the tag reports power or per-interval energy, and convert average kW through the window length in hours to get kWh.