AdsRead[Datatype]Conf
AdsReadIntegerConf
AdsReadLongConf
AdsReadSingleConf
AdsReadDoubleConf
AdsReadStringConf
Returns the result after the AdsRead[Datatype]Req() method has been called.
object_AdsRead[Datatype]Conf(
nInvokeId As Long,
nResult As Long,
cbLength As Long,
pData As [Datatype]
)
Parameter
nInvokeId
[out] Job number for identification of the response
nResult
[out] Error state; see ADS error codes
cbLength
[out] Length of the data in bytes
pData
[out] Data being read from the ADS device
Comments
Once a read request has been sent to the ADS device, execution of the Visual Basic program continues. As soon as the data is available, the ADS-OCX triggers the event function AdsRead[Datatype]Conf() with which the requested data is transmitted.
When the read request is sent, an identification number must be specified, which is later returned when the event function is called. This makes it possible to assign the event function to the appropriate read request. See also AdsRead[Datatype]Req().
Example
-