Correct mapping for an Event with ActiveState|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
Correct mapping for an Event with ActiveState
Avatar
Marcelo Salvador
New Member
Members
Forum Posts: 1
Member Since:
09/02/2014
sp_UserOfflineSmall Offline
1
02/21/2022 - 10:38
sp_Permalink sp_Print

With the BaseEventType and its extensions, it´s possible to define a condition considered important, which can trigger an event notification. This notification just tells that that condition has happened, or in a more basic example, a boolean variable went from FALSE to TRUE.

Now, if I need to represent into OPC UA an event with start and finish conditions (like a boolean variable going from FALSE to TRUE, and then back to FALSE) with start and end times, it´s not clear what would be the best approach.

The AlarmConditionType implements the ActiveState property (which is what i need), but it is an extension from the AcknowledgeableConditionType, which is an overhead, because the acknowledgement of such type of event is not necessary.

So I think about 2 possibilities:

a) I could extend the ConditionType and create a custom type that implements the ActiveState concept;

b) I could use the AlarmConditionType in a way that events raised are already acknowledged.

Which one is the best? Or there are another way that is not clear for me at the moment. Thanks!

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/22/2022 - 11:21
sp_Permalink sp_Print

Some terminology clarifications:

A condition is a form of a state machine. Transitions between states produce events.

It sounds like you have have a simple state machine. You should probably use one instead of trying to use the alarm model in ways it is not intended: https://reference.opcfoundatio.....cs/Part16/

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