Vision Library+ / Guide
OEE with Vision Library+
Build an overall equipment effectiveness (OEE) dashboard for one production line: operators record the line state and the downtime reasons on the display, and the same display shows the OEE, the stoppages, the state timeline, the top downtime reasons, and where the time went. Every panel is a Vision Library+ symbol over AF event frames.
Overview
Build an overall equipment effectiveness (OEE) dashboard for one production line: operators record the line state and the downtime reasons on the display, and the same display shows the OEE, the stoppages, the state timeline, the top downtime reasons, and where the time went. Every panel is a Vision Library+ symbol over AF event frames.

When to use it
Use this dashboard when you need to:
- Let operators record the state of a line and the reason for each stop where they work.
- Show the OEE of a line with Availability, Performance, and Quality for any time range.
- Show how often and how long the line stopped, and the time since the last stop.
- Find the downtime reasons that cost the most stops and the most time.
The dashboard uses Equipment State+, OEE Card+, Event Analytics KPI+, Gantt Chart+, Event Analytics Chart+, and Navigation Button+. When the state of a line is a PI Point rather than event frames, show it with Asset State Timeline+.
What your PI AF model needs
The symbols read event frames and their attributes. The examples are the names of the dashboard above; use your own.
| Item | What the symbols read | Example |
|---|---|---|
| Equipment | An AF element for the line. The event frames reference it. Equipment State+ follows the element of its data source attribute. | Line 9 under Assembly Lines, with the attribute Mode |
| Line state event frames | A template whose event frames follow each other on the line, with an enumeration attribute for the state. The state classification maps each value to runtime, idle, or downtime. A String comment attribute is optional. | Template Line State, attribute State (Running, Stopped, Failure, Maintenance), attribute Comment |
| Downtime event frames | A template with one event frame per stop. The reason is an enumeration attribute or the reason of the template; two-level sets work. A String notes attribute is optional. | Template Downtime, attribute Reason on the set Downtime Causes, such as Gearbox under Mechanical Failure, attribute Operator Notes |
| Production counts | Numeric attributes that OEE Card+ sums for Performance and Quality: on the line state event frames, or on the element, where they are read as totals over the time range. | Good Count, Total Count, and Target Count |
| Who writes the event frames | An AF Analytics event frame generation analysis, or operators through Equipment State+. Use one of the two for each template, never both. | Operators, through the two Equipment State+ cards |
| Permissions | Operators need write access to event frames, and annotate access when changes are tracked. |
Note: A state value that is in no list of the state classification counts as neither runtime nor downtime. Map every value your templates use.
Build the dashboard
Each task sets up one panel: add the symbol as its article describes, then make the settings below. The event analytics symbols, OEE Card+, and Gantt Chart+ find their event frames through Search Criteria in the context menu (Events Search Criteria in Gantt Chart+): set Event Type under Event Type and Attribute Value to the template and Asset Name to the line.
Record the equipment state
Use this so that operators set the current state of the line.
- Add Equipment State+ on an attribute of the line, here Mode of Line 9, as in Add and set up the symbol.
- Right-click the symbol and select Configure Equipment State....
- In Event frames, select Line State in Template (1), leave Mode (2) at State, and select State in State attribute (3) and Comment in Comment attribute (4).

- In State colors, set Classify by (1) to Attribute and Attribute (2) to |State.
- Add Running to Runtime (3), Maintenance and Stopped to Idle (4), and Failure to Downtime (5).

- In Stoppage KPIs, set Show to ON.
- Optional: in Change Tracking, set Log Changes to ON and Ask for Reason to Optional.
The card shows the running state in the color of its state type, how long it has run, and a chip for each state used most often on the line. Use the same classification in OEE Card+ and the time summary, so that every panel counts the same states as downtime.
Record downtime with a reason
Use this when operators record each stop with its reason.
- Add a second Equipment State+ on the same attribute and open its configuration pane.
- In Event frames, select Downtime in Template (1), set Mode (2) to Start / Stop, keep Reason (template trait) in State attribute (3), and select Operator Notes in Comment attribute (4).

- In State colors, set Classify by to Everything (all events are downtime).
- In Stoppage KPIs, set Show to ON.
The card shows a play button while no stop is open. Play opens the reason picker and starts a Downtime event frame; stop ends it.
Show OEE and its factors
Use this to show the OEE of the line with Availability, Performance, and Quality, each against its own target.
- Add OEE Card+ on the Line State event frames of the line, as in Add and set up the symbol, with the attributes State, Good Count, Total Count, and Target Count.
- Right-click the symbol and select Configure OEE Card....
- In State Classification, map the states as in Record the equipment state.
- In Factors, leave Basis (1) at Runtime and Counts from (2) at Events.
- Under Performance, pick |Total Count in Numerator (3) and |Target Count in Denominator (4).
- Under Quality, pick |Good Count in Numerator (5) and |Total Count in Denominator (6).

- Optional: in Rings, set Small rings to Right and Thickness to Thin, and set Show targets and Show factor line to OFF for a compact card.
The card shows the OEE as the product of the three factors. For the week on the dashboard above it reads 69.0 %: Availability 81.8 %, Performance 88.0 %, and Quality 95.9 %. When the counts are attributes of the element, set Counts from to Element instead, see OEE Card+.
Count stoppages and downtime
Use this to show the number of stops, the stoppage time, and the time since the last stop.
- Add Event Analytics KPI+ on the Downtime event frames of the line.
- Right-click the symbol and select Configure Event Analytics KPI....
- In State Classification, set Classify by to Everything (all events are downtime).
- Under Dimension, open Values and select the first value (1).
- Set Summary (2) to Measure and Measure type (3) to Number of stoppages, and type Stoppages in Title (4).

- Select + and add a value with Measure type Total stoppage time, then one with Time since last stoppage, each with its title.
The symbol shows one card per value: 19 stoppages and 1d 10h of stoppage time in the week above.
Show the state timeline
Use this to see when the line ran, waited, and stopped, as one colored strip.
- Add Gantt Chart+ on the Line State event frames of the line, with the attributes State and Comment.
- Right-click the symbol and select Configure Gantt Chart....
- Under Measures > Series, set Property (1) to |State and Mode (2) to Values.
- Set Custom Colors (3) to ON and give each state its color (4): green for Running, amber for Stopped, yellow for Maintenance, and red for Failure.

- Under Trend Options > Bars, check that Color Mode is Series.
- Under Trend Options > Tooltip, select Attributes, so that the hover panel shows the state and the comment.
The chart draws one row for the line, with one bar per state event frame in the color of its state.
Find the top downtime reasons
Use this to see which reasons cause the most stops and which cost the most time.
- Add Event Analytics Chart+ on the Downtime event frames of the line, with the attribute Reason.
- Right-click the symbol and select Configure Event Analytics Chart....
- In State Classification, set Classify by to Everything (all events are downtime).
- Under Dimension > Values, set Summary Type to Measure and Measure type to Number of stoppages.
- Under Arguments, set Value (1) to |Reason.
- Set Top N (2) to ON, Mode to Top, and Count (3) to
5, and set Sort Order (4) to Descending.

- Under Trend Options, set Orientation to Horizontal.
- For the chart by duration, add a second Event Analytics Chart+ the same way with Measure type Total stoppage time.
Each chart shows the five largest reasons, the largest on top.
Show the time summary
Use this to see the share of runtime, idle time, and downtime in the time range as one bar.
- Add Event Analytics Chart+ on the Line State event frames of the line, with the attribute State.
- Right-click the symbol, select Configure Event Analytics Chart..., and map the states in State Classification as in Record the equipment state.
- Under Dimension > Values, set Value (1) to Duration in Range, by State and Summary (2) to Sum.
- Under Stack, select 100% (3).

- Under Arguments, set Value to Asset. Under Series, set Value to State Type.
- Under Trend Options, set Orientation to Horizontal.
The bar splits into Downtime, Idle, and Runtime: 18 %, 3 %, and 80 % in the week above.
Add time presets
Use this to give operators one-click periods, such as the last 12 hours or a shift.
- Add Navigation Button+ to the display, right-click it, and select Configure Navigation Button....
- Under General, select Static in Source (1).
- Select Search for Displays ... and select the dashboard itself, so that its address (2) appears.
- Select Set start and end time (3) and Custom time range (4).
- Type
*-12hin Start (5) and*in End (6).

- Under Style, type 12H in Text.
- Add one button each for
*-4h,*-1h, and*-8h, labeled 4H, Last hour, and Shift.
A button opens the same dashboard on its period.
Use the dashboard

| What it is for | |
|---|---|
| (1) | A chip sets the next state of the line; More... offers every state. See Set the current state. |
| (2) | Play starts a stop with its reason; stop ends it. See Start and complete a run. |
| (3) | The OEE and its three factors for the time range. |
| (4) | The number of stoppages, the stoppage time, and the time since the last stoppage. |
| (5) | The state timeline. Hover a bar for its times, state, and comment. |
| (6) | The time presets. |
- Read the figures: every panel except the two state cards follows the display time range. The state cards always show the running state, and their footers count the stops in the display time range.
- Hover the timeline: the panel names the event frame and shows its start, end, state, and comment.

- Writes: only the two Equipment State+ cards write. Each change creates or ends event frames in AF; the display configuration does not change. The cards reload every 30 seconds and right after each change.
Troubleshooting
| Symptom | Cause | What to do |
|---|---|---|
| OEE, Performance, and Quality show a dash while Availability shows a figure. | The state event frames in the time range carry no production counts, for example only a running state event frame that has not ended. | Choose a time range with completed production, or read the counts from the element with Counts from Element. |
| A stoppage figure shows 0 and the charts are empty. | The search finds no event frames: the template, the Asset Name, or the time range does not match. | Check Search Criteria of the symbol and the display time range. |
| The two state cards show different numbers of stoppages. | Each card counts what its State colors call downtime: the State card the values under Downtime, here only Failure, and the Start / Stop card every Downtime event frame, planned stops included. | Map the values in State colors to match your definition of a stoppage. |
| Availability reads 100 % although the line stopped. | No state is classified as downtime. | Map the stop values to Downtime in State Classification. |
Limitation: Time since last stoppage is offered in Event Analytics KPI+ only.
Limitation: One dashboard shows one line. For another line, copy the display and change the searches and the data source of the state cards.
