bytes-to-float-converter
v1.0.1
Published
Converts raw byte data to IEEE-754 floating-point numbers
Readme
node-red-bytes-to-float-converter
A Node-RED custom node that converts raw byte data into IEEE-754 32-bit floating-point values.
Ideal for PLCs, Modbus, industrial sensors, and binary protocol decoding.
Features
- Converts Bytes → Words → Longs → IEEE-754 Floats
- Supports Big Endian (BE) and Little Endian (LE)
- Configurable byte order
- Configurable word order
- Configurable decimal precision
- Accepts input as:
Array<number>(0–255)Buffer
- Runtime overrides via
msgproperties - Input validation with warnings
- Live node status for debugging
Installation
Copy the node into your Node-RED custom nodes directory (or add it to your Node-RED package): Copy this node into your Node-RED custom nodes directory or install it as part of your Node-RED package.
Typical custom node location:
~/.node-red/nodes/
After adding the node, restart Node-RED.
🔁 Data Flow Bytes ↓ Words ↓ Longs ↓ IEEE-754 Float
🔧 Node Configuration
Property Description Default Input Property Message property containing byte data payload Output Property Where converted floats are stored payload Byte Order BE or LE BE Word Order BE or LE BE Precision Decimal places 3
📥 Input
Supported Input Types
Array (values 0–255) Buffer
