AdsReadDeviceInfoCon

The method AdsReadDeviceInfoCon permits to receive an ADS read device info confirmation. The receiving module has to provide this method. The AdsReadDeviceInfoReq is the counterpart and need to be called beforehand.

Syntax


void AdsReadDeviceInfoCon( AmsAddr& rAddr, ULONG invokeId, ULONG nResult,
CHAR name[ADS_FIXEDNAMESIZE], AdsVersion version );

Parameter

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

invokeId: (type: ULONG) [in] handle of the command that is sent. The InvokeId is specified by the source device and is used for the identification of the commands.

nResult: (type: ULONG) [in] contains the result of the ADS write command; see AdsStatuscodes.

name: (type: char[ADS_FIXEDNAMESIZE]) [in] contains the name of the device.

version: (type: AdsVersion) [in] structure of build (int), revision (byte) and version (byte) of the device.

Return Value

void