62
Write Single Register
This command writes to a single holding register of the Power Patrol. The normal response is an echo of
the request, returned after the register contents are written.
Command Information
Command
Layout
Example
Command
Power Patrol 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 D-6: Format for Modbus Command 06
Example Command
This command writes to a Power Patrol 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)
Power Patrol address
37
Power Patrol 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 D-7: Format for Modbus Command 03
Command: 3706000000018C5C
Response: 3706000000018C5C
The response is from the Power Patrol 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.