Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

error after SubscribeEvent with server with open62541.dll

More
09 Feb 2025 08:42 #13384 by support
Hello.

The relative browse path (second argument in UAFilterElements.SimpleAttribute) is a sequence of qualified names - i.e. they also have namespaces. Without specifying them, namespace 0 is assumed. In your case, "Param_2" is a browse name in namespace 1. Change "/Param_2" to "/1:Param2".

Best regards
The following user(s) said Thank You: Filippi

Please Log in or Create an account to join the conversation.

More
06 Feb 2025 15:23 #13379 by Filippi
Ok. In the meantime, it would be appreciated if you could indicate which of your examples is useful for this purpose (perhaps with a link).

Thank you

Please Log in or Create an account to join the conversation.

More
06 Feb 2025 14:49 #13373 by support
Hello.

I will handle this, but please be patient. I have to leave now for business and will be back on Sunday.
Next time please start a new forum thread for a new issue (you can always refer back to the original issue via an URL).

Also, if you are getting an error, please post the error.

Best regards

Please Log in or Create an account to join the conversation.

More
06 Feb 2025 14:42 #13372 by Filippi
It works! Great!

A new help, please: we need to subscribe (possibly selectively) to custom events with custom properties like the one in the attached creenshots (currently active on the server available to you), but we don’t understand how to specify the custom properties (e.g., "Param_1").

We have tried as you can see in attachments, but without successThanks again

Attachments:

Please Log in or Create an account to join the conversation.

More
06 Feb 2025 12:47 #13369 by support
Thank you. I got it working now, and I was able to reproduce the problem and find the cause.

We have a feature that automatically calls the "Refresh" method, so that you get the initial state of event condition after you connect. And the error comes from this call (UaExpert does not call it). So it is necessary to turn it off. We have flags/arguments for that (called AutoConditionRefresh).

In addition, with this turned off, it is necessary to specify at least one Select clause.

The resulting call looks like this:

 
client.SubscribeEvent(endpointDescriptor, UAObjectIds.Server, 1000, new UAAttributeFieldCollection
{
// Select specific fields using standard operand symbols.
UABaseEventObject.Operands.NodeId,
UABaseEventObject.Operands.SourceNode,
UABaseEventObject.Operands.SourceName,
UABaseEventObject.Operands.Time,
 
// Select specific fields using an event type ID and a simple relative path.
UAFilterElements.SimpleAttribute(UAObjectTypeIds.BaseEventType, "/Message"),
UAFilterElements.SimpleAttribute(UAObjectTypeIds.BaseEventType, "/Severity")
}, autoConditionRefresh: false, null, null);
 
 


Best regards

Please Log in or Create an account to join the conversation.

More
06 Feb 2025 11:14 #13368 by Filippi
I think you are referring to the subscription to the ModelChangeEvent, which is not blocking for the connection (in fact, you are able to connect) nor for the events. I don't see any subscription to the events in your UAExpert. Mine sees them, as shown in the attached screenshot.
Attachments:

Please Log in or Create an account to join the conversation.

More
06 Feb 2025 10:53 #13367 by support
Hello,
I received yur VPN client&instructions and I am able to connect the VPN and connect to the server.

I cannot, however, confirm that your server works with UaExpert. If it does for you, please share the detailed steps you are doing and the results.
In my test, UaExpert cannot subscribe to the alarms either.

Here is what I get with UaExpert:



I press Ignore.

Then



and in WireShark



Best regards
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Feb 2025 16:33 #13363 by support
I will send you our IP address to the email address you used to register with this forum.
The following user(s) said Thank You: Filippi

Please Log in or Create an account to join the conversation.

More
05 Feb 2025 16:29 #13362 by Filippi
Great idea, thanks. I need to involve our IT team, I'll update you ASAP

Please Log in or Create an account to join the conversation.

More
05 Feb 2025 16:23 #13361 by support
Can you make the server available to me (installable or container), or expose its endpoint for access from a specific IP address, for troubleshooting?

Best regards

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.096 seconds