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.

Addressing single index in array node

More
04 Dec 2023 11:01 #12432 by support
Hello.

OPC UA defines a way to read/write/subscribe just part of an array (and the part can be a single element). You can do it with QuickOPC. An example of it is here: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...ments%20from%20an%20array.html . In order for this to work, the server has to support it. Most servers do, but not all.

There is also a possibility that besides a node (variable) which holds the array, the server exposes separate nodes (variables) for the individual array elements. And yes, there needs to be some syntax or rule for how the Node ID looks like, depending on an index. This approach is not standardized by the OPC UA specifications, and therefore each server can do it differently. You need to consult the server vendor/documentation on this topic.

Best regards
The following user(s) said Thank You: alenjursic1997

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

More
04 Dec 2023 10:51 #12431 by alenjursic1997
Hello,
We're currently facing an issue while trying to read single value from array. For example, node ID of array is "ns=7;s=PLC.Parameters.Values". Is it there maybe any way to read value at certain index and that index is defined in node ID itself?
Maybe something like this: "ns=7;s=PLC.Parameters.Values[1]"

We've already tried that way, but unfortunately it's not working. Do you have any suggestions on how to achieve this?

Keep in mind that we have .NET application which goes trough list of node ID's provided with Excel file, reads their values and stores them back in Excel. That means that whether value is index in array or just a simple integer or string, it should be transparent for our applications.

Thank you in advance.

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

Moderators: support
Time to create page: 0.053 seconds