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.

ServerStatus node id (string)

More
05 Feb 2019 17:03 #7065 by support
There is no string nodeID for this node, and the behavior is as expected.

Each node has just *one* Id. It can be either numerical, string, GUID, or opaque, but always just one. See opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...tml#OPC%20UA%20Node%20IDs.html .

The node you are referring to has an integer node ID, so that is the one that works.

The other form you may have in mind is probably a browse path. That is completely different from Node IDs, and although it looks more "friendly" at the first sight, it is actually much more complex to set it up. See opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...wse%20Paths%20in%20OPC-UA.html .

For standard nodes like State in ServerStatus, referring to them by numerical node ID is the best way to do it. It is also much more efficient. You do not have hard-code the numbers into your code. There are pre-defined static classes with all that you need. The one you are looking for is symbolically defined as UAVariableIds.Server_ServerStatus_State (in OpcLabs.EasyOpc.UA.AddressSpace.Standard namespace) - so you can use it as UANodeId.

Best regards

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

  • phil56
  • Topic Author
  • Visitor
  • Visitor
05 Feb 2019 15:22 #7064 by phil56
ServerStatus node id (string) was created by phil56
Hello,

I would like to test the state of my OPC UA server by reading the value of the State variable in Server->ServerStatus.

Reading with Interger nodeid "i=2259" = Ok.

But reading with a string nodeid like this "s=ServerStatus.State" does not works !!!

what is its correct string nodeid ?

thank you in advance

Phil

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

Moderators: support
Time to create page: 0.050 seconds