beckhoff — 5.2.8 adsSyncReadDeviceInfoReqEx

API JNILong : lj_pBytesRead JNILong buffer contains the number of bytes read after the call. Return value long : returns the error state of the function. 5.2.7 adsSyncReadWriteReqEx2 Writes data synchronously into an ADS server and receives data back from the ADS device (thread-safe). The additional JNILong buffer contains the number of bytes read after the call. long adsSyncReadWriteReqEx2 ( long lj_portAmsAddrlj_AmsAddr, long lj_indexGroup, long lj_indexOffset, long lj_lengthRead, JNIByteBuffer lj_pDataRead, long lj_lengthWrite, JNIByteBuffer lj_pDataWrite, JNILong lj_pBytesRead); Parameter long :

lj_port port number of an ADS port that had previously been opened with AdsPortOpenEx or AdsPortOpen. AmsAddr lj_AmsAddr : object with NetId and port number from ADS server. long : lj_indexGroup Index Group. long : lj_indexOffset Index Offset. long lj_lengthRead : length of the data in bytes that the ADS device returns. JNIByteBuffer : lj_pDataRead buffer with data returned by the ADS device. long : lj_lengthWrite length of data written to the ADS device in bytes. JNIByteBuffer : lj_pDataWrite buffer with data written to the ADS device. JNILong : lj_pBytesRead JNILong buffer contains the number of bytes read after the call. Return value long : returns the error state of the function.

5.2.8 adsSyncReadDeviceInfoReqEx Reads the identification and version number of an ADS server (thread-safe). long adsSyncReadDeviceInfoReqEx ( long lj_port, AmsAddr lj_AmsAddr, AdsDevName lj_pDevName, AdsVersion lj_pVersion ); Parameter long : lj_port port number of an ADS port that had previously been opened with AdsPortOpenEx or AdsPortOpen. AmsAddr lj_AmsAddr : object with NetId and port number from ADS server. AdsDevName lj_pDevName : AdsDeviceName object containing the ADS device name after the call. AdsVersion lj_pVersion : AdsDeviceName object which contains the used version number, revision number and build number after the call. TX1000 23 Version: 1.1