code: def write(self, index_group, index_offset, value, plc_datatype):
          # type: (int, int, Any, Type) -> None
          
          if self._port is not None:
              return adsSyncWriteReqEx(
                  self._port, self._adr, index_group, index_offset, value, plc_datatype
              )
docs: Send data synchronous to an ADS-device.
  
          :param int index_group: PLC storage area, according to the INDEXGROUP
              constants
          :param int index_offset: PLC storage address
          :param value: value to write to the storage address of the PLC
          :param int plc_datatype: type of the data given to the PLC,
              according to PLCTYPE constants