Communications
C.36 Split values
HydroRanger 200 HMI
Operating Instructions, 06/2018, A5E36281317-AC
341
Certain parameters are actually pairs of numbers separated by a colon, using this format:
.
One example is Echo Confidence as shown in Measurement View 2 [
The local display
(Page 51
)
= the average noise value in dB
= the peak noise in dB
The number which corresponds to
, either for reading or setting a parameter, is
determined by the following formula:
For storing to the device:
value = (
+ 128) x 256 + (
+ 128)
For reading from the device:
= (value / 256) – 128
= (value % 256) – 128
where % is the modulus operator.
The modulus can be computed by following these steps:
value
1
= value / 256
value
2
= remainder of value
1
value
3
= value
2
x 256
= value
3
– 128
It may simplify parameter to notice:
= (most significant byte of value) – 128
= (least significant byte of value) – 128