AdsReadCon
The method AdsReadCon enables the receipt of an ADS read confirmation. The receiving module must provide this method.
The counterpart is AdsReadReq and must have been called beforehand.
Syntax
void AdsReadCon( AmsAddr& rAddr, ULONG invokeId, ULONG nResult, ULONG cbLength, PVOID pData );
Return value
void
Parameter
Name | Type | Description |
|---|---|---|
rAddr | AmsAddr& | [in] Structure with NetId and port number of the responding ADS server. |
invokeId | ULONG | [in] Handle of the command, which was sent. The InvokeId is specified by the source device and is used for the identification of the commands. |
nResult | ULONG | [in] contains the result of the ADS read command; see AdsStatuscodes. |
cbLength | ULONG | [in] contains the length in bytes of the data read (pData). |
pData | PVOID | [in] pointer to the data buffer in which the data are located. |