You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile an UANodeSet file exported from SIEMENS interface inside TIA Portal:
it seems it should be possible:
it contains several array UAVariables with different NodeId, problem is SIEMENS creates an UAVariable for each element of an array, but gives them the same BrowseName across different arrays, i.e. all first elements of an array have this kind of BrowseName="2:[0]"
this get rejected by compiler:
[ArgumentException] An item with the same key has already been added. Key: x0_
========================
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at ModelCompiler.ModelGenerator2.WriteIdentifiers(
etc.
I'm using compile command v104
Is it possible to have different NodeIds but with the same BrowseName?
The text was updated successfully, but these errors were encountered:
Fabolo64
changed the title
compile exported SIEMENS Interface File
different NodeIds but with the same BrowseName
Aug 29, 2024
Thanks for your answer,
yes, there are multiple places with same BrowseName, all NodeIds are indeed unique, parent and children, but relationship is done via a reference in references collection in the parentNode:
This is an xml file exported by TIA Portal=>OPC interfaces functionality, as is. I guess I'll need to automate some editing, to inject a ParentNodeId in my Component nodes...
You need to set the ParentNodeId attribute on the UAVariable representing the child.
You can also set the SymbolicName attribute to something that is unique in the file and better than 'x0_'.
I'm trying to compile an UANodeSet file exported from SIEMENS interface inside TIA Portal:
it seems it should be possible:
it contains several array UAVariables with different NodeId, problem is SIEMENS creates an UAVariable for each element of an array, but gives them the same BrowseName across different arrays, i.e. all first elements of an array have this kind of BrowseName="2:[0]"
this get rejected by compiler:
[ArgumentException] An item with the same key has already been added. Key: x0_
========================
at System.Collections.Generic.Dictionary
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value)at ModelCompiler.ModelGenerator2.WriteIdentifiers(
etc.
I'm using compile command v104
Is it possible to have different NodeIds but with the same BrowseName?
The text was updated successfully, but these errors were encountered: