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

QuickOPC winForms for .netCore - by: radek.huber

$
0
0
Hello,

Since winforms are now supported by the .net Core , do you plan to build QuickOpc winform libraries for .net Core version?

Thanks you,

Radek Huber

An OPC operation failure with error code 0x800401F3 - by: Ronald B. Livesay

$
0
0
This is the culprit: object x = _client.ReadItemValue( _Machine, _Server, _Tag );
where
private readonly EasyDAClient _client = new EasyDAClient();
using OpcLabs.EasyOpc.DataAccess;

Windows 10, Visual Studio Enterprise 2019, Winforms, c#

Server is Kepware (Kepware.KEPServerEX.V6) running on the same computer

Searches at OPC Labs for the error code (0x800401F3) have not proven very helpful

The Exception is:
An OPC operation failure with error code -2147221005 (0x800401F3) occurred, originating from 'OpcLabs.EasyOpcRaw.DataAccess.RawEasyDAClient' and with depth of 1. The inner exception contains details about the problem.

Inner Exception is:
Invalid class string + The client method called was 'ReadMultipleItemValues'.

In the call to ReadItemValue:
_Machine has been various values {e.g. "","localhost", actual machine name, etc.}
_Server is always Kepware.KEPServerEX.V6
_Tag is a tag known to exist in the Kepware server (e.g. XT1-P2)

Kepware is running fine with the Kepware tools showing usual stuff

Using a server simulator, the c# code has proven to be functional

Managed Resource License Store Not Working As Expected - by: bobkaine

$
0
0
See attachments.
I have created a simple Windows Form Application.
The license is not recognized.
I have tried with the license installed via License Manager and uninstalled.

Subscription mode. Catastrophic failure error - 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

Trusting certificate with AcceptAnyCertificate - by: SolutionNow

$
0
0
Hello,

We have a program that uses your library that is launched by windows service. Being launched by a background service, the program also stays in the background. This creates a problem when at times a dialog box is opened asking for confirmation within 30 seconds of the OPC certificate like this:


Being that program is always in the background is impossible to confirm the certificate. One solution I found here was to set the property OpcLabs.EasyOpc.UA.UAEndpointDescriptor.CertificateAcceptancePolicy = true; But this does not seem to solve the problem. I saw a similar discussion here in the forum but no final conclusion was posted if the property worked correctly or not.

Do you have an update on the matter or maybe you can tell me an alternative?

Thank you

Memory leak issue cause by OpcLabs.QuickOpc - by: KrisSik

$
0
0
Hi,

I got a memory leak issue and the problem I think could be caused by the OpcLabs library, because a huge part of the memory used by the application is allocated by the unmanaged resources. The exception (listed below) throws ≈ 1 time per minute.


I am using OpcLabs.QuickOpc 5.55.433.1 in my .NET Framework 4.7.2 application, which is running on Microsoft Windows Server 2008 R2 Enterprise.
Any ideas regarding this?

Best regards,
Kris

Failover mechanism - by: radek.huber

$
0
0
Hello,

Is there build in failover mechanism in the QuickOpc? Our program need to connect to the backup server in case the main server is not accessible.

Thanks you,
Radek Huber

"SubscribeDataChange" using the read function - by: Moien

$
0
0
Dear all,


I am reading more than 300 different variables with different node IDs from the OPC UA Server. My application is runing 24/7 and I am getting always new variables on the OPC UA Server. I used the "SubscribeDataChange" function (every 1000 milliseconds) to get the new values every second, otherwise the values won't be updated in my Delphi application.
Using "SubscribeDataChange" in a for loop (shown in the following) put lot of load on the CPU! is there any posibility to update all the variables at the same time, something like "Multipple DataChange"?

for I := NoV_DB100 to Length(OPCServerItemArray)-1 do begin
Name := OPCServerItemArray.Source + '.' + OPCServerItemArray.ItemName;
NodeID := 'nsu='+ nsu + ';s=Local Items.' + Name;
OPCUAClientRead.SubscribeDataChange(Url_String,NodeID, 1000);
end;


Best regards,
Moien

how can i read a variable from type DTL in my program to C# - by: alozano

$
0
0
Hi,
now I am using this method to read a variable of type DTL and I will like it simplify the code, anyone can help me?

how can i read a variable from type DTL in my program to C# - by: alozano

$
0
0
Hi,
Now I am using this method to read a variable of type DTL and I will like it simplify the code, anyone can help me?

"SubscribeDataChange" using the read function - by: Moien

$
0
0
Dear all,


I am reading more than 300 different variables with different node IDs from the OPC UA Server. My application is runing 24/7 and I am getting always new variables on the OPC UA Server. I used the "SubscribeDataChange" function (every 1000 milliseconds) to get the new values every second, otherwise the values won't be updated in my Delphi application.
Using "SubscribeDataChange" in a for loop (shown in the following) put lot of load on the CPU! is there any posibility to update all the variables at the same time, something like "Multipple DataChange"?

for I := NoV_DB100 to Length(OPCServerItemArray)-1 do begin
Name := OPCServerItemArray.Source + '.' + OPCServerItemArray.ItemName;
NodeID := 'nsu='+ nsu + ';s=Local Items.' + Name;
OPCUAClientRead.SubscribeDataChange(Url_String,NodeID, 1000);
end;


Best regards,
Moien

LIve Binding WPF component - TargetParameterCountException - by: Restrepo

$
0
0
Hello,

I am currently trying to write us a sample application to help one of my customers writing a WPF Application using OPC Data Client's live binding component. Unfortunately, I am not able to successfully add the live binding WPF component to the Main Windows, and every time I try I get an "Exception of Type Target ParameterCountExeption" see full exception below. Is there something that I am not configuring correctly? I am following the Making a first OPC UA application using Live Binding in WPF in the help manual. The development environment can be found below as well, please let me know if you need anything else from me. Thank you in advance:

Dev Environment:
OS: WIN 10
OPC Data Client 2019.2 (5.56.475.1)
.NET Framework 4.7
VS 2019


Exception of type TargetParameterCountException

Type: System.Reflection.TargetParameterCountException
Data:
HelpLink:
HResult: -2147352562 (0x8002000e)
InnerException:
Message: Parameter count mismatch.
Source: mscorlib
StackTrace:
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at OpcLabs.BaseLib.Presentation.Design.Utilities.WpfVSxxxxDesignUtilities.GetAttributesPropertyValueAsArray(ModelProperty collectionModelProperty, String collectionPropertyName)
at OpcLabs.BaseLib.Presentation.Design.LiveBinding.BindingContextMenuProvider.InternalEditLiveComponentBag(EditingContext editingContext, Selection selection)
at OpcLabs.BaseLib.Presentation.Design.LiveBinding.BindingContextMenuProvider.EditLiveComponentBag_Execute2(EditingContext editingContext, Selection selection)
TargetSite: System.Object[] InvokeArgumentsCheck(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
DeclaringType: System.Reflection.RuntimeMethodInfo
Module: CommonLanguageRuntimeLibrary
Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
CustomAttributes: [System.Security.UnverifiableCodeAttribute()]
FullyQualifiedName: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
MDStreamVersion: 131072
MetadataToken: 1
ModuleHandle: System.ModuleHandle
MDStreamVersion: 131072
ModuleVersionId: 2e8d4299-bfa6-4998-b1c3-a8500640be45
Name: mscorlib.dll
ScopeName: CommonLanguageRuntimeLibrary

Subscription mode. Catastrophic failure error - 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

UASecurityPolicyUriStrings class in DELPHI - by: jkahlert

$
0
0
Hi,

I'm programming QuickOPC in DELPHI and found the following description in your user's manual:

"The UAEndpointSelectionPolicy.SecurityPolicyUriString property, when not an empty string (empty string is the default), specifies the required security policy URI string of the endpoint. This allows the developer to select the precise security policy, when so required. The static UASecurityPolicyUriStrings class contains strings that can be used to specify the security policy URI."

How can I access the mentioned strings in the UASecurityPolicyUriStrings class from DELPHI? I found no corresponding declarations in the wrapper TLB files.

Thanks in advance

ReadMultipleValues exception - by: Boris

$
0
0
Hello!

I'm using Delphi XE8. I tried to upgrade from version 2018.3 (5.54.1281.1) to version 2019.2 (5.56.475.1). Immediately after the update, a critical error occurred while executing the ReadMultipleValues function.The error occurs only when reading a tag with data type "18 [ExpandedNodeId]" from the UA AnsiC Demo Server (I did not test with other UA servers).
The problem is easy to reproduce using your demo project "..\OPC Labs QuickOPC 2019.2\Examples-COM\OP\UADocExamples\_EasyUAClient\ReadMultipleValues.Main.inc". You need to take this example and change part of the code, like this:

Now this project will always end with an error of EAccessViolation.
In the old version, this error does not occur.

OutOfMemoryException in PullMultipleDataChangeNotifications results - by: Boris

$
0
0
Hello.

Our program has been working steadily for more than a year. All this time we used the components of version 2018.3 (5.54.1281.1). Users use the program with different OPC-UA servers. And everything was fine until recently. One of the users encountered an error. He subscribes to 1076 tags of the OPC-UA server "WAGO 750-8202 PFC200 2ETH RS". Subscription is carried out through the function "SubscribeMultipleMonitoredItems". Changes come through the "PullMultipleDataChangeNotifications" function. Everything works stably for about 7-10 days. Then we start getting the error "System.OutOfMemoryException". I marked the place of error with a comment:

The error occurs until the program is restarted. After restarting, the program runs stably again for 7-10 days and then the error occurs again. Interestingly, there are no signs of a memory leak. The application takes up about 300 MB of memory at the time the problem is detected. The problem is displayed only in the components of the OPC-UA. All other parts of our program (working with DBMS, files, reports and other tasks) work well. It was because of this problem that I decided to upgrade the components to version 2019.2.
Strange, now our program is used by more than 1000 users with other different UA-servers, but the problem arose only for the user with “WAGO 750-8202 PFC200 2ETH RS”.

Now I am trying to get more information about the problem. And if there is information, I will let you know. But maybe you know something about such a problem?

ReadMultipleValues exception - by: Boris

$
0
0
Hello!

I'm using Delphi XE8. I tried to upgrade from version 2018.3 (5.54.1281.1) to version 2019.2 (5.56.475.1). Immediately after the update, a critical error occurred while executing the ReadMultipleValues function.The error occurs only when reading a tag with data type "18 [ExpandedNodeId]" from the UA AnsiC Demo Server (I did not test with other UA servers).
The problem is easy to reproduce using your demo project "..\OPC Labs QuickOPC 2019.2\Examples-COM\OP\UADocExamples\_EasyUAClient\ReadMultipleValues.Main.inc". You need to take this example and change part of the code, like this:

Now this project will always end with an error of EAccessViolation.
In the old version, this error does not occur.

Opc.Ua.Bindings.TcpAsyncOperation.OnTimeout(System.Object) - by: Sleepless

$
0
0
:ohmy: Hi ,Support

I met a big problem about OpcLabs tools ,which is about OpcUa stuff.When I use methods (Writemultiple ,ReadMultiple,or SubscribeMultipleMonitoredItems),a same problem happens.Please check the files in the attachment,a windows error shows that it is a internal error of opclabs dlls.So I actually wonder why and how it happened, wish your feedback as soon as possible !

Opc.Ua.Bindings.TcpAsyncOperation.OnTimeout(System.Object) - by: Sleepless

$
0
0
:ohmy: Hi ,Support

I met a big problem about OpcLabs tools ,which is about OpcUa stuff.When I use methods (Writemultiple ,ReadMultiple,or SubscribeMultipleMonitoredItems),a same problem happens.Please check the files in the attachment,a windows error shows that it is a internal error of opclabs dlls.So I actually wonder why and how it happened, wish your feedback as soon as possible !

Read problem - by: Boris

$
0
0
Hello.

There is a server in public access, here are its parameters:
EndpointUrl: opc.tcp://opc.owencloud.ru:4843
UserName: This email address is being protected from spambots. You need JavaScript enabled to view it.
Password: demo123
Security: None, None

This server has a problem with tags. Some attributes cannot be read (see the example in the attachment). But some attributes are readable.
Unfortunately, my program users want to work with this server and read those attributes that can be read. But an error occurs every time I try to read tags through the "ReadValue" function. Therefore, I decided to read only one attribute: "UAAttributeId_DataType" from the tag "NamespaceArray". With the help of UAExpert, I see that this attribute (DataType) is available and can be read. I took the code from the example "..\OPC Labs QuickOPC 2019.2\Examples-COM\OP\UADocExamples\_EasyUAClient\ReadMultipleValues.DataType.inc". Changed it like this:

But again I get the error: "results(0) *** Failure: OPC-UA service result - (no description available) = BadNodeIdUnknown". The same thing when trying to read other attributes.
Is there any way to read those attributes that are readable? Maybe I'm doing something wrong?
Viewing all 1794 articles
Browse latest View live