Usage-based maintenance triggers a preventive task when a machine has run a set number of hours or completed a set number of cycles, instead of when a date arrives. The counts can come from standard machine counters (OPC UA for Machinery and MTConnect both define them), from counters and timers in the PLC program, from the machine’s running state, or from a run signal added to an older machine. The hard part is the counting, not the trigger: accumulating only real running time, surviving counter resets and rollovers, and keeping one meter in the CMMS so each PM fires exactly once.
This article covers that data side. It explains which failure modes suit a usage meter, where each kind of count comes from and how far to trust it, how to turn a run signal into run hours, how to handle resets, rollover and gaps, how to reconcile machine counts with the CMMS meter, and how to design the trigger itself with a warning band and a grace window.
When usage beats the calendar
Usage beats the calendar when the failure mode is driven by running: the part wears with every hour, revolution, stroke or switching operation. On those tasks a run-hour or cycle trigger serves a busy machine sooner and an idle machine later, where a calendar task over-serves one and under-serves the other.
The federal definitions of preventive maintenance already include usage. The DOE Federal Energy Management Program’s O&M guide, as summarized by PNNL, defines preventive maintenance as “actions performed on a time- or machine-run, time-based schedule,” and NASA’s reliability-centered maintenance guide (September 2008) says PM is scheduled “at pre-defined intervals (time, operating hours, or cycles).” PNNL even uses the everyday example: changing a car’s oil every 3,000 to 5,000 miles “effectively bases oil change needs on equipment run time.” Usage-based maintenance is preventive maintenance with a better clock.
NASA’s guide also says where interval-based tasks keep their place even in a condition-monitoring program: “where an abrasive, erosive, or corrosive wear takes place; material properties change due to fatigue, embrittlement, or similar processes; or a clear correlation between age and functional reliability exists.” Abrasion and fatigue are driven by use, so they are the natural home for a usage meter. Corrosion and embrittlement can progress whether the machine runs or not, which is why many usage tasks also need a calendar ceiling.
Pick the meter that matches the wear mechanism:
| Wear mechanism | Meter that tracks it | Examples |
|---|---|---|
| Rotation under load | Run hours while in the running state | Gearbox oil, motor and conveyor bearings, chains, pump seals |
| Repeated operations | Cycle count | Valves, cylinders, clutches and brakes, contactors, grippers |
| Material processed | Parts, strokes or units made | Dies, knives, cutting tools, sealing jaws, nozzles |
| Power applied | Powered hours | Electronics cooling fans, heater elements kept on standby |
| Time, regardless of use | Calendar | Hoses and seals that age, batteries, inspections set by a code or insurer |
The table is a starting point. A task can have two meters, for example a gearbox oil change at 2,000 run hours or 12 months, whichever comes first. The interval itself still comes from the maker’s guidance and your own as-found records, a method covered step by step in our article on setting preventive maintenance frequency. This article is about getting the meter right.
Where trustworthy counts come from
Trustworthy counts come from a source that only ever increases, is tied to one physical asset, and is read often enough that nothing is missed between readings. Standard machine counters meet those tests by design; counters written into a PLC program for production reporting often do not, and need handling before they can drive maintenance.
| Source | What it provides | Reset behavior | Watch for |
|---|---|---|---|
| OPC UA for Machinery operation counters (OPC 40001-1) | PowerOnDuration, OperationDuration (milliseconds), OperationCycleCounter | "Shall only increase" and "shall not be reset" on restart | Optional properties; may update only once a minute or once an hour; storage data type |
| OPC UA for Machinery lifetime counters | Lifetime variables with start, limit and warning values | Defined by the machine builder | Whether the value counts up or down |
| MTConnect PartCount and EquipmentTimer | Part counts by subtype; powered, operating, working and loaded time | Depends on the controller and adapter | Which subtypes the agent actually reports |
| Counters and timers in the PLC program | Whatever the programmer built | Often reset by shift, batch or HMI button | Resets, data type range, program downloads |
| Machine running state | Run time accumulated outside the controller | None, if the plant's software keeps the total | The definition of "running"; gaps in the data |
| Added run signal (auxiliary contact or current sensor) | A run bit or a cycle pulse on machines with no usable data | None, if accumulated outside the device | The threshold between idle and running; installation by electricians |
OPC UA for Machinery counters
The OPC Foundation’s OPC 40001-1, OPC UA for Machinery Part 1: Basic Building Blocks (version 1.04.2, published 2026-11-01) defines a building block for exactly this job. Its MachineryOperationCounterType provides three optional properties:
- PowerOnDuration, “the duration the MachineryItem has been powered.” The specification says “the main purpose is to determine the time in which degradation of the MachineryItem occurred.”
- OperationDuration, “the duration the MachineryItem has been powered and performing an activity,” intended for machines “where a distinction is made between switched on and in operation,” such as a drive that is powered but not operating.
- OperationCycleCounter, which counts “the times the component switches from not performing an activity to performing an activity,” for example “each time a valve starts moving.”
All three are defined to be safe for maintenance use: each value “shall only increase during the lifetime” of the item “and shall not be reset when it is restarted.” The specification adds two practical notes. Durations are provided “in milliseconds or even fractions of a millisecond,” and the server “is not expected to update the value in such a high frequency, but maybe once a minute or once an hour, depending on the application.”
The same document defines a lifetime counter building block. Its example shows a component’s parts-produced counter with a start value of 0, a limit value of 1,000 and a warning value of 950, with 553 produced so far, so that clients “can supervise all those counters and indicate when a warning value or the limit value is reached.” That is a usage-based maintenance trigger described in a machine’s own information model.
If you are buying or retrofitting a machine with an OPC UA server, ask whether it implements these counters. Many older machines have no OPC UA server at all; our article on getting data from older machines that don’t speak OPC UA covers the alternatives.
MTConnect counts and timers
CNC machines and other equipment with an MTConnect agent report standard data items. The MTConnect site describes MTConnect as “an open standard for manufacturing data interoperability.” In version 2.7 of its model, PartCount is an “aggregate count of parts,” with subtypes such as PartCount.All, “accumulation of all actions, items, or activities being counted independent of the outcome.” EquipmentTimer reports the “amount of time a piece of equipment or a sub-part of a piece of equipment has performed specific activities,” with subtypes for powered, operating, working and loaded time. For a machine tool, the model describes loaded time as “the time that the cutting tool is assumed to be engaged with the part.” Those subtypes are a useful menu even when your data comes from elsewhere: decide which one each PM task should follow.
Counters and timers in the PLC program
Many machines already count cycles in the PLC. Those counters were usually written for production reporting, so they can be reset at shift change, at batch end or from an HMI button, and they are stored in whatever data type the programmer chose. They are still useful, provided the plant’s software turns them into a meter that never goes backward (see the section on resets below). Any change to the PLC program to add a counter is the plant controls engineer’s decision; reading an existing counter is not a program change.
The machine’s running state
If the line already has production monitoring, the machine state it reads (running, idle, down, planned stop) is a run-hour meter waiting to be used. Accumulate time only in the running state, and the total belongs to the plant’s software, not the PLC, so nothing on the machine can reset it. Our production monitoring service reads exactly these states for downtime and OEE.
An added run signal
On a machine with no usable data, a run signal can be added: an auxiliary contact on the motor starter, or a current sensor on the motor feed, installed by the plant’s electricians or a licensed contractor. The DOE’s O&M Best Practices guide, Release 3.0 describes run-time loggers that are “either optically triggered or take advantage of the electromagnetic characteristics of electrical devices,” and calls run-time measurement low cost and “useful for constant-load devices.” A cycle can be counted the same way from one digital input.
The open-source project Apache StreamPipes published a worked example of usage-based maintenance (April 2025) on an older packaging machine that provides only a boolean “active” flag, read through an S7 adapter. A Boolean Counter processor counts FALSE to TRUE transitions, a Numerical Filter passes the count when it exceeds a threshold (100,000 in the example), and an email notification goes out with a “Silent Period” so the team is not flooded. The pattern is the same whatever tool you use: one clean signal, one edge counted per operation, one threshold.
Whichever sources you use, list every meter in a tag list with its address, data type, unit, update rate and owner. The signal inventory worksheet has those columns, and machine connectivity work starts from the same list.
Turning a run signal into run hours
To turn a run signal into run hours, define what “running” means for the wear you care about, accumulate time only while that condition is true, and count from state changes rather than from individual samples. A run-hour meter is only as good as its definition of running.
Start with the definition. A filler that is powered but starved of bottles is not wearing its drive chain. A conveyor running empty is wearing its belt but not its product guides. MTConnect’s distinctions are a good checklist: powered (power applied), operating (powered or performing any activity, including idle), working (performing a function, under load or not) and loaded (under load). Decide which of those each PM task follows and write it down in the task. For most rotating-equipment tasks working time is the closer match; for electronics, powered time usually is.
Then accumulate correctly:
- Use state changes, not samples. Record the timestamp each time the state enters and leaves running, and add the difference. Summing samples (“it was running at each of these 10-second polls”) adds an error of up to one poll interval per state change.
- Debounce short flickers. A run bit that drops for half a second during a jam reset should not split one run into two. Ignore state changes shorter than a few seconds, and write the rule into the data dictionary.
- Keep the total outside the controller. The accumulated run hours should live in the plant’s software or historian, so a PLC restart, a program download or a replaced HMI cannot reset them.
- Store the running total with every update. A cumulative value, timestamped, lets anyone recompute the meter for any period and check it against the CMMS.
Check the meter against reality before you trust it
Run a new meter alongside the old calendar schedule for two to four weeks before any PM depends on it. Three checks catch most problems:
- Against the shift record. Run hours per shift should never exceed the shift length minus planned stops, and they should move with the downtime log. A shift with a long breakdown should show fewer run hours.
- Against production. Cycles per good unit should be steady for a given product. If the bottle stop cylinder fires once per bottle, its cycle count and the filler’s total count should track each other; a sudden change in the ratio means a mapping error or a counter that stopped.
- Against the machine itself. Where the HMI shows its own hour counter, read it at the start and end of a week and compare the change with the plant meter. A stopwatch on a few cycles confirms the cycle rate.
Write the result of each check into the data dictionary next to the meter’s definition. When a planner later asks why a PM fired early, that record answers the question.
Example (fictional). A fictional beverage bottler’s Line 2 filler runs a first shift from 06:00 to 14:00, 480 minutes. Its machine state shows a 30-minute planned break and 75 minutes of unplanned stops (a bottle feed jam, a wait for caps and a changeover), so the filler is in its running state for 375 minutes. Its run-hour meter advances 6.25 hours for the shift, not 8. The capper chuck inspection is set to every 250 run hours. On the calendar it used to fall every month; at about 6.25 run hours a shift and two shifts a day, five days a week, the filler accumulates about 62.5 run hours a week, so the inspection now falls due about every four weeks, and later in any week with less running.
Counter resets, rollover and gaps
A raw counter misleads in three ways: it goes backward when someone resets it, it goes backward when it reaches the top of its range and wraps, and it jumps when data stops arriving and then resumes. Each needs its own rule, and the plant’s meter must never go backward because of any of them.
The rules, applied each time a new reading arrives:
- Compute the change from the previous reading: new value minus old value.
- If the change is zero or positive, add it to the plant meter.
- If the change is negative and the old value was near the top of the counter’s range, treat it as a rollover: add the counter’s full range to the change (65,536 for any 16-bit value, or the preset plus one if the program wraps the counter at a preset), then add the result.
- If the change is negative and the old value was not near the top, treat it as a reset: add the new value as the change, because the counter has counted up from zero since the reset.
- If the change is larger than the machine could physically produce in the elapsed time (maximum rate multiplied by elapsed time), do not add it automatically. Flag it for a person to check; it usually means a program download, a counter preset or a mapping error.
- Log every rollover, reset and flag with its timestamp, so the meter can be audited.
Know the range before you trust a counter. The ranges are arithmetic: a 16-bit signed integer tops out at 32,767, a 16-bit unsigned integer at 65,535, and a 32-bit signed integer at 2,147,483,647. A cycle counter at 120 cycles per minute reaches the top of a 16-bit signed integer in about four and a half hours of running, and of a 16-bit unsigned integer in about nine. What happens at the top depends on the controller and the program: some counters wrap to zero, some wrap to the most negative value, and some stop at the maximum and set an overflow bit. Find out which before writing the rule. A counter that stops at its maximum is the worst case, because it silently stops counting; flag any counter that holds its maximum value for longer than a few minutes of running. A millisecond duration, such as the OPC UA operation counters, overflows a 32-bit signed integer at about 596.5 hours if a gateway or database stores it in that type. Check the data type at every hop: controller, gateway, historian and CMMS.
Example (fictional). A fictional plant reads a capper’s cycle counter, a 16-bit unsigned value that wraps to zero after 65,535, once a minute. At 09:59 it reads 65,480. At 10:00 it reads 58. The old value was within a few dozen of the top, so the rule treats this as a rollover: the change is 58 minus 65,480 plus 65,536, which is 114 cycles, in line with about 120 a minute. At 14:01 the counter reads 18,950, and at 14:02 it reads 72 after an operator pressed the shift reset on the HMI. The old value was nowhere near the top, so this is a reset, and the change for that minute is taken as 72. The plant meter keeps climbing through both events, and the log shows one rollover and one reset for the day.
Gaps are the third case. If the network link or the gateway goes down, readings stop and then resume with a larger jump. A counter that only increases handles this well: the first reading after the gap carries the whole change. Run time built from state changes is harder, because the state changes during the gap are lost unless the gateway buffers them. That is one reason to configure the gateway to store readings locally while the link is down and send them when it returns, a pattern covered in our article on store and forward at the edge. Where a gap cannot be filled, record it, and decide in writing whether the missing time counts as running, as not running, or is estimated from the production count.
Reconciling machine counts with the CMMS meter
Keep one meter per asset and task type, owned by one system, and send the CMMS a cumulative reading on a fixed schedule. Decide which system fires the PM, and make sure only that system fires it. Most duplicate and missing PMs come from two systems each believing they own the trigger.
The DOE O&M guide lists “calendar- or run-time-based preventive maintenance work order generation” among the typical functions of a CMMS. So the usual question is not whether the CMMS can do usage-based PM, but where the reading comes from and who fires the work order. There are two workable designs:
- The CMMS fires the PM. The plant’s software sends cumulative meter readings into the CMMS meter on a fixed cadence (once a shift, or once a day), and the CMMS generates the work order when its meter reaches the interval. This keeps all PM logic in one place that planners already know.
- The plant’s software fires the PM. It watches the meter and creates the work order in the CMMS through its interface when the warning point is reached, with the meter value attached. This allows warnings based on run rate and lets the trigger see the machine state directly.
Either works. Running both at once does not. If the CMMS has meter-based PM schedules and the plant’s software also creates work orders, every PM fires twice.
Rules that keep the two sides in agreement:
- Send cumulative readings, not deltas. A cumulative reading that arrives twice does no harm; a delta that arrives twice doubles the usage.
- Never send a reading lower than the last one unless the meter has been formally replaced. If the plant meter is rebuilt after a data problem, record a meter replacement in the CMMS with the old and new values.
- Give each work order a unique key, for example asset, task and the meter value at which it fell due. If the same key arrives again, the CMMS should update the existing work order, not create a new one.
- Record the meter reading on completion. The next due point is calculated from it, so a work order closed without a reading breaks the chain.
- Reconcile every week. For each asset, compare the change in the plant meter with the change in the CMMS meter over the same week. They should match exactly when readings are cumulative. A difference points at a missed transfer, a manual entry or a replaced machine.
Example (fictional). A fictional bottler’s weekly reconciliation report lists eight meters. Seven match exactly. The Line 2 case conveyor shows 61.4 run hours in the plant meter and 0 in the CMMS for the week. The CMMS administrator finds that a technician replaced the conveyor’s drive and, following an old habit, entered a manual meter reading of 0 in the CMMS. Readings sent after that were rejected as lower than the manual value. The administrator records a formal meter replacement, the automatic readings resume, and the conveyor’s belt inspection, which had silently stopped counting, falls due two days later.
Designing the trigger: interval, warning band and grace
A good usage trigger has three points: a warning point where the work order is created, the due point where the interval is reached, and the end of a grace window after which the PM counts as late. Set the warning point from how long the planner needs, converted into usage at the machine’s normal run rate.
The OPC UA lifetime counter shows the shape. Its example sets a start value, a warning value of 950 and a limit value of 1,000 parts. For a PM trigger, work in the same terms:
- Interval (I). The usage at which the task is due, for example 250 run hours.
- Warning point. I minus the planner’s lead time multiplied by the typical usage rate. If the planner needs a week and the machine runs about 62 run hours a week, the warning goes out at about 190 run hours. If the planner can fit it into the next few shifts, 225 run hours is enough.
- Grace window. How far past I the work can go and still count as on time. The PM compliance calculator asks you to state your compliance window, for example “within 10% of the PM interval,” and keep it fixed. For a 250-hour task, a 10% window ends at 275 run hours.
- Calendar ceiling. A date limit for time-driven deterioration, applied with “whichever comes first.”
Where the next interval starts
When the task is done, the next due point can be set two ways:
- From completion. Next due equals the meter at completion plus I. If the work was done at 262 run hours, the next is due at 512. This keeps the interval between services constant, which matches the wear, and is the better default for wear-driven tasks.
- From the scheduled due point. Next due equals the previous due point plus I, so 500 in the same case. This keeps the PMs on a fixed grid, useful when several tasks are grouped on one stop, but a late PM leaves a shorter interval for the next one.
Pick one per task and record it. Mixing them across similar tasks makes compliance numbers hard to compare.
Example (fictional). The Line 2 filler’s capper chuck inspection is due every 250 run hours. A work order is created in the bottler’s CMMS at 225 hours, which gives the planner 25 run hours, about four shifts like the one in the earlier example, to fit it into a planned stop. The grace window is 10%, so the task is on time up to 275 run hours. The task also has a calendar ceiling of 90 days for the weeks when the line runs short. The technician completes it at 262 run hours on a Saturday stop and records the meter reading; the next inspection is due at 512 run hours, with its work order created at 487.
Avoid the common trigger mistakes
- No warning point. A work order created at the due point is already late for any task that needs parts or a stop.
- A warning point in calendar days on a usage task. “One week before due” means nothing when the due date moves with production. Convert the lead time into usage.
- Thresholds hidden in code. Put each interval, warning point, grace window and ceiling in the task record, where planners can read and change them, and log changes.
- Resetting the meter at completion. Keep the meter cumulative and move the due point instead. A reset meter destroys the history you need to review intervals.
Combining usage with condition data
Usage sets the baseline for when a task falls due; condition data can pull a task forward when something looks wrong, or justify a longer interval when the as-found condition is consistently good. The two are complements, and the strongest schedules use both.
PNNL’s oil example makes the point. Changing oil by miles is a usage-based task; having the oil analyzed and extending the change “until the vehicle had traveled 10,000 miles” is a condition-based decision, and PNNL notes that while analysis may cost too much for a car, “performing this analysis on a large rotary screw compressor where oil volumes are measured in gallons may make more sense.” The same split applies to plant equipment:
- Pull forward. A gearbox whose temperature runs above its band for a week, or a motor whose current rises at the same load, gets its usage-based inspection now, not at the next meter point. The meter still runs; the condition just overrides it.
- Extend with evidence. Where oil analysis, vibration readings or as-found codes stay good across several intervals, lengthen the usage interval one step and keep watching.
- Normalize condition by usage. Express wear per 100 run hours or per 10,000 cycles, not per week. A chain that stretches 0.1% per 100 run hours tells you more than one that stretched 0.4% last month, if last month was a short month.
Standards bodies treat usage as a basis for life estimation in its own right. The public description of ISO 13381-1:2015, on prognostics for machines, lists “cyclic-driven life usage techniques” among the forms of prognostic approach its later parts cover, alongside trending and remaining-life models. For a small plant, the practical version is simple: count usage honestly, record as-found condition at each task, and let both inform the next interval. Our articles on condition-based vs predictive maintenance and on motor current or vibration monitoring cover the condition side.
A worked setup for one line
A first usage-based setup should cover a few high-value tasks on one line, each with a named meter source, an interval, a warning point, a grace window and a calendar ceiling where needed. The fictional example below shows what that looks like when it is written down.
Example (fictional). A fictional bottler moves five PM tasks on Line 2 from the calendar to usage. Typical running is about 62 run hours a week on the filler and about 70 on the conveyors.
| Task | Meter source | Interval | Warning point | Grace | Calendar ceiling |
|---|---|---|---|---|---|
| Capper chuck inspection | Filler running state | 250 run hours | 225 run hours | 10% | 90 days |
| Infeed conveyor gearbox oil change | Conveyor running state | 2,000 run hours | 1,850 run hours | 10% | 12 months |
| Labeler vacuum pump inlet filter | Pump run signal from starter contact | 500 run hours | 450 run hours | 10% | 6 months |
| Filler bottle stop cylinder inspection | Cycle counter in the PLC, 16-bit, reset each shift | 2,000,000 cycles | 1,800,000 cycles | 10% | None |
| Case conveyor belt inspection | Conveyor running state | 160 run hours | 140 run hours | 10% | 30 days |
The cylinder’s counter needs the reset and rollover rules, so the plant’s software keeps the cumulative meter and the PLC counter is never used directly. The conveyor gearbox gets a warning point 150 hours early because oil and a planned stop take about two weeks to arrange. All five meters send cumulative readings to the CMMS at the end of each shift, the CMMS fires the work orders, and the weekly reconciliation compares the two sides. After three months the planner reviews the as-found codes on all five tasks before moving any interval.
Notice what the table does not contain: a single date. Every task due point moves with production. That is the point of the change, and it is also why the planner needs a forecast of PMs due in the coming weeks, built from planned production hours, not from last month’s count.
The forecast is a short calculation per task: usage remaining until the warning point, divided by planned usage per day. Suppose, hypothetically, the capper chuck meter stands at 180 run hours and the production plan calls for two shifts a day at about 6.25 run hours each, 12.5 run hours a day. The warning point at 225 hours is 45 run hours away, about 3.6 days of planned running, so the work order will appear on day four, and the task falls due about two days later. Run that calculation for every usage task each week and the planner sees the coming workload the same way a calendar schedule would show it, with the difference that it moves when the production plan moves.
Checklist before you switch a PM to usage
Run this list for each task before moving it off the calendar:
- The failure mode is driven by use, and the meter type matches it (run hours, cycles, parts, powered hours).
- “Running” is defined for that task and written into the data dictionary.
- The meter source is listed in the signal inventory with its address, data type, unit, update rate and owner.
- The meter never goes backward: resets, rollovers and implausible jumps are handled and logged, and the data type range has been checked at every hop.
- Gaps are handled: the gateway buffers readings during outages, and the rule for unfilled gaps is written down.
- One system fires the PM, and the other only stores readings.
- Readings sent to the CMMS are cumulative, on a fixed cadence, with a weekly reconciliation.
- The trigger has a warning point in usage terms, a grace window that matches your compliance window, and a calendar ceiling where time-driven deterioration applies.
- Completion records the meter reading, and the next due point is set from completion or from the scheduled due point, by a rule stated in the task.
- The as-found code is recorded at every close-out, so the interval can be reviewed with evidence.
Start with one line and five tasks, run the weekly reconciliation for a month, and only then move more tasks. The PM compliance calculator works the same way for usage-based tasks once the window is defined in usage terms.
OpenGXT builds, hosts and maintains cloud software that reads machines and meters through open protocols and turns the data into shift-level answers. Its maintenance software counts run hours only in the running state, takes cycles from the machine’s own count, creates work orders with a warning beforehand, and integrates with the CMMS you already have rather than replacing it. If you want to work out which of your PM tasks should move to usage first, contact us.
