Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Alarms and Events if not using UaNodes
November 26, 2014
12:21, EET
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Hi all,

I am working without UaNodes because we have data structures already created.

I would want to know how is the best way to integrate events and alarms in this system, as in the example code this is not shown, and in the documentation very little is said.

Regards

November 26, 2014
13:24, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Server Tutorial says this:

12.6 MonitoredEventItems

Events are monitored via MonitoredEventItems. In principle, the system is equal to monitoring the DataItems, but you must track the item creations with afterCreateMonitoredEventItem() (in NodeManager or EventManager). And when you are ready to trigger an event, you must call MonitoredEventItem.notifyEvent() to send it to the client. For notifyEvent you will need an EventData structure, which defines the values of all condition fields. You should refer to the OPC Foundation specification for that or take a look at the respective node implementations in the SDK.

November 26, 2014
13:27, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Take a look at the respective monitored data example and MyBigNodeManager (the complete chapter 12. in Tutorial).

Unfortunately, we do not have any example implementation – and I do know that it is not trivial.

November 26, 2014
15:10, EET
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Yes, it talks about Monitoring them, but I don’t know how to create and managing them. Are they like any other DataItems?

Are there any classes in the API that I can use for them, or everything is for UaNodes? I mean, for example, the class DiscreteAlarmType and many others.

November 26, 2014
15:37, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, all generated Java classes are based on UaNodes. So you will need to write your application so that it provides the data for correct nodes yourself, although there are no actual nodes in the background.

The alarm nodes are typically exposed as objects in the address space, since they have a state. Simple events typically are not in the address space, so those you can just trigger

It might be possible to write a “hybrid” node manager that has alarm nodes for the meta data, but keeps the rest of the data in the back-end system. But we have not actually tried that, and it is probably not possible to make it work at the moment. You may of course try and let us know what kind of limitations you find out.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 685

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1