Infosys在阅读器中打开 / AI 翻译

ADS · 0 次阅读

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

  • 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.
  • 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.