Data Types

For example, if R41,442 is read as a UINT32, the 32 bits would look like this:

 

R41,442

 

 

R41,443

 

 

 

 

 

 

 

16

MSW

1

16

LSW

1

 

 

 

 

 

 

32

 

32-bit integer value (UINT32)

 

1

 

 

 

 

 

 

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 Word Order (R40,062) on page 98 for details.

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= (value / 256) – 128

yy = (value % 256) – 128 where % is the modulus operator.

The modulus can be computed by following these steps: value1 = value / 256

value2 = remainder of value1 value3 = value2 x 256

yy= value3 – 128

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

7ML19981FB06

Page 118
Image 118
Siemens 200 Split Values, One example is P807, Transducer Noise, where, Two registers are read as a 32-bit integer