Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

A&E: how can I get the itemid and value that triger the event?

More
13 Nov 2013 07:59 - 13 Nov 2013 07:59 #1540 by support
OPC Data Access and OPC Alarms and Events are specifications that (with one exception) do not require *any* relation between the information provided. At least, this is true in a general case. If you have an OPC server that supports both specs, there may be a relation, but that would be server-specific.

A generic OPC Alarms&Events server may provide events that do not relate to any "item", and have no related "data value" to speak of.

For some types of events, and in some servers, of course, there is a relation of events to data items, and even related values (such as in case of limit alarms etc.). Such information is carried in event attributes. For example, a standard Level alarm will have CV (Current Value) attribute, and NEXT LIM and PREV LIM attributes. The values of these attributes are then provided with each even notification for the corresponding event category. In the event notification handler, you can access the attributes via EasyAENotificationArgs.Event.AttributeValues dictionary.

The one exception I have mentioned in the beginning is that the OPC-A&E spec actually has a provision for translating attributes to OPC-DA ItemIDs (it is the IOPCEventServer::TranslateToItemIDs function). We currently do not support this function on the client side. I think it does not impact you though, because
  • Only few servers support it.
  • It is only meaningful with condition events
  • And mainly, the information it works with must already be available in the event attributes. So, if it is in the event attributes, it is already available to you, as described above. And if it is not, this functions will not help.
Best regards
Last edit: 13 Nov 2013 07:59 by support.

Please Log in or Create an account to join the conversation.

More
13 Nov 2013 07:44 #1539 by support
From: OPC Labs Contact Form - ...
Sent: Tuesday, November 12, 2013 1:36 PM
To: Zbynek Zahradnik
Subject: OPC Labs Contact Form - OPC AE Client

Email:...
Name: ...
Subject: OPC AE Client
Note: how can I get the itemid and value that triger the event ? i want to make simple alarm monitor from opc server (support DA & AE) that show itemid, value, message, severity, and priority for every event.

Thank you

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.050 seconds