Comparison
PI-to-PI interface versus an OPC DA path: what changes
Short answer
An OPC client only reads; collection into a PI Data Archive always runs through an interface. Replacing a PI to PI interface with an OPC DA path means four components: source PI Data Archive, PI OPC DA Server, PI OPC Interface, destination archive. At 10,000 tags it adds one component and puts the WAN boundary on DCOM, so keep PI to PI unless an OPC DA endpoint is itself the requirement.
On this page
An OPC client only reads. No client, however it is configured, can feed a PI Data Archive on its own — the direction between client and server is fixed, so the working replacement for the PI-to-PI leg is a complete collection path: the source PI Data Archive, a PI OPC DA Server exposing it, a PI Interface for OPC DA collecting from that endpoint, and the destination PI Data Archive. For the site-to-central case with 10,000 tags, that path earns its place only after identity, buffering and failover are settled; counted honestly, it adds one component and re-types the WAN boundary as DCOM. When the job is plain archive-to-archive transfer, the PI-to-PI interface stays the smaller and tougher answer. Commit to the OPC DA route only when an OPC DA endpoint is itself the requirement.
Why an OPC client cannot feed the archive #
OPC fixes the direction by role. A server holds items and serves values to whoever connects; a client connects, subscribes and receives. Receiving values does not turn a client into a server, and nothing a client displays becomes available to a third application. The same role boundary is why an OPC server cannot pull archived tags out of another historian; the roles do not reverse.
The PI OPC Client tool that installs alongside the PI Interface for OPC DA is exactly such a client: a diagnostic viewer that shows current values from the OPC server and sends nothing to any PI Data Archive. A changing value on that screen proves the source leg — the server is reachable, the item is known, access is permitted — and proves nothing about collection or delivery. The interface, not the viewer, is the component documented to communicate between an OPC server and a Data Archive, and it is the component that turns reads into archived events.
The replacement path, component by component #
The archive-to-archive leg needs four components, each with one job:
- Source PI Data Archive — the site server whose stored values you want in the second archive. It stays the record; nothing in this path edits it.
- PI OPC DA Server — exposes that archive as an OPC DA server. The version named for this project is 2015 R2; confirm that exact release against the Data Archive and Windows versions at both ends before it is installed anywhere.
- PI Interface for OPC DA — the collector, the PI OPC Interface in the chain as drawn. It is an OPC DA client toward the server in item 2 and a writer toward the destination archive. The vendor's own configuration exercise points the interface at a named archive host such as PISRV1; in this architecture that host is the centralized PI server.
- Destination PI Data Archive — the centralized server that receives and stores the events.
Two boundaries keep the project honest. The upstream process collection — Site OPC Server, PI OPC Interface, site PI Server — is untouched; this replacement concerns only the archive-to-archive leg. And each collector runs on a Windows interface node that can reach both endpoints, so where that node is new hardware, a fanless industrial mini PC is the usual choice for continuous collection duty.
PI-to-PI or OPC DA: what changes #
A third route — pointing another collector straight at the process OPC Server and skipping the site archive — re-reads the process server, adds client load there, and never carries the site archive's stored history; it answers a different question and is not a PI-to-PI replacement. The real decision is between the two archive-to-archive legs:
| Decision point | Keep PI-to-PI | OPC DA route |
|---|---|---|
| Source endpoint | the source PI Data Archive, read by the interface directly | the source archive exposed by the PI OPC DA Server as an OPC DA endpoint |
| WAN transport | the interface's own archive-to-archive link | OPC DA over DCOM, or an OPC tunneling pair on one outbound TCP connection |
| What moves | stored time-series, archive to archive | current values by subscription; no history replay |
| After a WAN outage | the archive pair is the recovery design; the source archive keeps the record | the destination catches up only as far as the collector's buffering held |
| Components on the leg | the single PI-to-PI interface | a PI OPC DA Server plus a PI Interface for OPC DA instance |
| Identity work | archive-to-archive authentication within PI | a Windows service identity both DCOM ends accept, plus launch, access and port settings |
| Failover | documented between Data Archive collective members | configured and tested per link; nothing automatic |
| Fit | plain archive-to-archive transfer, no concrete driver to leave it | an OPC DA endpoint is itself required, or a tunnel is the approved WAN transport |
Counting the hops for 10,000 tags from site to central #
Inputs. The case as drawn: Site OPC Server, then PI OPC Interface, then Site PI Server, then PI-to-PI interface, then Centralized PI Server, collecting 10,000 tags; the proposed leg swaps the PI-to-PI interface for a PI OPC DA Server 2015 R2 plus a PI Interface for OPC DA instance writing into the centralized archive. Every component is named software you can point at; the numbers are component and handoff counts.
Rule. Count the processes a value crosses and the boundary type at each crossing. Every handoff is one identity, one permission set and one buffering policy to configure and own for the life of the link.
Arithmetic. Today's archive-to-archive leg is one component with two handoffs: site archive to PI-to-PI interface, then interface to central archive, with one WAN crossing on a PI-native link. The proposed leg is two components with three handoffs: site archive to PI OPC DA Server, DA server to interface over OPC DA, interface to central archive — and the DA-server-to-interface boundary runs on DCOM wherever those hosts sit on different machines. Adding the untouched process leg (three components, two handoffs) to both cases gives 5 components and 4 handoffs today against 6 components and 5 handoffs after.
Result. Removing one interface and adding a server-plus-collector pair leaves the system one component larger — 6 against 5 — with one extra handoff and one boundary re-typed from PI-native to DCOM.
Decision. The count fails the usual reason for wanting the swap, fewer parts, because 6 exceeds 5 and the DCOM boundary costs more to own than the link it replaces. Proceed only when the OPC DA endpoint itself is the requirement; then budget one service identity, one buffering policy and one tested failover design for that boundary. The tag count does not change the arithmetic — it sets the blast radius, because a misconfigured identity or an untested failover surfaces as a gap across all 10,000 tags at once. The receiving archive host has to absorb that full stream on top of its own clients, which is exactly what the sizing walkthrough for a 20,000-tag PI server works through.
The DCOM leg: identity, ports and tunneling #
Classic OPC DA rides on COM/DCOM, so the DA-server-to-interface boundary is a Windows identity problem before it is a data problem. Four things must line up:
- Identity. The interface's service account must be an identity the DA server host accepts — in practice a domain account both machines trust. Test under that account, never a desktop login.
- Permissions. The server host must grant that account launch and activation rights and access rights for the OPC DA server application. Activation failures and item-read failures are different faults; separate them when you troubleshoot.
- Ports. DCOM first meets the RPC endpoint mapper on TCP 135, then converses on dynamic ports Windows assigns to the server process at start; on current Windows that range begins at 49152. A firewall opened for 135 alone connects you to the mapper and no further.
- Name resolution. Each host must resolve the other's name the way the identity system sees it.
DCOM does cross routed networks; what it needs at every hop is an identity both ends accept and ports both firewalls allow, and every router, domain boundary and firewall rule on the path is another failure mode you own. That is why OPC tunneling exists: a tunneling pair replaces the DCOM conversation with a single outbound TCP connection from the client side through the firewall. It trades the permission work for two endpoint components with recovery behavior of their own, and it deserves the same pre-deployment reading as what an edge gateway spec sheet tells you before deployment.
Test order matters. Browse and read a known changing item through a diagnostic client on the DA server host itself, record its value, quality and timestamp, then repeat the same read from the intended interface node under the production service account. The remote leg passes when that item reads correctly and repeatedly under the identity production will use.
Buffering, history and failover before cutover #
OPC DA is a current-value specification. History has its own specification, OPC HDA, and this path does not implement it, so what crosses is the live value of each item as the DA server serves it. Three consequences to design for rather than discover:
- Outage recovery has a floor. When the link drops, the destination catches up only as far as the collector's buffering held; beyond that, the gap stays a gap at the destination. The source archive has lost nothing, but nothing replays it automatically, unlike an archive-to-archive transfer whose design target is moving stored events. Size the buffering the way you would size choosing an edge data path for periodic records — tolerated outage length times event rate, which yields events of buffer, not tags.
- Failover is configured, not inherited. PI-to-PI sits inside the platform's own redundancy story — it is the documented method for moving time-series data between Data Archive collective members. The OPC DA chain has no equivalent: configure the interface's documented failover modes for this version and prove them by cutting the link and counting what the destination misses.
- The push alternative is application code. The DA server's write support lets an OPC DA client push values into the archive, but then throughput control, error handling and connection recovery are yours to build. That is a software project wrapped around a server, not a replacement for a collector.
The cutover decision #
- Plain archive-to-archive transfer, no concrete driver to leave PI-to-PI: keep it. It is the smaller path — one component, stored-event transfer by design, a documented role between Data Archive collective members. The OPC DA route adds a component, an extra handoff and a DCOM boundary to own.
- An OPC DA endpoint is the requirement — other OPC DA consumers need the site archive as a server: deploy the four-component path. Confirm the DA server release against both archives' versions, stand up the service identity and permissions, size the buffering, configure and test failover, pilot on a subset of tags, then cut the full set over.
- The driver is interface count: stop. The count above is the answer — 6 components against 5, one more handoff, a harder boundary. Removing one interface to add a server and another collector is not simplification.
- Occasional values rather than bulk history: the push route is legitimate, treating the write-capable server as application code you own.
One safety note: keep the PI-to-PI interface configured and running until the replacement has delivered a full verification window of correct archived events, so rollback is a shutdown rather than a rebuild.
Questions asked
Can the same path run in reverse, from the central archive into another PI server?
Yes. The roles swap: the archive you want to read gets the PI OPC DA Server, and a PI Interface for OPC DA instance collects from it into the receiving archive. The component count, the DCOM or tunneling decision and the buffering and failover checks carry over unchanged, because the path only needs one archive exposed as an OPC DA server and one collector writing to the destination.
What proves the new path before the full cutover?
A live value on a screen proves nothing about delivery. Pick known test points and run them across the new path on a pilot subset, for example 500 tags, then compare value, quality and timestamp between the source archive and the destination archive for a fixed window. Expand to the full tag set only when the archived comparison matches across a complete collection cycle, including one deliberate link cut and recovery.
Which timestamps arrive at the destination on the OPC DA route?
Values arrive as OPC items with a timestamp and a quality code supplied by the PI OPC DA Server, and the collector's configuration decides whether events keep that source timestamp or receive the interface's own stamp at collection time. Decide that mode before comparing histories between the two archives, because a mixed choice appears as a systematic offset in the trends rather than as an error message.
Could an OPC DA client just push the values into PI instead?
A PI OPC DA Server that accepts writes allows exactly that, and it is the only way a client-only setup moves data, since no client can pull from another client. Treat it as code you own: throughput limits, error handling, reconnect and failover recovery. Keep it for low-volume, command-type values; for continuous process history at thousands of tags, a collector pulling through an interface remains the sturdier direction.