07/27/2016
I'm trying to write a C# program that's an OPC DA client. From the searches I've done, the best (free) way to do that is with the OPC .NET API from the OPC foundation, which seems to consist of (from the sample code I've seen) a bunch of DLLs whose names start "OpcRcw...", as well as a couple of DLLs "OpcNetApi.dll" and "OpcNetApi.Com.dll". And evidently the way to get these files is to download the "OPC .NET API" redistributables from the foundation.
However, when I download and install the ".NET API Redistributables" from https://opcfoundation.org/deve.....ibutables/ it installs the OpcRcw* DLLs, but it doesn't seem to install OpcNetApi.dll or OpcNetApi.Com.dll.
Am I missing something? Is there a better way to write an OPC DA client in C#? Where am I supposed to find OpcNetApi.dll and OpcNetApi.Com.dll?
05/20/2014
cwitty@newtonlabs.com said
I'm trying to write a C# program that's an OPC DA client. From the searches I've done, the best (free) way to do that is with the OPC .NET API from the OPC foundation, which seems to consist of (from the sample code I've seen) a bunch of DLLs whose names start "OpcRcw...", as well as a couple of DLLs "OpcNetApi.dll" and "OpcNetApi.Com.dll". And evidently the way to get these files is to download the "OPC .NET API" redistributables from the foundation.However, when I download and install the ".NET API Redistributables" from https://opcfoundation.org/deve.....ibutables/ it installs the OpcRcw* DLLs, but it doesn't seem to install OpcNetApi.dll or OpcNetApi.Com.dll.
Am I missing something? Is there a better way to write an OPC DA client in C#? Where am I supposed to find OpcNetApi.dll and OpcNetApi.Com.dll?
Hello,
Have you found the solution for this?
Do you have the dll files?
Thank you.
10/18/2016
Hello All
Nathan Pocock said
Hello,I just checked the installer and the OpcNetApi.dll and OpcNetApi.Com.dll files should be stored in the GAC.
It should be stored in the GAC, but ... it doesn’t seem to install OpcNetApi.dll or OpcNetApi.Com.dll. I can't found them anywhere on my PC.
Here is content of C:\Windows\Microsoft.NET\assembly\GAC_MSIL\ for my PC (Windows 7 64-bit, SP1)
...
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\msddsp
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcComRcw
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Ae
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Batch
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Cmd
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Comn
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Da
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Dx
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Hda
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\OpcRcw.Sec
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\perfpkg
...
Have you found the solution for this?
Thank you.
Hello everybody,
Sorry for the slow response.
I have ran a trace on the MSI and I can see that the files are not being deployed. I'm not sure why. I think the installers may be not correctly configured. Unfortunately, I do not have the capacity to troubleshoot this any further at this point. Could somebody else help out and work with me so that we can in fact update the deliverables that are available for download?
The complete source code package including the installers is available here: https://opcfoundation.org/deve.....e-code-cc/
Please email me any information, updates, fixes, and project updates etc. so that I can update our source control, and then rebuild the installers for testing.
07/03/2015
Dear Sir,
The access to the https://opcfoundation.org/deve.....e-code-cc/ is only possible to corporate account type. To help solve problem, i need the access to this link... Can You enable the access to this link also for the "registered user type" account?
Wojtek.
05/12/2015
The OpcRcw*.* files are for .NET 1.1 applications and it is unlikely that anyone needs them now.
The OpcNetApi DLLs are for .NET 2.0/.NET3.5 and if they are not getting installed it is likely because .NET 2.0 is not installed on the system.
Can you please confirm that .NET Framework 3.5/2.0 is installed on systems where these DLLs are missing?
Note that each version of Windows has a different way to install it.
In Windows 10 you need to add/remove Windows features.
In Windows 7 there is a file to download.
02/21/2017
Ok. That sucks. Is there any freely or cheaply available DF1 .NET library for Allen-Bradley PLCs, and/or are there .NET numeric input and toggle controls available somewhere?
We have successfully communicated with an Allen-Bradley PLC using Modbus, but want to use DF1 instead, so that it supports 32-bit values and counter and other register (besides the ones that get mapped to Modbus holding registers) reading and writing.
05/12/2015
sam@carecontrols.com said
I have .NET 4.6.2 installed, so I can't install .NET 3.5 or 2.0. It should be backwards compatible with them, though, right?
No. 3.5 and 4.X can be installed side by side on the same system but you need to do it explicitly.
As I mention there is a '.net 3.5 windows feature' that you can add in Windows 10 so it is easy to do.
09/11/2015
Hello,
Has there been a resolution of this problem? I have .NET 2.0, 3.0, 3.5 and 4.6.2 installed. I installed .NET API Redistributables (https://opcfoundation.org/deve.....ibutables/) but I do not see OpcNetApi.dll or OpcNetApi.Com.dll anywhere.
Thank you in advance
09/08/2015
I ran the installer using this command:
msiexec /i OPC .NET API 4.5 Redistributables.msi /L* log.txt
I found some error in the log:
Info 2898.For VSI_MS_Sans_Serif13.0_0_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 13 pixels height.
DEBUG: Error 2826: Control BannerBmp on dialog EulaForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: EulaForm, BannerBmp, to the right
Anyway, it's possible to copy the DLLs from this project:
https://sourceforge.net/projec.....p_redirect
Download the file, unzip, and look for the DLLs in AdvancedHMIDrivers\Support\OPC.
In Visual Studio, add a folder, put the DLLs inside, add references in the project to the files (browse and locate the DLLs).
1 Guest(s)