def ab_read(self, start, size):
        """
        This is a lean function of Cli_ReadArea() to read PLC process outputs.
        """
        wordlen = snap7.snap7types.S7WLByte
        type_ = snap7.snap7types.wordlen_to_ctypes[wordlen]
        data = (type_ * size)()
        logging.debug((start, size) % "ab_read: start: %s: size %s: ")
        result = self.library.Cli_ABRead(self.pointer, start, size,
                                         byref(data))
        check_error(result, context="client")
        return bytearray(data)
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/client.py/Client.ab_read/swapped operands of `%`