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.

ReadvalueList error

More
23 Dec 2021 10:55 #10499 by support
Replied by support on topic ReadvalueList error
Which programming language or tool is this in?

Is 'valore' variable declared somewhere, and if so, how?

Regards

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

More
23 Dec 2021 10:51 #10498 by info@software2000.it
Good morning,
i am trying to read a value via the readvaluelist method

I am attaching the code used, the succeeded property is truer, there are no messages in exception nor in errormessage, but when I try to assign a variable to the .value it gives me an incorrect type error, I tested with vartype but it would seem that the property .Value does not exist on its own, what can I test further to understand?
Thank you
Code:


ReadArgumentCk=CreateObject("OpcLabs.EasyOpc.UA.OperationModel.UAReadArguments")
ReadArgumentCK.EndpointDescriptor.UrlString=alltrim(URI)
ReadArgumentCk.NodeDescriptor.NodeId.ExpandedText=alltrim(nodo)+alltrim(memonic)
ReadArgumentsCheck.Add(ReadArgumentCk)
ValueresultCheck=oClient.ReadValueList(ReadArgumentsCheck)
resultCheck=ValueresultCheck.Item[0]
errore=ValueresultCheck.Item[0].Exception
errore1=ValueresultCheck.Item[0].ErrorMessage

if resultCheck.Succeeded
valore=resultCheck.Value ////////error Function argument value , type or count is invalid :-((((((((

endif

Please help me

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

Moderators: support
Time to create page: 0.054 seconds