adsSyncReadStateReq
Reads the ADS state and the device state from an ADS server.
long adsSyncReadStateReq(
AmsAddr lj_AmsAddr,
AdsState lj_nAdsState,
AdsState lj_nDeviceState
);
Parameter
- AmsAddr lj_AmsAddr: object with NetId and port number from ADS server.
- AdsState lj_nAdsState: AdsState which contains the current ADS state after the call
- AdsState lj_nDeviceState: AdsState which contains the current device state after the call
Return value
long: returns the error state of the function.