PLC Data Type Converter
Decode raw PLC values with byte and word order (ABCD, BADC, CDAB, DCBA) and apply linear scaling. Validate the layout against your device documentation.
Free, no account needed. Everything runs in your browser; nothing you enter is sent to a server.
Input and settings
One entry per line: hex bytes (41 C0 00 00), a pair of 16-bit registers (high,low) or a decimal value. Add a comment after “--”.
ABCD reads the bytes as written (big-endian). DCBA reverses all bytes (little-endian). BADC swaps the bytes inside each 16-bit word and CDAB swaps the two words.
engineering = engMin + (raw − rawMin) × (engMax − engMin) / (rawMax − rawMin)
Results update as you type; Ctrl+Enter converts as well.
Results
Layout: ABCDHow to use it
- Enter the raw value. Enter hex bytes, a pair of 16-bit registers or one decimal value per line.
- Choose type and order. Choose the data type and byte layout (ABCD, BADC, CDAB, DCBA).
- Apply scaling. Optionally scale the raw range linearly to an engineering range.
Common questions
What do ABCD, BADC, CDAB and DCBA mean?
They are notations for the order of the four bytes of a 32-bit value (A is the most significant byte). ABCD is big-endian and DCBA is little-endian; BADC swaps the bytes inside each 16-bit word and CDAB swaps the two words. Which one a device uses is vendor-specific.
How do I find the right order?
Read a value whose engineering value you know, such as a setpoint you wrote, and see which layout reproduces it.
What does linear scaling do?
It maps the raw range to the engineering range with eng = engMin + (raw − rawMin) × (engMax − engMin) / (rawMax − rawMin).
Planning an IT/OT project?
Describe your machine, data flow or production goal in a few sentences and the ASP Dijital team will reply by email.