TS4000H
49
5.6 Modbus Write Command Protocol (Query / Response)
A master device writes to a TS4000H register by sending a properly formatted 8-byte message
as described in Table 20.
Byte
Modbus
Range
Referenced to TS4000H
1st
Slave Address
1-247* (Decimal) TS4000H ID (Address)
2nd
Function Code
06
Preset Single Registers
3rd
Register Address Hi 00
Not Used by TS4000H
4th
Register Address Lo 00-FF (Hex)
TS4000H Register Address Lo Byte
5th
Preset Data Hi
00-03 (Hex)
TS4000H Hi Byte Command Data
6th
Preset Data Lo
00-FF (Hex)
TS4000H Lo Byte Command Data
7th
CRC Hi
00-FF (Hex)
CRC Hi Byte
8th
CRC Lo
00-FF (Hex)
CRC Lo Byte
* Address 0 is reserved for Broadcast Mode and is not supported at this time.
Table 20: Modbus Write Register Request
Upon receiving a valid register write request from the master device, the TS4000H will respond
with a message as described in Table 21. If the write request generates an error, an exception
message is returned to the master device (refer to Section 5.7).
Byte
Modbus
Range
Referenced to TS4000H
1st
Slave Address
1-247* (Decimal)
TS4000H ID (Address)
2nd Function Code
06
Preset Single Registers
3rd
Register Address Hi 00
Not Used by TS4000H
4th
Register Address Lo 00-FF (Hex)
TS4000H Register Address Lo Byte
5th
Preset Data Hi
00-FF (Hex)
TS4000H Hi Byte Command Data
6th
Preset Data Lo
00-FF (Hex)
TS4000H Lo Byte Command Data
7th
CRC Hi
00-FF (Hex)
CRC Hi Byte
8th
CRC Lo
00-FF (Hex)
CRC Lo Byte
* Address 0 is reserved for Broadcast Mode and is not supported at this time.
Table 21: Modbus Write Register Response