What each value means
- Unsigned (WORD, UINT, DWORD, UDINT): all bits count as a positive number.
- Signed (INT, DINT): two’s complement. When the highest bit is 1, the number is negative. For 16 bits,
FFFFis −1 and8000is −32768. - BCD: each group of 4 bits holds one decimal digit 0–9.
0x1234in BCD means 1234. A nibble above 9 is not valid BCD. Older S5/S7 timers and counters, thumbwheel switches and 7-segment displays use BCD.
Siemens byte order: S7 PLCs are big-endian. In
MW10, the high byte is MB10 and the low byte is MB11, so bit 0 of the word is M11.0 and bit 8 is M10.0. Turn on Show Siemens addresses in the converter to see this for every bit.Related
Modbus float converter
Two 16-bit registers to a 32-bit float in all four byte orders.
Drive control word builder
Build PROFIdrive STW1 control words and decode ZSW1 status words.