Programming Reference | ADS Communication Error code - see AdsStatuscodes [ } 323] . Parameter 12.9.1.2 AdsReadDeviceInfoInd | AdsReadDeviceInfoInd The AdsDeviceInfoInd method refers to an ADS DeviceInfo command for reading the identification and version number of an ADS server. AdsReadDeviceInfoRes [ } 191] must then be called. Syntax void AdsReadDeviceInfoInd( AmsAddr& rAddr, ULONG invokeId ); Return value void Parameter 12.9.1.3 AdsReadDeviceInfoRes | AdsReadDeviceInfoRes The method AdsReadDeviceInfoRes sends an ADS Read Device Info. AdsReadDeviceInfoCon [ } 192] forms the counterpart and is subsequently called.
Syntax int AdsReadDeviceInfoRes( AmsAddr& rAddr, ULONG invokeId, ULONG nResult, CHAR name[ADS_FIXEDNAMESIZE], AdsVersion version ); Return value Type: int Error code - see AdsStatuscodes [ } 323] . Parameter TwinCAT 3 191 Version: 1.19.1 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. 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. Name Type Description rAddr AmsAddr& [in] Structure with NetId and port number of the responding 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. nResult ULONG [in] contains the result of the ADS write command; see AdsStatuscodes [} 323]. name char[ADS FIXEDNAMESIZE _ [in] contains the name of the device. version AdsVersion [in] structure of build (int), revision (byte) and version (byte) of the device.