Skip to content

Limits

For how to show limits, see Limits in the user guide.

A pen's settings have a Limits section (not for step lanes): Show limits, how they are drawn (Lines, Band, Both), a row per level (HiHi, Hi, Lo, LoLo) and Mark the line beyond its limits (on by default).

  • From the tag. A tag pen shows no limits until they are switched on, then the levels its alarms give. Left empty, a level's field shows the tag's value in grey with where it comes from (alarm High level); type a value to use your own instead, or untick a level to leave it out. A level the tag does not give reads Not set, greyed.
  • Out of order. A value typed out of order (HiHi below Hi, Lo above Hi, ...) is not taken on: the chart and its link keep the last limits, the field changed last turns red and says what it must be against its neighbour (Hi typed at 30 under Lo 42: must be above Lo 42.0; Lo and LoLo say nothing), and Restore the last limits goes back to them. Closing the settings (or moving to another pen) with values out of order drops them and says so, in the field's words (Limits of Tank/Level not changed: Hi 1,000,000,000.0 must be below HiHi 99.0, so the chart keeps its last limits.). Limit values are in the pen's number format, a long whole part grouped in thousands. Levels out of order on the tag or in a binding are drawn as they are, with a note in the Limits section.
  • What a field says follows what is in the fields now: a field that does not read as a number says why (not a number, too large: at most 1e15, too close to zero), the chart keeps its value for that level meanwhile, and the other fields are checked without it.
  • How alarms map to the levels. Only enabled alarms with a setpoint count (an alarm whose enabled setting cannot be read as true does not). Every alarm of the tag is read, up to 500; a tag with more says so in the Limits section. An Above Setpoint alarm is a high limit, a Below Setpoint alarm a low one, and an Outside Setpoints alarm gives a low and a high (its two setpoints). Of the high limits, the lowest is Hi and the highest HiHi; of the low ones, the highest is Lo and the lowest LoLo. A tag with only one high limit has a Hi, unless its alarm is named as a HiHi (HiHi, High High, HH, ...); likewise LoLo (LoLo, Low Low, LL). Other modes (Between Setpoints, Equal, Bit, Out of Range, conditions) set no level. The value is the setpoint in force, also when it is bound to another tag or an expression.
  • Engineering range. HiHi and LoLo from the engineering range uses the tag's EngHigh and EngLow for those two levels instead (every tag has a range, 0 to 100 by default, so this is a choice, never automatic).
  • Following the tag. A tag's alarms are read only for pens that show limits from it (and while the pen's settings are open, which say what the tag offers): browsing, history and pens without limits never read them. While a visible pen has a level from its tag (not every level typed or off, and not drawn as a step lane), the chart reads the tag's alarms and range again every 15 seconds, so a changed setpoint (in the Designer, a script, or an operator's setpoint tag it is bound to) shows within 15 seconds. The limits are the tag's current ones, drawn across the whole range: the tag keeps no history of its setpoints. So on a range that reaches back more than an hour before now (live or not: a live week, Yesterday, a day that ended two minutes ago), the levels read from the tag are called current; a chart of the last hour or less shows them as they are: their labels read Current Hi 82.0 %, the x-trace ▲ current Hi (above current Hi 82.0 %), and the Limits section says they may not be what applied then. Typed levels and a binding's are as given, and never called current: type a level to give the one that applied.
  • Bound pens show the limits their binding passes (see Bound pens) until the chart switches them off; calculated pens take typed values only.
  • Bars of a count or a sum per period (see Bars per period) are in other units than the pen, so its limits are not drawn on them or named in the x-trace; the Limits section says so, and keeps them for another value per period.
  • Valid values. A limit is zero or a number from 1e-12 to 1e15 in size, from any source (typed, saved, a link, a binding, a tag); anything else is no limit.

Drawing. Hi and Lo are a thin dashed line in amber, HiHi and LoLo a heavier dash-dotted line in burnt orange (so an orange pen's solid line is never taken for one), each with its level, value and unit (Hi 82.0 %) on a light chip at the plot's left end (away from the newest values), a high limit's label above its line and a low one's below; on a plot with several pens (on one axis or two), a square in the pen's colour starts the label, followed by the pen's name where the plot is wide enough (not on a phone). The labels of all pens and axes in a plot are placed together so none covers another (two pens with the same Hi get a label each, one under the other), clear of note flags at the top of the plot. A pen's lines, bands and labels fade with it while another pen is pointed at in the legend. The band shades the plot beyond each limit, lightly, out to the next limit and the edge. Red stays for bad quality and critical alarms. Beyond a limit (strictly beyond: a value on a limit is inside it, on the high and the low side alike; of two levels at one value, the outer one) the pen's line (or bar) takes that limit's colour; a line is also shaded lightly from the limit out to the line, with a halo along the line there and the line stitched with short white gaps, so the excursion shows by its shape, width and pattern as well as its colour, also on a low plot on a phone (the default palette has an amber and an orange pen, close to the limits' colours, which stay the status palette's warning and serious); and an x-trace box adds ▲ Hi or ▼ LoLo after the value (the tooltip says above Hi 82.0 %); the legend never changes. Automatic axes take in the limits near the data (within one data span of it), so a limit far away, such as an engineering high of 1,000 over values of 50, does not flatten the line: it is not drawn, and its label waits at the plot's edge (HiHi 1,000 ↑).

In the chart state (saved charts and links) a pen's limits are "limits": {...}: the levels hihi, hi, lo, lolo as typed numbers (null: that level left out; absent: the tag's or binding's), draw (line, band, both), eng: true (the engineering range as HiHi and LoLo), plain: true (the line keeps its colour beyond them), and off: true for a bound pen whose binding's limits are switched off. {} is the tag's limits as they are. Charts and links from before limits open as they did.

The sample project gives the demo tank level four alarms (Hi 82, HiHi 88, Lo 42, LoLo 36) and a range of 0 to 100 %, the line 1 temperature an Outside Setpoints alarm (58 to 66), and the lab pH bound pen limits in its binding.


Copied from the section "Limits" of the README when the site is built. Source: README.md.