Data Types; Numeric Values; Bit Values; C.32 Data Types - Siemens HydroRanger 200 HMI Operating Instructions Manual

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

Advertisement

C.32

Data types

The device parameters do not always use integers to hold values. For the convenience of
the programmer, those values are converted to and from a 16-bit integer number. This
section describes the conversion process. The sections that follow describe where those
values are in the discrete I/O and block transfer addresses, and how to get the parameters
you need.
C.33

Numeric values

Numeric parameter values are the most common. For example, parameter Reading
(3.2.8.2.) (Page 256) returns a number that represents the current reading (either Level or
Volume, depending on the device configuration).
Numeric values are requested or set in units or percent of span, and may be specified with a
number of decimal places.
Numeric values must be in the range –20,000 to +20,000 to be valid. If a parameter is
requested and its value is more than +20,000, the number 32,767 is returned; if it is less
than –20,000, the number –32,768 is returned. If this overflow happens, decrease the
number of decimal places.
If a parameter cannot be expressed in terms of percent of Span, or has no meaningful value,
the number 22,222 is returned. Try requesting the parameter in units, or refer to Units
(2.1.1.) (Page 162).
C.34

Bit values

Bits are packed into registers in groups of 16 bits (1 word). In this manual, the bits are
numbered from 1 to 16, with bit 1 as the least significant bit (LSB) and bit 16 as the most
significant bit (MSB).
HydroRanger 200 HMI
Operating Instructions, 06/2018, A5E36281317-AC
Communications

C.32 Data types

339

Advertisement

Table of Contents
loading

Table of Contents