What is OPC DCOM (OPC Classic)?
It appeared in the 1990s. Its most common form is OPC DA, used for reading and writing live data; there is also OPC HDA for historical data and OPC A&E for alarms. Because it is built on Microsoft COM/DCOM, it only runs on Windows.
Connecting to a server on the same computer is easy. Over the network, DCOM settings, user rights and firewalls cause serious difficulties. Microsoft's DCOM hardening in 2022–2023 also affected some older connections.
What is OPC UA?
OPC UA is the modern successor to OPC Classic. It runs on Windows, Linux and embedded devices, and many new PLCs include a built-in OPC UA server. Encryption and certificate-based authentication are part of the standard, and it uses a single TCP port (usually 4840).
It can carry not only the value but also its meaning: units, descriptions, limits and relationships between objects can be defined.
Hardware architecture
PLC / Devicefield data→OPC Serversoftware on a PC or inside the PLC→Ethernet Networkswitch, firewall→OPC ClientSCADA, MES
- With OPC Classic, the server always runs as software on a Windows computer; the vendor's own driver connects the PLC to that computer.
- With OPC UA, the server can run on a computer or directly inside the PLC or a gateway; a separate computer may not be needed.
- Gateway (wrapper): Software installed on the same computer to expose an older OPC DA server as OPC UA on the network. It is a practical way to avoid DCOM problems.