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
Mnonitoring alarms
October 12, 2021
14:49, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,
I’m trying to monitor alarms generate on simulator from my application opc ua.
Could someone please help me?

Thank you.

October 12, 2021
15:44, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

You will need to make a Subscription and use MonitoredEventItems to monitor Alarms. See SampleConsoleClient for an example of how to use MonitoredEventItems.

October 13, 2021
16:56, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

When i try to monitore my node, i got this error :
attribute: EventNotifier
mer. oct. 13 15:54:08 CEST 2021 Subscription created: ID=1979590177 lastAlive=null
com.prosysopc.ua.StatusException: Bad_MonitoredItemFilterUnsupported (0x80440000) “The server does not support the requested monitored item filter.” StatusCode=Bad_MonitoredItemFilterUnsupported (0x80440000) “The server does not support the requested monitored item filter.”

But in uaExpert, i see the event by using server node from server

October 14, 2021
8:35, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

This error suggests that the Server doesn’t support the requested Monitored Item Filter which in this case is an EventFilter. If you have followed the example in SampleConsoleClient, the filter should only have standard Event fields as its SelectClauses and exclude Events of GeneralModelChangeEventType with its WhereClauses. Do you have access to the Server’s logs to check if they would specify why it has rejected the filter?

Also, are you trying to make the MonitoredItem for the Server Node in your OPC UA Client? If not, have you verified that the Node you’ve chosen supports subscribing to Events meaning that its EventNotifier Attribute has the SubscribeToEvents flag set to true?

October 14, 2021
10:20, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,
how to make MonitoredItem for the Server in my OPC UA Client application ?

October 14, 2021
10:26, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

How to get Server object from opc ua client ?

October 14, 2021
11:13, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

The NodeId of the Server Object is standardized and it is ns=0;i=2253 for all OPC UA Servers following the specification. You can make a MonitoredEventItem using this NodeId to monitor all Events (including Alarms) generated by the Server.

October 14, 2021
12:16, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,
thank you for your reply.
So i have another question, how can i monitor only Alarms generated by the Server ?

October 14, 2021
15:00, EEST
Avatar
Jimmy Ni
Moderator
Members

Moderators
Forum Posts: 26
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline

Hello Sabari,
Alarms are subtype of Events. Not possible to separate them, as Matti has answered previously: “You can make a MonitoredEventItem using this NodeId to monitor all Events (including Alarms) generated by the Server.”. Please refer to the OPC UA Specification Part 9 and the PDF Client development tutorial in the SDK folder for detailed information.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
23 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: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

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

Administrators: admin: 1