Getting Started – OPC Client
View the following video demonstrating the OPC Client .NET feature for OPC DA.
- 00:00 – Introduction
- 00:04 – What’s OPC Client.NET
- 00:35 – How to use it
- 02:06 – Direct OPC Interface
- 03:08 – OPC.NET Tags
- 03:25 – More Questions
From the system that contains your OPC Client install either the full installation of Open Automation Software or the Custom installation with OPC Client Connector – OPCClient.NET.
Note: When networking third party OPC Clients to remote OAS Services always install the OPCSystems.NET OPC Server on the same computers as the OPC Client. You will not need a license on the OPC Client PCs, just where the OAS Services are.
In order to browse and access OAS tags from OAS Engines that have security enabled modify the file DANSrv.exe.config in the installation directory of OAS, typically C:\Program Files\Open Automation Software\OAS\.
Set both the UserName and Password within the file that would provide access to browse tags, read tags, and write tags.
<add key=”UserName” value=””/>
<add key=”Password” value=””/>
If the OPC Client is on a different computer than the OAS Service you are connecting to modify the file NetworkNodes.txt in C:\Program Files\Open Automation Software\OAS\ and add each IP Address, Network Node Name, or registered Domain Name you want to connect to the NetworkNodes.txt file.
In this example we will use the OPC Foundation Sample found under the program group Open Automation Software -Tools.
From the Server pull down list select Browse.
Select the local OPC Server OPCSystems.NET.
Create a group subscription by right clicking on the OPCSystems.NET OPC Server.
Enter a Name for the subscription and select Next.
Browse either the Local service or a remote service under the Network branch.
Remote OPC Items use the following syntax for the remote OPC Item.
Network.<IP Address, domain name, or network node name>.Tag.Value.
Browse for your OPC Item to add and double click on it.
Here you will see both Open Automation Software tags in the service you are browsing along with the DirectOPC branch you can use to browse directly to OPC Servers on the service node. DCOM is not used in remote connections. Networking is over TCP port 58724 and this port number is adjustable under Configure-Options.
Select Next and then Done and the value of the remote item will appear.