Modbus Format Strings tfmt and rfmt

The format strings tell the command processor how to pack and unpack data.

Format Description
B 8-bit unsigned byte
b 8-bit signed byte
C 8-bit character
W 16-bit unsigned word
w 16-bit signed word
D 32-bit double unsigned word
d 32-bit double signed word
F 32-bit IEEE-754 floating point value
S string
S# String of length #, e.g. S4
+ Repeat the last parameter until no more data (only at end of format string)

See: modbus.cmd, etc