Skip to content

OPC DA

The OPC DA (classic, COM) connection works with OPC Data Access 2.0 servers: Kepware, Matrikon, InSAT MasterOPC, SIMATIC NET, WinCC, older SCADA systems and gateways. For new systems, if the server supports OPC UA, prefer OPC UA: it is easier to set up over a network and it is secured.

  1. In the editor: Connection → OPC DA (classic, COM).
  2. Server (ProgID) is the server name, for example Matrikon.OPC.Simulation.1. The import window lists servers (see below).
  3. Import tags from the server tree or create them by hand: the address is the item’s ItemID, for example Random.Int4.
  4. Start the project. The connection starts the OPC DA server itself if it is not running yet.
Setting Default Meaning
Server (ProgID) — Server name, for example Matrikon.OPC.Simulation.1
Computer empty Name or IP of the computer with the server; empty — this computer
Update rate, ms 1000 How often the server updates the Scadora group values
Timeout, ms 10000 Wait for a server reply

Project → Import tags from an OPC DA server, or the OPC DA button above the tag table.

  1. Find servers lists servers on this or a remote computer.
  2. Connect opens the server’s branch tree.
  3. Check items, or use Check branch with children, and press Import.

Import tags from an OPC DA server

The tag type and write access come from the server; array items are not imported. Importing again into the same connection updates tags with the same ItemID, while archiving, scaling and units are kept.

OPC DA address panel

The address is the item’s ItemID exactly as the server or an OPC client (for example Matrikon OPC Explorer) shows it. Case and spaces matter.

Server Example ItemID
Matrikon OPC Simulation Random.Int4
Kepware / KEPServerEX Channel1.Device1.Tag1
SIMATIC NET S7:[PLC1]DB1,REAL4
Hierarchy with “/” Line1/Pump1/Speed

A separate 32-bit process, ScadaOpcDaBridge.exe, talks to the server; it is installed with the program because most OPC DA servers are 32-bit COM servers. Values are read from the server cache every poll cycle, and writes are synchronous. OPC quality becomes tag quality: Bad, Uncertain, “no connection”.

OPC DA works over DCOM. For a server on another computer:

  • DCOM is configured on both machines: launch and access permissions (dcomcnfg), and accounts with identical names and passwords, or a domain;
  • the firewall must open port 135 and the dynamic DCOM ports;
  • listing servers on the remote machine needs OPC Core Components (OpcEnum).

It is simpler and more reliable to install Scadora or its server on the computer with the OPC DA server, or to connect over OPC UA if the server supports it.

Symptom Cause and what to do
“OPC server … is not registered on this computer” Wrong ProgID, or the server is not installed. Find it with Find servers
Access denied (0x80070005) DCOM permissions: the Scadora account may not launch or access the server
“OpcEnum does not respond on computer …” No OPC Core Components on the remote machine, or port 135 is blocked
“The server does not support address space browsing” Import from the tree is impossible: type ItemIDs from the server documentation
Tag Bad No such ItemID, or the server itself reports Bad quality (no link to the device)
Tag Uncertain The server reports Uncertain: a cached or stale value
A write is rejected The item is read-only, or the tag type does not suit the server
  • OPC DA 2.0 only. Servers with OPC DA 3.0 only, HDA and A&E are not supported.
  • Arrays are not supported.
  • Server subscriptions (OnDataChange) are not used: values come from the cache every poll cycle.