# Reusable screens with parameters

> Draw one faceplate screen for twenty pump stations - declare its parameters, import the stations from a spreadsheet as parameter sets, give each station a navigation button - with the server enforcing each station's confirmation, interlocks and limits on that station's own tags.

Product: eaxScada · Type: How-to guide · Editions: Starter, Pro, Enterprise
Source: https://eaxware.com/docs/eaxscada/how-to/reusable-screens-with-parameters/
Status: migrated page, not yet verified against the current code.

## Goal

A plant has twenty pump stations with the same tags under different folders (`Plant/Processing/Pumps/P101/Start`, `Plant/Processing/Pumps/P102/Start`...). You draw **one** faceplate screen with `{Pump}/Start`, `{Pump}/Running` and `{Label}`, add one **parameter set** per station, and open the screen with a set. The server enforces each station's confirmation, interlocks and limits on that station's own tags.

The full syntax and rules are in the [Screen parameters reference](/docs/eaxscada/reference/screen-parameters/).

## Before you start

- Every station's tags exist and follow the same layout: one folder per station, the same tag names under it.
- You can edit screens (Engineer role).

## 1. Draw the faceplate with `{Name}`

1. Create a screen, for example **Pump faceplate** (`pump_fp`).
2. Wherever a station's tag goes, write the parameter instead of the folder:
   - a text: `{Label}`;
   - a value display bound to `{Pump}/Running`;
   - a **START** button: action **Set tag to 1** on `{Pump}/Start`, confirmation **Variable** on `{Pump}/Local`, disabled condition `{Pump}/Fault == 1`;
   - a **STOP** button: **Set tag to 0** on `{Pump}/Start`.
3. A parameter name has no `/`. `{Plant/Processing/Mode}` is still a tag reference: it is never replaced.

In the designer the objects show a violet `{Pump}` chip while no values are previewed: that is a placeholder, not a broken binding.

## 2. Declare the parameters

1. Open **Display Settings** > **Parameters**.
2. **Add parameter**:

   | Name | Type | Required | Default | Allowed folders |
   |---|---|---|---|---|
   | `Pump` | tagFolder | yes | | `Plant/Processing/Pumps/*` |
   | `Label` | text | no | `Pump` | |

The allowed folders matter: the screen refuses to open with a pump outside `Plant/Processing/Pumps/`, and the server enforces the write targets no wider than that. A parameter in a write target without allowed values or folders is reported by the lint (`param-target-unbounded`).

## 3. Import the twenty stations

1. In a spreadsheet, make one row per station:

   ```csv
   set,description,Pump,Label
   P-101,Feed,Plant/Processing/Pumps/P101,Feed pump P-101
   P-102,Transfer,Plant/Processing/Pumps/P102,Transfer pump P-102
   P-120,Return,Plant/Processing/Pumps/P120,Return pump P-120
   ```

2. Save it as CSV and click **Import CSV** under **Parameter sets**. Sets with the same name are updated; new ones are added.
[Image: Display Settings, Parameters: the declared parameters Pump and Label, and the parameter sets P-201 and P-202.]
[Image: Display Settings, Parameters: the declared parameters Pump and Label, and the parameter sets P-201 and P-202.]

The docs pump faceplate: two parameters, one set per pump.
3. Every set is checked as the runtime will check it. A set it would refuse (a folder outside `Plant/Processing/Pumps/*`, a missing pump) is listed in red under the grid with the reason.
4. Click **Apply & Save**.

**Export CSV** on the grid gives the sets back as a spreadsheet.

## 4. Check it with "Preview with"

At the bottom of the **Parameters** tab, choose **Set P-101** in **Preview with**. The designer's bindings show P-101's live values, and the grid lists every `{Name}` reference with what it resolves to and its live value. A violet pill on the canvas says what you preview; its **✕** stops the preview. **Open in the runtime** opens the screen with that set.

## 5. A navigation button per station

On the overview screen, for each station add a button with action **Navigate** (or **Open popup**):

- **Target screen**: `pump_fp`;
- **Parameter set of the target screen**: `P-101`.

The **Parameters** field below it can give values beside the set (they win), and can pass the current screen's own `{Name}` down to the screen it opens.
[Image: The faceplate opened as a popup with the set P-201: its title, pump, speed, START, STOP and setpoint all point at pump P-201's tags.]
[Image: The faceplate opened as a popup with the set P-201: its title, pump, speed, START, STOP and setpoint all point at pump P-201's tags.]

One faceplate, opened with the set P-201. START is disabled: P-201's own trip interlock is active.
The runtime address works too: `/runtime/pump_fp?set=P-101`, or `/runtime?screen=pump_fp&set=P-101`. A link with explicit values (`?Pump=Plant/Processing/Pumps/P101`) is checked like an action's values, with a stricter character set.

## 6. Check what the server enforces

The server derives the write policy of `pump_fp` once per set, with that set's values:

- `Plant/Processing/Pumps/P101/Start` needs P-101's confirmation when `Plant/Processing/Pumps/P101/Local` is not 0;
- a START to `Plant/Processing/Pumps/P102/Start` is refused (409 interlocked) while `Plant/Processing/Pumps/P102/Fault` is 1, whatever P-101's fault reads.

**Find where used** on `Plant/Processing/Pumps/P101/Start` lists `pump_fp` "through parameter set P-101".

## Result

One screen, twenty stations. Changing the faceplate changes every station. A station that does not exist, or a folder outside the allowed one, is never opened: the operator sees why, and the buttons of the sets to open instead.

## Related

- [Screen parameters reference](/docs/eaxscada/reference/screen-parameters/)
- [Screen scripting API](/docs/eaxscada/reference/screen-scripting-api/): `system.params`, `system.nav.openPopup(screen, {set})`
- [Find where a tag is used](/docs/eaxscada/how-to/find-where-used/)
- New to screens? Start with [Build your first 2D screen](/docs/eaxscada/tutorials/build-your-first-2d-screen/).
