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: 1026
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: 1026
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: 1026
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: 1919

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1