How i can get and manage pEventAttributes from OPC AE and wrapper with Milo? #1253
Replies: 4 comments
-
Can you explain what you mean by this a little more? Are you saying the
The wrapper is the server, and the server would need to have this type. Is that something you can configure/influence somehow? |
Beta Was this translation helpful? Give feedback.
-
Yes, that's exactly what I meant.
selectClauses.size = 17.
I know that the wrapper is a server, but I could not find information on how I can get the values of similar attributes in a request using eventFilter. |
Beta Was this translation helpful? Give feedback.
-
I think you'd need the NodeId of the GEAK Event type, then add additional operands to the select clause like:
|
Beta Was this translation helpful? Give feedback.
-
Thank you, it works! |
Beta Was this translation helpful? Give feedback.
-
Hi!
I am trying to create a project to read alarms and events with milo based on an EventSubscriptionExample.
My test OPC server (matrikon simulator) is a classic COM OPC AE, and I use the OPC AE to UA wrapper to convert data to OPC UA. And everything works fine, events come from the event consumer in the array of Variant, but in addition to the fields I requested, some additional attributes come in the array. How can I identify the data from which attributes I additionally receive? How can I make this data manageable and use it as fields in the event filter?
For example, I can create a query for the required "EventId" field
"new Simple Attribute Operand(
Identifiers.Base Event Type,
new QualifiedName[]{new QualifiedName(0, "EventId")},
Attribute Id.Value.uid(),
null)".
How can I make the same request for a custom "ExampleAttribute" attribute that exists in the server structure?
Should I create a custom event subtype "ExampleEventType" inherited from the BaseEventType to which this attribute belongs on the server?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions