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

Issues connecting to DeltaV servers. - by: MPick

$
0
0
We've been successfully using QuickOPC for a while now, but we have recently found that when we try to connect to one of Emersons DeltaV systems we are unable to do so. The error we get when attempting to write is 'Class not registered'.

I have read through the following post, and feel I should mention that it is not an option for us to compile our product for x86. There is another dependency that is 64-bit.
www.opclabs.com/forum/connections-reconnections-com-dcom/2364-deltav-browsing-issue?start=0

Other OPC clients do not have an issue connecting, browsing, reading/writing from/to this server.

to explicitly answer the leading questions from the previous post:

1. Does it happen only with browsing, or with other OPC operations too?
-We are only attempting to write/subscribe to changes
2. Does it happen always, often, sometimes, rarely?
-always with this server, never with other servers
3. What about other OPC clients - can they browse?
-other clients do not have an issue.
4. Does your client run in 32-bit or 64-bit process?
-64-bit, and we cannot change that.
5. Is the client on the same machine as the server, or is it via DCOM - remotely?
-Both. DeltaV seems to have a feature where you can install a local copy of the server and it keeps the local copy synchronized with the external, main server, without requiring a DCOM configuration. We get this issue when we try to connect to either server.

Please let me know what other information I can provide, I understand that this is not a lot to go on.

Visual Studio 2017 Hangs when Compiling and Debugging - by: gkalipershad

$
0
0
Hello,

I am working with a customer who has the following system specs:

Windows 7 Pro 32bit
VS2017 Professional Version 5.9.3
OPC Data Client version 2018.3 (5.54.453.1)
Targeting 4.6.2 .NET Framework
Application is x86 machine

The issue they are having is that sometimes when they try to compile the application, or attempt to starts a debug session from within VS, the process' CPU usage will jump up to 85%+ and hang until they have to kill the process. They've waiting as long as 10 minutes to see if VS recovers. When the process hangs, they have seen the attached message appear. I am not familiar at all with the file path specified and the customer said that it does not exist on their machine.

Please let me know what your thoughts are.

Best Regards,
GK

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 !

How to use UnsubscribeMultipleMonitoredItems in Delphi? - by: alr1976

$
0
0
Hi!

I have a Subscriptionid list but i don t understand how to use UnsubscribeMultipleMonitoredItems in delphi. I have seen documentatione example but in that case is simple because you have HandleArray assigned with Subscriptionid.

Br,Alessandro

ServerStatus node id (string) - by: phil56

$
0
0
Hello,

I would like to test the state of my OPC UA server by reading the value of the State variable in Server->ServerStatus.

Reading with Interger nodeid "i=2259" = Ok.

But reading with a string nodeid like this "s=ServerStatus.State" does not works !!!

what is its correct string nodeid ?

thank you in advance

Phil

OPC UA features for Siemens S7-1500 - by: gregkuha60

$
0
0
hello

I'm planning to do an integration with the built in opc server in the Siemens CPU 1516-3
So i'm reading the manual, "S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Communication"
it says "..
If you access specific tags regularly (recurring access), you should use the functions "RegisteredRead" and "RegisteredWrite"
.."
Has any a clue what it means?
Thanks for any suggestion
Regards
Greg

System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource) - by: Sleepless

$
0
0
Hi Support,
When I use EasyUaClient to connect to many servers in .NET, a fatal error that I can`t catch in my program come out. The detail about this error in windows log like this:
ExceptionInfo: System.InvalidOperationException
Trace:
System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)
System.Collections.Generic.List`1+EnumeratorSystem.ArraySegment`1[[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNextRare()
System.Collections.Generic.List`1+EnumeratorSystem.ArraySegment`1[[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
Opc.Ua.Bindings.BufferCollection.Release(Opc.Ua.Bindings.BufferManager, System.String)
Opc.Ua.Bindings.TcpMessageSocket+WriteOperation.InternalComplete(Boolean, System.Object)
Opc.Ua.Bindings.TcpAsyncOperation`1System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.OnTimeout(System.Object)
System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
System.Threading.TimerQueueTimer.CallCallback()
System.Threading.TimerQueueTimer.Fire()
System.Threading.TimerQueue.FireNextTimers()
System.Threading.TimerQueue.AppDomainTimerCallback()

It seems to be a internal error in Opc labs tool ,so i need your help.

Continuous disconnects and reconnects with Cogent Data hub - by: bkell1977

$
0
0
Hi all,

We have developed an app that uses QuickOPC and we are seeing an issue.

We use the app against Cogent Data hub, but the logs show that we have continuous connects and disconnects of sessions.

I think this is a code architecture issue.

The app is a windows service that creates a QuickOPC object, that object is stored as a property against another object in a list. When we need to use the QuickOPC object, we pass it by reference to the relevant methods.

I believe that this could be the issue, does the QuickOPC object need to be created and used directly, or should it be okay to pass it around the application?

Thanks.

Failure: OPC-UA service result - Unexpected signature algorithm - by: sjscheider

$
0
0
When trying to connect to an OPC-UA server using a cert, I get the error below. Here the code I'm using which is basically the example. Any thought or suggestions on what is wrong? Is this a server issue or a client issue?

Code:


Error:
Information(161): The OPC-UA engine has determined the client instance certificate parameters as listed below.
SubjectName: XXXXXXXXXXXXXXXXXXXXXX
StorePath: %CommonApplicationData%\OPC Foundation\CertificateStores\MachineDefault
ApplicationName: XXXXXXXXXXXXXXXXXXXXXX
ApplicationUri: urn:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

*** Failure: OPC-UA service result - Unexpected signature algorithm : www.w3.org/2001/04/xmldsig#rsa-sha256 = BadSecurityChecksFailed.
---- SERVICE RESULT ----
Status Code: {BadSecurityChecksFailed} = 0x80130000 (2148728832)
Description: Unexpected signature algorithm : www.w3.org/2001/04/xmldsig#rsa-sha256

+ The SDK action called was "static Session.Create".
+ Following (15) events were gathered during the action on activity ID [8], in the order of first occurrence:
Exception: {Opc.Ua.ServiceResultException} Self Signed Certificate is not trusted. IssuerName: OU=Engineering, O=XXXXXXXXXX, L=XXXXXXX, S=XX, C=US, CN=XXXX XXX Controller @127.0.0.1
SDK trace: CreateSession Called. RequestHandle=1, PendingRequestCount=1
[12] SDK trace: Token #0 created. CreatedAt = 04:13:28.662 . Lifetime = 3600000
[7] SDK trace: Token #1 activated. CreatedAt = 04:13:28.662 . Lifetime = 600000
SDK trace: CreateSession Completed. RequestHandle=1, PendingRequestCount=0
SDK trace: Revised session timeout value: 60000.
SDK trace: Max response message size value: 4194304. Max request message size: 0
SDK trace: CloseSession Called. RequestHandle=2, PendingRequestCount=1
SDK trace: CloseSession Completed. RequestHandle=2, PendingRequestCount=0
[6] SDK trace: TCPCLIENTCHANNEL SOCKET CLOSED: 00000A68, ChannelId=3448538912
Exception: {Opc.Ua.ServiceResultException} BadSecureChannelClosed
SDK trace: CloseSession Called. RequestHandle=3, PendingRequestCount=1
2*Exception: {System.ObjectDisposedException} Cannot access a disposed object.
SDK trace: CloseSession Completed. RequestHandle=3, PendingRequestCount=0, StatusCode=Bad
+ Events starting with activity ID in [] may not necessarily be related to the current action.
+ The client method called was 'ReadMultiple'.
Processing log entry events for 10 seconds...
Done.

Get data from ARRAY Excel VBA - by: Šilhavý

$
0
0
Hello.
Can you help me with getting data out of the UA Server (Arburg machine) using EasyOPCUA.
Single value works fine. ut how can I get the full array or just given part of the array?:
Single:
mClient.ReadValue("opc.tcp://1.1.1.1:4880/Arburg", "ns=2;i=212365") OK

And value, which is an array?:
mClient.Read("opc.tcp://1.1.1.1:4880/Arburg", "ns=2;i=12345;2") or [2] or ,2 ?

Thanks for your reply.

Powerbuilder - by: spaxman

$
0
0
I am using the new Powerbuilder examples and they are helpful. However I have 2 quick questions.

1. How can I force a synchronous read on the ReadMultipleItemValues on the easydaclient
2. I have been unsuccessful in PowerBuilder using the BrowseAccessPaths method, below is a code snippet. It dose not fail but I get nothing back. I am connecting to Kepware as my opc server. When I use the other browse methods I only get the tag but I need the fully qualified tag name to pass to ReadMultipleItemValues to make my reads work. So I thought the BrowseAccessPaths would be a better option for me. Any help or suggestions would be greatly appreciated.


sting value[]
--any value[] -- I tried a any value too
try
value = g_opclabs.BrowseAccessPaths(g_serverDescriptor, l_opclabs_node)

CATCH (OLERuntimeError oleRuntimeError3)
mle_outputtext.Text = mle_outputtext.Text + "*** Failure: " + oleRuntimeError3.Description + "~r~n"
RETURN
END TRY

Managed Resource License Store not working as expected - by: jc831

$
0
0
I am using Quick OPC Version 5.54.453 with a Single Developer + Runtime Free License. I added the licensing code based for the Managed Resource License store based on this article , and I can read back the serial number correctly at the end, which I am assuming indicates that I have done it correctly.

I am assuming that I do not need to take any other actions to activate the license, based on the documentation here which says "Its advantage is that it does not require any further actions during deployment." I have not used the License Manager on the target machine because of this assurance.

However, the customer reports that the application only runs for 30 minutes, before getting this exception:

An OPC operation failure with error code -1 (0xFFFFFFFF) occurred, originating from ''. The inner exception contains details about the problem.

02-14-2019_14-36-12(0.0) ERROR: InnerException: Run time is over the limit in license "Multipurpose". The license you have (most likely trial version) does not provide valid data after certain time period expires. Note that after the component's process is simply restarted, valid data will be provided again. Obtain and install proper license to permanently resolve this error.

Component name: "QuickOPC", license IDs: "Multipurpose", version number: 554, release date: 11/9/2018, trial validity: 210 days, option name: "EasyDAClient".

In addition, today the customer reports that the application doesn't start at all with

An OPC operation failure with error code -2147467259 originating from ‘OPCLabs.EasyOPCRaw.DataAccess.RawEasyDAClient’

Can you provide any guidance on this issue?

Regards,
Jeff

EsayAEClient No Events with Kepware - by: Barrette

$
0
0
Hi,

I try to get event with a KepWare server. ("Kepware.KEPServerEX_AE.V6") .

How to configure the IP adress ?

I try to configure event like this, but there a never event and no error messages.

Can you help me :) :

How do we access the EasyUAClient? - by: jestraub

$
0
0
We have a license to QuickOPC 5.31 and have been using the DA client. Now we would like to get rid of the DCOM issues and try to connect/use the UA client. Our product is in VB6. How do I download the UA client libraries for that version? Can we upgrade? What is the cost for us to get the new version?

Thanks!
- Jack

Value not written on UAClientMapper.Write() - by: Captain_Dash

$
0
0
Hello.,

we run into a problem while writing variables to the opc server. We write values successfully to a opc multiple times. If there is a pause of 20to 80 seconds between of two write operations, wittnessed that the later operation failed.
The write operation of QuickOpc itself returned without any error/Exception.
We record a trace file and the network connection via Wireshark.
What we saw in the Wireshark file was that there is a ServiceFault message (time: 334.105323) right after the (failed) WriteRequest message (time: 334.104346).

What is the cause of the ServiceFault message?
Why has no exception been thrown during the failed write? For us it's mandatory that we can rely on a successful write operation.

In the logs of our application we found the following exception:
The OPC-UA client session with connect sequence number 5 on endpoint URL "opc.tcp://192.168.xxx.xxx:4840/UADiscovery" has encountered a publish error with code 0x80850000 for subscription ID 0 and sequence number 0. The error might be from the Publish or the Republish service. Further publish errors with this code on this session will not be logged.

What does this exception tell us?

We will send you the log and traces via Email because they are confidential.

Best regards

How do we access the EasyUAClient? - by: jestraub

$
0
0
We have a license to QuickOPC 5.31 and have been using the DA client. Now we would like to get rid of the DCOM issues and try to connect/use the UA client. Our product is in VB6. How do I download the UA client libraries for that version? Can we upgrade? What is the cost for us to get the new version?

Thanks!
- Jack

Exception thrown in VB.NET - by: Sandro@More

$
0
0
Hi there,
running a simple code for reading values from an OPC-UA Server, the output debug windows display the message "Exception thrown: 'Opc.Ua.ServiceResultException' in Opc.Ua.Core "

also running your demo code EasyOPC-UA demo Application the "Exception thrown" is present.

Any idea ?

GetConditionState and AcknowledgeCondition - by: Barrette

$
0
0
Hello,

My goal is a send to an Acknowledge to an OPC Server when I receive a notification (A&E).

When I call "_easyAEClient.AcknowledgeCondition", there are this exception:

Exception.InnerException.Message == "The time does not match the latest active time. "

I use the Active time of the class "AEEventData" (e.EventData.ActiveTime)

But, i try to obtain the Active time by call "easyAEClient.GetConditionState()". This method return always a bad data:

conditionState.Quality.IsBad == true

Please, can you help me ?

Best regards

this is my Code:

public void AcknowledgeAlarm(AEEventData e)
{
if (e.AcknowledgeRequired && e.Active)
{
// ok
AENodeDescriptor nodeSrc = FindSourceNodeDescriptor(e.QualifiedSourceName);
//
// e.QualifiedSourceName == "_CustomAlarms.test.Simulation Examples_Functions_Ramp1"
// nodeSrc.NodeId == "_CustomAlarms.test.Simulation Examples_Functions_Ramp1"

//
var conditionState = _easyAEClient1.GetConditionState(_descriptor, nodeSrc, e.ConditionName);
// conditionState:
//
// nconditionState.Quality.IsBad == true

conditionState = _easyAEClient1.GetConditionState(_ip,_opcServer, e.QualifiedSourceName, e.ConditionName);
// conditionState:
//
// conditionState.Quality.IsBad == true

_easyAEClient1.AcknowledgeCondition(_descriptor, nodeSrc, e.ConditionName, e.ActiveTime, e.Cookie);
// Exception:
//
// Exception.InnerException.Message == "The time does not match the latest active time. "

}

opc ua - by: Parsa

$
0
0
How many tags that one OPC UA Client device can be able to communicate OPC UA Server?

opc ua - by: Parsa

$
0
0
What is OPC UA Device Subscriptions??
Viewing all 1794 articles
Browse latest View live