TS4000
46
5.6 MODBUS Write Command Protocol (Query / Response)
A master device writes to a TS4000 register by sending a properly formatted 8-byte message
as described in Table 19.
Table 19: MODBUS Write Register Request
Byte
MODBUS
Range
Referenced to TS4000
1st
Slave Address
1-247* (Decimal) TS4000 ID (Address)
2nd
Function Code
06
Preset Single Registers
3rd
Register Address Hi 00
Not Used by TS4000
4th
Register Address Lo 00-FF (Hex)
TS4000 Register Address Lo Byte
5th
Preset Data Hi
00-03 (Hex)
TS4000 Hi Byte Command Data
6
th
Preset Data Lo
00-FF (Hex)
TS4000 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.
Upon receiving a valid register write request from the master device, the TS4000 will respond
with a message as described in Table 20. If the write request generates an error, an exception
message is returned to the master device (refer to Section 5.7).
Table 20: MODBUS Write Register Response
Byte
MODBUS
Range
Referenced to TS4000
1st
Slave Address
1-247* (Decimal)
TS4000 ID (Address)
2nd Function Code
06
Preset Single Registers
3rd
Register Address Hi 00
Not Used by TS4000
4th
Register Address Lo 00-FF (Hex)
TS4000 Register Address Lo Byte
5th
Preset Data Hi
00-FF (Hex)
TS4000 Hi Byte Command Data
6th
Preset Data Lo
00-FF (Hex)
TS4000 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.