Documentation Vision Library+ Documentation

Vision Library+ / Data Entry

Equipment State+

Equipment State+ shows what a line or machine is doing right now and lets the operator change it with one click. The card takes the color of the current state, shows how long it has lasted and the stoppage figures, and records every change as an event frame in AF.

Overview

Equipment State+ shows what a line or machine is doing right now and lets the operator change it with one click. The card takes the color of the current state, shows how long it has lasted and the stoppage figures, and records every change as an event frame in AF.

Equipment State card for Line 50: Running in green, the clock, the stoppage figures, and the chips of the next states

Watch the demo

See Equipment State+ in a practical PI Vision workflow.

When to use it

Use Equipment State+ when you need to:

  • Let operators record the state of a line, such as Running, Stopped, Failure, or Maintenance, as event frames.
  • Record a stop with its reason when it starts, and end it when the line runs again.
  • Show the current state of the equipment and how long it has lasted, in the color of its state type.
  • Show the number of stoppages, the stoppage time, and the time since the last stoppage beside the state.
  • Keep a record of who changed a state and why.

Choose Event Frame Form+ when operators fill in several attributes of an event frame, such as good and waste counts. Choose Events Table+ to review or correct a list of event frames.

Before you begin

  • Prepare an event frame template for the state of the equipment, with an enumeration attribute, for example State with the values Running, Stopped, Failure, and Maintenance.
  • To record stops with a reason, use a template with a reason, for example Downtime with the two-level Downtime Causes set.
  • For an operator comment, the template needs a String attribute, for example Comment or Operator Notes.
  • Operators need write access to event frames in the AF database, delete access to undo a state change, and annotate access when you track changes.
  • The event frames of one template are written either by AF Analytics or by operators through this symbol, never by both.

Add and set up the symbol

  1. Select Equipment State+ in the PI Vision symbol gallery.
  2. In the Assets pane, select the equipment, here Line 50, and drag one of its attributes, for example Mode, onto the display. The symbol follows the element that owns the attribute.
  3. Right-click the symbol and select Configure Equipment State....
  4. In Event frames, select the event frame template in Template (1), here Line State.
  5. Leave Mode (2) at State, select the attribute that holds the state in State attribute (3), here State, and select Comment in Comment attribute (4).
Event frames group with Template Line State, Mode State, State attribute State, and Comment attribute Comment
  1. Close the configuration pane. The card shows the state of the running event frame of Line 50, how long it has run, a chip for each state used most often, and More....
Equipment State card for Line 50 showing Running, the clock, and the chips Stopped, Failure, Maintenance, and More...

Common tasks

Set the current state

Use this when the equipment changes state, for example when a planned maintenance starts.

  1. On the card, select the chip of the new state (1), here Maintenance.
Equipment State card for Line 50 with the Maintenance chip and More... marked
  1. In the Change state dialog, check the changes (1): the end time of the running event frame and the old and new state.
  2. Optional: type a Comment (2) of up to 130 characters.
  3. Select Save (3).
Change state dialog with the two changes, the comment Planned belt change, and the Save button

The running event frame ends, and a new one starts at the same instant with the new state and the comment. The card takes the color of the new state, here amber for Maintenance, and the clock starts again. Cancel changes nothing.

For a state without a chip, select More... (2) on the card. Find the state in the search box, among the Popular states, or in the list, type an optional Comment, and select Apply.

Undo a wrong state change

Use this when the operator selected the wrong state and the previous state should continue.

  1. On the card, select the three dots (1) at the bottom right.
  2. Select Merge with previous event (2).
Equipment State card for Line 50 with the three dots and the open menu, Merge with previous event marked
  1. In the dialog, check the Kept event (1), the previous one, and the Removed event (2), the running one.
  2. Check What the merge does (3): the kept event is in progress again, and the removed event is deleted with its annotations, child events, and other attribute values.
  3. Under Value to keep (4), leave Kept event selected, so the previous state continues. The choice appears only when the two states differ.
  4. Optional: when the removed event has a comment, select Keep the comment of the removed event to add it to the comment of the kept event.
  5. Select Merge (5).
Merge with previous event dialog for Line 50 with the kept Stopped event, the removed Running event, what the merge does, the value to keep, and the Merge button

The previous event runs on, with the clock counted from its start. Cancel changes nothing. When change tracking asks for a reason, the Record the change dialog follows, and the kept event gets one annotation that names the removed event.

Important: The merge deletes the removed event frame in AF. It cannot be restored from the card.

Start and complete a run

Use this when the symbol records stops with their reason, for example Downtime event frames, and Mode is Start / Stop.

  1. On a card without a running event frame, select the play button.
  2. Find the reason: type in the search box (1), then select the reason in the list (2), here Jam under Mechanical Failure.
  3. Optional: type a Comment (3).
  4. Select Apply (4).
Change state dialog with Jam searched and selected under Mechanical Failure, a comment, and the Apply button

A new event frame starts with the reason and the comment. The card turns red and shows the state type (1), the clock (2), and the reason (3), and the stop button (4) is ready.

Equipment State card for Line 60 during a stop: Downtime in red, the clock, the reason Jam, and the stop button
  1. When the line runs again, select the stop button (4). The event frame ends, and the card shows No running state.

Color the states

Use this when the card should show at a glance whether the current state is runtime, idle, or downtime.

  1. In the configuration pane, open State colors.
  2. Set Classify by (1) to Attribute and Attribute (2) to |State.
  3. Add Running to Runtime (3), Maintenance and Stopped to Idle (4), and Failure to Downtime (5).
State colors group with the State attribute and its values mapped to Runtime, Idle, and Downtime

The card takes the color of the state type: green for runtime, amber for idle, and red for downtime. When every event frame is a stop, as in Start / Stop mode, set Classify by to Everything (all events are downtime).

Show the stoppage figures

Use this when operators should see how often and how long the equipment stopped in the display time range.

  1. In the configuration pane, open Stoppage KPIs and set Show to ON.
  2. Check that State colors maps at least one value to Downtime, or classifies everything as downtime.

The footer of the card shows the number of stoppages (1), the total stoppage time (2), and the time since the last stoppage (3). Hover a figure to see its full name.

Equipment State card for Line 60 with the footer Stoppages 7, Downtime 6h 57m, and Last stoppage marked

Track who changed what

Use this when you need a record of every state change with the reason for it.

  1. In the configuration pane, open Change Tracking and set Log Changes to ON.
  2. Set Ask for Reason to Optional or Required.
  3. Select the chip of the new state, as in Set the current state. The Change state dialog lists the changes (1).
  4. Type the Reason for change (2).
  5. Optional: type a Comment (3).
  6. Select Save (4).
Change state dialog with the two changes, a reason, a comment, and the Save button

Both event frames get an annotation with the reason and the change: the ended event frame its new end time, the new event frame its old and new state. Cancel saves nothing. A state picked through More... and the stop button in Start / Stop mode open the Record the change dialog, which asks for the reason in the same way.

Use the symbol

Equipment State card with numbered callouts
What it shows
(1)The equipment and the mode.
(2)The tile in the color of the state type, with a play, pause, or stop sign, or a dash for an unclassified state.
(3)The current state. In Start / Stop mode, the state type, with the reason under the clock.
(4)How long the current state has lasted, and when it started.
(5)The stoppage figures of the display time range.
(6)The chips of the states used most often and More... for every state, or in Start / Stop mode the play and stop buttons.
  • Change the state: select a chip or More..., or the play or stop button. See Set the current state and Start and complete a run.
  • Correct an event frame: select the three dots at the bottom right and then Edit current event, Split current event, Edit previous event, or Split previous event. The event frame dialog opens on that event frame. For Merge with previous event, see Undo a wrong state change.
  • Unavailable button: a grey button shows why in its tooltip, for example Saving the state change... while a change is being saved. The chips are grey at the same time.
  • State not refreshed: after a failed reload, the card keeps the last state and marks the top line (1); the mark's tooltip gives the last refresh. The button and chips stay grey with The state could not be refreshed until a reload succeeds.
  • No running state: the card is grey with a dash when no event frame of the template runs on the equipment.
  • Size: below 110 pixels high or 300 pixels wide, the card is compact: one row with the tile, the state, the clock, and the button, and no top line, stoppage figures, chips, or three dots. The Since line needs 160 pixels of height.
  • Refresh: the card reloads every 30 seconds and right after each change.
  • Writes: every change creates or ends event frames in AF and writes the picked value and the comment. The display itself does not change.

Configure the symbol

Right-click the symbol and select Configure Equipment State.... The groups appear in this order.

Event frames

Used in Add and set up the symbol.

SettingWhat it does
TemplateThe event frame template the symbol reads and writes on the equipment. The list holds the event frame templates of the AF database of the equipment. Only top-level event frames are read: a state recorded as a child event frame is not shown.
ModeState shows the chips of the states used most often and More...; a pick ends the running event frame and starts the next one at the same instant. Start / Stop shows a play and a stop button: play starts an event frame, stop ends it, and between runs no event frame is open; Merge with previous event joins the running stop with the previous one. Default State. See Start and complete a run.
State attributeThe attribute the operator picks a value for, from the enumeration attributes of the template. Default Reason (template trait), the reason of the template; on a template without a Reason trait, the warning The selected template has no attribute with the Reason trait. Choose a state attribute. appears. When the attribute does not resolve, a warning appears and Change state is unavailable; in Start / Stop mode the play button stays available and starts an event frame without a reason. When the states of the attribute cannot be read, a notification says The states could not be loaded.
Comment attributeThe String attribute that stores the operator's comment, up to 130 characters. None hides the comment field, and a chip then changes the state without a dialog unless change tracking asks for a reason.

State colors

Used in Color the states.

SettingWhat it does
Classify byEverything (all events are downtime) counts every event frame as a stop. Attribute, Template, and Reason look up an attribute value, the template name, or the reason in the lists below. None leaves every state unclassified.
AttributeAvailable when Classify by is Attribute. The enumeration attribute whose value decides the state type.
Runtime, Idle, DowntimeThe values of each state type and with them the color of the card. Add a loaded value offers the values of the enumeration set that are in no list yet. Type a value adds another one. A value in no list is unclassified and grey.

Stoppage KPIs

Used in Show the stoppage figures.

SettingWhat it does
ShowON shows the number of stoppages, the stoppage time, and the time since the last stoppage in the display time range in the footer. Default OFF. When State colors cannot classify any state as downtime, a warning appears and the figures show dashes. With 900 events or more in the time range, the figures cover the newest 900, and their tooltips say so.

Change Tracking

Used in Track who changed what.

SettingWhat it does
Log ChangesON writes an annotation with every change and its reason to each event frame the symbol changes. Default OFF. The play button in Start / Stop mode writes no annotation and asks for no reason.
Ask for ReasonAvailable when Log Changes is ON. None saves without asking, Optional asks for a reason in the dialog before saving, and Required saves only with a reason. Without permission to annotate events, Required makes changing the state, Stop and Merge unavailable, and Optional saves without asking.

Style

SettingWhat it does
Theme, Surface, Container StyleA shared look for the card. Custom Theme adds Font, Foreground, and Background. The state colors stay the same in every theme.
Apply to all symbolsCopies the theme, surface, container style, and display background to every other Vision Library+ symbol on the display. Not available with Custom Theme.

Troubleshooting and limitations

SymptomCauseWhat to do
The button is grey and its tooltip says No write permission.Your AF identity cannot create or end event frames in the database.Ask the PI administrator for write access to event frames.
The button is grey and its tooltip says The event frame template has no state attribute.State attribute names an attribute the selected template does not have, or the template has no Reason trait.Select an attribute of the template in State attribute.
The button is grey and its tooltip says No event frame template is configured.Template is empty.Select the template in Event frames.
The card shows Change state instead of the chips.The card is in the compact size, your AF identity cannot write event frames, or no other state has been recorded on the equipment yet.Make the symbol larger, ask for write access, or select Change state to pick the state from the full list.
The stoppage figures show dashes.State colors classifies no state as downtime.Map the stop values to Downtime in State colors.
A notification says The state could not be changed and gives the AF message.AF refused the change. The previous state stays running.Check the message, then try again.
The three-dots menu has no Merge with previous event.No state is running, the card could not be refreshed, your AF identity cannot write or delete event frames, or the equipment has no earlier event of the template.Ask the PI administrator for delete access.
A notification says The events could not be merged: Another event lies between the two events. Reload before merging.Someone recorded an event between the two since the card loaded.Reload the display and merge again.
A notification says The running state was completed by someone else., The running state was changed by someone else., or Another state is already running on this equipment.The event frames changed after the card loaded. Nothing was written.Reload the display, then try again.
A notification says This computer's clock is behind the start of the running state.Nothing was written.Correct the computer's clock.
A notification says The equipment changed while the state was being set.The display switched to other equipment during the change.Set the state again.
A notification ends with It is not known whether the change was applied.PI Web API did not answer in time.Reload the display and check the state.

Limitation: One symbol follows one piece of equipment. Use one symbol per line.