IMDHMIControls LibraryShop main store

Troubleshooting

Why an OPC UA browse returns no properties under a tag

SCADA and data logging Published 5 min read

Short answer

Browse returns references to child nodes; attributes come from the Read service. Resolve the tag's NodeId in your reference client, Read its Value and descriptive attributes directly, and bound any browse with an explicit reference filter so it cannot walk the whole server address space.

On this page
  1. Browse returns references, not attributes
  2. Why the attribute pane fills while the tree stays empty
  3. What reference type IDs 47, 46 and 35 actually change
  4. Bound the browse or skip it entirely
  5. Read one tag and export its attributes
  6. Decision list
  7. Questions asked

Your custom client reaches the S7-1500's OPC UA server and walks out to the tag, but the list beneath it stays empty: Browse does not return attributes. Browse returns references, which are links from one node to another. The attributes your reference client shows in its pane — Value, DataType, DisplayName — come from the Read service, addressed by NodeId and attribute number. Resolve the one Variable node you need, Read its attributes directly, and bound any browse you do run so it cannot enumerate the whole address space. Then the JSON export is a one-node job instead of a full traversal.

Browse returns references, not attributes #

OPC UA separates the two operations you are mixing up. The Browse service discovers the references of a node: which other nodes connect to it and through which reference type. The Read service takes a NodeId and an AttributeId and returns that attribute's value.

A Property is not an attribute of your tag. It is a separate Variable node attached through a specific reference, so reading a Property is a two-step job: find its NodeId by browsing the HasProperty relationship, then Read that node like any other. Looking for Properties under a tag will never deliver the tag's own Value, because that value lives on the tag node as an attribute.

Why the attribute pane fills while the tree stays empty #

The behavior you saw — an expansion indicator beside the tag, nothing underneath, yet a full attribute list when you click it — is the two services working as designed. The tree view issues Browse and finds no children below a leaf Variable; selecting the node issues Read against that node and fills the pane. A leaf tag with no children is normal: the process data is on the node itself, not in a child.

That also means the attribute pane of a working reference client is your ground truth. If the pane shows a Value, the node is readable; your script only has to address the same NodeId and call Read.

What reference type IDs 47, 46 and 35 actually change #

The numeric filters you tried are reference-type identifiers from the standard namespace, and each one selects a different set of links for Browse to follow:

Numeric ID Reference type What Browse returns when filtered on it
47 HasComponent Component nodes belonging to the selected Object or Variable
46 HasProperty Property Variables attached to the selected node
35 Organizes Folder-style organizational links

Changing the filter changes which connections come back; it never makes Browse return Value, DataType or any other attribute. A null filter is the worst choice on a large server: it follows every reference type in both directions, including the modeling and typing references of the server's type model, which is exactly how your script fell into an endless walk. The write-up on selecting OPC UA Organizes versus HasComponent references covers how each filter shapes the traversal in more depth.

Bound the browse or skip it entirely #

Do the arithmetic before you let a recursive browse run. Say the server exposes 40,000 nodes and your client requests 1,000 references per call and the server honors that. A full walk needs 40,000 ÷ 1,000 = 40 page requests before your script has seen everything, and at 20 ms per round trip that is 40 × 20 ms = 0.8 s of pure traversal — per poll, if you browse inside the polling loop. Those inputs are illustrative; the real node count is whatever the server exposes, and it moves the total linearly.

Two bounds fix the loop:

  • Filter on HasComponent or Organizes, never null, and track visited NodeIds including namespace index and identifier type, because the address space is a graph and one node can be reached by several paths.
  • Handle paging correctly: when a response carries a continuation point, fetch the next page with BrowseNext using that token, and release any continuation point you abandon so the server frees the reserved resources.

For one known tag, skip discovery altogether. Capture the NodeId once, then poll it with Read or a subscription. The article on why OPC UA subscription updates beat polling PLC input changes covers the polling side once the node is resolved.

Read one tag and export its attributes #

  • In the reference client, select the tag and copy its complete NodeId, namespace URI, BrowseName and NodeClass. A NodeId looks like ns=3;s="DoorX_Locked" — that is an example shape; the namespace index and identifier come from your own server, and comparing namespace URIs rather than raw indexes matters if two servers are involved.
  • Confirm in the client's attribute pane that the node's NodeClass is Variable. An enclosing Object only provides structure; the process data is on the Variable.
  • Send a Read with that NodeId and attribute 9, the Value attribute, and check the returned DataType against the pane.
  • Add attribute 10 (DataType), attribute 11 (ValueRank) and attribute 4 (DisplayName) to the same Read call — one request covers all of them.
  • Serialize the NodeId, the attributes and the values to your JSON file.

If the Read fails where the reference client succeeds, the problem is connection or session setup, not browsing; the S7-1500 OPC UA client troubleshooting article walks that path, and the piece on when an S7-1500 needs no SIMATIC PC Station for OPC UA explains how the server side is exposed in the first place.

Decision list #

  • Tag visible in the tree, no children, attributes shown on selection: normal leaf Variable. Read it directly; there is nothing to browse.
  • Recursive browse runs forever: you used a null reference filter or revisit graph nodes. Filter on one reference type, log visited NodeIds, cap depth and node count.
  • Browse returns fewer nodes than expected: results were paged. Complete the traversal with the continuation point through BrowseNext, or release it.
  • Read works in the reference client but not in your script: compare the full NodeId, namespace URI, endpoint, security policy and user identity between the two, not the displayed tag name.
  • You need a value continuously, not once: resolve the NodeId once, then poll it or subscribe to it. Never rewalk the model per poll.

Questions asked

Can a Browse call ever return the Value of a tag?

No. Value is an attribute stored on the Variable node itself, and the only service that returns attributes is Read, addressed with the node's NodeId and the attribute number. A Property is different again: it is its own Variable node, so you browse to find its NodeId and then Read it like any other node.

Why does a null reference-type filter loop through the whole server?

A null filter means follow every reference type in both directions, including modeling and typing references, not just the folder-style hierarchy. On a server with thousands of nodes the traversal revisits nodes that are reachable by several paths, so an unbounded recursive browse appears to run forever. Filter on one reference type and keep an explicit depth and node-count limit in the script.

What is a continuation point and when do I have to release it?

When a Browse response cannot carry all matching references, the server hands back a continuation point, a token for the remaining results. Pass that token to the BrowseNext service to fetch the next page. If you abandon the search before it is complete, release the continuation point so the server frees the resources it reserved for your session; leaving them open on a PLC server wastes its limited session resources.

Keep reading

  • Troubleshooting

    When Aveva Edge cannot browse S7-1500 OPC UA tags

    AVEVA Edge connecting but showing no S7-1500 tags is a browse fault, not a comms fault: UAExpert reading the same server proves the tags are exposed. Match Edge's endpoint and security settings to the working client, verify the CPU's X1 Ethernet addresses, put a virtual machine on the PLC subnet, and check the browse timeout before rebuilding the datasheet.

    SCADA and data logging

  • How-to

    Exposing Modbus coil addresses as named OPC UA symbols

    Machine Expert's Symbol Configuration does not list directly addressed %QX variables, so Modbus coil bits cannot be exported as they stand. Declare one ordinary named Boolean per coil, copy between the coil area and those variables in the task, and export the variables with read or write access set per point. The AT %QW word-array trick exposes 256 unnamed bits per 16 words, not named coils.

    SCADA and data logging

  • How-to

    Getting NX1P2 tags into Ignition without OPC UA

    On an NX1P2 without OPC UA and without FINS/TCP, connect Ignition with the Omron NJ (EtherNet/IP) driver, set Network Publish on every Sysmac global variable you need, and import the variable list as tags, because neither Omron driver browses. A Bound FINS/UDP device only means the gateway bound its own local UDP port; a read that returns Good quality is the proof.

    SCADA and data logging