AdsReadDeviceInfoReq

The method AdsDeviceInfoReq enables the transfer of an ADS DeviceInfo command for reading the identification and version number of an ADS server.
AdsReadDeviceInfoCon is called on receipt of the response.

Syntax


int AdsReadDeviceInfoReq( AmsAddr& rAddr, ULONG invokeId );

Parameters

rAddr: (type: AmsAddr&) [in] structure with NetId and port number of the ADS server.

invokeId: (type: ULONG) [in] handle of the command, which is sent. The InvokeId is specified from the source device and serves to identify the commands.

Return value

Type: int

Error code - see AdsStatuscodes.