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.
Subscribe to events
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
EventFilter(SelectClauses:[SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionClassId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionClassName)]
In the event filters the
TypeDefinitionId:i=0
TypeDefinitionId:i=2041
Best Regards!
Please Log in or Create an account to join the conversation.
Best regards
Please Log in or Create an account to join the conversation.
I could figure out the problem, so don't spend your time with it.
Thanks anyway.
Please Log in or Create an account to join the conversation.
I would like to ask for your kind help.
This snippet works fine, I got the events right.
def subscribe_to_events():
client = EasyUAClient()
client.EventNotification += print
IEasyUAClientExtension.SubscribeEvent(
client,
UAEndpointDescriptor("opc.tcp://L042IEAMO2:4840"),
UANodeDescriptor(AddressSpace.Standard.UAObjectIds.Server),
1_000,
)
Threading.Thread.Sleep(30 * 1000)
{Isolated=False} [] Success
{Isolated=False} [] Success; Refresh; RefreshInitiated
{Isolated=False} [] Success; Refresh; RefreshComplete
{Isolated=False} [] Success; (10 field results) [Server] 500! "" @19/05/2021 09:14:58
{Isolated=False} [] Success; (10 field results) [Application] 1000! "TRUE" @19/05/2021 09:15:09
{Isolated=False} [] Success; (10 field results) [Application] 1000! "TRUE" @19/05/2021 09:15:09
{Isolated=False} [] Success; (10 field results) [Application] 1000! "TRUE" @19/05/2021 09:15:09
There is a Python project in which I have to use another OPCUA implementation (FreeOPCUA) - the problem that I cannot get any events using that package.
I have the following event filter - can you see anything which prevents me to get the alerts?
Would it be possible to see the event filter that QuickOPC generates?
I really appreciate your help in this awkward situation.
EventFilter(SelectClauses:[SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionClassId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionClassName)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionSubClassId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionSubClassName)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ConditionName)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:BranchId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Retain)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ClientUserId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EventId)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EventType)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:SourceNode)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:SourceName)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Time)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:ReceiveTime)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Message)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Severity)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState), QualifiedName(0:Id)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState), QualifiedName(0:EffectiveDisplayName)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState), QualifiedName(0:TransitionTime)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState), QualifiedName(0:EffectiveTransitionTime)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState), QualifiedName(0:TrueState)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EnabledState), QualifiedName(0:FalseState)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Quality)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Quality), QualifiedName(0:SourceTimestamp)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:LastSeverity)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:LastSeverity), QualifiedName(0:SourceTimestamp)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Comment)], AttributeId:13, IndexRange:None), SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:Comment), QualifiedName(0:SourceTimestamp)], AttributeId:13, IndexRange:None)], WhereClause:ContentFilter(Elements:[ContentFilterElement(FilterOperator:9, FilterOperands:[SimpleAttributeOperand(TypeDefinitionId:i=0, BrowsePath:[QualifiedName(0:EventType)], AttributeId:13, IndexRange:None), LiteralOperand(Value:Variant(val:i=9341,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=18347,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=2830,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=10637,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=18496,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=2955,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=2915,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:ns=2;i=15143,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=17080,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=10060,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=9764,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=10368,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=11753,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=2881,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:ns=2;i=15292,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=10523,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=9623,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:ns=2;i=15441,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:ns=2;i=15590,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=9482,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=9906,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=10751,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=10214,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=2782,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:ns=2;i=15739,type:VariantType.NodeId)), LiteralOperand(Value:Variant(val:i=13225,type:VariantType.NodeId))])]))
Please Log in or Create an account to join the conversation.