Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Exception from HRESULT: 0x80004005 (E_FAIL) using Client.ReadValue() - by: albi.majun.1960@gmail.com

$
0
0
Dears,

My customer got a new machine and I'm integrating it in the MES interface.
I'm trying to readout the value of the field of below NodeId = ns=6;s=::AsGlobalPV:Numero_Commessa
The field is type String and its value is currently value is "1234"
As you can see detail in the attachment

Here simply the VB6 instruction that I'm executing when I'm facing the error in subject

NrCommessa$ = "ns=6;s=::AsGlobalPV:Numero_Commessa"
MsgBox "NrCommessa: " & Client.ReadValue(ServerOPCUA$, NrCommessa$)

and here the GOTO Error result
Err.Result= Error.Description...-2147467259 - Error not specified. (Exception from HRESULT: 0x80004005 (E_FAIL)

Could you please let me know why I cannot readout the value I'm looking for ?
Where I'm wrong?

Next step will be to simply readout the value form the field "ContaMolle" that is type UInt32., it's a counter.

Thanks
Alberto

Viewing all articles
Browse latest Browse all 1794