AdsReadStateReq
The AdsReadStateReq method enables the transmission of an ADS state read command for reading the ADS and device state from an ADS server. When the response is received, AdsReadStateCon is called.
Syntax
int AdsReadStateReq(AmsAddr& rAddr, ULONG invokeId); 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. |
Return value