✔ Communication Protocol

What is OPC? OPC DCOM and OPC UA A common language for systems from different vendors

OPC is a standard that lets PLCs, devices and software from different vendors share data in a common way. On one side is the OPC server that provides the data, on the other the OPC client (for example SCADA) that reads it.

There are two main generations: the older OPC Classic (OPC DCOM), based on Windows DCOM, and the platform-independent, secure new generation OPC UA.

Highlights

  • OPC DA (Classic)
  • OPC UA
  • TCP 4840
  • Server / Client
  • Certificate-based security

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 dataOPC Serversoftware on a PC or inside the PLCEthernet Networkswitch, firewallOPC 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.

Cable and material selection

  • Network: Standard Ethernet infrastructure; Cat6 in panels and offices, shielded Cat6 in noisy areas.
  • Distance: A copper Ethernet run is limited to 100 metres; use intermediate switches or fibre for longer distances. OPC itself has no distance limit.
  • For OPC Classic: Keep server and client on the same computer or the same local network where possible; DCOM over different networks or the internet is not recommended.
  • For OPC UA: Computer and PLC clocks must be correct; certificates check dates, so a wrong clock can block the connection.
  • Firewall: OPC UA only needs the port in use opened; OPC Classic uses dynamic ports, which makes configuration harder.

Advantages and disadvantages

OPC DCOM (Classic)

Advantages

  • Supported by most older PLCs and drivers
  • Simple to set up on the same computer
  • A mature technology used in the field for many years

Disadvantages

  • Windows only
  • DCOM over the network is hard and error-prone
  • Not firewall friendly
  • No longer developed; not recommended for new projects

OPC UA

Advantages

  • Runs on Windows, Linux and embedded systems
  • Encryption and certificate-based authentication
  • Firewall friendly with a single port
  • Rich data model and vendor independence

Disadvantages

  • Certificate management can be confusing at first
  • Heavier than simple protocols such as Modbus
  • Missing on older devices; a gateway may be needed

OPC comparisons

OPC UA vs OPC DCOM

OPC UAOPC DCOM (Classic)
Operating systemWindows, Linux, embeddedWindows only
SecurityEncryption, signing, certificatesWindows user rights
FirewallSingle port (4840)Dynamic ports
Remote connectionEasy and secureDifficult, not recommended
FutureStill being developedBeing replaced by OPC UA

OPC UA vs Modbus TCP

OPC UAModbus TCP
Data definitionNamed tags with units and descriptionsNumbered registers only
SecurityYesNo
SetupMore configurationVery simple
Best forPLC–SCADA, SCADA–MES, system to systemSimple field devices, analysers

How to test it

  1. OPC Classic: First connect with an OPC DA client on the computer where the server is installed and read some tags. If that works, try over the network; this tells you whether a problem comes from DCOM or from the server.
  2. OPC UA: Enter the address as opc.tcp://ip-address:4840. For the first test, choose security mode None to confirm the connection.
  3. Then switch to an encrypted mode and add each side's certificate to the other's trusted list.
  4. Use a free client such as UaExpert to browse the address space and check that values change.

Testing with ATLAS SCADA

You can also test the OPC connection by using ATLAS SCADA as the OPC client. This confirms not only that data is read, but also that it appears correctly on SCADA screens, in alarms and in the archive.

Let's review your project together

Let's work out together which architecture, hardware and cabling fit your facility.

Let's talk about your project