# Faceplate

> The ISA-101 faceplate screen object: PID controller, motor or valve faceplate with PV, setpoint, output, mode, state and interlock.

Product: eaxScada · Type: Reference · Editions: Starter
Source: https://eaxware.com/docs/eaxscada/reference/generated/widgets/controls/faceplate/
Verified against commit 4064fb4.

<!-- GENERATED by tools/docgen (node tools/docgen/docgen.mjs). Do not edit by hand: change the source and regenerate. -->

An ISA-101 faceplate for a PID controller, a motor or a valve: grey in normal operation, colour only for an abnormal condition (interlock amber, fault red, manual mode blue, value out of range). The PID faceplate shows a PV bar with the setpoint marker, PV, SP and OUT; the motor and valve faceplates show a state lamp, the state and the value. Each tag field creates an ordinary binding; a faceplate saved with tag fields but without those bindings (an import, the API) gets them when it is drawn, so it shows live values. In the runtime a click opens the operator faceplate, which writes the setpoint tag only.
[Image: Faceplate in the operator runtime]
|  |  |
|---|---|
| Palette | Not in the palette |
| JSON `type` | `Faceplate` |
| Name in the inspector | Faceplate |
| Size | drawn from `width` and `height`; a resize changes them |

:::caution[Safety-relevant]
The faceplate writes its setpoint tag (control command).
:::

## Properties

| Shown as | Key | Type | Unit | Default | Allowed values | What it does |
|---|---|---|---|---|---|---|
| Faceplate | `kind` | Choice |  | `"pid"` | `pid` PID controller<br>`motor` Motor<br>`valve` Valve | Which faceplate: PID controller, motor or valve. |
| Process value tag (PV / position / speed) | `pvTag` | Tag path (read) |  | — |  | PID: the process value. Motor: the speed or current. Valve: the position. |
| Setpoint tag (the only tag the operator can write) | `spTag` | Tag path (written) |  | — |  | PID: the setpoint. The only tag the operator faceplate writes, within Setpoint minimum and maximum. Empty: the faceplate is read-only. |
| Output tag (PID) | `outTag` | Tag path (read) |  | — |  | PID: the controller output (0 to 100 %). |
| Mode tag (0 MAN, 1 AUTO, 2 CAS) | `modeTag` | Tag path (read) |  | — |  | The mode: 0 MAN (blue: abnormal), 1 AUTO, 2 CAS. |
| State tag (0 stopped, 1 running, 2 fault, 3 travel) | `stateTag` | Tag path (read) |  | — |  | Motor or valve state: 0 stopped / closed, 1 running / open, 2 fault (red), 3 travel. |
| Interlock tag (active when not 0) | `ilkTag` | Tag path (read) |  | — |  | The interlock, active when not 0 (any non-zero value, or true). While it is active the faceplate draws INTERLOCK ACTIVE in amber, and the operator faceplate a click opens disables its setpoint field and Write button and says why. A missing or Bad interlock tag shows INTERLOCK: NO VALUE and disables them too, unless *If the interlock reads a Bad value* is *Allow*. The server refuses a write of the setpoint tag while the interlock is active, from every client, unless another screen object can send that value without an active interlock. A faceplate without an interlock tag is not counted as such an object: it never lets a value through another object's interlock. *Inspector hint: While it is not 0 (or missing / Bad, unless a Bad interlock is allowed), the operator faceplate cannot write the setpoint; the server refuses the write too.* |
| Unit | `unit` | Text |  | — |  | Unit of PV and SP. |
| Range minimum | `minVal` | Number |  | `0` |  | PV bar range minimum. Empty = 0. *Inspector hint: Empty = 0* |
| Range maximum | `maxVal` | Number |  | `100` |  | PV bar range maximum. Empty = 100. *Inspector hint: Empty = 100* |
| Decimals shown | `decimals` | Number |  | — | min 0, max 6, step 1 | Decimals of PV, SP and OUT. |
| Setpoint minimum | `spMin` | Number |  | — |  | Lowest setpoint the operator faceplate writes; the server refuses lower values from every writer of the setpoint tag. |
| Setpoint maximum | `spMax` | Number |  | — |  | Highest setpoint the operator faceplate writes; enforced by the server for every writer. |
| — | `width` | Number |  | `180` |  | Width; the faceplate's content scales to fit. |
| — | `height` | Number |  | `230` |  | Height; the faceplate's content scales to fit. |
| — | `label` | Text |  | `"TIC-101"` |  | Title of the faceplate (TIC101). |
| — | `fill` | Colour |  | `"#1f2937"` |  | Background of the faceplate. |
| On-screen keyboard | `keyboard` | Choice |  | — | `inherit`<br>`auto`<br>`numeric`<br>`full`<br>`numeric_full`<br>`none` | Which on-screen keyboard the setpoint entry opens on a touch panel. inherit: the screen's, then the project's setting. |
| 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. |

### Tag fields and bindings

Each tag field of the inspector creates an ordinary binding on the shape, drawn by the same engine as every other binding:

| Field | Binding |
|---|---|
| `pvTag` | `fp_pv` |
| `spTag` | `fp_sp` |
| `outTag` | `fp_out` |
| `modeTag` | `fp_mode` |
| `stateTag` | `fp_state` |
| `ilkTag` | `fp_ilk` |

## Bindings and conditions

The object reads these tags through its own properties, with their quality: `pvTag`, `spTag`, `outTag`, `modeTag`, `stateTag`, `ilkTag`. A Bad or Uncertain value is marked on the object (see Quality below), never drawn as good.

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](/docs/eaxscada/reference/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

**Commands.** This object sends commands to equipment. Before it writes:

- **Confirmation and e-signature.** Set *Confirmation* to ask the operator to confirm, or to sign with their password and a reason (electronic signature). The signer is always the signed-in user; the dialog never pre-fills a signer, a reason or a password. The server requires the same confirmation from every writer of the tag.
- **Limits.** Minimum, maximum and step (or the tag's write range) are enforced by the server for every writer; the screen's own check only saves a round trip. A limit read from a tag that is missing or not Good refuses every write.
- **Interlocks.** A *Disabled condition* (buttons) or the *disable condition* of the Security & Touch condition dims the object and blocks the press while it is true. When the interlock is a simple tag comparison (`{Plant/Processing/Pumps/P101/Interlock} == 1`), the server also refuses the write from every writer (`409 interlocked`); other interlocks are screen only, and the designer says which. If the interlock reads a Bad value the object is disabled, unless *If the interlock reads a Bad value* is set to *Allow* (for stop, trip and emergency commands, so a failed sensor never stops an operator stopping a machine). See [screen interlocks](/docs/eaxscada/explanation/operator-runtime/#54-screen-interlocks).
- **Unconfigured means disabled.** Without its tag the object is drawn as not configured and sends nothing.
- **Deliberate taps.** On touch, only a still, short tap operates it.

A real safety interlock belongs in the PLC: screen and server interlocks only stop writes that go through eaxScada.

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

**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 `faceplateButton` (faceplate buttons): the faceplate's command buttons take normal, pressed, disabled (interlock tag active), bad, locked and unconfigured.

**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](/docs/eaxscada/reference/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](/docs/eaxscada/how-to/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](/docs/eaxscada/how-to/review-before-deploy/).

## Examples

### Loop TIC101 with a limited setpoint

The PID faceplate of temperature loop TIC101: PV, setpoint and output from the loop's tags, the mode from its mode tag. In the runtime, a click opens the operator faceplate; the setpoint it writes is limited to 20 to 110 degC, by the screen and by the server.

1. Place **PID Controller** from **ISA-101 Faceplates**; label `TIC101`.
2. **Process value tag** `Plant/Processing/Loops/TIC101/PV`, **Setpoint tag** `Plant/Processing/Loops/TIC101/Setpoint`, **Output tag** `Plant/Processing/Loops/TIC101/Output`, **Mode tag** `Plant/Processing/Loops/TIC101/Mode`.
3. **Unit** `degC`, range 0 to 120, 1 decimal, **Setpoint minimum** 20, **Setpoint maximum** 110.
4. Optional: on the **Action** tab of a button next to it, *Open popup screen* for a larger faceplate screen.
[Image: Loop TIC101 with a limited setpoint]

TIC101 in AUTO: PV 78.6, SP 80, OUT 46.2 %.
<details>
<summary>The faceplate as saved in the screen (JSON)</summary>

```json
{
  "type": "Faceplate",
  "props": {
    "kind": "pid",
    "pvTag": "Plant/Processing/Loops/TIC101/PV",
    "spTag": "Plant/Processing/Loops/TIC101/Setpoint",
    "outTag": "Plant/Processing/Loops/TIC101/Output",
    "modeTag": "Plant/Processing/Loops/TIC101/Mode",
    "unit": "degC",
    "minVal": 0,
    "maxVal": 120,
    "decimals": 1,
    "spMin": 20,
    "spMax": 110,
    "label": "TIC101"
  },
  "bindings": {
    "fp_pv": {
      "type": "tag",
      "tagPath": "Plant/Processing/Loops/TIC101/PV"
    },
    "fp_sp": {
      "type": "tag",
      "tagPath": "Plant/Processing/Loops/TIC101/Setpoint"
    },
    "fp_out": {
      "type": "tag",
      "tagPath": "Plant/Processing/Loops/TIC101/Output"
    },
    "fp_mode": {
      "type": "tag",
      "tagPath": "Plant/Processing/Loops/TIC101/Mode"
    }
  }
}
```

</details>

### Two motor faceplates, one interlocked

P-101 runs normally (grey); P-102 is in fault (red) with its interlock indication on (amber). While a faceplate's interlock tag is not 0, its operator faceplate cannot write the setpoint, and the server refuses that write too.

1. Place two **Motor** faceplates; labels `P-101` and `P-102`.
2. **State tag** `Plant/Processing/Pumps/P101/State` and `Plant/Processing/Pumps/P102/State`; **Process value tag** `Plant/Processing/Pumps/P101/Speed`; **Interlock tag** `Plant/Processing/Pumps/P101/Interlock` and `Plant/Processing/Pumps/P102/Interlock`.
3. On P-102, **Cond** tab, **Security & Touch**: disable condition `{Plant/Processing/Pumps/P102/Interlock} == 1`.
[Image: Two motor faceplates, one interlocked]

P-101 running; P-102 in fault with its interlock active.
<details>
<summary>The faceplate as saved in the screen (JSON)</summary>

```json
{
  "type": "Faceplate",
  "props": {
    "kind": "motor",
    "pvTag": "Plant/Processing/Pumps/P101/Speed",
    "stateTag": "Plant/Processing/Pumps/P101/State",
    "ilkTag": "Plant/Processing/Pumps/P101/Interlock",
    "unit": "%",
    "decimals": 0,
    "label": "P-101"
  },
  "bindings": {
    "fp_pv": {
      "type": "tag",
      "tagPath": "Plant/Processing/Pumps/P101/Speed"
    },
    "fp_state": {
      "type": "tag",
      "tagPath": "Plant/Processing/Pumps/P101/State"
    },
    "fp_ilk": {
      "type": "tag",
      "tagPath": "Plant/Processing/Pumps/P101/Interlock"
    }
  }
}
```

</details>

## See also

- [PID controller card](/docs/eaxscada/reference/generated/widgets/dashboard-cards/card-pid-controller/)
- [Operator runtime - write limits](/docs/eaxscada/explanation/operator-runtime/#52-write-limits)
- [Use the runtime on a phone](/docs/eaxscada/how-to/use-runtime-on-a-phone/)
