Split Values - Siemens HydroRanger 200 HMI Operating Instructions Manual

Ultrasonic controllers
Hide thumbs Also See for HydroRanger 200 HMI:
Table of Contents

Advertisement

For example, if R41,442 is read as a UINT32, the 32 bits would look like this:
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 pairs of numbers separated by a colon, using this format:
xx:yy.
One example is Echo Confidence as shown in Measurement View 2 (
Display
on page 25), 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
A5E36281317
R41,442
1
32-bit integer value (UINT32)
= (value / 256) – 128
= (value % 256) – 128
= value / 256
= remainder of value
1
= value
x 256
2
– 128
3
HydroRanger 200 HMI – OPERATING INSTRUCTIONS
R41,443
16
LSW
Word order (R40,062) on page 260
1
1
for details.
The LCD
Page 269

Advertisement

Table of Contents
loading

Table of Contents