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

Correct way of handling easyUAClient.MonitoredItemChanged - by: andis59

$
0
0
We have a program that makes a SubscribeMultipleMonitoredItems for a number (5) fields/tags with the event handler easyUAClient.MonitoredItemChanged += easyUAClient_MonitoredItemChanged;

In easyUAClient_MonitoredItemChanged, after checking that there is no exception, we check which tag that has given the event.

For each tag we save the value in a property and send the same value back to the PLC.

I found a note in one of the topics that is was not a good idea to call operations on EasyUAClient from inside an event handler. You recommend a queue that is processed in an another thread.

Would you please give an sample of how this would look like in C#.

We have all sorts of "strange" errors that maybe is caused by this...

Licence number is not able to unlock the product - by: AlbertoAction

$
0
0
I've installed my licence number (bought with the 5.3 version) on a machine with the 5.4 version installed.
The licence in licence manager became active but after half hour the dll raise a "time limit" exception.
What about?

my best regards
Alberto

Upgrade QuickOPC-UA without uninstalling the current one - by: andis59

$
0
0
Is it possible/recommended to just install a new version of QuickOPC-UA .NET without uninstalling the current installation?

We are running version 5.35.414.1 and want to upgrade to 5.35.1173.1

If we uninstall 5.35.414.1 will the license be uninstalled also?

Smaller installation package for production environment - by: frighini

$
0
0
Hi all,

is there an installation package smaller in size for production environment?

My problem is that our production machines (many machine) are connected throught a slow network: at the moment i'm using QuickOPC-5.34.exe but it is 94Mb and it takes 6hours to copy on the servers.
On production env i need only the runtime (no code example or other not mandatory stuff).


Thanks in advance!

Can Develop OPC XML DA C++ client in Visual Studio 2015? - by: Vasanth

$
0
0
Hi,

I am new to OPC XML DA, Its possible to develop XML client in VS2015? QuickOPC SDK's can support the same?

I have seen there are OPC XML C++ clients developed in other C++ compilers, but i wanted it on VS 2015.

Please let me your inputs guys.

Error 'BadEncodingLimitsExceeded' During OPC-UA nodes browsing - by: sun21

$
0
0
Hi,

A got following error:

[10/17/2016 9:32:41 AM] [OpcNodesBrowser] UAException: An OPC-UA operation failure with error code -2146959360 (0x80080000) occurred, originating from 'Opc.Ua.Core'. The inner OPC-UA service exception with service result 'BadEncodingLimitsExceeded' contains details about the problem.
InnerException: OPC-UA service result - Unexpected error processing response.
---- SERVICE RESULT ----
StatusCode: {BadEncodingLimitsExceeded} = 0x80080000 (2148007936)
Description: Unexpected error processing response.
StatusCode: {BadEncodingLimitsExceeded} = 0x80080000 (2148007936)
Description: MaxMessageSize 4194304 < 4449386
AdditionalInfo: >>> MaxMessageSize 4194304 < 4449386
--- at Opc.Ua.BinaryDecoder.DecodeMessage(Type expectedType)
--- at Opc.Ua.BinaryDecoder.DecodeMessage(Stream stream, Type expectedType, ServiceMessageContext context)
--- at Opc.Ua.Bindings.TcpClientChannel.ParseResponse(BufferCollection chunksToProcess)
--- at Opc.Ua.Bindings.TcpClientChannel.ProcessResponseMessage(UInt32 messageType, ArraySegment`1 messageChunk)

I cannot refresh OPC tag list as a result. The node browser function is similar to recommended on the forum. Worked well long time before.
What can be a reason and how to debug it?

Serge

Subscription Timeout - RetrialDelay - by: andis59

$
0
0
We are having some problem with that the subscription stops after about 20 seconds of no data and it takes a long time before EasyOpc 'connects' again.
00:08:15,529|Error| OPCWorker - OPCClient_MonitoredItemChanged - Exception:
OpcLabs.EasyOpc.UA.Engine.UAClientEngineException: The OPC-UA subscription ID 123 publishing has stopped on the client
session to endpoint URL "opc.tcp://FORWIN003:4846" for approximate current duration of 21793,2383 milliseconds.
The current keep-alive count is 200 and the current publishing interval is 100 milliseconds.

Where the values for keep-alive count and publishing interval comes from I don't know but maybe from the OPC Server?
Can I set it so that the subscription publishing keeps on working forever? There is only one client, one OPC Server and one PLC.

So I thought that I would change the RetrialDelay time. Looking at the documentation the default time is 3 seconds!


but in this thread it says that the default time is 3 minutes (default is 3*60*1000)
http://www.opclabs.com/forum/ua-reading-writing-subscriptions/1605-monitor-item-change

which is it?

If the communication doesn't work within 15-20 seconds the operators will restart the computer...

So I want to set the the RedialDelay to 5 or 10 seconds

Smaller installation package for production environment - by: frighini

$
0
0
Hi all,

is there an installation package smaller in size for production environment?

My problem is that our production machines (many machine) are connected throught a slow network: at the moment i'm using QuickOPC-5.34.exe but it is 94Mb and it takes 6hours to copy on the servers.
On production env i need only the runtime (no code example or other not mandatory stuff).


Thanks in advance!

Can Develop OPC XML DA C++ client in Visual Studio 2015? - by: Vasanth

$
0
0
Hi,

I am new to OPC XML DA, Its possible to develop XML client in VS2015? QuickOPC SDK's can support the same?

I have seen there are OPC XML C++ clients developed in other C++ compilers, but i wanted it on VS 2015.

Please let me your inputs guys.

Quick OPC 5.2 download link? - by: lux1

$
0
0
We purchased quick OPC professional about a year ago and used version 5.23.
I only found 5.35 which requires .net4.5 but I'd require one for .net4.0.
Is there still somewhere a download link for the QuickOPC 5.2x install setup?

Programmatically deploy license file - by: mairoldi

$
0
0
I recently bought a "single developer + free runtime" QuickOPC license, and am currently experimenting with deployment.

I read in the forum that there is a way to programmatically deploy the license file, without having to deploy and run the license manager, but I can't seem to find any reference to how this is accomplished either in the documentation or in the forums.

Can you kindly help me find this information ?

Thanks and best regards.

Readfunction gets stuck after disconnection - by: Zeis

$
0
0
Hello,

we´re using EASYOPCUA in Labview to connect to a motorcontrol.
We want to read the value of the variable "FuBusy" each second. (Attached picture)
Until now everything works fine.

The main problem is that the read function gets stuck as soon as we disconnect the client from the server and doesn´t seem to react any more.
We want it to keep trying to read the value and to return an error if the client is disconnected.

So my question is which timeouts do we need to reconfigure to avoid this problem?
Or are there any other settings that have to be changed to solve this problem?

With kind regards,

Felix Zeis

Getting OPC_UA variable type definition - by: bmts

$
0
0
Hello, I try to create c# Classes browsing OpcUa server on Siemens-Plc.

I have in plc Datatype (is a structure) "UDT_Complex" which contain this items: {NameAsString, AsBool, AsInt, AsDWord ...}.
I am able to list all type nodes (items in structre) by method "EasyUAClient.BrowseDataNodes()",
but I dont know which property in node describes the type that I need to create on C# side, or which method return it.

As You can see on the image Node property "TypeDefinition" containg other Uri ... and if I use this Uri in method "EasyUAClient.BrowseDataNodes()" it return empty node ...

So how to get data type for this value?


[File Attachment: opc-UDT_Complex.jpg]

Memory leaks TEasyUAClient - by: RH

$
0
0
Hello,

I have an issue with memory leaks when using instances of TEasyUAClient in Delphi. It doesn't appear on your provided test application, but this is also not a VCL Application like I have.

When I close my application, I get one instance of TServerEventDispatch for each instance of TEasyUAClient I used. In the case of my screenshot, I used 2 instances of TEasyUAClient:

[File Attachment: MemLeak.png]

What am I doing wrong here? Or is this normal in a VCL Forms application? I wonder, why there are no leaks in your test application, as the instances of TEasyUAClient are not freed at all.

Best regards.

Communication error (Not enough storage is available to complete this Operation) - by: MarkusZ

$
0
0
Occasionally, after days running continuously, I get the error message "Not enough storage is available to complete this Operation".

I get this message in the result structure after calling the function "WriteMultipleItemValues".

Does anyone have an idea how to avoid this problem?

Thanks for your help,
Markus

BadSecurityChecksFailed = 0x80130000, Unexpected signature algorithm - by: support

$
0
0
BadSecurityChecksFailed = 0x80130000, Unexpected signature algorithm

Help with code crashing - by: giles

$
0
0
Hi - I'm looking at a bug. It seems to happen when we have been monitoring an item for a long time (over the weekend) Thereafter it just keeps coming back until I restart the application (ASP.NET App)

just sending stack trace and error message for now just in case it is somethiung you recognise..

at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at OpcLabs.BaseLib.Collections.Generic.Extensions.IDictionaryExtension.AddWithContract[TKey,TValue](IDictionary`2 dictionary, TKey key, TValue value)
at OpcLabs.BaseLib.Collections.Generic.Extensions.IDictionaryExtension.AddNew[TKey,TValue](IDictionary`2 dictionary, TKey key, TValue value)
at OpcLabs.BaseLib.Formatting.CommonFormatter`1.ParseFormat(String format, IFormatProvider formatProvider)
at OpcLabs.BaseLib.Formatting.CommonFormatter`1.Format(String format, TArg arg, IFormatProvider formatProvider)
at System.ComponentModel.TypeConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.TryConvertToString(Object value, Type type, String& s)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeString(JsonWriter writer, Object value, JsonStringContract contract)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Microsoft.AspNet.SignalR.Infrastructure.Connection.SerializeMessageValue(Object value)
at Microsoft.AspNet.SignalR.Infrastructure.Connection.GetMessageBuffer(Object value)
at Microsoft.AspNet.SignalR.Infrastructure.Connection.Send(ConnectionMessage message)
at Microsoft.AspNet.SignalR.Hubs.HubDispatcher.Outgoing(IHubOutgoingInvokerContext context)
at Microsoft.AspNet.SignalR.Hubs.HubPipelineModule.<>c__DisplayClass1b.<BuildOutgoing>b__19(IHubOutgoingInvokerContext context)
at Microsoft.AspNet.SignalR.Hubs.HubPipeline.Send(IHubOutgoingInvokerContext context)
at Microsoft.AspNet.SignalR.Hubs.SignalProxy.TryInvokeMember(InvokeMemberBinder binder, Object[] args, Object& result)
at CallSite.Target(Closure , CallSite , Object , Item`1 )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at SiGyl.Startup.<>c__DisplayClass1_0.<<PreStart>b__1>d.MoveNext() in C:\\Temp\\batch-and-scada\\Scada\\App_Start\\Startup.cs:line 199"

"An item with the same key has already been added."

product version of opclabs.baselib.dll is 5.35.442.1

LogEntry event return nothing - by: info@femto.ch

$
0
0
We just bought a license for QuickOPC COM and we are using Deplhi XE2.

The LogEntry event, as the EventNotification and the DataChangeNotification, return nothing on our deployed application. It work on the developpment PC but not on the PC on which deployed application. The reading and writting work without problem on the both PC. We check the .NET version, COM and DCOM services. With Wireshark we also see that there isn't any difference. Same number and type of frame in both developpment and deployed application. It looks like we have a problem in the communication between Delphi and COM.

Please help us.

Access denied - by: frighini

$
0
0
Hi,

using EasyOPC.NET Demo app, i'm trying to connect to an OPCDA server but i get "Access denied" when subscribing an Item.
I've performed all DCOM configurations client side (I do not have access to the server).


Using Matrikon Explorer it works fine. Why Matrikon works and EasyOPC.Net doesn't work?
If should be a configuration mistake, should not both clients get an "Access denied" error?
Which could be the problem?

Thx!

Portable C++ Examples - by: support

$
0
0
From: T.
Sent: Tuesday, November 15, 2016 10:56 PM
...
Hello Sir/Madam;

I have download the OPC Labs trial version. I am using Visual C++ 2008 (MFC) to develop the applications.
I need to Communicate with RSLinx Server and need to make the Client version.
The example has the version of visual studio 2102, Can you email me the “Portable C++” Examples.

Portable C++ Examples
Note: No longer shipped with the product. Contact us if you are interested in these examples.
These examples are designed to only use C++ language features and libraries that are portable
across compilers.
• VoleReadItemValue: Shows how to read value of a single OPC item, and display it, using
STLSoft and VOLE libraries.
• VoleReadMultipleItems: Shows how to read 4 items at once, and display their values,


Thank you for your consideration.

Best Regards,
T.
Viewing all 1794 articles
Browse latest View live


Latest Images