IMD SolutionComputing LibraryShop main store

Explainer

Why an OPC server cannot pull archived tags from a historian

Edge computing and IIoT Published 7 min read

Short answer

KEPServerEX cannot read FactoryTalk Historian tags: it is an OPC DA and OPC UA server for live device data, while historian archives are exposed through OPC HDA. Let the historian collect from KEPServerEX, or read the historian directly with an OPC HDA client.

On this page
  1. Can KEPServerEX pull tags from FactoryTalk Historian?
  2. Why does the connection direction decide the answer?
  3. What is the difference between OPC DA, OPC UA and OPC HDA?
  4. What does FactoryTalk Historian expose for external readers?
  5. How much archived data does live-value polling miss?
  6. When should KEPServerEX stay in the architecture?
  7. How do you prove a historian read works before bulk configuration?
  8. Questions asked

KEPServerEX cannot pull tags from FactoryTalk Historian, and no project setting changes that. KEPServerEX is a server: it acquires live data from controllers and devices through its drivers and serves it to OPC DA, OPC AE and OPC UA clients. FactoryTalk Historian sits on the client side of that link, collecting values into an archive. Getting archived values back out needs an OPC HDA client, which KEPServerEX does not provide. The supported paths are the historian's own read interfaces: the OPC HDA server it installs, its client tools, and its documented connectors, used by the application that actually needs the data. This article separates the two directions, shows what OPC HDA adds over live-value access, puts numbers on what polling costs you, and ends with the decision for each case.

Can KEPServerEX pull tags from FactoryTalk Historian? #

No. KEPServerEX exposes live device data as an OPC DA, OPC AE and OPC UA server, and none of its interfaces or drivers query a historian archive, so no project setting or tag import makes it read FactoryTalk Historian.

KEPServerEX is documented as a platform of server interfaces: OPC DA and OPC AE, with OPC UA added in version 5.2. The UA interface speaks optimized binary TCP and is built to connect securely through firewalls and over VPN links, but those capabilities serve data outward. The product also offers an optional OPC UA client driver, which lets KEPServerEX acquire data from another OPC UA server as though it were a device. That is acquisition again, not a historian read.

A historian archive is a store of past samples. None of those interfaces contains an operation that requests samples between two times, so if a tag exists only in the archive, KEPServerEX has nothing to read it with.

Why does the connection direction decide the answer? #

A link between KEPServerEX and FactoryTalk Historian has one client and one server, and the historian's collection interfaces put the historian on the client side, so an acquisition path into the archive cannot be reversed into a read path out of it.

Rockwell documents third-party interfaces for FactoryTalk Historian SE, and they all work the same way: a collection component on the historian side acts as the client and pulls values from servers such as KEPServerEX into the archive. If your historian already collects KEPServerEX tags, that link proves acquisition works. It says nothing about reads.

An arrow on an architecture drawing is not evidence either way. Check which component actually initiates each connection in the running configuration. When both ends of your planned link are servers for the data you want to move, you have an architecture gap, and renaming points, re-importing tags or restarting services will not close it. The same client-collects-from-server pattern appears whenever a plant SCADA client integrates with a historian over OPC DA and UA, which is why the direction of each interface, not the product names, decides what the link can do.

What is the difference between OPC DA, OPC UA and OPC HDA? #

OPC DA and OPC UA exchange current values on subscription or read, while OPC HDA is the OPC Classic standard for retrieving archived, timestamped process data from historians and time-series databases.

An OPC DA or UA read returns the present value of a tag: one value, one source timestamp, one quality. An OPC HDA read names a tag plus a start time and an end time, and returns every archived sample in that range, optionally interpolated or aggregated over a requested interval. The stored series is exactly what the historian adds; for where it sits between PLCs and clients, see what a historian does in an OPC and PLC system.

Interface Who serves it here What a read returns Query form
OPC DA KEPServerEX Current value, source timestamp, quality Subscription or single read
OPC UA KEPServerEX Current value, source timestamp, quality Subscription or single read over binary TCP
OPC HDA FactoryTalk Historian Every archived sample in a range Start time and end time, optional interval and aggregate

Live-value access and historical access are different specifications, not two modes of one connection. A working UA or DA link to the historian side does not imply that history queries are available on it.

What does FactoryTalk Historian expose for external readers? #

FactoryTalk Historian SE ships with an OPC HDA server as part of the installation, and Rockwell documents that interface for third-party historians and clients that need to read its archive.

Any compliant OPC HDA client can connect to that server and read the archive without KEPServerEX in between. The product is built on the PI historian platform, so PI-family read behaviors, timestamp handling in particular, carry over to those reads. Ignition, for example, reaches historian archives through OPC HDA; the approach used for reading Proficy Historian OPC-HDA tags into Ignition is the same one that applies here. For BI-style reporting, use the historian's documented connector, because trying to connect through a live-value interface instead of the supported read path is why Power BI cannot connect to FactoryTalk Historian.

How much archived data does live-value polling miss? #

Polling recovers only the samples you poll: a seven-day backfill of a tag logged once per second needs 604,800 archived samples, and polling the live value every five seconds returns 120,960 of them, twenty percent, stamped with your poll times.

Worked example, one tag, seven days, logging at one sample per second:

  • Window length: 7 d × 24 h/d × 3,600 s/h = 604,800 s, so the archive holds 604,800 samples for that tag.
  • Polling the live value every 5 s over the same window: 604,800 ÷ 5 = 120,960 samples collected, which is 120,960 ÷ 604,800 = 0.20, twenty percent of the record.
  • Each polled sample carries your poll time, not the source timestamp the historian stored, so even the samples you do capture are not the archived record.

What moves the number is the ratio of logging rate to poll rate: a poll interval of 10 s keeps 10 percent, a poll interval of 1 s approaches the full count but still cannot recover the original timestamps or any sample missed during a gap. The decision follows from that: any backfill, loss investigation, report or batch record must go through OPC HDA, and a live mirror of current state is the only job live-value access can do in this architecture.

When should KEPServerEX stay in the architecture? #

Keep KEPServerEX wherever a consumer needs live device data or where the historian collects through it, and take it out of any read path whose destination is archived data, because it stores no time series of its own.

Three cases decide it. First, a consumer that needs live controller values: KEPServerEX is the right server and stays where it is. Second, the historian needing live data to collect: KEPServerEX stays as its acquisition source. Third, a consumer that needs archived values: KEPServerEX is out of the path, and the consumer becomes an OPC HDA client of the historian's HDA server directly.

The middle case worth naming is a consumer that only speaks OPC UA or MQTT and needs the latest stored value rather than a live device value. That job belongs to an intermediary that is an HDA client on one side and a UA or MQTT server on the other, as laid out in exposing historian latest values over OPC UA or MQTT.

How do you prove a historian read works before bulk configuration? #

Read one point you can already see in the historian's own client, and compare the returned value, data type, source timestamp and quality over the same time range before you configure anything else.

  1. Pick one point with known records, for example a tag whose value steps at a shift change, and a short range that contains them.
  2. Connect your OPC HDA client to the historian's HDA server with an account that has read rights on that point. Keep authentication enabled; do not open broad firewall access to make a test pass, and use a read-only account.
  3. Query the range and compare value, data type, source timestamp and quality sample for sample against the historian's own client.
  4. Check timestamp interpretation across daylight-saving boundaries; PI-platform historians are exactly where OPC HDA backfill returns winter timestamps one hour off.
  5. Only after one point reads clean, configure the rest, and re-verify one point per new source you add.

The decision, case by case: live device values, KEPServerEX serves them and the historian collects them. Archived values, an OPC HDA client reads FactoryTalk Historian directly through the interface it ships. Latest stored value for a UA or MQTT consumer, a dedicated intermediary between the historian and that consumer. There is no configuration of KEPServerEX that reads the historian, so put the client where the data is.

Questions asked

Can I configure KEPServerEX to act as an OPC HDA client?

No. KEPServerEX ships server interfaces for OPC DA, OPC AE and OPC UA plus device drivers, and none of them query a historian archive. Reading a historian needs a separate OPC HDA client application, and no tag import or project setting changes that.

Does an OPC UA connection to FactoryTalk Historian give me history?

A UA endpoint returns history only when the server implements the historical access role. FactoryTalk Historian SE documents OPC HDA as the interface it installs for third-party reads, so plan the read through OPC HDA and confirm any UA history support against your installed versions before relying on it.

Which clients can read FactoryTalk Historian directly?

Any OPC HDA client can read the OPC HDA server that FactoryTalk Historian SE installs, including SCADA packages and reporting platforms. The historian's own client tools and its documented connectors, such as the ones used for BI reporting, read the archive too.

Can KEPServerEX re-serve values it collected in the past?

No. KEPServerEX passes current device values and stores no time series of its own. Once values are archived, only the historian can serve them, and those reads go to the historian's documented interfaces, not back through the acquisition link.

What should the test account for an OPC HDA read be allowed to do?

Give it read access to the historian points you need and nothing more. Keep authentication enabled and use the documented service requirements; do not open broad firewall access to make a test pass. Verify the read against a known value, timestamp and quality.

Keep reading

  • Comparison

    Canary historian export paths: MQTT publisher or API read

    Canary gives you two confirmed ways to move historian data out: the Publisher service, which pushes real-time values to MQTT or Kafka as Sparkplug B or JSON, and the Read API, which an external client calls to pull stored data. An outbound OPC UA server is not a confirmed option.

    Edge computing and IIoT

  • Explainer

    Do you need a historian or just an OPC tag server?

    No. An OPC tag server (OPC DA) supplies the current value, quality and timestamp of each item and stores nothing, so monthly figures need a historian or a SQL logger collecting from that same server. Keep a reporting client like ActiveFactory only if you also run the historian it expects.

    Edge computing and IIoT

  • Troubleshooting

    Read Proficy Historian OPC-HDA tags into Ignition

    Create the Proficy historical connection through the OPC COM module's documented OPC-HDA workflow, not the new OPC Server connection dialog. Charts get their data from interval reads; values usable as Designer tags need a runScript bridge into a shared script built on system.opchda.readRaw. Enabling tag history on bridged tags stores new values only — the existing Proficy archive is not migrated.

    Edge computing and IIoT

Cut Ignition Tag Historian growth before compressing the table