Number data types are grouped into two categories: Floating point data types and integer data types.
Floating point data types are: Float and Double.
Integer data types are: Unsigned Byte, Signed Byte, Unsigned Word, Signed Word, Unsigned Long, Signed Long, Unsigned Long Long, Signed Long Long
The OPTypes Increment and Decrement must not be used with floating point data types.
The valid range of data elements that are based on numeric data types can be specified by the use of value ranges. A value range is a number pair that consists of minimum value and maximum value.
For any data element that is based on a number data type, it is possible to specify no range, one range, or multiple ranges.
If no value range is specified, the valid range includes the smallest and largest possible value that the data type can represent and every value in between.
It is recommended not to specify value ranges that overlap each other.
Below is an example of an Unsigned Word parameter with two defined value ranges. Values that are not contained in one of the two ranges must not be used.
Unsigned integer data types may be used in a bit-oriented representation. That means that individual bits or sets of bits may be definded like a variable.
Legal data types for bit-oriented use are: Unsigned Byte, Unsigned Word, Unsigned Long, and Unsigned Long Long. One value that consists of a single bit or multiple bits is called a "flag".
A few things have to be taken into consideration: