Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

DeltaV browsing issue

More
23 Jan 2018 19:37 #5910 by micham
Replied by micham on topic DeltaV browsing issue
If what you are saying is correct, our program should not be able to browse at all. However, it works find with all OPC servers except of DeltaV OPC server...

What is your suggestion?

Thanks.

Michael

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 19:31 - 23 Jan 2018 19:31 #5909 by support
Replied by support on topic DeltaV browsing issue
There is no "result" for it, because what we have inside QuickOPC are two versions of this internal assembly (which is written in C++/CLI): One compiled for 32 bits, and one for 64 bits. And, the upper level assembly (EasyOpcClassic) decides (dynamically, in runtime) which one of these two to load. So in theory, there would be some exception (quite different from inability to browse - something like "incorrect EXE format") if someone tried to load 32-bit DLL into 64-bit process or vice versa, but because of the logic in EasyOpcClassic assembly, this cannot happen, because the right version is always loaded.
Last edit: 23 Jan 2018 19:31 by support.

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 19:25 #5908 by micham
Replied by micham on topic DeltaV browsing issue
Hi,

So, what is the result of "Windows unable to load this 64-bit DLL into a 32-bit process"...?

Thanks.

Michael

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 19:21 #5907 by support
Replied by support on topic DeltaV browsing issue
Actually,

after inspecting the exception more closely, I could determine that your program is *not* a 32-bit application. It runs in a 64-bit process, because the assembly it came from is App_Web_OpcLabs.EasyOpcClassicRaw.amd64, and it is impossible for Windows to load this 64-bit DLL into a 32-bit process.

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 17:17 #5906 by micham
Replied by micham on topic DeltaV browsing issue
What I meant is that the operating system is 64 bits.
Our product which uses your browsing component is a 32 bit program.

We have tried with our 32 bit program and also with your 64 bit Easy OPC client.

In both cases, the result is the same - exception and not possible to browse items.

Thanks,

Michael

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 16:33 #5905 by support
Replied by support on topic DeltaV browsing issue
You have answered to: "4. Does your client run in 32-bit or 64-bit process?" by "64 bits".
Now you wrote "Our program that is using your component is a 32 bit application."

I think this is a contradiction. Can you please clarify that.

All .NET binaries that come with QuickOPC are compiled for "AnyCPU" target. That is, they run in 32-bit process on 32-bit systems, and in 64-bit process on 64-bit systems. Changing them to always run in 32-bit process is possible either by a) opening the corresponding example solution (because they come with source code), changing the target CPU in project properties, and rebuilding, or b) patching the existing binary using the CORFLAGS utility, docs.microsoft.com/en-us/dotnet/framework/tools/corflags-exe-corflags-conversion-tool .

Proper registration is a task for the server vendor. Windows normally "reflects" the corresponding parts of the registry between the 32- and 64-bit worlds, so the component vendors do not necessarily have to do anything special, but it does not always work. First we need to establish whether the following two facts are both true: 1) all 32-bit local clients work and 2) no 64-bit clients work.

Best regards

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 16:21 #5904 by micham
Replied by micham on topic DeltaV browsing issue
Our program that is using your component is a 32 bit application.

Do you have a 32 bit version of the EasyOPCClient demo program?

Can you please tel me if it possible to register the OPC server in the 64-bit part of the registry?

Thanks
Michael

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 15:10 #5902 by support
Replied by support on topic DeltaV browsing issue
Can you please, for test, rebuild the client application to run under 32 bits (target CPU = x86)?
It is quite likely that the OPC server has not registered itself in 64-bit part of the registry.

(I assume all other OPC clients that you have tested actually run in 32-processes, right? Note: Task Manager can show this).

Best regards

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 14:50 #5901 by micham
Replied by micham on topic DeltaV browsing issue
Browsing OPC servers works fine.
Browsing OPC items fails - exception - Class not registered.
Read/Write to OPC items fails - exception - Class not registered.
Matrikon OPC Clients and other OPC client can browse OPC items.
64 bits
Client and server on the same machine.

Thanks.

Michael

Please Log in or Create an account to join the conversation.

More
23 Jan 2018 14:47 #5900 by micham
Replied by micham on topic DeltaV browsing issue
Browsing OPC server is working
Browsing OPC tags - doesn't work - Class no registered.
Reading OPC item value - Class no registered.

It always happens.

64 bits

Client and server on the same machine. Only happens with DeltaV OPC server.

Thanks.

Michael

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.094 seconds