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.

Reading values with OpcLabs.BaseLib.Collections.ElasticVector

More
15 Sep 2023 09:38 #12145 by support
OK, thanks for letting me know! I was just about to work on your issue. But it would be painful to resolve - such problems, though trivial, are the worst ones to find...

Best regards

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

More
15 Sep 2023 09:35 #12143 by info@software2000.it
I solved it, it was an oversight on my part, unfortunately the Nodeid contained a space at the end that was not visible!!!
The following user(s) said Thank You: support

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

More
15 Sep 2023 07:53 - 15 Sep 2023 07:54 #12140 by info@software2000.it
Good morning,
I'm using VisualFoxpro code to read values ​​from an OPC-UA server, I use the same code successfully in other projects, but in the current one I'm encountering a problem that I can't understand; I attach the code snippet below;
basically the properties

EndpointDescriptor.UrlString contain "opc.tcp://10.0.0.3:30005/Marcom/S7.Net"

NodeDescriptor.NodeId.ExpandedText contain "nsu=urn:terminalsrv:MarcomOPCServerUAS7Net ;ns=1;s=Termosaldatrice.WO.RD.LifeBit

are valued correctly (check in debug)

The same values ​​entered via the DEMO OPC-UA app work correctly

Despite this ErrorMessageBrief always contains the following message

"Status is not good: {BadNodeIdUnknown}. The node id refers to a node that does not exist in the server address space."

What can I do, check?


ReadArgumentsCicli=CreateObject("OpcLabs.BaseLib.Collections.ElasticVector")
 ReadArgumentC="ReadArgumentsC"
 &ReadArgumentC=CreateObject("OpcLabs.EasyOpc.UA.OperationModel.UAReadArguments")
 &ReadArgumentC..EndpointDescriptor.UrlString=alltrim(this.uri)
 &ReadArgumentC..NodeDescriptor.NodeId.ExpandedText=alltrim(this.node)+alltrim(&mnemonicletto)
      if this.oParentObject.w_LAUTENTI="S"
         &ReadArgumentC..EndpointDescriptor.UserIdentity.UserNameTokenInfo.UserName=alltrim(this.oParentObject.w_LUSER)
         &ReadArgumentC..EndpointDescriptor.UserIdentity.UserNameTokenInfo.Password =alltrim(.w_LPASSWORD)
      endif
     ReadArgumentsCicli.Add(&ReadArgumentC)
 ValueresultC=oClient.ReadValueList(ReadArgumentsCicli)
 resultC=ValueresultC.Item[0]
 error=""
 error=resultC.ErrorMessageBrief"
Last edit: 15 Sep 2023 07:54 by info@software2000.it.

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

Moderators: support
Time to create page: 0.058 seconds