Gerard 0 Newbie Poster

I am connecting to an OPC Server using VB. I can connect with the server ok. I have set up a browser that lets me select the tags I wish to view but I get Runtime Error 424, when I try to read the values.

result = OPCItem.Read([Tagname], [Value], [state], 0)

I looked in the object library and Im sure .Read() is the function I need
however when I hold the mouse over the statement it tells me
result = Empty
[Value] = Empty
Can anyone suggest why this isn't working or perhaps a better function to let me read the tags.

Thanks
Gerard :evil:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.