adsSyncReadStateReqEx

Reads the ADS state and the device state of an ADS server (thread-safe).

long adsSyncReadStateReqEx (
  long      lj_port,
  AmsAddr   lj_AmsAddr,
  AdsState  lj_nAdsState,
  AdsState  lj_nDeviceState
);

Parameter

Return value

long: returns the error state of the function.