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 (0ā255)
-
Buffer
- Runtime overrides via
msg properties
- 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
```bash