Function 0x06 "Write Single Register" writes a single 16-bit Holding Register on a Modbus slave, with both the address and the value encoded on 16 bits each in the request.
True
The 0x06 request format is: function code on 1 byte (0x06), register address on 2 bytes (0-65535), and register value on 2 bytes (0-65535) -- 5 bytes of PDU plus the transport headers. The dual function code is 0x10 "Write Multiple Registers", which writes several consecutive registers in a single frame, up to a limit of 123 registers per request.
Prefer 0x10 over a loop of 0x06 calls whenever you have to write more than two related registers: it is atomic at the bus level and easier for the slave to handle.
Modbus bank in preparation
The full Modbus bank isn't available yet. Drop your email to get notified at launch and grab an early-bird discount.
Join the waitlist →See the 9 other Modbus practice questions
Related questions
- A Modbus RTU bus on RS-485 supports up to 32 nodes per segment (extendable with repeaters), requires 120 ohm termination resistors at both ends of the bus, and biasing resistors to define the idle state.3. Modbus RTU · RS-485 Multi-Drop
- Which Modbus function code is used to READ the Holding Registers (16-bit read/write registers) of a slave?4. Function codes · Lesen Coils/Register
- To carry a 32-bit IEEE 754 floating-point value over Modbus (whose registers are 16 bits), two consecutive registers are typically used, with the byte order documented by the slave manufacturer.5. Data encoding · 32-Bit-Float
- Modpoll (focus-sw.com) and mbpoll (Linux/macOS) are free command-line tools used to query a Modbus slave from a PC, indispensable for Modbus diagnostics and integration commissioning.6. Practical · Modpoll / mbpoll
- Modbus (RTU and TCP) has no native security: no authentication, no encryption, no signatures. The accepted good practice is strict OT VLAN isolation, an industrial firewall and no direct internet exposure.6. Practical · Cybersecurity