Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all 1794 articles
Browse latest View live

Browsing the DeltaV OPC server fails - "Object is not connected to server" - by: micham

$
0
0
We are using QuickOPC.Net version 2018.2. We have a problem when trying to browse the DeltaV OPC server (opcda.OPC.DeltaV.1). When trying to browse, we see the error:

Object is not connected to server. See the attached screen capture.

Note: We don't have a problem to browse for OPC items with any other OPC server.
Your help is mostly appreciated.

Thank you.
Michael Meirovitz
Control See

Could not create certificate via proxy error with hashSize - by: Holbach

$
0
0
We are moving an application to Server 2016, which is using toolkit version 5.34.

When we try to run the application (which is using an EasyUAClient object) we see the following when the certificate generation fails, however running the sample client generates a certificate just fine on the machine. Is this potentially permissions related? the reference to the hashSize makes me think not.


2020-03-10 10:04:28.4042|INFO|The OPC-UA engine is connecting to the underlying subsystems.
2020-03-10 10:04:28.4042|INFO|OPC-UA engine SDK configuration successfully provided by "OpcLabs.EasyOpc.UA.Toolkit.InternalSdkConfigurationProvider".
2020-03-10 10:04:28.5761|INFO|The OPC-UA engine has determined the client certificate parameters as listed below.
SubjectName: IIS Worker Process
ApplicationName: IIS Worker Process
ApplicationUri: urn:XXXXXX:w3wp.exe:10.0.14393.0%20%28rs1_release.160715-1616%29
ProductUri: urn:literal:string:Internet%20Information%20Services

2020-03-10 10:04:29.0917|INFO|The OPC-UA client session on endpoint URL "opc.tcp://xxx.xxx.xxx.xxx:49380" failed at tick 3105562 and will retry in 10000 milliseconds.
2020-03-10 10:04:29.0917|INFO|The status subscription for an OPC-UA session on endpoint URL "opc.tcp://xxx.xxx.xxx.xxx:49380" is in failure. Further such warnings on this session will not be logged.
OPC-UA service result - Could not create a certificate via a proxy: -error Unprocessed arguments exist possible syntax error: -hashSize .
---- SERVICE RESULT ----
StatusCode: {Bad} = 0x80000000 (2147483648)

2020-03-10 10:04:29.1073|INFO|The OPC-UA client session is connecting to endpoint URL "opc.tcp://xxx.xxx.xxx.xxx:49380".
2020-03-10 10:04:29.1073|INFO|The OPC-UA client session failed to connect to endpoint URL "opc.tcp://xxx.xxx.xxx.xxx:49380".
OPC-UA service result - Could not create a certificate via a proxy: -error Unprocessed arguments exist possible syntax error: -hashSize .
---- SERVICE RESULT ----
StatusCode: {Bad} = 0x80000000 (2147483648)

Upgrade to higher product edition - by: goosvanbeek

$
0
0
Hello support,

Is it possible to upgrade to an higher product edition?
My current edition is Professional, single developer, 5 year maintenance, ending may 2023.
I want to upgrade to Ultimate, single developer, 5 year maintenance.

Regards,
Goos van Beek.

Subscription mode. Catastrophic failure error -> blocked Subscribe/Unsubscribe - by: Andriy

$
0
0
Hello,

I receive a lot of "Catastrophic failure" errors on ItemChanged event handler.
I don't know what it means and how I can handle it.
Can you provide information about this error: when it is risen and how I can fix it.
I don't know if it's connected or not, but I get this error when the OPC DA server periodically crashes.
What is worse, my application after that cannot reconnect to the OPC server when it is up and running

QuickOpc version=5.54.1115

Thank you

Access Denied on DASSIDirect - by: csm

$
0
0
Hi,

I have been trying to subscribe to tags on an OPC Server without any success, all avenues return "Access Denied" error as per the XML attachment. I've adapted the .NET Console samples "XmlLogger" as below and tried ALL 9 combinations of the 3 ClientParameters that affect security. I have another application written with a different library which can read the tag as can Matrikon Explorer and OPC Expert. Is there another setting in QuickOPC that I can try? Using version 5.54.1085.1.

Publickey of DLLs when using disabled prerequisites boxing - by: zaglerp

$
0
0
Hi!

We want to replace some DLLs with versions we have built ourselves (e.g. OpcLabs.EasyOpc.UA.Implementations.NetSdk.res.Opc.Ua.Core.dll)
After disabling prerequisite boxing, these DLLs cannot be loaded, because the public key does not match.

Whats going wrong?

Thank you
Peter

Publickey of DLLs when using disabled prerequisites boxing - by: zaglerp

$
0
0
Hi!

We want to replace some DLLs with versions we have built ourselves (e.g. OpcLabs.EasyOpc.UA.Implementations.NetSdk.res.Opc.Ua.Core.dll)
After disabling prerequisite boxing, these DLLs cannot be loaded, because the public key does not match.

Whats going wrong?

Thank you
Peter

Access Denied on DASSIDirect - by: csm

$
0
0
Hi,

I have been trying to subscribe to tags on an OPC Server without any success, all avenues return "Access Denied" error as per the XML attachment. I've adapted the .NET Console samples "XmlLogger" as below and tried ALL 9 combinations of the 3 ClientParameters that affect security. I have another application written with a different library which can read the tag as can Matrikon Explorer and OPC Expert. Is there another setting in QuickOPC that I can try? Using version 5.54.1085.1.


BrowseNodes zero items but demo application shows all items - by: ToSi

Browsing Nodes results in zero items - by: ToSi

$
0
0
Dear OPC Labs Team,

I am currently developing a service where one part is to browse the whole structure of an OPC-Server. Right now, I am using a CodeSys Testserver. Your Demo Application (OPC-DA) can browse all nodes of this server. The Problem is that if I try to browse all nodes with the EasyDAClient class, the result will always be 0 nodes. I already tried your VB Examples and there will also be 0 nodes for this server. So, in conclusion your example of browsing nodes (which is like my approach) won't find any nodes, but your Demo Application can do so. I also want to mention that I managed to configure the server so that I can browse all my nodes, but the PLC-Name was missing, which will lead to the point that subscribing to items won’t work because the client can’t find these.

My Code (using defualt settings):

- works fine with OPCLabsKitServer but returns 0 nodes on CodeSys Server






This is correct and wanted as the result of BrowseNodes()


I changed the Server to the CodeSys Server in the Example...

EasyDaClient - WCF - The type initializer threw an exception - by: Math

$
0
0
Hi,

I dont have any issue using the EasyDaClient with a Winform.

When I use the EasyDaClient within a WCF service I get this error:

The type initializer for 'OpcLabs.EasyOpc.DataAccess.EasyDAClient' threw an exception.

Here's my code:

Imports System.ServiceModel
Imports System.ServiceModel.Activation
Imports System.ServiceModel.Web
Imports OpcLabs.EasyOpc.DataAccess


<ServiceContract(Namespace:="")>
<AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)>
Public Class WCFQuickOPCAjax


<OperationContract()>
Public Function Test() As String
Try
Dim Client As New EasyDAClient

Return "test"
Catch ex As Exception
Return ex.Message.ToString
End Try

End Function
End Class

I someone could help me I would be happy as a clam in high water!

Many thanks,

Mathieu

SessioneTimeout doesn't work? - by: Grizzo

$
0
0
Hi, we use READMULTIPLE generalli (cannot use SUBSCRIBE) and need to have a maximum response time of 30 seconds.
Sometimes, probably due to OPCServer not responding, the READMULTIPLE call remains stucked for 2 minutes.
I read the 2 mins is the standard timeout of the library and I tried to set it to 30 secs with SessionTimeout parameters, but it does not seem to work.

Beacuse we do not use Isolated client, the SessionTimeout to set is a property of OpcLabs.EasyOpc.UA.EasyUAClient.AdaptableParameters.SessionParameters.
I tried to set it up before and after instantiating EasyUAClient object and opening connection without any results: the timeout is always 2 minutes.

The documentation and/or search in forums didn't give me an answer. What could be wrong? Some suggestion on How To set up the timeout?
A piece of example code would be appreciated.

Thanks.
Massimo

The OPC-UA engine failed to connect to the underlying subsystems. - by: chrhardt

$
0
0
Hello,

I'm relatively new to OPC UA. I tried the OPC UA demo for Delphi (EasyOpcUADemo) with Delphi XE8. (using the latest version QuickOPC 2020.1)
When I try to connect to an OPC UA server I get the following error:

OPC-UA service result - Could not create a certificate via a proxy: Der Vorgang wurde erfolgreich beendet = Bad.
---- SERVICE RESULT ----
Status Code: {Bad} = 0x80000000 (2147483648)



I wrote a simple test program to get some logentries. Another error appears before the error shown above.



How can I fix this "The OPC-UA engine failed to connect to the underlying subsystems" error?

Thank you for your help.

Subscribe for Alarms and sort by date and time - by: chris.debono

$
0
0
I am developing an application which subscribes for alarms. The alarms are retrieved sorted by the Event.Message, is there a way to sort these alarm by date and time please?

Writing to tag failed with error code 0xC0048005 - by: nrsouman

$
0
0
Hi,

I'm getting an exception "0xC0048005 + The client method called was 'WriteMultipleItemValues'" when attempting to write to a tag using EasyDAClient.WriteItemValue. The code looks like this:

EasyDAClient.WriteItemValue("1.1.1.1", " ABB.HarmonyOPCServer", "fulllotno", "123456789",VarType.Bstr);

The string value is a lotnumber which always has the same length and is never empty. Unfortunately this doesn't always happen and when writing to our test OPC server (Kepware) this has never happened.
I can't find this exception in the documentation. Could someone explain what this exception means?

Thanks,

Neil

Testing Demo version with Xojo - by: Sacha

$
0
0
I am testing the OPC client with Xojo through COM.

Everything works fine but I can't read the ID Tag collection because the method GetEnumerator gives me NIL. The other methods like Count returns correct values.

Why ?

PS: The Object is: OpcLabs.EasyOpc.DataAccess.AddressSpace.DANodeElementCollection

Best Regards

Sacha

VS 2019 hangs when adding UA .net controls and running debug mode - by: Restrepo

$
0
0
Hello Z,

I am currently working with a customer that is experiencing a VS 2019 hang whenever he adds the easyUAClient .net control to his form and he tries to run in debug mode. The strange thing is the following:

*Customer is able to Compile, Run and debug the EasyUADemo project that it's included with the Data CLient toolkit
*I am not able to replicate the behavior on my end with his test applications nor my own test application. I tried to see if I could replicate the issue so I tested it using two virtual machines and my workstation and the toolkit worked as expected.
*It appears that the issue only occurs during debugging

I know there is not much to go with but I have exhausted all my ideas and I was wondering if you have seen this behavior before or if you have any other suggestions for me to look at.

The customer performed the test below:

from the customer:
1. If I start your EasyOPCUADemo test program, all works OK. If I keep your basic OPC controls and modify the program by adding SQL and other windows controls needed for our application, it works normal. Your demo program uses 3 OPC controls: uaDataDialog, uaHostandEndpointDialog, and easyUAClient.
2. Next, I build a new program from scratch, initially with no OPC controls, everything works normally. I just put Inputboxes when I needed OPC inputs.
3. Next, I verified that there were no OPC references in the Project. There were no references.
4. Next, I added the uaDataDialog control. I verified that references were added to the project. All were version 5.58.146.1. I made no code changes, I just added the uaDataDialog control.
5. I tested my program and it ran normally.
6. Next, I added the uaHostandEndpointDialog control to the Project, verified the references were still version 5.58.146.1. Again, no code changes. I tested the program and it ran normally.
7. Next, I added the UAClient cotrol and verified the references. Again, no code changes were made. I tried to run my program, and it hung, just as it had before.
8. The program works perfectly outside the development environment (VS19). The issue is when it tries to run in the debug mode. It builds and publishes with no errors or warnings.
9. I’ve updated VS19 and Windows 10 to the latest revs and still no improvement.


Environment:

Windows 10 - Up to date
VS2019 - Up to date
OPC Data Client 2020.2 - 5.58
.NET framework 4.7

Please let me know if you have any suggestions or any questions. Thank you in advance.

Embed library into Cs project - by: Šilhavý

$
0
0
Hi
I wrote very simple program to grab data from a file and send them on UA server. I am using BaseLib an EasyOpcUA libraries, VS2017Comm, Win10, framework 4.8.
When i compile the project and dlls are in the folder with exe, everythink work fine. But what can I do, when I want just standalone exe file?
I have 3 questions (2 cases):
1 . Dlls are referenced, NOT embeded. I thought it is sufficient to have them just in the folder, where I referenced them from - so Progra~/OpcLabs ... QuickOPC will be installed on deploy computer too. But it doesnt work. You know - just to make link to the dll file - I tried it even in .csproj. Didnt work. Dll is missing.
2. Dlls are referenced, added into project and embeded, resolved using AssemblyResolve. Wont work, dll is still missing.

3. Is it possible to use just part of the library - Dlls are 20MB, program is 20KB and uses just few methods.

Thanks in advance for your advices.

File Attachment:

File Name: EmbedDllExample_2020-04-22.rar
File Size: 11,046 KB

Multi Column ListView - by: neilcooley

$
0
0
Hi

I have a UDT comprising,

Mould ID
Next Action
Date_1
Date_2
Date_3

Do you have a example showing how you would display each UDT tag as a row in a list view. ie. the UDT members are the fields.

I am working in VB Net.



Neil

Can QuickOPC-UA be used to retrieved historical data using the HA specification? - by: g1001

$
0
0
We require data access and historical data access for our tools. I haven't seen any documentation on your website refering to HA. Please confirm whether we can use QuickOPC-UA for HA? If not, are there any plans to include HA in the near future?
Viewing all 1794 articles
Browse latest View live