Hi,
I’m trying to connect from Notes version 6.0.3 to an OPC server ( OLE for Process Control )
So far the connection is going well.
But I have troubles with the following.
The last step is adding Items ( datapoints ) and I should receive an array of handles ( one per datapoint ) from the OPCserver this is the OLE application (RSLinx OEM from Rockwell Software) on the same computer as the notes client.
Well I can’t find out how to receive the array.
From the manual "
'The ItemServerHandles is an array that the OPC Server will
' return to your application. This array like your own ClientHandles array
' is used by the server to allow you to reference individual items in an OPC
' group. When you need to perform an action on a single OPC item you will
' need to use the ItemServerHandles for that item.
The calling routine is as ( and functioning )
’ declaration
Dim ItemCount As Long
Dim OPCItemIDs(10) As String
Dim OPCItemActiveState(10) As Boolean
Dim ItemServerHandles() As Long ’ ItemServerHandles(10) is not working to
Dim ItemServerErrors() As Long
Dim ClientHandles(10) As Long
ItemCount = 10
For
add items to OPCItemIDs
next
Call OPCItemCollection.AddItems (ItemCount, OPCItemIDs, ClientHandles, ItemServerHandles, ItemServerErrors)
The connections are working but now I need the ItemServerHandles for reading the values of the datapoints.
The question is, is it possible to receive from an OPC application an referenced array back ???
Thanks in advance for any help