Communications
C.36 Split values
HydroRanger 200 HMI
Operating Instructions, 06/2018, A5E36281317-AC
341
C.36
Split values
Certain parameters are actually pairs of numbers separated by a colon, using this format:
xx:yy.
One example is Echo Confidence as shown in Measurement View 2 [The local display
(Page 51)], 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 = (value / 256) – 128
yy = (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
yy = value
3
– 128
It may simplify parameter to notice:
xx = (most significant byte of value) – 128
yy = (least significant byte of value) – 128
Summary of Contents for HydroRanger 200 HMI
Page 2: ......
Page 24: ...Safety notes HydroRanger 200 HMI 22 Operating Instructions 06 2018 A5E36281317 AC ...
Page 354: ...Updating software HydroRanger 200 HMI 352 Operating Instructions 06 2018 A5E36281317 AC ...
Page 362: ......
Page 403: ......