Explainer
Why a C# OPC DA client needs its own RSLinx Classic server
Short answer
The OPC DA endpoint your C# client needs comes from a licensed RSLinx Classic installation with a configured communication driver and a named DDE/OPC topic — the plant's built-in HMI link provides neither. Install Classic on the computer that runs your client, configure the driver and topic, prove the topic with a generic OPC DA test client, then connect. If you only need tag values, libplctag reads EtherNet/IP tags from C# without RSLinx.
On this page
- Does the plant's working HMI connection already give my C# client an OPC server?
- Which RSLinx edition provides the OPC DA server a C# client needs?
- Where should the RSLinx server and my C# program sit?
- How do I configure the driver and the DDE/OPC topic in RSLinx Classic?
- How do I prove the OPC path works before writing any C#?
- What does the C# client itself need to connect?
- Can I skip RSLinx and read the PLC directly from C#?
- What must I check before my C# program writes to the PLC?
- Which connection should I build?
- Questions asked
Your C# program reaches the client's PLC data table through three pieces the plant does not have yet: a licensed RSLinx Classic installation containing the OPC DA server, a configured communication driver, and a named DDE/OPC topic your client addresses by name. The plant's working HMI link provides none of them — RSLinx Enterprise and FactoryTalk Linx Enterprise carry HMI traffic, not outside OPC clients. This article gives you the edition decision, the driver-and-topic configuration, the test that proves the path before any C# code, and the direct EtherNet/IP route through libplctag when only tag values matter.
Does the plant's working HMI connection already give my C# client an OPC server? #
No — the HMI link proves only that the HMI can reach the controller: RSLinx Enterprise or FactoryTalk Linx Enterprise, whichever version the plant runs, exists to carry HMI client traffic and registers no OPC DA server your standalone C# process can attach to.
The arrangement described in the client's email is typical: the PLC-to-HMI communications are built into the devices and configured with RSLinx Enterprise on the programming laptop, and RSLinx Classic appears on that same laptop only when the programming software itself needs the controller. Nothing in that setup registers an OPC server on the computer that will run your application.
Three dead ends to rule out in order: reconfiguring the working HMI connection (a different client, the same missing endpoint), installing the HMI communication product and expecting the Classic interface, and editing item strings in a copied C# example — an invalid item matters only after a server exists to reject it. Build the path in order instead: edition, driver, topic, test, then code.
Which RSLinx edition provides the OPC DA server a C# client needs? #
RSLinx Classic with OPC capability is the edition: it contains a built-in OPC DA server that bridges controller data to OPC clients over EtherNet/IP or another configured driver, while RSLinx Enterprise and FactoryTalk Linx Enterprise provide no DA endpoint and your programming language decides nothing about any of it.
Identify the host computer first, then read what is actually installed on it: the product name and its active license decide the question, and the installed server's documentation — not a forum example — tells you whether that license covers OPC DA for a client on this machine. Licensing is obtained and activated through the manufacturer or an authorized distributor; a client library, a reinstall or a code sample supplies none of it.
Commit to the placement before you buy anything. If your C# process and the server share one computer, RSLinx Classic with OPC capability is the requirement. If the client runs elsewhere, the arrangement is the one the client's email names — RSLinx Gateway on the machine running your software — with the edition's remote-access capability confirmed in its documentation. C# decides none of this; client location does.
Where should the RSLinx server and my C# program sit? #
On the same Windows computer if you can: a local OPC DA connection runs through COM alone and needs no DCOM, while a client on a different computer adds DCOM launch and access permissions, authentication and firewall rules to the path.
Commission locally even when the final deployment is remote: prove the server, the topic and the items with the test client on the host machine first, then move the client across. Remote OPC DA goes through the plant's approved DCOM and firewall configuration — never by loosening security broadly to make a test pass.
The placement question is the same for every custom client, whichever interface it speaks; the walkthrough of where an OPC UA server sits when Python reads PLC data draws the same controller, server and program picture for the UA case.
If this station will live at the machine — in a cabinet door or on a console — specify a computer built for that duty, an industrial panel PC, rather than an office tower.
How do I configure the driver and the DDE/OPC topic in RSLinx Classic? #
Configure the driver first, then create the topic: open the DDE/OPC Topic Configuration dialog box, add a topic with a distinct name, and associate it with the controller your driver browses to, because the topic name becomes part of every item address your client reads.
Work it in this order:
- Configure the communication driver for the actual network — here EtherNet/IP — with the controller reachable at its address, for example 192.168.1.50 (an example address; use the real one from the controls owner).
- Browse to the controller and confirm the displayed device identity matches the target before configuring anything downstream.
- Open the DDE/OPC Topic Configuration dialog box, add a topic — Line1PLC as an example name you choose and record — and associate it with that controller.
- Select the topic in the dialog, browse for the address string your request needs, and capture it with the Copy to Clipboard action instead of retyping it.
A topic is a named mapping to a controller path — it is not the controller's IP address and not a substitute for a working driver. The dialog-by-dialog procedure is the one RSView32 integrations use, and the knowledge-base article on RSLinx DDE/OPC topic setup for RSView32 PLC communication walks it screen by screen. The same procedure fronts third-party modules too: ProSoft documents DDE/OPC topic configuration for its DFNT products with RSLinx acting as the driver.
If the topic you added does not show the controller you expect — the failure documented for ControlLogix reached through a 1756-ENBT module — fix the driver path before the client work; the missing-topic fix for a ControlLogix 1756-ENBT walks that exact fault.
How do I prove the OPC path works before writing any C#? #
Test the server with a generic OPC DA client before any C# exists: browse it, select the topic you configured, and read one item whose value you can verify at the controller — if that read fails, no C# debugging will fix it.
Record three strings from that test: the server selection exactly as the test client reports it, the topic name you configured, and the complete item address the browser shows. Item syntax differs by controller family — a symbolic tag-based controller and a data-table-based controller do not take interchangeable addresses — so capture the string, never guess it.
If the client's system is out of reach while you develop, practice the identical path on a bench: a virtual PLC test bench for protocol practice gives you a safe target for the same driver, topic and test client.
What does the C# client itself need to connect? #
A library that explicitly supports OPC DA, the server's registered program identifier, and the item addresses you captured from the browser: OPC DA is a COM interface, so match the library's COM and process-architecture requirements to the installed server before blaming the PLC.
Read the server identity from the installed server's documentation or from an OPC browsing tool, never from a sample written for another installation. A vendor DDE spreadsheet walkthrough — Rockwell's QA769 example, RSLinx Classic: Monitor Data in Excel using DDE — is useful for topic concepts, but DDE and OPC DA are different client interfaces and one is not a specification for the other.
The two strings your client needs look like this in shape (illustrative names; the values come from your installed server):
// Illustrative shape only - variable names are ours.
string serverIdentity = ""; // the registered program identifier the OPC DA test client reports
string itemAddress = ""; // the complete item string copied from the server browser
int readback = 0; // holds the test read for comparison
The acceptance test is an equality: put a known value in the element you verified — 1234 as an example — confirm the generic test client reads 1234, then confirm your C# read returns 1234 with a good quality code, and the path is proven. If a server visible to the test tool stays invisible to your application, look at client registration, process architecture, execution identity or library compatibility — not the item string.
Can I skip RSLinx and read the PLC directly from C#? #
Yes when the deliverable is tag values in your program: the libplctag library reads and writes controller tags over EtherNet/IP from C# with no RSLinx installation, topic or OPC server in the path — but it cannot satisfy a specification that names the OPC interface, and this client's email does.
libplctag connects to the controller over EtherNet/IP and reads or writes tags directly, which removes the license, edition, topic and DCOM questions from your project entirely. It is the same job a SCADA client does — a program reading a controller over EtherNet/IP — and the walkthrough of how a SCADA client reads a small PLC over EtherNet/IP shows the addressing and polling side of that kind of read.
The decision line: if the deliverable is your program's data, take the direct route; if the contract or future clients need the OPC interface, build the RSLinx Classic path and treat libplctag as a bench tool, not the deliverable.
What must I check before my C# program writes to the PLC? #
Prove every read first, then put writes under the plant's change control and test them against a spare controller or a bench PLC, never against the client's running production machine, because an address that reads a wrong-but-valid element can write over an element nobody expected to change.
Writes are direction-dependent: a read of the wrong element wastes a test, a write to the wrong element corrupts running data. Verify the item list element by element against the controller's data table with the controls owner, keep the HMI configuration untouched while you commission, and treat the C# client as a separate connection with its own endpoint, its own item list and its own acceptance tests.
Which connection should I build? #
Build the OPC DA path — licensed RSLinx Classic on the computer that runs your C# program, a configured driver, a named DDE/OPC topic, proven with a generic OPC client — when the specification names OPC DA, and libplctag over EtherNet/IP when only tag values matter.
- The contract names OPC DA through RSLinx, as this client's email does: RSLinx Classic with OPC capability on the machine that runs your program, driver and topic configured, path proven with a test client, then the C# code.
- Only your program needs the tags: libplctag over EtherNet/IP, no RSLinx, no topic, no DCOM.
- Your program runs on a separate computer: the Gateway arrangement the email names, with remote access through the plant's approved DCOM and firewall configuration.
- Never acceptable: presenting the working HMI link as the endpoint, or loosening security broadly to make a first test pass.
Questions asked
Can I connect an OPC UA client to the RSLinx Classic OPC DA server?
No. OPC DA and OPC UA are different client-server interfaces: a UA client speaks the UA protocol and cannot attach to a COM-based DA endpoint by changing a setting. If the requirement is UA, you need a server product that documents UA support, with its endpoints and certificate trust configured separately. The DA topic and item addresses you built do not carry over to it.
Why did the client insist on RSLinx Gateway in their email?
Because their email assumes your software runs on its own computer, away from any RSLinx server, and Gateway is the edition it names for serving that remote installation. The assumption drives the request, not your programming language. If your process and the server end up on one computer, decide from the client location and the edition's documented OPC capabilities, and confirm the final arrangement with the client before purchasing.
Can one DDE/OPC topic serve a DDE client such as Excel and my C# OPC DA client?
The DDE/OPC Topic Configuration dialog sets topics up for both DDE and OPC access, so the topic itself is shared. The client interfaces are not: DDE and OPC DA are different mechanisms, and a vendor DDE spreadsheet example, however useful for topic concepts, is not a specification for your C# OPC DA calls. Validate the reads with an OPC DA client before writing code.
How do I prove a C# read matches the controller instead of trusting one number?
Choose a spare element, put a value you selected into it through the programming software under change control, then read that element through the generic OPC DA test client and through your C# code and compare all three views. Repeat on a second element at a different address: two matching elements rule out a lucky topic or item coincidence.