AdsReadReq
The AdsReadReq method enables the sending of an ADS read command for the data transmission from an ADS device.
AdsReadCon is called on receipt of the response.
Syntax
int AdsReadReq( AmsAddr& rAddr, ULONG invokeId, ULONG indexGroup, ULONG indexOffset, ULONG cbLength ); Parameter
Name | Type | Description |
|---|---|---|
rAddr | AmsAddr& | [in] Structure with NetId and port number of the 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. |
indexGroup | ULONG | [in] Contains the index group number (32-bit, unsigned) of the requested ADS service. |
indexOffset | ULONG | [in] Contains the index offset number (32-bit, unsigned) of the requested ADS service. |
cbLength | ULONG | [in] contains the length in bytes of the data to be read (pData). |
Return value