How-to
How DeltaV batch history works without a Batch Executive
Short answer
A continuous historian with no Batch Executive stores tag, timestamp, value and status, so batches disappear. Stamp a batch counter and start and end latches in the control logic, hold dosing weights and cycle times in parameters at their valid events, then query each batch window from the Excel add-in or write one CSV row per completed batch.
On this page
- What the continuous historian stores without a Batch Executive
- Stamp each batch with a counter and a time window
- Hold report values before the next batch overwrites them
- Worked example: historian writes for 24 batches a day on one reactor
- Read the batch back: Excel add-in or a CSV at batch completion
- Build and verify the report end to end
- When a batch report goes wrong
- Questions asked
Without a Batch Executive and its batch historian, a DeltaV continuous historian still records every collected tag — tag name, timestamp, value, status — but no batch context, so a trend shows one continuous curve with no batch boundaries and no batch ID. You can rebuild batch history without either product: stamp a batch counter, start and end latches and a status in the control logic that already owns the batch, copy each report value such as a dosing weight into a hold parameter at the event that makes it valid, and let the continuous historian log those stamps like any other tag. Then query each batch window from the Excel add-in, or have an Operate schedule write one CSV row per completed batch. This article sets up the stamping, works the added storage load, and builds and verifies the report.
What the continuous historian stores without a Batch Executive #
The DeltaV Continuous Historian records each collected tag as four things: the tag name, a timestamp, a value and a status. That is enough for trends and time-based reports, and nothing else. Batch context — batch ID, recipe and unit procedure, phase start and end, batch report values — is produced by the Batch Executive and stored by the separate Batch Historian, which keeps that data in Microsoft SQL Server and serves it to client tools such as Batch History View. The Batch Historian is not usable on its own: no Batch Executive means no batch context for it to store, whatever else the system licenses.
So the decision at a plant that is part continuous and part batch is not which product to buy first. It is to build the batch key yourself in the control logic and let the continuous historian store it.
Stamp each batch with a counter and a time window #
Put the stamping in the module or sequence that already owns the batch start and end. Four stamps cover a report:
| Stamp | Type | Where it lives | What it does |
|---|---|---|---|
| Batch counter | integer | the module that owns batch start and end | increments once per batch; it is the join key between historian data and the report |
| Start and end latches | timestamps | same module, latched on the start and end transitions | define the query window |
| Batch status | enumerated value | same module, stamped complete, aborted or held at the end stamp | keeps incomplete runs out of the good-batch report |
| Batch or lot label | string | the operator entry where it is already set | stays out of the historian; the counter is the key |
- Add the integer batch counter and increment it on the rising edge of the batch start condition only, never every scan. Because the counter changes every batch, it always produces a new stored point, which is what makes it a reliable key.
- Latch the start and end timestamps on their transitions.
- Stamp the status at the end of every path: normal completion, abort and hold. An abort stamped only on completion shows up later as a good batch.
- Leave the human-readable label where the operator enters it; the report joins on the counter.
- Run one batch and check: the counter moves by exactly 1, the end latch is later than the start latch, and every stamped value holds flat until the next start.
One caution: this logic goes into a module that runs the batch, so take the change through your management-of-change process and prove it on a unit that is not running product before it stamps a real batch.
Hold report values before the next batch overwrites them #
Live process values reset when the next batch starts, so a report that reads them later gets the wrong batch. Copy each value at the event that makes it valid, and log the copy:
- On dose-complete, copy the final dosed weight into a hold parameter, one per ingredient.
- At the end stamp, compute cycle time in the logic and store it in its own hold parameter.
- Enable history collection on the hold parameters, the batch counter and the two latches.
Deadband compression can drop a repeated value: if two consecutive batches dose an identical weight, the second write may not create a new stored point. That is the same delta-storage behavior that makes a slowly changing tag log as a staircase — the reason AVEVA Historian stores one-second cyclic tags as deltas. It does not break this design: the counter changes every batch and always logs, and a query that takes the last value at or before the batch end timestamp still reads the right weight. If every write must appear as its own point, set a tight or zero deadband on the hold parameters in the historian collection configuration and confirm that setting before relying on it.
Worked example: historian writes for 24 batches a day on one reactor #
Inputs, and where each comes from:
- 24 batches a day on one reactor — an example size for the part-continuous, part-batch plant this design targets.
- 7 logged parameters per batch — the stamping set from the sections above: the batch counter, the start latch, the end latch, the status, the cycle-time hold and two dosing-weight holds.
- About 4 writes per batch per parameter — the events that touch each one: the start, the dose-complete, the end stamp and the next start resetting the holds.
The rule in words: added historian writes a day equal batches a day times logged parameters times writes per batch.
The arithmetic: 7 parameters × 4 writes = 28 writes per batch; 28 × 24 batches = 672 added writes a day.
The result is about 672 added writes a day for the whole batch stamping scheme. The decision it leads to: this load is negligible against a continuous historian's normal tag collection, so no historian resizing or license change is needed. Batch reconstruction here is a logic and query task, not a storage task — build the stamps and spend the effort on the report.
Read the batch back: Excel add-in or a CSV at batch completion #
| Route | Strength | Weakness |
|---|---|---|
| Excel add-in querying the continuous historian by batch window | the historian stays the record; full-resolution trends for any past batch; survives a workstation restart because the data sits in the historian | needs the counter, latches and status for each query; report logic lives in the workbook |
| Operate schedule writing one CSV row per completed batch | one flat summary row per batch, easy to archive and open anywhere | depends on a node running the schedule at the moment of completion; a missed trigger loses the row; the file locks while Excel holds it open |
Use the historian as the record and Excel as the view. The stamps and hold parameters are already in the historian, so the workbook can rebuild any batch from queries and stays disposable. Keep the CSV as a secondary summary, not the only copy; the pattern of a scheduled write at a batch event is the same one behind exporting a CSV when a Canary historian event closes a batch. A third-party historian or reporting package that queries by time window works on the same key and window structure, and running a second historian beside a DeltaV continuous historian covers what that pairing involves. The schedule needs one always-on node; a fanless industrial mini PC is the usual fit for historian and scheduled-writer duty in a cabinet.
Build and verify the report end to end #
- Point the Excel add-in at the continuous historian and read back one known tag at one known timestamp; check the value matches the trend on an operator station. A successful read proves the connection, the runtime account and the query path.
- Build a batch index sheet: pull the counter's changes over the reporting period, and for each counter value read the start latch, end latch, status and hold parameters.
- For each index row, read the hold parameters at or before that batch's end timestamp, and trend the process values across the start-to-end window.
- Compute cycle time in the sheet and compare it with the controller-computed hold. The two must agree; if they do not, the query read the wrong window.
- Align the time bases before trusting any window: the controller, the historian node and the reporting workstation need one time source, and a missing UTC offset is the usual cause of a batch that appears hours off, as in historian values hours off: check the UTC offset.
- Run the plant test: two consecutive batches with different dosed weights, then abort a third partway. The report should list three rows with correct keys, start and end times and cycle times; the aborted run shows an aborted status; the first two rows' weights match the operator station at batch end; and the trend for one batch starts and ends at the stamped times.
When a batch report goes wrong #
| Symptom | Cause | Fix |
|---|---|---|
| Dosing weight equals the next batch's value | the report read the live tag after the next start | read the hold parameter at or before the end timestamp |
| Batch window off by minutes or hours | controller, workstation and Excel on different time bases or zones | align the time sources and check UTC offset handling in the add-in |
| Aborted batch reported as good | status stamped only on normal completion | stamp the status on abort and hold as well |
| Two reactors' batches mixed | one shared counter for parallel units | one counter and latch set per unit, prefixed names per unit |
| Old batches return no data | the query is older than historian retention | archive the CSV summary rows as the long-term record |
Never store batches by pasting values into the workbook by hand or through code that appends rows. Rebuild the report from historian queries every time, so the workbook is disposable and the historian remains the record of every batch that ran.
Questions asked
Can the DeltaV Batch Historian run without a Batch Executive?
No. The Batch Historian stores the batch history data the Batch Executive generates, so without a Batch Executive there is no batch context for it to store or serve. The stamping design in this article needs neither product and keeps working unchanged if you later add both.
Why does a hold parameter sometimes show no new point after a batch?
Deadband compression. If two consecutive batches log an identical value, the second write may not create a new stored sample. A query that takes the last value at or before the batch end timestamp still returns the right number. Set a tight or zero deadband on that parameter if each write must appear as its own point.
How do I handle two reactors batching in parallel?
Give each unit its own batch counter, latches and hold parameters, and prefix the names per unit. One shared counter makes the historian join mix the two trains, and a report built on it cannot be trusted for either unit.
What happens to batch reports after historian retention expires?
Queries older than the retention setting return nothing, so the stamped batches are gone from the historian even though the CSV summary rows survive. If you need batch records beyond the retention window, treat the one-row-per-batch CSV as the long-term archive and size its storage accordingly.