.MaxRange Dotfield
- Last UpdatedNov 07, 2016
- 1 minute read
The .MaxRange dotfield specifies the maximum percentage of the tag's engineering unit range to show for each tag in a Historical trend.
Category
Historical.
Usage
tag_name.MaxRange
Parameter
tag_name
Any Hist Trend tag.
Remarks
A historical trend can show many types of tags simultaneously. Specifying the minimum and maximum boundaries of the range in engineering units can be difficult because tags can have different engineering ranges. Therefore, the minimum and maximum range values are expressed as a percentage of the engineering range of each tag. This way, regardless of the tag's true engineering range, the historical trend shows the indicated percentage of that tag's engineering range.
Data Type
Real (read/write).
Valid Values
The limits for .MaxRange and .MinRange dotfields are from 0 to 100. .MinRange is always less than .MaxRange. If you assign a value less than 0 or greater than 100 to either of these dotfields, the value is clamped at 0 or 100. If .MinRange is greater than or equal to .MaxRange, the trend does not show any data.
Example
This example dotfield statement sets the maximum percentage range of the historical trend to 75 percent of the possible engineering unit range of a Hist Trend tag.
HistTrend.MaxRange=75
See Also
.ChartStart, .ChartLength, .DisplayMode, .EngUnits, .MinEU, .MaxEU, .MinRange, .MinRaw, .MaxRaw, .RawValue