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.

Error -2146232832 with Client.ReadValue() OPC-UA in COM

More
12 Feb 2025 18:30 #13392 by support
Hello.

Please post here the pieces of code that show how, from the ReadValue, the error is handled and makes it into your log file. I do not see any error handling code, and therefore I cannot be sure where (which statement) the error comes from or what the value -2146232832 represents.

Regards

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

More
12 Feb 2025 12:24 #13390 by albi.majun.1960@gmail.com
Dears,

we have aWindows Server 2019 where is running a VB6 service (let me name it MES service that use VB6-COm EasyOPC with registered licence) that is in execution to read and write values from production machines OPC-UA.

Issue: from last weekend after a server restart generates when I try to read values in my log file the result recorded is "Error -2146232832" instead of the values readout as ever.
The customer technician told me that no update, no changes at all was done on it.

Here simply instructions to read values from PLC of production machine, that we use in the VB6-COM MES service, that was running fine before server restart:

Dim Client As New EasyUAClient
ServerOPCUA$ = "opc.tcp://" & Trim(RsDispositivi("IP_Dispositivo")) & ":4840"
Actual$= "ns=2;s=Coiler.Global_OPCUA.OPC_udiTotalActualPcs"
NrAttuali = Client.ReadValue(ServerOPCUA$, Actual$)

What is strange is that beside when we Write values to PLC, no problem, all commands doesn't generate any error, here the syntax we use:
Call Client.WriteValue(ServerOPCUA$, txtChat$, valore$)

Doing a search by google I found this document: www.opclabs.com/media/kunena/attachments/1141/ErrorsErasmeOPCClient2.pdf
where you can find HResult: -2146232832 (0x80131600)

Any suggestions to find out the reason why?
Which kind of additional parameter can I use to better debug the problem?

Thanks+regards
Alberto

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

Moderators: support
Time to create page: 0.047 seconds