Subscription for events|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Subscription for events
Avatar
Zoltan Szalai
Member
Members
Forum Posts: 4
Member Since:
08/03/2022
sp_UserOfflineSmall Offline
1
08/03/2022 - 07:18
sp_Permalink sp_Print

Dear All,

 

We're just started to use OPC-UA, and We would like to use Events, to collect the process data after every cycle.

On the server, there is a CycleParameterEventType, and We would like to catch this event. We're using UAExpert for test, and We can see, what We want. But, We would like to use Node-red also for this.

I've found example on the internet, and based on it, I could catch Server event (i=2253). It contains some operation data, for example mode change from manual to setup mode, etc. 

On the Event node, I have to define the root node, and also the event type.

 

How can I find the root node? How can I find Event type? I can choose from the followings: BaseEvent(all), AuditEvent, Base ModelChangeEvent, ConditionType, EventQueueOverflow, ProgressEvent, SystemEvent.

The CycleParameterEventType belongs to BaseEvent, can I use the BaseEvent, or do We need to define a new type?

Thank You in advance!

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/03/2022 - 18:16
sp_Permalink sp_Print

It is not clear what your question pertains to.

If you are building a client that connects to a server that already produces these events you need to subscribe to an event notifier (as Object which is the target of an HasNotifier reference) and specify the CycleParameterEventType in the WHERE clause of the EventFilter associated with the MonitoredItem. (aside: the Server Object is the top of HasNotifier hierarchy - all notifiers in the Server link back to it).

If you are asking how get your server to send events then that will depend on how you are building your Server.

Avatar
Zoltan Szalai
Member
Members
Forum Posts: 4
Member Since:
08/03/2022
sp_UserOfflineSmall Offline
3
08/09/2022 - 00:19
sp_Permalink sp_Print

Dear Randy,

 

Thank You for your reply. We have connected an another machine for test purpose. I hope, I could understand, what You wrote.

We'll make some test, and if We can not have any good result, I'll post again.

 

Thanks

Avatar
Zoltan Szalai
Member
Members
Forum Posts: 4
Member Since:
08/03/2022
sp_UserOfflineSmall Offline
4
08/09/2022 - 23:39
sp_Permalink sp_Print

Dear Randy,

 

We have made some test. Unfortunately I can not insert image, so I try to explain as I can.

First of all, I have a good news, We can catch the event one by one. I mean, after every production cycle, We have a new event, with a new unique event ID. I think, it is good.

But, in the OPC UAExpert, below the Events window, We can see Details, which contains all of the  production cycle data, for example temperature, pressure, etc. We would like to have the some data.

How can We do that? Do You have any suggestion?

Do We have to add all of the necessary item one by one, or is there any historical data in array (or something)?

Or, is it depends on the server? How can We know, what can We do?

PS: If You know, how can I insert image, please let me know. The Insert/edit image button does not work for me. I can not select the file.

 

Thank You in advance!

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
5
08/11/2022 - 16:59
sp_Permalink sp_Print

Assumption: you have added 'production cycle data' to your EventType.

When you create an event subscription you need to specify the exact fields you want returned.

Your client probably uses the default and only gets fields from BaseEventType.

UAExpect may be gets all fields for the selected EventType.

Assumption: you are looking at the UAExpect data subscriptions.

Events are not designed for providing cyclic updates to process data. If you need that information you must use data subscriptions for the variables that are of interest.

Avatar
Zoltan Szalai
Member
Members
Forum Posts: 4
Member Since:
08/03/2022
sp_UserOfflineSmall Offline
6
08/12/2022 - 04:39
sp_Permalink sp_Print

Dear Randy!

 

Understood, We'll do it on that way.

Thank You for your help!

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 32
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855