AdsReadInd

The AdsReadInd method enables the receipt of an ADS read request. The AdsReadRes must be called to send the result.

Syntax

void    AdsReadInd( AmsAddr& rAddr, ULONG invokeId, ULONG indexGroup, ULONG indexOffset, ULONG cbLength ); 

AdsReadInd 1: Return value

Type: int

ADS Return Code - see AdsStatuscodes.

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.

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).