Example #1
0
 def __init__(self, line, header, timeout):
     Response.__init__(self, line, header, timeout)
     n = bytes_outstanding(self, header)
     self.port.read(header, n, timeout)
     ConvertBitField.__init__(self,header[3:])
     #self.buffer = header
     if self.line.crc(header):
         raise EModbusCRC
     self.set_crc()
Example #2
0
 def __init__(self, line, header, timeout):
     Response.__init__(self, line, header, timeout)
     n = bytes_outstanding(self, header)
     self.port.read(header, n, timeout)
     ConvertBitField.__init__(self, header[3:])
     #self.buffer = header
     if self.line.crc(header):
         raise EModbusCRC
     self.set_crc()
Example #3
0
 def status(self, response_offset, start=0, orders=0):
     return ConvertBitField.status(self, response_offset, start, orders)
Example #4
0
 def status(self, response_offset, start=0, orders=0):
     return ConvertBitField.status(self, response_offset, start, orders)