OEE for the Filler
What you build
An OEE calculation for the Filler on Line 1. mii reads the machine state and the two counters from the tags you made in the first tutorial, compares the output with an ideal cycle of 0.5 seconds per bottle (120 bottles per minute), and reports availability, performance, quality and OEE per shift and per day.
Time: about 40 minutes, plus some hours of data to see a full shift.
- You finished Your first pipeline: the Filler tags
State,Speed,GoodCountandRejectCountare collected. - The Filler has been collected for a while. OEE only counts time it knows about; history from before the setup is not known.
- You are signed in as admin or controls engineer (the setup needs the right to configure the plant).
How OEE is calculated here
| Part | Formula |
|---|---|
| Availability | Run time / (Run time + Down time). Time that is unknown is left out and shown as a range. |
| Performance | Units counted times the ideal cycle in seconds, divided by the run time in seconds. |
| Quality | Good units / total units checked. |
| OEE | Availability times Performance times Quality. |
Nothing is guessed. If the data is missing, mii shows "unknown", and a ratio is withheld when less than 90 % of the period is known (you can change this threshold).
Step by step
1. Set the site time zone
- Open Plant → Production. The page title is "Process master data".
- In Site timezone choose your zone, for example
Europe/Istanbul, and click Save timezone.
Shift times are local to this zone.
2. Create the product
-
Open the tab Products and click New product.
-
Fill:
Field Value Code COLA-500Name Cola 500 mlUnit bottleIdeal cycle (s) 0.5 -
Save with Create.
0.5 seconds per bottle is 120 bottles per minute, the nominal speed of the Filler in the simulator. Because the simulator runs at about 93 % of its setpoint, expect a performance of about 93 %.

3. Create the shifts
The shifts are the OEE schedule. Without them OEE says "No shift covers this time".
-
Open the tab Shifts and click New shift three times:
Code Name Start (local) End (local) Days AMorning 06:00 14:00 Mon to Sun BAfternoon 14:00 22:00 Mon to Sun CNight 22:00 06:00 Mon to Sun -
Shift
Cends before it starts, so it "crosses midnight". The day you tick is the day the shift starts. -
The banner "Current shift" now shows the shift that is running.
Shift codes must be unique. The three shifts together cover all 24 hours, so the Overview shows a shift at any time.

4. Create downtime reasons
Reasons classify stops. The category decides how a stop counts.
-
Open the tab Downtime reasons and click New reason for each row:
Name Code Category Counts as Changeover CHGplanned Left out of availability Lunch break BRKplanned Left out of availability Bottle jam JAMunplanned Lowers availability Label roll empty LBLunplanned Lowers availability Slow running SLOspeed Informational loss Quality check QCKquality Informational loss -
Leave Parent at "— top level —".
A stop without a reason counts as unplanned.
5. Optional: start a production order
An order gives you OEE per order and uses the order's cycle time first.
- Open the tab Production orders and click New order.
- Code
ORD-1001, ProductCOLA-500, EquipmentFiller, Planned qty50000. - Click Start on the row. The status changes to running.
Only one order can run on one machine at a time.
6. Set up OEE for the Filler
-
Open Plant → OEE and the tab Setup.
-
Click Set up a machine. The dialog "OEE setup: Filler" opens after you choose the Machine
Filler. -
Fill:
Field Value Why Calculate OEE for this machine on Running signal StateThe tag that says whether the Filler runs. It is polled every second. Values that mean running 10 stopped, 2 fault and 3 setup are not running. A reading is valid for (s) 0Use the poll interval of the tag. What the counters count Good units, and rejects The simulator counts good bottles and rejects separately. First counter (Good units): Counter tag GoodCountSecond counter (Rejects): Counter tag RejectCountHighest possible counts per second 5A little above the real 2 per second. Used to tell a reset from a faulty value. Default ideal cycle (s per unit) 0.5Used when no order or product has a cycle. Least known time (%) 90Below this, a ratio is not shown. -
Click Try on history, choose Last 24 hours and look at the preview. Nothing is saved by the try.
-
Click Save. The toast says "Setup saved."
Then click Cycle times on the Filler row. For COLA-500 enter Seconds per unit 0.5 and save.

With No quality counter mii has no quality figure, and OEE is not calculated. It is never assumed to be 100 %.
A finished shift keeps the settings it was calculated with. After you change the setup, use Recompute (From, To, at most 31 days back) to apply the new settings to the past.
7. Read the result
- Open the tab Now for the running shift. Then the tab History: Machine
Filler, PerShift, rangeToday. - The result table has the columns Availability, Performance, Quality, "Known time" and Units.
With the simulator you can expect, for a full shift:
| Measure | Typical value |
|---|---|
| Availability | 85 to 92 % (short stops and a fault every hour or so) |
| Performance | 88 to 98 % |
| Quality | about 98.8 % (1.2 % of bottles are rejected) |
| OEE | roughly 75 to 88 % |
| Units | about 44,000 to 52,000 per 8-hour shift |
Stops are random, so your numbers differ. They are consistent with each other: OEE equals A × P × Q.
Below the table:
- Where the time went: Run, Down, Planned stop and Unknown.
- Units: good and rejected.
- Losses by reason: stops sorted by reason.
- What to know: remarks, for example "unknown time" or a counter reset.
- Time line: each stop is a bar. Click a stop and choose Record a reason… to give it
JAMorLBL.

8. Record a reason for a stop
- In the Time line click a red stop of a few minutes.
- Choose Record a reason… and pick Bottle jam.
- The "Losses by reason" list now shows
Bottle jamwith the minutes.
You can also manage stops under Plant → Production → Downtime events (columns Equipment, Reason, Start, End, Duration, Source, Note, with the button End now). Two events on one machine must not overlap.
9. Open the shift report
- Open Monitoring → Reports and the tab Shift report.
- Choose Day and Shift.
- The report shows the OEE table per machine, "Losses per machine", "Downtime events", "Production orders" and "Alarms". Click Print to print or save as PDF.
If the shift is still running, the report says "The shift is still running. Figures go up to now."

Check it works
- Shifts lists A, B and C, and "Current shift" shows one of them.
- The OEE setup of the Filler is saved with State as running signal and the counters
GoodCountandRejectCount. - OEE → Now shows Availability, Performance and Quality, not "unknown".
- Availability is below 100 % after the Filler has stopped at least once.
- The shift report lists the Filler with Units and at least one stop with a reason.
Next steps
OEE in depth
Formulas, quality modes and issue codes.
Production
Orders, recipes and downtime events.
Reports
Shift, alarm, energy and raw data.
Read with SQL
Compute your own availability from State.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| "No shift covers this time" | No shift is defined for this time or day. | Create shifts that cover 24 hours, check the site time zone. |
| Quality and OEE are empty | Counters mode is No quality counter, or only one counter is chosen. | Choose Good units, and rejects and set both tags. |
| A ratio is missing, with "unknown time" | Less than 90 % of the period is known (data started after the shift began, or the runtime was off). | Wait for a full shift, or lower Least known time (%). |
| Performance above 100 % | The ideal cycle is too long, or the counter has a faulty jump. | Check the cycle time of the product. Ratios are flagged, never clamped. |
| The running signal cannot be chosen | The tag belongs to another machine. | Only tags of the Filler are listed. Check the device binding. |
| Availability is always 100 % | State is not changing, or Values that mean running includes 0. | Set the value to 1 only. |
| "You may look, but not change anything here." | Your role cannot configure the plant. | Sign in as admin or controls engineer. |
| Everything is gone after some hours | Free mode reset. | Upload a licence. |