_u_range

Attribute (neutral) Type Description
_type int type of value-range statement
general
_list_auth dyn_int list of details
MinMax value range
_min anytype minimum value
_neg bool reverse (negate) value-range handling. Negation of the minimum value.
_max anytype maximum value
_neg bool reverse (negate) value-range handling. Negation of the maximum value.
_incl_min bool minimum value included in value range
_incl_max bool maximum value included in value range
flow rates value range
_set dyn_anytype quantity attribute
_neg bool reverse (negate) value-range handling. Negation of the set values.
matching value range
_match string matching text for value range

See also chapter _u_range (user value range) for more information on the config _u_range.

You have to specify an authorization level by setting this config (except for _u_range.._list_auth - read only)! E.g. writing _u_range.level._type, whereas "step" stands for an authorization level.

Constants for the ".._type" attribute

CTRL constant int value comment
DPCONFIG_NONE 0 no WinCC OA value range
DPCONFIG_USER_RANGECHECK 9 value range

"_u_range.._type" attribute

CTRL constant int value comment
DPDETAIL_RANGETYPE_NONE 0 no user value range
DPDETAIL_RANGETYPE_RANGE_ALL 2 everything in user range
DPDETAIL_RANGETYPE_SET 3 set user range
DPDETAIL_RANGETYPE_MINMAX 4 MinMax user range
DPDETAIL_RANGETYPE_MATCH 5 matching user range

Example

Configuring a user value range:

main()
{
  dpSet("TestDP_1.element:_u_range.._type",
  DPCONFIG_USER_RANGECHECK,
  "TestDP_1.element:_u_range.5._type",
  DPDETAIL_RANGETYPE_MINMAX,
  "TestDP_1.element:_u_range.5._max", 50,
  "TestDP_1.element:_u_range.5._min", 2,
  "TestDP_1.element:_u_range.5._incl_max", TRUE,
  "TestDP_1.element:_u_range.5._incl_min", TRUE);
}

The user value range for authorization level 5 lies between 50 (Max.) and 2 (Min.) including the limits. Further details to the config "_u_range" you will find in the chapter Module PARA - _u_range (user value range).