For example, if R41,442 is read as a UINT32, the 32 bits would look like this:
R41,442
16
MSW
32
The two registers are read as a 32-bit integer.
The most significant word (MSW) and least significant word (LSW) can be reversed to
accommodate some Modbus drivers. See
The position of the decimal place is dependent on the register. For more details see the
description of the register.
Split Values
Certain parameters are actually a pair of numbers separated by a colon, using this
format: xx:yy.
One example is P807, Transducer Noise, where:
xx
= the average noise value in dB
yy
= the peak noise in dB
The number which corresponds to xx:yy, either for reading or setting a parameter, is
determined by the following formula:
For storing to the device:
value = (xx + 128) x 256 + (yy + 128)
For reading from the device:
xx
yy
where % is the modulus operator.
The modulus can be computed by following these steps:
value
1
value
2
value
3
yy = value
It may simplify Parameter to notice:
xx = (most significant byte of value) – 128
yy = (least significant byte of value) – 128
Page 108
MultiRanger 100/200 – INSTRUCTION MANUAL
1
32-bit integer value (UINT32)
= (value / 256) – 128
= (value % 256) – 128
= value / 256
= remainder of value
1
= value
x 256
2
– 128
3
R41,443
16
LSW
Word Order (R40,062)
on page 98 for details.
1
1
7ML19981FB05