easymodbus/modbusClient.py
def convert_registers_to_double(registers, register_order=RegisterOrder.lowHigh):
    """
    Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus (Modbus Registers are 16 Bit long)
    registers: 16 Bit Registers
    return: 32 bit value
    """
    returnValue = (int(registers[0]) & 0x0000FFFF) | (int((registers[1]) << 16) & 0xFFFF0000)
    if register_order == RegisterOrder.highLow:
        returnValue = (int(registers[1]) & 0x0000FFFF) | (int((registers[0]) << 16) & 0xFFFF0000)
    return returnValue

    Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus (Modbus Registers are 16 Bit long)
    registers: 16 Bit Registers
    return: 32 bit value
    
Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus (Modbus Registers are 16 Bit long)
registers: 16 Bit Registers
return: 32 bit value
Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus ( Modbus Registers are 16 Bit long ) registers : 16 Bit Registers return : 32 bit value
def convert_registers_to_double(registers, register_order=RegisterOrder.lowHigh):
    returnValue = (int(registers[0]) & 0x0000FFFF) | (int((registers[1]) << 16) & 0xFFFF0000)
    if register_order == RegisterOrder.highLow:
        returnValue = (int(registers[1]) & 0x0000FFFF) | (int((registers[0]) << 16) & 0xFFFF0000)
    return returnValue
def convert_registers_to_double ( registers , register_order = RegisterOrder . lowHigh ) : returnValue = ( int ( registers [ 0 ] ) & 0x0000FFFF ) | ( int ( ( registers [ 1 ] ) << 16 ) & 0xFFFF0000 ) if register_order == RegisterOrder . highLow : returnValue = ( int ( registers [ 1 ] ) & 0x0000FFFF ) | ( int ( ( registers [ 0 ] ) << 16 ) & 0xFFFF0000 ) return returnValue
Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus (Modbus Registers are 16 Bit long)
registers: 16 Bit Registers
return: 32 bit value
Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus ( Modbus Registers are 16 Bit long ) registers : 16 Bit Registers return : 32 bit value
"""
    Convert two 16 Bit Registers to 32 Bit long value - Used to receive 32 Bit values from Modbus (Modbus Registers are 16 Bit long)
    registers: 16 Bit Registers
    return: 32 bit value
    """
registers
register_order