Multistate indicator
A tile that shows one of several states of a tag: each state has its own colours, caption, icon and blink. A state is chosen by the tag’s value (value match), by one bit (bit index) or by a bit mask, and a fallback state is shown for any other value. A tag with no value (released, refused or unknown) shows the fallback state chosen as Default fallback state, never State 0; an indicator whose fallback state was deleted shows its first state, so check that each indicator has a fallback state that cannot be taken for a plant state. Edit the states in its dialog (double-click the object).

| Palette | Not in the palette |
JSON type |
MultiStateWidget; also read: MultiState, MultiStateIndicator |
| Name in the inspector | Multi-state indicator |
| Size | drawn from width and height; a resize changes them |
Properties
Section titled “Properties”| Shown as | Key | Type | Unit | Default | Allowed values | What it does |
|---|---|---|---|---|---|---|
| — | width |
Number | 170 |
Width of the tile. | ||
| — | height |
Number | 64 |
Height of the tile. | ||
| — | label |
Text | "MULTISTATE_1" |
The object’s name in the layers list. | ||
| Tag | tagPath |
Text | — | The tag whose value selects the state. | ||
| Evaluation mode | evalMode |
Text | "value" |
valuebit_indexbit_mask |
value: the state whose trigger value equals the tag’s value (number or text). bit_index: the first state whose trigger value is a bit number set in the value. bit_mask: the first state whose bit mask bits are all set in the value. | |
| Default fallback state | defaultStateId |
Text | "error" |
The state shown when no state matches, and when the tag has no value (released, refused or unknown), never State 0 (the placed object’s error state: UNKNOWN STATE / TAG BAD QUALITY). If this state was deleted, the first state is shown instead. | ||
| State shown in the designer | activeStateId |
Text | "state_0" |
The state the designer draws while you edit; the runtime draws the state the value selects. | ||
| Simulated value | currentSimValue |
Number | 0 |
A test value for the designer’s preview. Not used in the runtime. | ||
| — | msStates |
List | list of 3 | The list of states (each item below). A placed indicator starts neutral: State 0 (value 0), State 1 (value 1) and the fallback state (caption ?), to edit, extend or delete. Screens saved with an earlier version kept this list in props.states; it is moved here when the screen is opened or run, and draws exactly as before. | ||
| 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. | ||
| — | styleFamily |
Text | — | Not used by this object: its look comes from its own states. |
Each item of msStates
Section titled “Each item of msStates”| Key | Type | Default | Allowed values | What it does |
|---|---|---|---|---|
msStates[].id |
Text | "state_0" |
Identifier of the state (state_0…). error is the fallback state’s id; it is never matched by a value. | |
msStates[].label |
Text | "State 0" |
Name of the state in the dialog’s list. | |
msStates[].triggerValue |
Number | 0 |
value mode: the value that selects this state. bit_index mode: the bit number. | |
msStates[].bitMask |
Number | 1 |
bit_mask mode: the mask whose bits must all be set. | |
msStates[].fill |
Colour | "#1e293b" |
Container background. | |
msStates[].stroke |
Colour | "#64748b" |
Container border colour. | |
msStates[].strokeWidth |
Number | 1.5 |
Container border thickness in pixels. | |
msStates[].cornerRadius |
Number | 6 |
Container corner rounding in pixels. | |
msStates[].blink |
Yes / no | false |
Blinks the container (every 0.5 s) while the state is shown. | |
msStates[].blinkAltColor |
Colour | "#0f172a" |
The container’s colour in the off phase of the blink. | |
msStates[].captionText |
Text | "STATE 0" |
The caption. Two lines with a line break. Translatable with a t: key. | |
msStates[].fontFamily |
Text | "Inter, sans-serif" |
Caption font. | |
msStates[].fontSize |
Number | 11 |
Caption size in pixels. | |
msStates[].fontStyle |
Text | "bold" |
Caption weight and slant. | |
msStates[].textDecoration |
Text | "none" |
underline (the U button) or none. | |
msStates[].textColor |
Colour | "#e2e8f0" |
Caption colour. | |
msStates[].textBlink |
Yes / no | false |
Blinks the caption. | |
msStates[].wordWrap |
Yes / no | true |
Wraps a long caption to the tile’s width. | |
msStates[].textAlign |
Text | "middle-center" |
Where the caption sits, one of nine points (top-left … bottom-right). | |
msStates[].imageType |
Text | "builtin_svg" |
builtin_svg: one of the built-in icons; none: no icon. | |
msStates[].imageSource |
Text | "check" |
The built-in icon: motor, pump, valve, fan, flame, warning, bell, tank, switch, check or gauge. | |
msStates[].imageTint |
Colour | "#94a3b8" |
Colour of the icon. | |
msStates[].imageBlink |
Yes / no | false |
Blinks the icon. | |
msStates[].layoutStyle |
Text | "text-only" |
icon-left, icon-right, icon-above, icon-only or text-only. The layout decides the icon’s size and place. |
The indicator’s own list of states is props.msStates; props.states is the object state styles (the inspector’s States section), as on every other object. Editing a state style never changes the list of states. A screen whose indicator lost its list to a state-style edit in an earlier version gets it back when opened: the entries are recovered in order and the state styles kept.
Fields older screens may carry in their states (patternStyle, patternColor, textBgStyle, textBgColor, imageBgStyle, imageBgColor, imageScale, imageAlign) were never drawn; they are kept in the saved screen but no longer offered in the dialog.
Bindings and conditions
Section titled “Bindings and conditions”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 |
|---|---|---|
| Fill 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). |
| Text / Label | 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. |
| 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.
Actions
Section titled “Actions”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, text and parameters
Section titled “States, text and parameters”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. When a value the object reads is Bad, not readable, Uncertain or stale, the object is marked: a red x and a grey veil (or hatching, per the project’s quality style) for Bad or no connection, a blue lock for a tag the signed-in account may not read, an amber ? for Uncertain, a dashed outline for stale. A tag that is not readable is greyed as Bad and its value is never shown as good. The lock shows only when every Bad tag of the object is not readable: a device fault keeps the red x. Each object shows one marker, for its worst state, and markers that would overlap merge into one, drawn on the largest object with the worst state of all. The marker’s tooltip lists every tag, its quality and its age. A Bad value is never drawn as a good one. 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.
Examples
Section titled “Examples”A pump mode indicator (manual, auto, cascade)
Section titled “A pump mode indicator (manual, auto, cascade)”Pump P-101’s mode tag holds 0 (manual), 1 (automatic) or 2 (cascade). The indicator shows MANUAL in amber (an abnormal mode in ISA-101 terms), AUTO in grey, CASCADE in blue, and UNKNOWN for any other value.
- Place a Multi-State Indicator from Widgets and double-click it.
- Tag
Plant/Processing/Pumps/P101/Mode, mode Value Match. - Edit the states:
0MANUAL (amber),1AUTO (grey),2CASCADE (blue); delete the others; keep the error state as the default fallback, caption UNKNOWN.

The multistate indicator as saved in the screen (JSON)
{ "type": "MultiStateWidget", "props": { "tagPath": "Plant/Processing/Pumps/P101/Mode", "evalMode": "value", "defaultStateId": "error", "label": "P101_MODE", "msStates": [ { "id": "m0", "label": "Manual", "triggerValue": 0, "fill": "#451a03", "stroke": "#f59e0b", "strokeWidth": 1.5, "cornerRadius": 6, "captionText": "MANUAL", "fontFamily": "Inter, sans-serif", "fontSize": 13, "fontStyle": "bold", "textColor": "#fde68a", "textAlign": "middle-center", "imageType": "none", "layoutStyle": "text-only", "wordWrap": true }, { "id": "m1", "label": "Auto", "triggerValue": 1, "fill": "#1f2937", "stroke": "#6b7280", "strokeWidth": 1.5, "cornerRadius": 6, "captionText": "AUTO", "fontFamily": "Inter, sans-serif", "fontSize": 13, "fontStyle": "bold", "textColor": "#e5e7eb", "textAlign": "middle-center", "imageType": "none", "layoutStyle": "text-only", "wordWrap": true }, { "id": "m2", "label": "Cascade", "triggerValue": 2, "fill": "#0c4a6e", "stroke": "#38bdf8", "strokeWidth": 1.5, "cornerRadius": 6, "captionText": "CASCADE", "fontFamily": "Inter, sans-serif", "fontSize": 13, "fontStyle": "bold", "textColor": "#e0f2fe", "textAlign": "middle-center", "imageType": "none", "layoutStyle": "text-only", "wordWrap": true }, { "id": "error", "label": "Unknown", "triggerValue": -1, "fill": "#3f3f46", "stroke": "#a1a1aa", "strokeWidth": 1.5, "cornerRadius": 6, "captionText": "UNKNOWN", "fontFamily": "Inter, sans-serif", "fontSize": 13, "fontStyle": "bold", "textColor": "#e4e4e7", "textAlign": "middle-center", "imageType": "none", "layoutStyle": "text-only", "wordWrap": true } ] }}