Downtime from equipment alarm history: how to calculate it
Equipment alarm history usually records "raised" and "cleared" on separate rows. To find the downtime, pair each raised row with its cleared row for each machine and alarm code to form intervals, and merge intervals that overlap on the same machine (take their union). In short: if you simply add up alarm times, alarms that were active at the same time inflate the downtime.
How to calculate
- Sort by time, and for each machine and code pair each "raised" with the next "cleared".
- Rows that could not be paired (such as a raised alarm with no clear) are listed, not filled in by guesswork.
- Merge the intervals of the same machine that overlap in time into one.
- The sum of the merged interval lengths is that machine's downtime.
Worked example
Alarm history for three machines (times in hh:mm).
| Time | Machine | Code | Record |
|---|---|---|---|
| 08:00 | #1 | E12 | Start |
| 08:05 | #2 | E07 | Start |
| 08:09 | #2 | E07 | End |
| 08:10 | #1 | E30 | Start |
| 08:12 | #1 | E12 | End |
| 08:20 | #1 | E30 | End |
| 08:30 | #3 | E12 | Start |
| Machine | Code | Interval | Downtime (min) |
|---|---|---|---|
| #2 | E07 | 08:05–08:09 | 4 |
| #1 | E12 | 08:00–08:12 | 12 |
| #1 | E30 | 08:10–08:20 | 10 |
| Machine | Total alarm time (min) | Downtime (min, after merging overlaps) |
|---|---|---|
| #1 | 22 | 20 |
| #2 | 4 | 4 |
Adding the alarm times as they are gives 26 min, but the downtime after merging overlaps is 24 min. Rows that could not be paired: #3 E12.