code: def convert_double_to_two_registers(doubleValue):
        
      myList = list()
      myList.append(int(doubleValue & 0x0000FFFF))         #Append Least Significant Word      
      myList.append(int((doubleValue & 0xFFFF0000)>>16))   #Append Most Significant Word      
      return myList
docs: Convert 32 Bit Value to two 16 Bit Value to send as Modbus Registers
      doubleValue: Value to be converted
      return: 16 Bit Register values int[]