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.
Return value
long: returns the error state of the function.