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

  1. Sort by time, and for each machine and code pair each "raised" with the next "cleared".
  2. Rows that could not be paired (such as a raised alarm with no clear) are listed, not filled in by guesswork.
  3. Merge the intervals of the same machine that overlap in time into one.
  4. The sum of the merged interval lengths is that machine's downtime.

Worked example

Alarm history for three machines (times in hh:mm).

TimeMachineCodeRecord
08:00#1E12Start
08:05#2E07Start
08:09#2E07End
08:10#1E30Start
08:12#1E12End
08:20#1E30End
08:30#3E12Start
MachineCodeIntervalDowntime (min)
#2E0708:05–08:094
#1E1208:00–08:1212
#1E3008:10–08:2010
MachineTotal alarm time (min)Downtime (min, after merging overlaps)
#12220
#244

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.

Result with the sample data

010,00020,00028,165Downtime (min)0%50%80%100%Cumulative shareWelding / #2: 2,6022,602Welding / #2Welding / #1: 2,0962,096Welding / #1Magnetizing / #1: 1,5861,586Magnetizing / #1Rotor assembly / #1: 1,5671,567Rotor assembly / #1Winding / W-02: 1,3391,339Winding / W-02Winding / W-03: 1,2191,219Winding / W-03Visual inspection / #1: 1,1941,194Visual inspection / …Press-fit / #1: 1,1891,189Press-fit / #1Winding / W-05: 1,1401,140Winding / W-05Winding / W-04: 1,0771,077Winding / W-04Winding / W-06: 1,0341,034Winding / W-06Winding / W-01: 1,0021,002Winding / W-01Other: 2,6252,625Other(blank): 8,4958,495(blank)

Downtime by machine in the sample data (one record per row). Alarm history gives the same chart once it is turned into intervals. The sample data is the records of a fictional plant. Try the sample

Common mistakes

  • Adding up alarm times as they are: alarms active at the same time on the same machine count the downtime twice.
  • Closing a raised alarm with no clear on your own: do not guess the end of the interval; show it as a row that could not be paired.
  • Counting warnings (alarms that do not stop the machine): separate alarms that stop the machine from those that do not.
  • Cutting intervals at midnight: a stop on the night shift that runs past midnight counts as one interval.

FAQ

Which history formats can be read?
Excel or CSV files with columns for time, machine, code, and raised or cleared. Column names can differ from company to company; when you choose your records, you can check the column mapping in your browser.
What if the same code is raised again before it clears?
It is treated as a pair whose earlier raised row was not closed, and shown in the list. Check your recording rules to decide which one to use.
Can line downtime be shown too?
If there is a column for whether the line stopped, only those rows are counted. If not, the result is shown as machine downtime, with the assumption stated.
Try the sample

The sample shows the full result on a fictional plant’s records: drill-down from plant to machine, priority improvement themes and the report.