Unsigned Double Precision Integer (UINT32) Note: Used for Mass Dynamics products only. Application Layer Large numbers are put into unsigned 32-bit integers. By default they are set up so that the first word (register) is the most significant word (MSW) and the second word (register) is the least significant word (LSW) depending on the setting of the word order bit. For example, when reading words 7 and 8 on the Mass Dynamics block (Total 1), the 32 bits would look like the following: The whole is read as a 32-bit integer. Split Values Note: Used for Level products only Certain parameters are actually a pair of numbers separated by a colon, in the 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 Siemens Milltronics device: value= (xx + 128) x 256 + (yy + 128) For reading from the Siemens Milltronics device: xx = (value / 256) – 128 yy = (value % 256) – 128 To compute the modulus where % is the modulus operator: value 1 = value / 256 value 2 = remainder of value 1 value 3 = value 2 x 256 yy = value 3 - 128 It may simplify programming to notice:
xx = (most significant byte of value) – 128 yy = (least significant byte of value) – 128 7ML19981BH02 SmartLinx DeviceNet – INSTRUCTION MANUAL Page 43 word 7 word 8 15 MSB 0 15 LSB 0 31 32-bit integer value (UINT32) 0