WS2H, WS2HF, and WS3 Manual
Page
35
MODBUS INFORMATION (CONTINUED)
Next Regen Unit (upper byte) and Days Remaining (lower byte)
A decimal value of 270 in hexadecimal is 0x010E. Broken down, 0x01 is valve 1 and 0x0E is 14 days. For valve 6, 14
days (0x060E) a decimal value of 1550 will be read.
Combining High and Low Words into a Single Value
Modbus registers can only hold 2 bytes worth of data, but some of the values stored in the WS2H/3 control are 4 bytes
long. To get those values into Modbus registers they need to be broken down into two 2-byte values.
Start with a value of 1,234,567. In hexadecimal this is represented as 0x0012D687 (4 bytes – 00 12 D6 87). That 4-byte
value is broken into 0x0012 (high word) and 0xD687 (low word). Most Modbus apps that are used can take each of
those values and combine them back into the 4-byte value that is started out at.