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.

OPCUA Wizard Problem with Array creation

More
18 Nov 2024 14:21 #13284 by support
I understand what you are asking for. Unfortunately in this version, OPC Wizard does not support structures.

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.

More
18 Nov 2024 14:13 #13283 by JDP
Ok, i have one more question:

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!
Attachments:

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

More
18 Nov 2024 12:04 #13282 by JDP
Hey Again,

that worked! Thank you very much.
Problem solved!

Greetings!
The following user(s) said Thank You: support

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

More
18 Nov 2024 10:09 #13281 by support
Oh, I see. Thank you for the details.

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
The following user(s) said Thank You: JDP

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

More
18 Nov 2024 08:51 #13280 by JDP
Hey,
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
Attachments:

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

More
16 Nov 2024 10:24 #13278 by support
Hello.
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.

More
16 Nov 2024 09:14 - 16 Nov 2024 09:19 #13277 by JDP
Hello everyone,

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!
Attachments:
Last edit: 16 Nov 2024 09:19 by JDP.

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

Moderators: support
Time to create page: 0.055 seconds