code: def convert_float_to_two_registers(floatValue):
        
      myList = list()
      s = bytearray(struct.pack('<f', floatValue) )      #little endian
      myList.append(s[0] | (s[1]<<8))         #Append Least Significant Word
      myList.append(s[2] | (s[3]<<8))         #Append Most Significant Word      
  
      return myList
docs: Convert 32 Bit real Value to two 16 Bit Value to send as Modbus Registers
      floatValue: Value to be converted
      return: 16 Bit Register values int[]