Skip to content

KPI star

eaxScadaReferenceStarterView as Markdown

A star (radar) of 3 to 8 values. Each value has its own axis, scaled over its own minimum and maximum, so a pressure in bar and a power in kW sit on the same star. The grey polygon is the normal range of every value; the value polygon is drawn over it. While every value is inside its normal range the star is grey. A value outside its normal range is marked with an amber dot, its axis name turns amber and the value polygon turns amber.

A value without a usable reading leaves a gap in the polygon: it is never drawn at zero. An Uncertain or stale value draws the polygon dashed (dotted when not current); when every value is Bad or missing the whole star is hatched. The quality marker names each tag, its quality and its age. With fewer than 3 values the star is not drawn. Display only: it writes nothing. See High-performance displays.

A KPI star of five utilities values: the grey normal polygon, the value polygon, TK-103 level and Heater duty marked amber outside their normal range.

Palette Not in the palette
JSON type KpiStar
Name in the inspector KPI star
Size drawn from width and height; a resize changes them
Added by designer_sa_widgets.js
Shown as Key Type Unit Default Allowed values What it does
Name label Text "KPI star" The name drawn at the top left of the object (and shown in the layers list and on a phone row).
Star values axes List [] The values of the star, 3 to 8 (at most 8 are drawn), edited in the inspector’s Star values section (Add value, Remove). Each item: label (Name; empty: the last part of the tag path), tagPath (Tag, read with its quality), min and max (Minimum at the centre, Maximum at the tip; empty = 0 and 100), normalLow and normalHigh (Normal from / to; empty: the minimum / maximum), unit.
— width Number 280 Width of the object. Default 280.
— height Number 260 Height of the object. Default 260.
X x Number px — Horizontal position of the object’s top-left corner on the screen, in screen pixels from the left edge.
Y y Number px — Vertical position of the object’s top-left corner, in screen pixels from the top edge.
Rotation rotation Number ° — Rotation of the object, clockwise, in degrees.
Opacity opacity Number — 0 (invisible) to 1 (opaque). An object disabled by an interlock is drawn at 0.45 whatever this says.
States states Object — This object’s own state styles (normal, hover, pressed, on, disabled, bad, locked, unconfigured), edited in the inspector’s States section. Visual only. Empty: the project’s state styles.
State family styleFamily Text — The state family whose project styles apply (button, input, toggle, selector, faceplateButton, default). Empty: the family of the object’s type.

The Bind tab ties a property to a tag or an expression: a tag binding takes the tag’s value, an expression binding computes one (see the expression language), optionally through a map, format or script transform. The targets the Bind tab offers for this object:

Bind tab target Key What the bound value does
Display Text / Value text Replaces the text drawn with the value, formatted by the binding’s format. On a Text object a number is followed by the object’s unit, as with the Value target (never a word). A Bad value shows a dash.
Font Size (px) fontSize Sets the text size from the value, in pixels (text objects).
Text Color fill Sets the fill colour from the value (a colour text such as #22c55e, or a colour mapped by a map transform).
Stroke / Border Color stroke Sets the outline colour from the value.
Opacity (0.0 - 1.0) opacity Sets the opacity from the value (0 to 1).
Visibility (Boolean) visible Shows the object when the value is true or non-zero, hides it otherwise.
Rotation (°) rotation Rotates the object by the value, in degrees.
Scale / Pulse scale Scales the object by the value (1 = drawn size).
Value (Numeric) value Shows the value as the object’s readout (with the unit and decimals). A Bad value shows a dash.

The Cond tab adds rules evaluated on every value change: Visibility (show or hide, by condition or role), Color & Fill (colour bands, alarm blinking), Position and Size & Fill (motion and level mapped from a value), Rotation (angle or continuous spin; an empty input range is 0 to 100 and empty angles are -135° to 135°, while 0 is a value), Security & Touch (the interlock: a disable condition, the role required, what happens when the interlock reads a Bad value) and Text & Value (formatted text). A condition that reads a Bad value is never applied as if the value were good: visibility shows the object marked Bad, colours go neutral grey, motion stays where it is, text shows a dash.

Any object can carry a click or tap action (the Action tab, or Full Dialog…). A write action whose tag, value or target is missing is not configured: the inspector says so and the operator’s press does nothing (unconfigured means disabled). Navigation actions write nothing and ask no confirmation. On touch screens only a deliberate tap runs an action: a swipe or a pinch that ends on the object never does. Action types:

Action Key (action.type) What it does
Set tag to 1 set_1 Writes 1 to the action’s tag.
Set tag to 0 set_0 Writes 0 to the action’s tag.
Toggle tag value toggle Writes the opposite of the tag’s LIVE value: 0 when it is not 0, 1 when it is 0. When the live value is unknown, not Good or not a number, nothing is written and the operator is told why; when it changes while the operator confirms or signs, nothing is written either.
Set tag to 1 on press and to 0 on release momentary_1_0 Writes 1 while pressed and 0 on release (hold to run). On touch, the press counts only after the finger is held still; the release is always sent. A held press is also released when the browser window loses focus or the page is hidden, and in the designer when a drag or a resize of the object starts.
Set tag to 0 on press and to 1 on release momentary_0_1 Writes 0 while pressed and 1 on release. Released in the same cases as the 1/0 momentary.
Write custom value write_val Writes the number in write_value.
Run script run_command Runs a client script with the scripting API (system.tag.write, system.nav.openPopup…). Ctrl+Space completes the API.
Navigate to page / screen navigate Opens another screen, optionally with parameters or a parameter set.
Open popup screen open_popup Opens a screen in a popup window: modal or not, centred, next to the object or at a fixed position, with parameters.
Close popup close_popup Closes the popup the object is in, or the popup with the given id.
Open dock open_dock Opens a screen docked to an edge of the runtime (top, bottom, left, right).
Close dock close_dock Closes the dock on that edge.
Open or close dock toggle_dock Opens or closes the dock on that edge.
Back nav_back Goes back to the previous screen.
Forward nav_forward Goes forward again after Back.
Home screen nav_home Opens the project’s home screen.
Open downtime panel open_downtime Opens the operator runtime’s Downtime panel (OEE and downtime, Pro and Enterprise), optionally on one machine (its machine id). Navigation only: nothing is written to a tag or a machine. A machine the operator may not read is not shown; where the panel is not available, a notice says so. Offered in the designer only when the licence includes OEE and downtime.

States. An object’s look follows its state: normal, hover, pressed, on, disabled, bad (quality), locked (role) and unconfigured. The project’s state styles (opened from an object’s States section, or from the Project manager’s Operator runtime section) give each family of objects its colours per state, and the inspector’s States section overrides them for one object (stored in props.states). States are visual only: whether an object can be operated is decided by its interlock, the user’s rights and the server.

This object belongs to the state family default (all other objects): disabled (an interlock dims it to 0.45 opacity), bad (a tag it reads is Bad) and locked (missing role) apply when the object has conditions or an action; the other states apply to objects that are operated.

Screen parameters. On a screen with parameters, {Name} in any text of the object (tag paths of bindings and actions, expressions, conditions, interlocks, the confirmation tag, texts) is replaced by the parameter’s value when the screen opens, so one screen serves many pieces of equipment ({Pump}/Running). See screen parameters.

Quality. This high-performance object draws its own quality marker, at the top next to its name, in the colours of every other marker: a red x for a Bad value or no value yet, a blue lock for a tag the signed-in account may not read, an amber ? for Uncertain, a grey marker for stale. The lock shows only when every Bad tag of the object is not readable: a device fault keeps the red x. The star shows one marker, for the worst state of all its values, and the marker’s tooltip lists every tag, its quality and its age, with Not readable for this account for a refused tag. A value that is not readable is never shown as a number: its axis leaves a gap in the value polygon. See show bad and stale values.

Comments. In the studio, right-click the object and choose Add comment to start a design-review thread on it; a numbered pin marks objects with open threads (Starter, Pro and Enterprise). Pins are shown in the designer only, never in the runtime. See review screens before deploy.

Five utilities values on one star: at a glance the operator sees that the tank level is above its normal range and the heater duty below it.

  1. Place a KPI star from Widgets (Situational awareness); Name Utilities profile.
  2. Star values › Add value five times, and fill in each one: Air pressure Plant/Processing/Utilities/Air/HeaderPressure 4 to 9 bar, normal 6 to 7.5; R-01 temp 0 to 150 degC, normal 40 to 120; TK-103 level 0 to 100 %, normal 20 to 85; Heater duty 0 to 100 %, normal 20 to 80; Active power 300 to 500 kW, normal 340 to 470.

A utilities profile on one star

TK-103 level and Heater duty are marked amber; the other three sit inside the grey normal polygon.
The kpi star as saved in the screen (JSON)
{
"type": "KpiStar",
"props": {
"label": "Utilities profile",
"axes": [
{
"label": "Air pressure",
"tagPath": "Plant/Processing/Utilities/Air/HeaderPressure",
"min": 4,
"max": 9,
"normalLow": 6,
"normalHigh": 7.5,
"unit": "bar"
},
{
"label": "R-01 temp",
"tagPath": "Plant/Processing/Reactors/R01/Temperature",
"min": 0,
"max": 150,
"normalLow": 40,
"normalHigh": 120,
"unit": "degC"
},
{
"label": "TK-103 level",
"tagPath": "Plant/Processing/Tanks/TK103/Level",
"min": 0,
"max": 100,
"normalLow": 20,
"normalHigh": 85,
"unit": "%"
},
{
"label": "Heater duty",
"tagPath": "Plant/Processing/Utilities/Heater/Duty",
"min": 0,
"max": 100,
"normalLow": 20,
"normalHigh": 80,
"unit": "%"
},
{
"label": "Active power",
"tagPath": "Plant/Processing/Utilities/Power/Demand",
"min": 300,
"max": 500,
"normalLow": 340,
"normalHigh": 470,
"unit": "kW"
}
]
}
}