80
DENT
Instruments
PowerScout 24
All Things Modbus
Write Single Register
This command writes to a single holding register of the PowerScout. The normal response is an echo of
the request, returned after the register contents are written.
Command Information
Command
Layout
Example
Command
PowerScout address
nn
37
Command number
06
06
Register to write – high order bits
xx
00
Register to write – low order bits
xx
00
Register value to write – high order bits
xx
00
Register value to write – low order bits
xx
00
CRC low order bits
xx
8C
CRC high order bits
xx
5C
Table 20: Format for Modbus Command 06
Example Command
This command writes to a PowerScout with an address switch setting of 37 hex (55 in decimal), writing
one byte at register 000C, and writing a value of 00 to clear the KWH registers. The data value of 0 is
sent to register 0. Note that offset 0 corresponds to Modbus register 40001. The CRC is 5C8C. All values
are hexadecimal.
Example Request
Field Name
Command
(Hex)
Response
Field Name
Response
(Hex)
PowerScout address
37
PowerScout address
37
Command number
06
Command number
06
Register to write – high order bits
00
Register written to – high order bits
00
Register to write – low order bits
00
Register written to – low order bits
00
Register value to write – high order bits
00
Register value written – high order bits
00
Register value to write – low order bits
00
Register value written – low order bits
00
CRC low order bits
8C
CRC low order bits
8C
CRC high order bits
5C
CRC high order bits
5C
Table 21: Example for Modbus Command 06
Command: 3706000000018C5C
Response: 3706000000018C5C
The response is from the PowerScout at address 37. One byte was written to at the requested register,
0000. The value written was 0000. The CRC value was 5C8C. An echo of the original command after the
contents are written is a valid response.