Is it possible to define new states for alarm conditions?|OPC UA Implementation: Stacks, Tools, and Samples|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
Is it possible to define new states for alarm conditions?
Avatar
Noora Anwer
New Member
Members
Forum Posts: 1
Member Since:
12/09/2019
sp_UserOfflineSmall Offline
1
02/14/2020 - 03:34
sp_Permalink sp_Print

Hello, 

I need to define my own condition states on my OPC UA Server, is it possible? If so, is there any example on this??

In the UA Quickstart Applications solution and inside the AlarmCondition Server, there are predefined states with special codes,

for example: Undefined = 0x0, Enabled = 0x1, Acknowledged = 0x2, Active = 0x8, High = 0x80 and Low = 0x100 etc,

are these states apart of the UA standard or are they just examples?

And what the codes (0x0, 0x1, 0x2, 0x8, 0x80, 0x100) stands for? Are they something that the client knows? Can I change them?

 

regards/

Noora

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/16/2020 - 08:46
sp_Permalink sp_Print

Those numbers are a mask created for use within the sample client application and have no meaning outside of the application. There is logic to map event notification fields to the bit mask.

If you want to add states to a alarm you need to create a subtype of alarm in the address space of the server that defines the new substate.
You should follow the design pattern that the existing alarm model follows.

If there are only 2 possible states you can use the simplified representation TwoStateVariableType:
https://reference.opcfoundatio.....Part9/5.2/

Otherwise you will need to define a complete State Machine:
https://reference.opcfoundatio.....rt5/B.4.2/

Avatar
Noora Wiaam
New Member
Members
Forum Posts: 1
Member Since:
02/14/2020
sp_UserOfflineSmall Offline
3
02/17/2020 - 00:34
sp_Permalink sp_Print

Thank you so much for the information!Smile

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