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

AdsReadDeviceInfoReq 1: Return value

Type: int

Error code - see AdsStatuscodes.

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.