OPC automation wrapper issue - pt2|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC automation wrapper issue - pt2
Avatar
Gary Muir
Plymouth
New Member
Members
Forum Posts: 2
Member Since:
10/31/2019
sp_UserOfflineSmall Offline
1
11/01/2019 - 03:24
sp_Permalink sp_Print

With reference to my last post where I am trying to find a OPC automation wrapper that will allow me to get data from an OPC server into Excel, I have come across the wrapper opcdaauto.dll.

However when I use this with my Excel 2013 I get an error message. The error is Run-time error '429' - ActiveX component can't create object.

This error occurs when the VBA executes the following line of code:

Set myOPCServer = New OPCServer

opcdaauto.dll has been registered and added to the VBA references.

I am stuck as I feel I am banging my head against a wall in order to get this to work.

Any help or advice is gratefully received.

Avatar
Randy Armstrong
Admin
Forum Posts: 1455
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/03/2019 - 19:34
sp_Permalink sp_Print sp_EditHistory

OPC depends on DCOM permissions being set correctly.

If the OPC server is running in the same account as the Excel application then it should work.

As soon as you introduce other accounts or multiple machines then you need to go through the DCOM configuration process.

Start here if you need more information:

https://www.matrikonopc.com/dc.....n-opc.aspx

Avatar
Jay T
New Member
Members
Forum Posts: 1
Member Since:
03/05/2018
sp_UserOfflineSmall Offline
3
08/02/2023 - 07:16
sp_Permalink sp_Print

I am having the same issue with same code, same dll. 

A little background

I am running Matrikon OPC simulator and i am able to see values using the mobile OPC explorer (all from localhost). So I don't think its a permissions issue. 

I am running office 365 on Windows 10.

i've also tried installing OPC DA Auto 2.02 Specification

in which case i needed .net 1.1

i then had to run OPC DA Auto 2.02 Specification.msi in compatibility mode

it didn't seem to give me any more dll files for excel. 

Avatar
Randy Armstrong
Admin
Forum Posts: 1455
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
08/02/2023 - 07:26
sp_Permalink sp_Print

Being on localhost is not enough. The OPC Server must be running as the same user as the Excel application.

That said, opcdaauto.dll is 20 year+ s/w that uses technology that Microsoft no longer supports.

If you can get it work you are lucky but you should not assume that it will be possible.

You need to upgrade to libraries that support the latest versions of .NET.

See https://opcfoundation.org/deve.....urce-code/

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 14
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1353
Posts: 4586