Use of subrange data types

Which products are affected?

ESP-DDS2-P (DDS Professional 2.0)
ESP-DDS2-PU1 (DDS Professional 2.0 Upgrade)

Function description

It is possible to define data types whose value range is a subset of a basic data type. These data types are called subrange data types.

Example:
nVarLimit: INT (-4096..4096);

The nVarLimit variable is an integer type one. However, it has a value range from -4096 to 4096. The CheckRange.lib library must be inserted into the project in order to ensure a check of the range limits. If the range limits are exceeded, the g_bErrorCheckRange global variable is set to TRUE.

Applications

When using subrange data types it is very easy to limit variables. Moreover, you will receive an information (g_bErrorCheckRange = TRUE) whether the variable has reached its limit value.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/20034757/1/
Kontaktformular