Industrial Automation & Middleware
Hex ↔ Decimal, Endianness & Word-Swap Converter
Decode 16/32-bit integers, IEEE 754 floats, and raw binary streams across Big-Endian, Little-Endian, and Word-Swapped PLC registers
Hex ↔ Decimal, Endianness & Word-Swap Converter
32-Bit Integer Endianness
IEEE 754 Single-Precision Float (32-Bit)
Binary Bitstream & Byte Breakdown (4 Bytes / 32 Bits)
Endianness in RFID & Industrial PLC Communications
When integrating RFID fixed readers (such as Impinj Speedway or Zebra FX9600) with industrial PLCs over Modbus TCP, Ethernet/IP, or PROFINET, data byte ordering is the single most frequent cause of corrupted tag numbers and faulty SCADA triggers.
32-Bit Register Byte Ordering Comparison (Value: 0x12345678)
| Endianness Mode | Byte Sequence | Hex Representation | Target Platforms / Protocols |
|---|---|---|---|
| Big-Endian (ABCD) | B0, B1, B2, B3 | 12 34 56 78 | Standard Modbus TCP, TCP/IP Network Byte Order, Motorola 68k, Siemens S7-300/400 |
| Little-Endian (DCBA) | B3, B2, B1, B0 | 78 56 34 12 | x86/x64 Architecture, ARM Cortex (native), Windows/Linux C# and C++ memory |
| Word-Swapped / Mid-Little (CDAB) | B2, B3, B0, B1 | 56 78 12 34 | Schneider Modicon PLCs, ABB Totalflow, Omni Flow Computers, Enron Modbus |
| Byte-Swapped / Mid-Big (BADC) | B1, B0, B3, B2 | 34 12 78 56 | Legacy Honeywell / Yokogawa DCS serial RTU bridges |
IEEE 754 32-Bit Single-Precision Floating Point Decomposition
Industrial sensors (such as RFID temperature logging loggers or RSSI signal power meters) store fractional telemetry values in IEEE 754 format:
// IEEE 754 32-bit Floating Point Equation
Bit 31: Sign bit (S) → 0 = positive, 1 = negative
Bits 30-23: Biased Exponent (E, 8 bits) → Actual Exponent = E - 127
Bits 22-0: Mantissa / Fraction (M, 23 bits) → Normalized Value = 1 + M
// Float Value Formula:
Value = (-1)^S × 2^(E - 127) × (1 + ∑ (b_i × 2^-i))