_pv_range
Attribute (neutral) | Type | Description |
---|---|---|
_type | int | Type of value-range statement |
General | ||
_ignor_inv | bool | Invalid values should be ignored |
_neg | bool | Reverse (negate) value range handling |
MinMax range | ||
_incl_max | bool | Maximum value included in the value range |
_incl_min | bool | Minimum value included in the value range |
_max | var | Maximum value |
_min | var | Minimum value |
Flow rates value range | ||
_set | dyn_var | Quantity attribute. An arbitrary number of single (isolated) values for the definition of the valid value range can be specified. |
Matching value range | ||
_match | string | Matching text for value range |
Constants for the ".._type" attribute
CTRL constant | int value | Description |
---|---|---|
DPCONFIG_NONE | 0 | No WinCC OA value range |
DPCONFIG_MINMAX_PVSS_RANGECHECK | 7 | MinMax WinCC OA value range |
DPCONFIG_SET_PVSS_RANGECHECK | 8 | Set WinCC OA value range |
DPCONFIG_MATCH_PVSS_RANGECHECK | 64 | Matching WinCC OA value range |
Example
Configuring the config "_pv_range" is shown below:
main()
{
dpSet("TestDP_1.element:_pv_range.._type",
DPCONFIG_MINMAX_PVSS_RANGECHECK,
"TestDP_1.element:_pv_range.._min", 10,
"TestDP_1.element:_pv_range.._max", 30,
"TestDP_1.element:_pv_range.._neg", TRUE,
"TestDP_1.element:_pv_range.._incl_min", TRUE,
"TestDP_1.element:_pv_range.._incl_max", TRUE,
"TestDP_1.element:_pv_range.._ignor_inv", FALSE);
//
dpSet("TestDP_1.element:_pv_range.._match, "Text");
//
dpSet("TestDP_1.element:_pv_range.._set, 25, 23);
}
The range is between 10 and 30 including the limits and negated, i.e. values outside the specified value range are valid (inverted value range). Further details to the config "_pv_range" you will find in the chapter Module PARA - _pv_range (WinCC OA value range).