Skip to main content
IoTFlows Logo
IoTFlows Logo
Shopping Cart

Part counting methods and which one fits your machine

Count parts from machine cycles, a beam break, the controller’s counter or a hand tally. Match a method to CNC, molding, presses and packaging, then check it.

Applications Engineering Team, IoTFlows

12 min read

Updated

The counting method that fits your machine depends on where one part becomes visible. Count machine cycles and multiply by the parts each cycle makes on a CNC, a press or a molder. Count beam breaks where finished units pass one point in single file, as on a packaging line or a bagger. Read the controller’s counter when the machine already reports one, and keep a hand tally to prove the others.

This guide is for manufacturing engineers choosing how to count across a mixed floor. It covers how each signal becomes a count, a machine-by-machine table, the errors each method makes and one validation worked two ways. How a sensor tells running from stopped is a separate question, answered in how a sensor knows a machine is running.

Key takeaways

  • Count machine cycles and multiply by parts per cycle when each cycle makes a fixed number of parts.
  • Count beam breaks when finished units pass one point in single file, such as after the last reject on a packaging line.
  • A controller counter adds program names and good or bad splits, but check whether it counts cycles or parts.
  • An exact multiple of the hand tally is a parts-per-cycle setting; an uneven error is the detector.
  • Validate every new count against a hand tally and the machine’s own cycles before anyone reports from it.

What are the four ways to count parts?#

There are four sources of a part count: the machine’s own cycle, a beam break at a fixed point, the controller’s counter and a person with a tally. Each counts a different event, so each answers a slightly different question.

Definition

Part count is the number of parts a machine or line made in a window, built from one countable event, such as a machine cycle, a beam break or a controller tick, multiplied by the number of parts each event yields.

MethodOne count meansNeedsBest at
Machine cyclesOne cycle of the machineA sensor on the machineAny machine, any age
Beam breakOne unit passing a pointA clear single-file pathLine output after rejects
Controller counterOne tick of the controlA connection to the controlProgram names, good and bad
Hand tallyOne part a person sawTime and attentionProving the other three
The first two count from outside the machine. The controller counter reads inside it.

The event decides what the number means. A cycle count says what the machine did, including scrap and setup pieces. A beam after the last reject station says what the line shipped. The rest of this guide takes each method in turn.

How does a machine cycle become a part count?#

A machine cycle becomes a part count when a rule decides where one cycle ends, counts those ends, and multiplies the total by the parts each cycle yields. The rule has to match the shape of the machine’s signal.

Part count =

Detected cycles × parts per cycle

Definition

Detection algorithm is the rule that decides, from a sensor’s signal, when one machine cycle has finished, which sets both the part count and the measured cycle time for the operation the machine is running.

The glossary entry for detection algorithm uses the same meaning. Three signal shapes cover most machines, and each takes a different rule.

Each signal shape takes its own counting rule; the dots mark what becomes a count. Sample data.

One burst per cycle#

A CNC mill vibrates while it cuts and falls back to idle while the operator unloads and reloads. Count one cycle each time the trace falls back to idle and stays there.

Merge short dips back into the burst they interrupt. A tool change or a probe move drops the trace for a few seconds without finishing the part, so a rule that counts every dip splits one part into two. Counting bursts also beats dividing run time by an average cycle when the job mix changes, as the CNC part-count guide works through.

One impact per part#

A stamping press makes one part per stroke, and each stroke is a sharp impact. At 10 to 120 strokes a minute, a rule that merges nearby events merges real parts, so count every impact on its own.

The exception is a heavy press whose ram rebounds and rings twice per stroke. That press counts close to double under an every-impact rule. Move it to the merging rule, or count at the exit chute with a beam instead.

A trace that never drops#

An injection molder at temperature cycles without resting: clamp, inject, hold, cool, eject. The trace stays up through every shot, dipping for a second or two at mold open, so there is no fall to idle to count.

Divide running time by the measured cycle time instead.

Cycles =

(Running time)
÷
(Measured cycle time)

Here the cycle time is the divisor, so its accuracy is the count’s accuracy. For example, a molder that really runs a 22-second shot but is entered at 21 seconds reports 3,600 ÷ 21 = 171 shots an hour instead of 3,600 ÷ 22 = 164, about 4.8% high. Time 10 to 20 consecutive shots on a good day, and see setting the ideal cycle time for why the number needs an owner.

Parts per cycle#

Every cycle count needs one multiplier: the parts one cycle makes. A four-cavity mold makes 4 parts per shot, a two-out die 2 parts per stroke and a four-station vise fixture 4 parts per cycle.

Keep the cycle time per cycle and put the multiple in the quantity per cycle setting. Halving the cycle time instead gets the part count right on a division rule and every rate, goal and gauge wrong.

When does a beam break count better?#

A beam break counts better than a machine cycle when finished units travel a fixed path in one direction and the number you report is what left the line. A laser or light beam across the path registers one count each time a unit interrupts it.

That makes the beam the right method for packaging lines, baggers, case packers and conveyors carrying output from several machines. On a filling line, no single machine’s cycle is the line’s output, and a filler, a capper and a case packer each run their own rhythm.

The count point decides what the number means. Put the beam after the last reject or divert station, so the count is good output rather than attempts. Four rules pick the exact spot:

  • Single file. A beam across a conveyor two units wide counts neither lane reliably.
  • Off accumulation. A unit that backs up and drifts forward crosses the beam twice.
  • A gap between units. Two cartons touching end to end break the beam once for two.
  • An opaque feature. Clear glass and film may pass without breaking the beam, so aim at the cap or the label band.

One break is whatever the beam sees. Aimed at single bottles, one break is 1 bottle. Aimed at cases leaving a packer, one break is a case, so a 24-count case carries a multiplier of 24. The packaging line guide covers count points in detail.

A beam also counts parts leaving a press, at the exit chute. Choose it there when the press misfeeds or rings more than once per stroke, because the exit count includes only parts that cleared the die.

When should you read the controller’s counter?#

Read the controller’s counter when the machine already reports one, IT has approved the connection, and you need what only the control knows: which program ran, which job it belonged to and how many parts it marked good or bad. A connection to the control is a security concern for many plants, and IT usually reviews it first.

Check first whether the counter counts cycles or parts, because the standards keep them apart. MTConnect defines a cycle count as the “accumulation of the number of times a cyclic function has attempted to, or is planned to attempt to execute”,[1] and a part count as an “aggregate count of parts”.[2]

Packaging machines that follow PackML split the count by quality instead. The standard’s example of its processed count is “the number of products that were made, including all good and defective products”, and the processed count minus the defective count is the non-defective output.[3]

Molding machines on the OPC UA plastics model report JobCycleCounter, “the number of finished cycles in the job”, beside separate counters for good, bad and test sample parts.[4] The mold’s cavity count is NumCavities, an optional property, so confirm your machine fills it in before you trust a part count built on it.[5]

Counter questionWhy it matters
Cycles or parts?A cycle count needs parts per cycle
Good, bad or both?Processed counts include rejects
Does it reset?A job counter restarts with each job
When was it last reset?A reset mid-window breaks the check

Choose the controller counter when you need program or job names on every count. Default to a sensor where the fleet mixes builders and decades, or where some machines have no network port at all. The sensor versus PLC comparison sets out what each approach sees, with its sources.

Where do manual counts still fit?#

Manual counts still fit in two places: as the reference that proves every automatic count, and as the record where no machine signal separates the parts. Everywhere else, a hand count is slower and less frequent than the machine.

People count in three ways. A tally sheet marks parts as they come off. A count at packout multiplies full totes or cases by their standard quantity. A count by weight divides a bin’s net weight by the weight of one part, measured over 50 parts.

A hand count carries no timestamps, so it cannot show an hourly rate or when the machine stopped. A count written at the end of a shift is also a count from memory. Log it hourly when it is the record, for example at a hand-assembly bench where no machine cycle exists.

Which method fits each machine type?#

The method that fits each machine follows from its signal: count bursts on a CNC, every impact on a press, run time divided by the cycle on a molder, and beam breaks on a packaging line or a bagger.

MachineSignal between partsCounting methodParts per count
CNC mill or latheFalls to idle at each loadCount bursts, merge dipsParts per fixture, often 1
Bar-fed lathe, one jobNever falls to idleRun time ÷ cycle time1
Injection molderStays up, brief mold-open dipsRun time ÷ shot timeWorking cavities
Stamping pressOne sharp impact per strokeCount every impactOuts per stroke, often 1
Packaging lineUnits pass single fileBeam after the last reject1 per unit, or case count
BaggerOne bag per dischargeBeam at the discharge1 per bag
The machine-by-machine guides for CNC, molding and packaging cover mounting, setup and the hand check for each.

A molder with an operator loading inserts by hand waits between shots, so it counts like a CNC. A bar-fed lathe running one job unattended never rests, so it counts like a molder. The signal decides, not the machine’s name.

Ask the questions in order; the first yes picks the method, then multiply by the parts each count yields.

You don’t need two methods on one machine whose count already validates. A second counter is a second thing to calibrate and a second number to argue about.

What makes a part count wrong?#

A part count goes wrong in one of three places: the signal, the rule that finds cycles in it, or the multiplier that turns cycles into parts. The shape of the error tells you which.

FailureWhat you seeFix
Merged cyclesLow by an uneven amountCount every impact instead
Double countsHigh, near but not exactly 2×Merge the second ring
Multi-cavity mold left at 1Exactly ½, ⅓ or ¼ of the truthSet the working cavities
Parts per cycle set too highExactly 2, 3 or 4 times the truthSet the parts one cycle makes
Cycle time off on divisionError grows with running timeRe-time 10 to 20 cycles
Beam misses unitsLow, on clear or touching unitsAim at an opaque feature
Divide the system count by the hand tally and read the ratio, not the difference.

Merged cycles happen when two fast parts land inside one burst, for example a press at 90 strokes a minute on a rule that merges dips. Double counts happen when one part rings twice on an every-impact rule, or a unit crosses the beam twice on an accumulation table.

Multi-cavity molds fail in two ways. A four-cavity mold left at 1 reports a quarter of its output. A four-cavity mold running with one cavity blocked makes 3 parts a shot, so a setting of 4 overcounts by one part in three, as the molding guide shows.

Check parts per cycle before you touch the rule. An exact multiple is almost never the detector, and no rule change fixes a multiplier. The part-count troubleshooting guide works each symptom through to a fix.

Count parts automatically with IoTFlows#

IoTFlows counts parts from each machine’s own signal, with no PLC connection. A magnetic SenseAi reads the machine’s vibration and sound and takes one of three detection algorithms: Discrete Analysis counts one burst per cycle and merges short dips, Discrete w/o Merge counts every impact, and Continuous Analysis divides running time by the cycle time.

A BeamTracker, an IP67 laser counter that bolts on in 10 to 20 minutes, runs Counter: each beam break is one cycle, with ±2% count accuracy.

Every operation carries a quantity per cycle, so cavities, multi-out dies and case counts multiply correctly. The algorithm comparison sets all four side by side.

The visibility into operator performance was eye-opening. We could immediately see which team members needed additional training to reach target speeds. Within weeks of targeted coaching based on the IoTFlows data, our newer operators were hitting 30 bags per minute. The downtime tracking also revealed setup procedures we could streamline. This platform has transformed how we manage our bagging operations.

Juan Perez, Warehouse Operations Manager, Criollos FoodsRead the story

How do you validate a count by hand?#

You validate a count by comparing it with a hand tally over the same window, twice: once in parts and once in cycles. The parts ratio tells you whether the count is right. The cycles ratio tells you whether the detector or the multiplier is wrong.

Count accuracy =

(System count)
÷
(Hand tally)
  1. Pick a window and a reference

    Run the machine normally for 20 minutes to two hours on one operation. Use a hand tally of parts, and the machine’s own stroke or shot counter if it has one.

  2. Read both counts for the same window

    Note the system’s part count, its cycle count and the hand tally for the same start and end times. Most disagreements are two people reading two windows.

  3. Divide parts by parts

    Divide the system’s parts by the hand tally. At 95 to 105%, leave the setup alone.

  4. Divide cycles by cycles

    Divide the system’s cycles by the machine’s real cycles. A cycles ratio of 1 with a parts ratio off is the multiplier; both off by the same ratio is the detector.

Worked example

For example, a two-out die on a stamping press

  • The press runs 30 strokes a minute with a two-out die, so it makes 2 parts per stroke.
  • Window: 20 minutes of running with no stops. The press’s stroke counter moves from 48,210 to 48,810, which is 600 strokes.
  • Hand tally: 24 totes packed 50 to a tote, which is 1,200 parts. That agrees with 600 strokes × 2 = 1,200.
  • The system reports 2,316 parts at 2 parts per cycle, which is 1,158 detected cycles.

Way 1, in parts: 2,316 ÷ 1,200 = 1.93. Way 2, in cycles: 1,158 ÷ 600 = 1.93. Both ratios match and neither is a clean 2, so the multiplier is right and the detector finds about 1.93 events per stroke: the ram rings twice on most strokes. Moving the press to the merging rule, the next 20-minute window reads 1,192 parts, or 596 cycles, against 1,200 parts and 600 strokes.

Accuracy after the fix = 1,192 ÷ 1,200 = 99.3% in parts, and 596 ÷ 600 = 99.3% in cycles

Had the die been set to 4 parts per cycle with a clean detector, the system would read 2,400 parts from 600 cycles. The parts ratio would be exactly 2.00 and the cycles ratio exactly 1.00, which points at the setting, not the sensor.

Validate with ten parts first, then with a longer window, as the first-count quickstart describes. A count that matches part for part is right. A shift total that lands near the truth can hide two errors that cancel, and stamping lines get their own walkthrough in how to monitor stamping presses.

Questions#

Can one sensor count parts on any machine?#

A vibration sensor counts parts on any machine whose cycle shows up as a burst, an impact or a steady trace, which covers most CNC machines, presses and molders. It cannot tell units apart on a conveyor carrying output from several machines. Count those units with a beam across the conveyor at a point they pass in single file.

Should I count strokes or parts on a stamping press?#

Count strokes when every stroke makes a known number of parts, then multiply by the parts per stroke, such as 2 for a two-out die. Count parts at the exit chute with a beam when the press misfeeds often or rings more than once per stroke, because the exit count only includes parts that cleared the die.

Does an automatic part count include scrap?#

Yes. A cycle count and a beam count both record gross output, so startup pieces, test parts and rejects are counted with the good ones, unless the beam sits after the last reject station. Log scrap with a reason and subtract it, or compare gross with gross when you check the count against an ERP figure.

How many parts should I hand count to validate a count?#

Count at least ten parts or ten cycles against the same window the system reports, then repeat over a longer run of 20 minutes to two hours. A count that matches part for part over ten parts is right. A shift total that lands near the truth can hide two errors that cancel each other.

Written by

Applications Engineering Team, IoTFlows

Sources#

  1. CycleCount, MTConnect SysML Model V2.5, MTConnect Institute. Accessed Oct 27, 2026
    model.mtconnect.org/Version2.5/ObservationInformationModel/ObservationTypes/EventTypes/CycleCount
  2. PartCount, MTConnect SysML Model V2.5, MTConnect Institute. Accessed Oct 27, 2026
    model.mtconnect.org/Version2.5/ObservationInformationModel/ObservationTypes/EventTypes/PartCount
  3. OPC 30050: OPC UA for PackML, Common Object Model, version 1.01, OPC Foundation. Accessed Oct 27, 2026
    reference.opcfoundation.org/specs/OPC-30050/full
  4. OPC 40083, OPC UA for Plastics and Rubber Machinery, General Type Definitions: 18.4.7 ActiveCyclicJobValuesType, OPC Foundation. Accessed Oct 27, 2026
    reference.opcfoundation.org/specs/OPC-40083/18.4.7
  5. OPC 40083, OPC UA for Plastics and Rubber Machinery, General Type Definitions: 18.2.11 CyclicJobInformationType, OPC Foundation. Accessed Oct 27, 2026
    reference.opcfoundation.org/specs/OPC-40083/18.2.11