adsSyncWriteControlReq

Ändert den ADS-Status und den Geräte-Status von einem ADS-Server.

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

Parameter

Rückgabewert

long: Gibt den Fehlerstatus der Funktion zurück.

Comments

In addition to change the ADS status and the device status, it is also possible to send data to the ADS server in order to transfer further information. In the current ADS devices (PLC, NC, ...) this data has no further effect. Any ADS device can inform another ADS device of its current state. A distinction is drawn here between the status of the device itself (DeviceState) and the status of the ADS interface of the ADS device (AdsState). The states that the ADS interface can adopt are laid down in the ADS specification.