def ab_write(self, start, data):
        """
        This is a lean function of Cli_WriteArea() to write PLC process
        outputs
        """
        wordlen = snap7.snap7types.S7WLByte
        type_ = snap7.snap7types.wordlen_to_ctypes[wordlen]
        size = len(data)
        cdata = (type_ * size).from_buffer(data)
        logging.debug((start, size) % "ab write: start: %s: size: %s: ")
        return self.library.Cli_ABWrite(
            self.pointer, start, size, byref(cdata))
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/client.py/Client.ab_write/swapped operands of `%`