AdsReadStateInd

The AdsReadStateInd method displays an ADS state read command for reading the ADS state and the device state from an ADS device. The AdsReadStateRes must be called to send the result.

Syntax

void    AdsReadStateInd( AmsAddr& rAddr, ULONG invokeId ); 

AdsReadStateInd 1: Return value

void

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.