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

Downgrade from .NET Framework 4.7.1 to 4.0 - by: andis59

$
0
0
Hello,

I have a working program that uses QuickOPC-UA. Now a large customer wants to run this program on their old Windows XP computers:(
So I'm trying to downgrade to .NET Framework 4.0, which is the last one that XP supports (or the other way around)

I have tried to use NuGet and re-install the QuickOpc package

package id="OpcLabs.QuickOpc" version="5.53.405" targetFramework="net40"

but in the OpcLabs.QuickOpc.5.53.405 directory in Packages it says
E:\Users\ame\source\repos\Seco Tools\DCMatrixPlus - XP\packages\OpcLabs.QuickOpc.5.53.405\lib\net452

and I get errors when compiling
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3274: The primary reference "OpcLabs.BaseLib, Version=5.54.1311.1, Culture=neutral, PublicKeyToken=6faddca41dacb409, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".

Is it possible to use QuickOPC-UA with .NET Framework 4.0 ?

// Anders
NB! I know that Windows XP is dead, but the customer has many+ machines that uses XP, so they wont upgrade...

Change shared parameters on the EasyDAClient causes exception - by: Andriy

$
0
0
Hello,

I get InvalidOperationException when apply shared parameter on the EasyDAClient class after a first instance of it is created.
The error disappeared when I changed the order

I configured shared parameter as recommended in the following topic
Subscription mode. Catastrophic failure error

OPC library build 5.56.1055.1
Call stack:

"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

Read Tags each n seconds - by: alr1976

$
0
0
Hi!

it possible to Subscribe many tags and have value also if tags value is not changed?

For example i have 2000 tags and i need to have values for each 1 second also if value is not changed.

I can t use readmultiplevalues because i need some values for each 0.5 seconds and other values for each 3000 seconds and so on.

Br,Alessandro

VB.NET application crashes after upgrade to QuickOPC-UA - by: aethia

$
0
0
Some years ago I developed for a customer a VB.NET application based on QuickOPC Classic 5.1 and using OPC-DA protocol.
Recently the customer needed to migrate to OPC-UA, so I obtained the trial version of QuickOPC-UA, did the porting e tested it (for periods of maximum 30 minutes, according to the limits of the trial): everything was fine and I purchased a Standard edition license e put the new version of the software in production.
Unfortunately the application now crashes every 1/2 days, the error message displayed is this: "Not enough memory available to complete this operation"
I carefully checked the code and I'm quite sure I didn't introduced memory leaks.
Do you have any suggestion?

Thanky you in advance

ArgumentException when reading OPC items - by: Andriy

$
0
0
Hello,

I get ArgumentException when reading OPC items. Do you know what that can be?
build 5.56.1055.1

XML-DA. Control the number of subscriptions. - by: Andriy

$
0
0
Hello

Do you have the ability to control the number of subscriptions created by the opc library on the OPC XML-DA server?
My application is flooding XML-DA server, polling for changes about 10 different OPC groups every second.
I have to figure out how to reduce the number of polling requests.
One of the solution is to integrate several subscriptions into larger one.
Another solution is to try polling several opc groups at once (supplying multiple opc group handles in element "ServerSubHandles" of SubscriptionPolledRefresh request)
According to the XML-DA spesification:

I'm not sure if opc server supports this feature, but it also worth to try it
Do you have any suggestion?

Regards

Typecasting using Genericdata in Delphi - by: Moien

$
0
0
Hi again,

I am again here but this time with a new topic. We had lots of challenges regarding the previous topic. Hopefully, this one is more easygoing.
I am reading the values from PLC using Read function. These values are all defined in just one Array in Byte format which I get directly from OPC UA Server.
I have to write the values of this Single Array from PLC into multiple variables inside my Delphi application. I know the orders and types of variables inside delphi definde in an array of record as "OPCServerItemArray". In other words, as an example the first variable in my "OPCServerItemArray" is a Real variable with 4 Bytes and the corresponding value from the PLC is the entry of the first 4 Bytes of the array which comes from PLC (Bytes[0..3]). The second variable in "OPCServerItemArray" is a DateTime variable (8 Bytes) and the corresponding variable from PLC Array is the entries of Bytes[4..11] and so on. How can I do Typecasting using Genericdata?
I coppied part of my code here:

Regards,
Moien

UA Read Value Internal Error - by: ncooley

$
0
0
Hi

I am using the following snippet of code;



but I am getting a exception error;

System.TypeLoadException: 'Could not load type 'Opc.Ua.KeyValuePair' from assembly 'Opc.Ua.Core, Version=1.3.342.0, Culture=neutral, PublicKeyToken=6faddca41dacb409'.'


The tag syntax is correct and the Demo UA application reads the tag correctly.


Neil

OPC labs kit Server - by: Ureña

$
0
0
Hello,
I need to simulate an OPC Server, in order to test my application.
My question is, it's possible to modify OPC Labs Kit Server including my "test" folder whit all my variables or there is another way to simulate a OPC server using quickOpc?

Thanks

Edgar Ureña

Set Active tag - by: IsmaelGalaviz1995

$
0
0
Hello, this may be a silly question, but I have tried se the Active/Inactive status for a tag (shown in the check box) , I have seen this feature in the Quick Client integrated, but can't see that method/property/attribute in the assembly, any idea if this is possible?



I'm working with Version 2017.1 (5.50.405.1) in Visual Studio Professional 2015

Any help or suggestion will be appreciated,
Ismael

XML-DA. Disable advanced polled refresh - by: Andriy

$
0
0
Hello,

I figure out that opc library is using sophisticated polling approach passing "Holdtime" and "Waittime" parameters in SubscriptionPolledRefresh call.

I hove a trouble with one of OPC XML-DA server that does not perform a delayed poll and sends an answer immediately.
Can I disable this behavior and delegates the waiting to the client side instead?

Regards

Schreiben/Lesen von Tagswert dauert lang - by: tmouslih

$
0
0
Hallo,

Wir benutzen OPC Classic mit absoluter Adressierung und haben das Problem dass das Lesen und Schreiben von Tags relativ lang dauert. Allein beim Starten der Applikation dauert es bis 5 Minuten bis alle Tages initialisiert und gelesen werden.
Das Lesen von 160 Tags dauert etwa 3 Minuten (von 07:07:47.016 bis 07:10:26.064). Bitte Sehen Sie das Logfile im Anhang.

Ist Ihnen so einen ähnlichen Fall bekannt?
Was können die Ursachen sein?
Wie kann man das Lesen/Schreiben von Tag-Werten optimal beschleunigen?

Ich würde Ihnen sehr dankbar wenn Sie umgehend meine Fragen beantworten könnten.

Vielen Dank im Voraus.

Issue certificates fra Microsoft PKI - by: andreas2012

$
0
0
Hi,

We have today a microsoft pki system on our local network, and i was hoping to use this system to publish certificates for our OPC UA systems.
I dont work with OPC UA, so I dont know how it works, but I work with PKI. I have a opc ua test server installed, (Advosol) and I have published a certificate to this machine, but when I try to use it I only get "BadNotSupported" so the system automatically generates its own self signed certificate.

So is there anyone out there that is using microsoft internal CA system to publish certificates to your opc ua systems ?

Thanks for reply

/R
Andreas

Is it possible to execute parallel ReadMultiple calls? - by: Grizzo

$
0
0
Hi, we have an application that use 3 differente threads to read multiple values from Siemens WinCC OPC Server.
All of them uses the same shared EasyUACLient object.
One thread reads values every 1 second (about 40 tags), the second one reads every 10 seconds and the third on reads every 30 seconds.
The application runs on 60 machine (more or less) and normaly everything works fine.
Sometimes in one machine or another, it is not reproducible on regular basis or on certain machine, the ReadMultiple does not return immediatly because the OPCServer does not reply to the request.
In this case, it may happen that the second thread executes another ReadMultiple meanwhile the first is waiting the answer.

Is it in OPC Specification or not?

I think the problem is on OPC Server side because we monitored network communications with WireShark adn found that the answer from the OPCServer is not sent back. We are working with Siemens to find out if it is a bug of WinCC OPC Server, but when it happens it causes a second request to be sent to OPC Server and we are not sure if it complies or not with specifications.
We found out also that sometimes, rarely, parallel requests to OPCServer happen, the server respond regularly and quickly and verything works.

We are try to understand if the overlappign of ReadMultiple is a consequence or the cause of the server not responding.

Live Binding WPF component - TargetParameterCountException - by: Dan

$
0
0
Hello,
I am following the Live Binding WPF component - TargetParameterCountException in the help manual.
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".

I am using Visual Studio 2019.
Microsoft Visual Studio Professional 2019 (2)
Version 16.4.5
Microsoft .Net Framework
Version 4.8.03761

I am using this Quickopc version.


Type:
System.Reflection.TargetParameterCountException

Details:
HelpLink:
HResult: -2147352562 (0x8002000e)
InnerException:
Message: Parameter count mismatch.
Source: mscorlib

StackTrace:
bei System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei OpcLabs.BaseLib.Presentation.Design.Utilities.WpfVSxxxxDesignUtilities.GetAttributesPropertyValueAsArray(ModelProperty collectionModelProperty, String collectionPropertyName)
bei OpcLabs.BaseLib.Presentation.Design.LiveBinding.BindingContextMenuProvider.InternalEditLiveComponentBag(EditingContext editingContext, Selection selection)
bei OpcLabs.BaseLib.Presentation.Design.LiveBinding.BindingContextMenuProvider.EditLiveComponentBag_Execute2(EditingContext editingContext, Selection selection)

Live Binding WPF component - Missing all Toolbox Items - by: Dan

$
0
0
Hello,
thanks you for fixing my last problem .
I am still following the Making a first OPC UA application using Live Binding in WPF in the help manual.
Fortunately, I am now able to successfully add the live binding WPF component to the Main Window and the "Component Tray Editor" opens up.
Unfortunately I don't have any items in the "Toolbox Items" window after I click on "Add".


I have also followed these steps but didn't get any other result.

I am using Visual Studio 2019.
Microsoft Visual Studio Professional 2019
Version 16.4.5
Microsoft .Net Framework
Version 4.8.03761

I am using the newest Quickopc version.

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

Tags subscription while server still in OPC_STATUS_NOCONFIG state - by: Cavallari

$
0
0
Hello,

we are evaluating OpcLabs.QuickOpc package (version 5.56.1073) for Visual Studio 2017 and we experienced some problems in using the EasyDAClient class to connect to an Opc server using DA protocol.

In case the Opc server is automatically started by the DCOM mechanism at the first client connection, it seems that the EasyDAClient does not wait for the server to be in OPC_STATUS_RUNNING before subscribing items: our server takes some time (1-2 seconds) to switch from the OPC_STATUS_NOCONFIG to the OPC_STATUS_RUNNING: in this in this time interval the server loads the tags configuration.

In this situation, the EasyDAClient behaves as follows:
- When the first call to SubscribeMultipleItems() is performed, the server is started and the connection is established.
- The notification related to the subscribed items are received (through the ItemChanged event) but the e.Succeeded flag is set to false and the ErrorMessageBrief field is set to 'This ItemID is not known'.
- The server finishes the initialization and switches to the OPC_STATUS_RUNNING state.
- No further notifications are received in the ItemChanged event until some tags are changed (by writing them using a different client). After the change of some (4-5) tags, all the missing notifications are received having the e. Succeeded set to true and the situation recovers.

We experienced the same situation in case the server is gracefully shutdown:
- After the server is shutdown, the notifications related to the subscribed items are received with an error (The RPC server is not available)
- The server is re-started by the DCOM mechanism at the first call to SubscribeMultipleItems().
- The notification related to the tags are received with the 'This ItemID is not known' error message
- No further notifications are received from the server even if some tags are written using a different client.
Is there some configuration parameter useful for preventing the tags subscriptions until the server has switched to OPC_STATUS_RUNNING state?

Thanks and best regards

Jacopo

Live Binding WPF component - Missing UAConnectivity in Component Tray Editor - by: Dan

$
0
0
Hello,
thank you for fixing my last problem .
I am still following the Making a first OPC UA application using Live Binding in WPF in the help manual.
Fortunately, I am now able to successfully add the live binding WPF component to the Main Window and the "Component Tray Editor" opens up.
Unfortunately I don't have any items in the "Toolbox Items" window after I click on "Add".


I have also followed these steps but didn't get any other result.

I am using Visual Studio 2019.
Microsoft Visual Studio Professional 2019
Version 16.4.5
Microsoft .Net Framework
Version 4.8.03761

I am using the newest Quickopc version.
Viewing all 1794 articles
Browse latest View live