Troubleshooting
Linking a SCADA HMI to a legacy bus through an OPC gateway
Short answer
A SCADA package without a driver for an installed legacy controller bus reads that bus through a communication server that speaks the controller protocol on one side and serves OPC on the other. Prove the path in order — a known controller value valid in the gateway's own diagnostic client, the same item in an independent OPC test client, then one SCADA test tag in runtime — and fix the first stage that fails, not the last.

On this page
If your SCADA package has no driver for the controller bus already installed in the plant, connect the two through a communication server that speaks the legacy protocol on the controller side and serves OPC on the SCADA side. Prove the path in three reads, in order: a known controller value valid in the gateway's own diagnostic client, the same item in an independent OPC test client, then a single SCADA test tag in runtime. Fix the first stage that fails and keep the later stages out of the investigation until the stage before them passes.
Add a gateway, don't hunt for a driver #
The SCADA vendor's driver list is the wrong place to stop. When the installed bus is not on it, the supported route is a communication server — often called an OPC server or gateway — with a driver for the controller protocol on one side and an OPC interface on the other. The same pattern appears whenever a PC-based runtime has no native driver and must reach its controller through OPC, as in why WinCC Runtime Advanced reaches an FX5U only through OPC.
Check the exact interface on both sides. OPC UA is standardized as the IEC 62541 series, while OPC Classic — Data Access among them — is the older COM-based specification family from the OPC Foundation; the two do not interoperate, so 'OPC compatible' on a datasheet is not a compatibility statement. Confirm which interface the gateway serves and which one the SCADA client supports before you buy or configure anything.
Prefer a direct, supported controller-to-OPC path over chains with intermediate programs: every extra boundary, such as a DDE-to-OPC bridge between an older I/O server and the new SCADA, adds another application that must recover after a restart and another link whose loss shows up as bad data on the screen. DDE itself is a Windows mechanism for passing data between applications, older than both OPC interfaces and carrying no equivalent of OPC item quality.
Record the installed controller connection first #
Before any software is chosen, write down what the working system actually is:
- The controller identification, its communication module or port, and the protocol the existing supervisory system runs on the bus.
- The PC-side interface: the adapter or port the existing supervisory computer uses, its driver, and the cable to the controller network.
- The connection settings of the working system, read from its installed configuration and the equipment documentation, not selected by trial and error.
- How the existing system uses that connection: whether the port or adapter is exclusive to it, or whether the equipment documentation allows an added client.
If the port is exclusive to the running system, do not start a competing server against it; plan a documented added client or a transfer of interface ownership instead. Begin read-only: adding an HMI never justifies changing controller communication settings that already run production, and any write test belongs on an isolated bench.
Prove the path in three read tests #
Work the reads in this order and stop at the first failure:
- Pick a known readable value: a register whose address, data type and current state you know independently, preferably a counter the controller increments on its own, so updates are visible without forcing anything.
- Read it in the gateway's own diagnostic client. The pass is valid quality, the correct value and updates as the controller value changes. Check the transaction statistics too: successful reads without timeout or protocol-error counters climbing. Timeouts point at the interface, connection settings, controller selection or the physical path; address errors point at the requested data location or access rules.
- Read the same item in an independent OPC test client. The server must be reachable and the item browsable or enterable under its documented identifier, with valid quality and the value the diagnostics showed. If the diagnostics pass and the test client fails, the fault sits in the OPC boundary: registration, permissions, endpoint selection or an interface mismatch between Classic and UA.
- Create one SCADA connection and one test tag, with the server selection, item identifier and data type configured the way the installed SCADA edition documents, then watch the tag in runtime. If the independent client works and the SCADA tag does not, the fault sits in the SCADA connection or the tag mapping.
A valid read with a wrong number is a data-interpretation fault, not a communication fault: check data type, word order and scaling before replacing hardware. A static value alone is weak proof, because cached data can stay visible after communication has stopped; use quality, update information and an independently observed change together.
| What you see | Layer that failed | Next move |
|---|---|---|
| Diagnostic client shows no valid read | PC to controller | Adapter recognition, port settings, cable, controller selection |
| Diagnostic client passes, OPC test client fails | OPC boundary | Server registration, permissions, endpoint, Classic or UA mismatch |
| OPC test client passes, SCADA tag frozen or bad | SCADA connection or tag | Server selection, item identifier, data type, runtime diagnostics |
| Reads valid but the number is wrong | Data interpretation | Data type, word order, scaling |
Worked example: data age for a 500 ms poll, a 1 s OPC group and a 500 ms screen refresh #
The case is the one this article is built on: a counter inside the legacy controller shown on the new SCADA screen through the gateway. The numbers are example settings you type into each tool, not vendor defaults: the gateway driver reads the counter every 500 ms (the scan or poll interval set on the device in the gateway's channel configuration), the OPC group delivers its points to the SCADA every 1000 ms (the group update interval in the SCADA's OPC connection), and the SCADA refreshes the tag on screen every 500 ms (the client update cycle for the tag).
The rule in words: the worst-case age of a displayed change is the time until the next driver poll, plus the time until the next OPC group update, plus the time until the next screen refresh. The counter's own update period only sets how finely you can observe a change; it adds nothing to the chain.
Arithmetic: worst case 500 ms + 1000 ms + 500 ms = 2000 ms. Average, taking half of each stage: 250 ms + 500 ms + 250 ms = 1000 ms.
Result: with these settings the screen can show a change up to 2000 ms after it happened, about 1 s on average.
Decision: for pure process awareness at an operator station, a worst case of 2 s is acceptable and nothing needs changing. If the value must be fresher than that, cut the largest stage first: a group interval of 250 ms with the driver poll at 250 ms brings the worst case to 250 ms + 250 ms + 500 ms = 1000 ms. If the task at that screen needs values no older than 1 s, those settings just meet it; anything tighter needs the screen refresh shortened as well. Treat the sum as a calculated minimum — device response time and retries add to it — so confirm the deployed behavior with a timestamped observation of the live counter rather than trusting the arithmetic.
Make the link survive a restart #
When the test tag passes, record the recovery before the system goes live. Restart the gateway and confirm the diagnostic client reconnects with good quality, then restart the SCADA runtime and confirm the tag recovers; the counter's final value tells you whether it caught up everything it missed. Measure the loss and the recovery separately, using the driver's actual timeout and retry behavior, the item quality and the screen's update cadence, and run that disconnect test on a bench, not on the running line.
For OPC Classic across separate computers, the Windows identity and DCOM permissions between the machines are part of the link; the failure pattern of a client that cannot reach a server on another computer is worked through in why a remote OPC DA client fails to reach a LAN OPC server. For OPC UA, endpoint selection and certificate trust take that place, and which program must host the server follows the direction rule in which direction works between an OPC UA server and client. Configure the identity or trust the products document; weakening host security is not a substitute for a correctly configured connection.
When a value later freezes or goes stale on a running screen, expand outward through the same layers using how to tell whether the driver, the tag or the screen is at fault.
Questions asked
Can a UA client read an OPC Classic server?
No. OPC Classic and OPC UA are separate specifications with separate communication, so a UA client connects only to a server that serves UA, and a Data Access client only to a Data Access server. Some communication servers offer both interfaces from one installation. When they do, verify each side's exact interface and that the item space browsed in your test client is the space the SCADA connection reads — a mismatch there can give a healthy-looking connection to the wrong items.
Where should the gateway software run?
On the SCADA workstation, on a separate station, or close to the controller — all appear in practice. The trade-off is recovery scope: when the server runs on the operator PC, restarting that PC interrupts data collection for every client attached to it. For OPC Classic across separate computers, the Windows identity between the machines becomes part of the configuration. Check the server's documented client connection limits before attaching both the legacy operator software and the new SCADA to one server.
How do I prove a displayed value is fresh rather than cached?
Watch a value that changes on its own, such as a counter the controller increments, and require three things together: item quality good, the timestamp or update indication advancing, and the number itself changing. A static register can read correctly once and keep showing on screen after communication has stopped. If quality reads good but the timestamp stops advancing, suspect a stale cache or a frozen driver session before you suspect the controller.
What changes when the gateway serves OPC UA instead of OPC Classic?
Security moves into the link itself. Instead of Windows identity and DCOM permissions between two computers, the client selects an endpoint on the server and the two sides exchange and trust certificates. A policy mismatch fails the handshake before any tag data appears, which is why a diagnostic client used for commissioning should support the security mode the gateway actually offers. The three-step read order on the controller side stays the same either way.


