You are offline. The tools work from the copy saved in this browser; pages you have not opened yet need a connection.
Status Word Decoder
Enter a status or alarm register and see which bits are set. Name the bits once and the decoder remembers them in this browser.
Status word
ExampleHex, decimal or binary. 0x0637, 637h, 0b0110… and Modbus Poll lines (3 = 1591) work too. For 32 bits, enter one value or two registers.
Result
| Drive state (CiA 402) | |
|---|---|
| Hex | |
| Decimal | |
| Signed (Int16 / Int32) | |
| Binary | |
| Bits that are 1 |
Tap a bit to flip it. The value changes with it, so you can also build a control word to write.
Bit names
| Bit | Mask | State | Name |
|---|
Names are saved only in this browser (local storage). Each device can have its own set.
Runs entirely in your browser. Nothing you enter is sent to a server.
CiA 402 drive states
Drives with the CiA 402 profile report their state in the low byte of the statusword (object 6041h). x = the bit does not matter.
| State | Bits 7–0 | Example |
|---|---|---|
| Not ready to switch on | x0xx 0000 | 0x0000 |
| Switch on disabled | x1xx 0000 | 0x0250 |
| Ready to switch on | x01x 0001 | 0x0231 |
| Switched on | x01x 0011 | 0x0233 |
| Operation enabled | x01x 0111 | 0x0237 |
| Quick stop active | x00x 0111 | 0x0217 |
| Fault reaction active | x0xx 1111 | 0x021F |
| Fault | x0xx 1000 | 0x0218 |
What a status word is
Many devices pack yes/no signals into one register instead of using a register for each: running, fault, warning, remote control, limit reached. Each bit is one signal. Bit 0 is the lowest bit (value 1), bit 15 the highest (value 32768), so 0x0637 has bits 0, 1, 2, 4, 5, 9 and 10 set. What each bit means is only in the device manual. That is why you can name the bits here; the names stay in your browser for the next time.
Drives with the CiA 402 profile (CANopen, EtherCAT and many Modbus drives that follow it) all use the same layout, and the low byte of the statusword gives the drive state. Choose the CiA 402 template and the decoder shows the state directly.
Common mistakes
- Counting bits from 1. Some manuals number bits 1 to 16; their bit 1 is bit 0 here. Check against one bit you know, for example the fault bit while the device shows a fault.
- Swapped bytes. If the bit you expect at 0 appears at 8, the device or the PLC swaps the bytes. Siemens S7 is the typical case: in MW10 the byte MB10 is the high byte, so M10.0 is bit 8 of the word. Tick “Bytes swapped”.
- A negative value. With bit 15 set, a status word read as Int16 looks negative (for example −32768). Nothing is wrong; the bits are the same.
- Two registers in the wrong order. 32-bit status words are often sent low word first. If the bits land 16 places off, tick “Low word first”.
- Coils are not register bits. Bits in a register are read with function 03 or 04. Coils and discrete inputs (functions 01 and 02) are separate one-bit objects with their own addresses; the address converter explains the tables.
Questions from practice
How do I find out which bits are set in a Modbus register?
Enter the register value in hex or decimal. The decoder lists every bit that is 1 and shows them in the grid. By hand: bit n is set when the value divided by 2ⁿ and rounded down is odd. For 0x0637 (1591) these are bits 0, 1, 2, 4, 5, 9 and 10.
Is bit 0 the leftmost or the rightmost bit?
The rightmost one, the least significant bit with the value 1. In the binary number 0000 0110 0011 0111, bit 0 is the last digit and bit 15 the first. If a manual counts bits from 1, subtract one from its numbers.
What does statusword 0x0637 mean on a CiA 402 drive?
The low byte 0x37 matches the state Operation enabled: ready to switch on, switched on, operation enabled, voltage enabled and no quick stop. Bit 9 says the drive accepts commands over the bus (remote) and bit 10 that the target has been reached.
Where are my bit names saved?
In your browser's local storage, on this device only. They are not sent anywhere, so they are not available on another computer or in another browser. Clearing the site data in the browser deletes them.
How do I build a control word to write?
Tap the bits you need in the grid and the value updates in hex, decimal and binary. A CiA 402 drive is usually started with 0x0006 (shutdown), then 0x0007 (switch on) and 0x000F (enable operation); 0x0080 resets a fault. The value encoder gives you the write request as UInt16.
Related tools
- Register DecoderFloat32, Int32, UInt16 and bits in every byte order, plus Find my value.
- Address Converter40001 ↔ offset 0, 4x/3x/0x/1x notation, 5- and 6-digit addresses.
- Value EncoderTurn a value like 230.5 into registers for every byte order.
- CRC-16 CalculatorModbus RTU checksum in wire order, plus a full frame check.
- Frame DecoderRead RTU and TCP frames from Wireshark or a serial log.
- Request GeneratorRead and write requests in RTU, TCP and ASCII, plus a check of the reply.
- Frame ConverterThe same Modbus frame as RTU, TCP and ASCII, with CRC, header and LRC recalculated.
- Function & Exception CodesWhat each code means and the usual cause in practice.
- Modbus RTU Timing CalculatorCharacter time, t1.5 and t3.5, frame length, shortest timeout and how many reads per second fit on the line.
- 4–20 mA ScalingRaw values to engineering units, 0–10 V and 4–20 mA with fault detection.
- IEEE 754 ConverterFloat32 and Float64 to hex and back, bit by bit, with registers for every byte order.
- CRC-8 / CRC-16 / CRC-32 CalculatorAny CRC from 3 to 82 bits: 113 named algorithms, your own parameters, and finding which CRC a device uses.
- S5TIME / DT / DTL ConverterSiemens S7 time formats: S5TIME, TIME, DATE, TOD, DATE_AND_TIME and DTL to raw hex and Modbus registers and back.
- P1 Telegram Decoder (DSMR)Decode a smart meter P1 telegram (DSMR, Belgian e-MUCS): OBIS codes, CRC check, power per phase, gas and water.
- Pt100 / Pt1000 CalculatorResistance to temperature and back per IEC 60751, with 2-wire lead error and tolerance classes.
- Thermocouple CalculatormV to °C and back for types K, J, T, E, N, R, S and B, with cold junction compensation.
- Register mapsReady-made register maps for meters, inverters and batteries.