Discovery of OPC UA 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
Discovery of OPC UA Events
Avatar
Victoria Browning GlennBrowning
New Member
Members
Forum Posts: 1
Member Since:
02/19/2024
sp_UserOfflineSmall Offline
1
03/24/2024 - 09:37
sp_Permalink sp_Print

The most fundamental question is whether it is possible to learn which events an object generates during runtime by inspecting its type information.

Attribute "EventNotifier = SubscribeToEvents" is present in the OPC Reference Server object located at Root -> Objects -> Boilers -> Boiler #2, to provide a concrete example. To confirm, the "HasEventSource" reference for instance #2 Boiler is "Simulation," a "BoilerStateMachineType" object.

When I call the Halt, Reset, Resume, Start, and Suspend methods on the Simulation object, I can observe ProgramTransitionEventType events triggered on Boiler #2, and I can also use UA Expert to subscribe to these events.

It is true that the server's EventTypes folder object lists the ProgramTransitionEventType. On the other hand, I couldn't see any indication of the possible event types when I looked at BoilerStateMachineType and its supertypes.

Is it feasible to find out what kinds of events an object can trigger, or is this something that needs to be "known" in advance?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
03/26/2024 - 06:34
sp_Permalink sp_Print

The HasEventSource may provide some indication but there is no guarantee that it is an exhaustive list of all possible events.

Avatar
Mohit Agarwal
Member
Members
Forum Posts: 55
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
3
03/27/2024 - 04:43
sp_Permalink sp_Print

Hi Randy,

I guess, at application level, someone can use GeneratesEvent reference on the Object or ObjectType to list all possible events but still it is NOT guarantee or mandatory that the object can only trigger those listed events.

In some sense, it is more of a requirement of the Object for the given application.

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