def set_table_data(self, tableid, data, offset=None):
self.send(C1218WriteRequest(tableid, data, offset))<EOL>data = self.recv()<EOL>if data[<NUM_LIT:0>] != <NUM_LIT>:<EOL><INDENT>status = data[<NUM_LIT:0>]<EOL>details = (C1218_RESPONSE_CODES.get(status) or '<STR_LIT>')<EOL>self.logger.error('<STR_LIT>' + details)<EOL>raise C1218WriteTableError('<STR_LIT>' + details, status)<EOL><DEDENT>return<EOL>
Write data to a table.

:param int tableid: The table number to write to (0x0000 <= tableid <= 0xffff)
:param str data: The data to write into the table.
:param int offset: The offset at which to start to write the data (0x000000 <= octetcount <= 0xffffff).