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.
- Forum
- Discussions
- QuickOPC-UA in .NET
- General Issues, Building
- OPCUA Wizard Problem with Array creation
OPCUA Wizard Problem with Array creation
Best regards
(Please create a new topic on forums next time in similar case, as the subject/issue is different)
Please Log in or Create an account to join the conversation.
Next step (as the arrays are working) would be to bring include a structure inside of the array.
I put an example in the attachements what i want to do. I saw that it is working with the extensionobjects, is that correct? I tried some stuff but im not sure if im on the right track here.
Thanks in Advance!
Please Log in or Create an account to join the conversation.
that worked! Thank you very much.
Problem solved!
Greetings!
Please Log in or Create an account to join the conversation.
By default, arrays in OPC Wizard have variable length - and this is why it shows as "0..0". The actual array can then have any length, and the clients are expected to deal with it.
If your client requires fixed-size arrays, it is doable as well. See this example: opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Late...ounded%20array%20register.html .
And
- opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Late...0Variable%20Configuration.html
- opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Late...ension~SetArrayDimensions.html
I hope this helps - please let me know.
Best regards
Please Log in or Create an account to join the conversation.
Thanks for your Answer.
Attached a UA Expert example of how it should look like so that the Siemens Software could work with it as an Array.
The other Picture shows how Siemens is interpreting it at the moment. (ExampleArray)
I also tried to work with nested nodes but also there its not correctly intepreted (because its not actually an array), so i cannot use it properly.
Greetings
Please Log in or Create an account to join the conversation.
This is by design - an array data variable in OPC UA is, in principle, just one node, and the node holds a value that itself is an array already.
It is true that sometimes, the array is represented by the server as multiple nodes - or as multiple "indexed" nodes in addition to the single node I described above. To my knowledge, however, there is no standard to tell how the nodes for the array elements should be constructed - namely, what should be their browse names.
Can you post a similar screenshot from UaExpert with some server showing the node structure you would like to see? (i.e.: what is the structure that the Siemens PLC client expects?)
Regards
Please Log in or Create an account to join the conversation.
im playing around with the OPC Wizard, setting up an OPC UA Server. So far so good everything is working properly. My client is a Siemens PLC. Im working with VB.net
I tried to create some arrays but it seems as the array have a wrong format for the Siemens PLC to read properly. It shows the array as an array from 0 to 0.
I created the array like this (just an example)
Global_Tags.HeartbeatRW = New UADataVariable("Heartbeat").ReadWriteValue(New Integer(3) {})
folderGen.Add(Global_Tags.HeartbeatRW)
The result you can see in the attached Picture from UAExpert.
I see my Node, but i only see one Node. What i would expect is one node per array objekt.
Is there any other way to create an array with a different format?
Thank you in advance!
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- General Issues, Building
- OPCUA Wizard Problem with Array creation