> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.codeandcompile.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Modbus Float Converter

> Convert two Modbus registers to a 32-bit float in all four byte orders (ABCD, CDAB, BADC, DCBA), or a float back to registers.

A 32-bit float travels over Modbus as two 16-bit registers, and every vendor can order the four bytes differently. Enter the two registers your PLC or SCADA reads, and the converter shows the value for all four byte orders. The row with a realistic value is the order your device uses.

## How to use it

**1. Read the two registers**

Read both registers of the float from the device, in the order the manual lists them. Enter them as decimal (signed or unsigned) or hex, such as `0x3E00` or `1ADBh`.

**2. Find the realistic value**

The converter highlights the byte orders that give a realistic number. Pick the one that matches what the device is measuring.

**3. Use that byte order in your PLC**

Swap bytes or words in your PLC program, or set the byte order in your Modbus driver, to match.

> [card] [Why Modbus floats need byte swapping](https://wiki.codeandcompile.com/factory-automation/plc/articles/modbus-word-to-float-conversion-big-endian-byte-swap.md)
>
> The full article: ABCD vs CDAB vs BADC vs DCBA, with a real sensor example.


## Related topics

- [Modbus Word to Float Conversion (Big-Endian Byte Swap)](https://wiki.codeandcompile.com/factory-automation/plc/articles/modbus-word-to-float-conversion-big-endian-byte-swap.md)
- [Bit and Number Converter](https://wiki.codeandcompile.com/tools/bit-converter.md)
- [Modbus RTU Frame Builder and CRC-16 Calculator](https://wiki.codeandcompile.com/tools/modbus-rtu-frame-builder.md)
- [Analog Scaling Calculator (4–20 mA, 0–10 V)](https://wiki.codeandcompile.com/tools/analog-scaling-calculator.md)
- [Free Engineering Tools](https://wiki.codeandcompile.com/tools/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.