adsSyncWriteControlReqEx

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

long adsSyncWriteControlReqEx (
  long           lj_port,
  AmsAddr        lj_AmsAddr,
  int            lj_adsState,
  int            lj_deviceState,
  long           lj_length,
  JNIByteBuffer  lj_pData
);

Parameter

Return value

long: returns the error state of the function.

Notes

In addition to changing the ADS state and the device state, it is also possible to send data to the ADS server to transfer further information. In the current ADS devices (PLC, NC, ...) this data has no further effect. Each ADS device can inform another ADS device about its current state. A distinction is made between the state of the device itself (DeviceState) and the state of the ADS interface of the ADS device (AdsState). The states that the ADS interface can assume are defined in the ADS specification.