IMD SolutionComputing LibraryShop main store

How-to

Get ETAP RTU data into AVEVA Historian the supported way

Edge computing and IIoT Published 8 min read

Short answer

Keep the ETAP acquisition path and feed AVEVA Historian from ETAP's OPC UA publication for live values, with a documented historical import for the SQLDB and MongoDB records. The gateway zeros carry OPC DA quality 0x0040, Uncertain, from a second RTU session the reported single-client limit leaves unavailable, so they are acquisition failures, not measurements.

On this page
  1. Why does the gateway read zero with quality Uncertain=0040?
  2. Is the RTU's single-connection limit why the second path failed?
  3. Which route should carry ETAP data into Historian?
  4. Where does the OPC UA endpoint URL come from?
  5. How do you bind ETAP tags into Historian over OPC UA?
  6. How should the stored SQLDB and MongoDB records enter Historian?
  7. What does uncertain or late data do inside Historian?
  8. Questions asked

Keep the ETAP acquisition path and feed Historian from it: publish the captured RTU data from ETAP over OPC UA for ongoing collection, and move the stored SQLDB and MongoDB records through a historical import interface documented for the installed Historian version. The zeros on the parallel IEC gateway are not process values — they carry OPC DA quality 0x0040, the Uncertain class, which points to acquisition failure on a second RTU session that the RTU's reported single-client limit already explains. Do not archive those zeros, and do not add another IEC client to the RTU.

Why does the gateway read zero with quality Uncertain=0040? #

Because the gateway never acquired a real sample: OPC DA quality 0x0040 is the Uncertain class, and a zero arriving with it is an initialization or held value, not a measurement — the gateway itself is telling you it cannot vouch for the number.

An OPC DA item is a value, a timestamp, and a quality. Quality is a 16-bit word; the two most significant bits of its upper byte pick the class — 0x00C0 Good, 0x0040 Uncertain, 0x0000 Bad — and the remaining bits carry substatus, limit, and vendor fields. Plain 0x0040 has all of those at zero: uncertain, no further detail. The quality word never names the underlying fault by itself; the driver's connection log does.

A zero with uncertain quality, on a path whose IEC session never opened, is an initialization or retained value. The yellow row in the diagnostics display is the cue; the quality field is the actionable part. Exclude those samples from reports and averages instead of archiving them as measured zeros — a stored false zero skews totals and minima exactly like a real one.

Is the RTU's single-connection limit why the second path failed? #

Yes — that is the explanation that fits every observation: ETAP already holds the RTU's one client session, the gateway's second IEC session fails to establish, and its mapped items surface as uncertain zeros.

The single-session behavior is reported rather than read from the RTU documentation, so confirm it in two places before spending anything on a second client: the RTU's active-session status, and the gateway IEC driver's connection log. Keep the ETAP session intact while you check — cycling the RTU or restarting the ETAP link to free the session takes the plant's live view down with it.

The decision does not wait on that confirmation. A parallel IEC client duplicates an acquisition chain that already works, it is the path producing the uncertain zeros, and even a confirmed free slot would not change the architecture that follows. It comes out of the design.

What you observe Where to look What it means
ETAP value changes and looks valid; gateway reads zero with uncertain quality Gateway IEC session status and point mapping The gateway's own acquisition failed; drop the parallel path
Gateway item is good; Historian shows a different value or quality Collector binding and conversion settings A downstream mapping fault, not a driver fault
Both paths show stale or questionable data RTU and communication diagnostics A shared upstream problem — fix it before any historian work

Which route should carry ETAP data into Historian? #

ETAP's OPC UA publication for ongoing values, plus a documented historical import for stored records — that pair preserves the working acquisition path and needs no second session on the RTU.

The capability covers captured and stored data from devices and third-party applications; simulation results are a separate category, and live-tag publication does not by itself make old database records retrievable. Confirm what the installed ETAP application publishes, and under which license, before building against it.

Route What it needs Decision
ETAP OPC UA publication Captured-tag publication enabled on the installed system; endpoint, certificates, authentication Use for ongoing collection — it reuses the acquisition chain that already works
Parallel IEC-to-OPC gateway A free RTU client session and a validated point map Drop it — the session appears taken, and this path produces the uncertain zeros
Historical export and ingestion Authoritative record fields and a supported import interface Use for stored SQLDB and MongoDB records and for backfill after outages

Because the data does not need real-time delivery, a buffered periodic path is equally valid for the historian feed; the same trade-offs are worked through in choosing an edge data path for periodic records.

Where does the OPC UA endpoint URL come from? #

From the ETAP server's own configuration or its installed documentation — never from a guess: an empty endpoint list in the client means discovery returned nothing, which is a problem to diagnose, not an address to type.

A client fills its endpoint list from discovery responses sent by a reachable server. An empty list means one of three things: publication is not enabled or licensed on the installed ETAP system, the host or port you pointed the client at is wrong, or a firewall or security policy is blocking the traffic. Work those in order.

Take the address from the ETAP server configuration or the installed documentation, and record the host, port, endpoint path, security policy, and authentication requirement exactly as configured — do not assemble an address by guessing at ports or paths. Then verify name resolution and reachability from the computer that runs the Historian acquisition component.

How do you bind ETAP tags into Historian over OPC UA? #

One tag at a time: bind a single RTU measurement whose value and units you can read on the ETAP display, confirm value, source timestamp, and quality all match, and only then expand the list.

  1. Read the endpoint address, security policy, and authentication mode from the ETAP server settings.
  2. Confirm name resolution and network reachability from the Historian acquisition computer.
  3. Configure the OPC UA interface documented for the installed Historian version, trust certificates in both directions, and use the authentication the server is configured for.
  4. Browse to one captured RTU measurement whose value and units you can verify on the ETAP display.
  5. Bind that node by its node identifier rather than by display name, which is not guaranteed unique.
  6. Compare the value, source timestamp, and quality against the ETAP display for the same point.
  7. Expand to the full tag list only after the first tag matches on all three fields.

Two OPC UA subscription settings govern timing: the server samples each monitored item at its configured sampling rate and sends queued notifications at the subscription's publishing interval, so the client receives data on that cadence whenever new data is waiting. For reports that is sufficient — set both to the ETAP scan rate rather than assuming a per-change push.

How should the stored SQLDB and MongoDB records enter Historian? #

Through the historical import interface documented for the installed Historian version — not a query writing rows into the runtime database, because storage there involves metadata, quality, and indexing that a direct insert bypasses.

  1. Identify the authoritative record fields in the ETAP store: measurement identifier, value, acquisition timestamp, quality, engineering units, and data type.
  2. Select the historical import or ingestion interface documented for the installed Historian version, and confirm how it treats late records, replacement records, and duplicates.
  3. Define the timestamp conversion explicitly — local time or UTC — and preserve the acquisition time rather than the extraction time.
  4. Map each source measurement to a Historian tag, carry quality through, and define how missing or invalid samples are represented.
  5. Test a bounded interval, reconcile it against the source records, and record the last successfully transferred position before scheduling repeats.

An illustrative sizing for the test interval: 40 measurements at a 1 s scan produce 40 × 3,600 = 144,000 samples per hour. At a nominal 16 bytes per sample — an 8-byte value and an 8-byte timestamp, before quality and indexing overhead — that is 144,000 × 16 B = 2,304,000 B, about 2.2 MB per hour and about 55 MB per day at 3,456,000 samples. One hour is an interval you can reconcile by hand; a week is not.

Keep this route after the OPC UA feed is running, because OPC UA resumes with current values after a gap and does not replay the missed window. Recovery re-reads the interval through the import, under the duplicate policy chosen in step 2, resuming from the recorded position.

What does uncertain or late data do inside Historian? #

Quality decides what a trend shows: an uncertain or bad sample is not interchangeable with a good one, so map ETAP quality explicitly into the Historian's quality model instead of letting the collector default it.

A single low-quality update can change what clients return even with good samples around it — the behavior behind why a bad quality update hides Historian values. Gaps from ETAP or network outages are filled by the stored-record route, not by the live feed.

The decisions, case by case:

  • Ongoing collection: ETAP OPC UA publication, with sampling and publishing intervals matched to the ETAP scan rate.
  • Stored records and backfill: documented historical import, acquisition timestamps preserved, duplicate policy defined up front.
  • Parallel IEC gateway: removed from the design regardless of what the RTU session check finds.
  • Zeros with uncertain quality: excluded from reports; once the session limit is confirmed, they are dead samples from a dead path.

Questions asked

Can ETAP publish simulation results over OPC UA too?

Reported capability covers captured and stored data from devices and third-party applications, including third-party historians; simulation results are a separate category. Verify what the installed ETAP application publishes and which license enables it before planning any interface against simulation outputs.

What if the RTU turns out to accept a second client?

Then the uncertain zeros point at the gateway instead, at its IEC driver configuration or point mapping. Fix that only if you want the gateway for some other purpose; for the historian feed the decision stands either way, because a parallel acquisition path duplicates the ETAP chain that already works.

Can the existing query writing ETAP rows into the runtime database stay until the import is ready?

Replace it before the next scheduled run if you can. Direct inserts bypass the metadata, quality, and indexing the historian depends on, and rows written that way may not read back through clients the way interface-written rows do. Reconcile any interval it already wrote before you retire it.

Does any of this disturb the ETAP plant display?

No. Every step is additive downstream of ETAP: publishing over OPC UA, importing stored records, and the historian itself. Nothing requires cycling the RTU, restarting the ETAP link, or reconfiguring the session the display depends on, so leave that session untouched throughout.

Keep reading

  • Troubleshooting

    Backfill late and out-of-order data into Canary collectors

    Canary's SQL and MQTT collectors both insert historical samples that arrive out of time order, so late data after an outage lands at its correct timestamp; only the OPC DA and OPC UA collectors refuse inserts. Confirm a backfill by opening the affected window in the historian files and looking for samples marked Added with Good quality, and set the MQTT Collector's Reordering Queue Size above its default 0 when messages arrive out of sequence.

    Edge computing and IIoT

  • Comparison

    How AVEVA Historian publishes collected data to a client

    Yes — AVEVA Historian publishes collected data, but through a client-matched output rather than one universal server. Seven paths cover the cases: SuiteLink, PCS iData, OMI Replay, SQL History or Live tables, MQTT, OData, and Gateway as an OPC DA client. Keep the OPC UA link as collection, then pick the output by the client's protocol and whether it needs live or stored values.

    Edge computing and IIoT

  • Comparison

    Move DeltaV Continuous Historian data into a PI system

    When PI points exist, collect DeltaV live values with OPC DA and recover history with OPC HDA; when points and AF structure are missing, let the DeltaV Smart Connector create them from EntHist.xml. Add PI-to-PI only for a second office-LAN server. Prove buffering, service identity and archive coverage by test before the bulk load.

    Edge computing and IIoT