Code readingApplication note

Barcode scan timestamps to track part cycle time per workstation

Collect scan timestamps with barcode readers at six station boundaries and turn them into the cycle time of every part: wiring, rules, worked example.

LumaSpec Vision10 min read Share on LinkedIn

On this page 9 sections
  1. 01The decision: six scan points, one host, one clock
  2. 02What a scan actually stamps
  3. 03Three ways to wire six readers to one host
    1. USB handhelds with a station prefix
    2. Ethernet readers over TCP
    3. Wireless handhelds with a base station
  4. 04Mounting the scan points
  5. 05Worked example: from six stamps to a daily report
  6. 06Checks before you order
  7. 07When the usual answer is wrong
  8. 08Parts list and next step
  9. 09Questions

You run a five-station manual cell in single-piece flow, roughly 100 pieces a day, and the improvement project starting this quarter needs processing time per part at every station. The system that fits is also the simplest: a barcode scan at the entry of each workstation plus one at the exit of the last — six readers feeding one logging host, and timestamps. The arithmetic does the measuring, so no per-scanner PLC is needed. This guide gives the wiring options, the data rules that keep timestamps trustworthy, a worked example from six stamps to a daily report, and the parts to order.

The decision: six scan points, one host, one clock

With one piece in the cell at a time, a station's cycle time is the gap between two stamps:

station time(k) = t(scan k+1) - t(scan k) total lead time = t(scan 6) - t(scan 1)

The whole system therefore reduces to six timestamped records per part. Six scan points at 100 pieces a day produce 600 records (6 × 100); at about 60 bytes per row — station ID, part ID, timestamp, status — a 90-day study accumulates 54,000 rows and 3.2 MB (54,000 × 60 B = 3.24 MB). Any logging host holds that easily.

Clock precision is not a constraint at this scale. A 7.5 h shift of 27,000 s at 100 pieces sets a takt of 270 s per piece (27,000 / 100). Stamps at 1 s resolution add at most 2 s of error to an interval: 2 / 270 = 0.74%. Stamp on receipt at one host and there is exactly one clock to trust.

What a scan actually stamps

The stamp marks the moment the traveler crosses a boundary. With single-piece flow and no queue, the interval is the station's process time. If the cell takes on queuing later, the interval becomes wait plus process; add a scan at every station exit — twelve points in all — only when you need the two separated.

Three rules keep the table trustworthy. Give each physical piece a unique ID: if one invoice line covers several pieces, append a sequence number so every traveler pairs with its own neighbours. Ignore a repeat of the same ID at the same station within 3 s: a double trigger lands inside about 2 s, while a genuine return to the same station takes minutes in a cell moving one piece per takt. And validate order: every ID must appear exactly once per station, in rising station order — a missed scan merges two intervals in a way no later edit can split.

Three ways to wire six readers to one host

The log line must say which boundary sent it. Three patterns cover every layout:

Wiring Station identified by Run to the host Fits when
USB handhelds a station prefix programmed into each reader a USB run per reader, metres, not tens of metres the host sits inside the cell
Ethernet readers over TCP the reader's network address one RJ45 run per reader, up to 100 m per run the host lives in a cabinet or office
Wireless handhelds plus a base the base or reader ID the line carries no cable to the station; power at the base an aisle or a machine blocks the run

For a 90-day study the default is Ethernet: the log arrives self-labelled and standard runs reach anywhere in a cell. USB wins when the host can sit among the stations. Reserve wireless for the one or two boundaries a cable cannot reach. If the stamps must later trigger machine actions, that becomes a controller project, and the scanner input methods guide compares the serial, USB and Ethernet paths into a PLC.

USB handhelds with a station prefix

Keyboard-wedge readers on one PC all type into the same cursor, so program each reader to prepend its station code. The station-prefix programming guide shows the reader side and the preamble and serial capture guide the host-side parsing; the HID keyboard mode versus serial port guide covers when HID mode is the wrong pick. A wired USB handheld is the least wiring available at a boundary:

Handheld code readersHikrobot MV-IDH2000P/13NR/05RN/U Industial Wired Handheld Code ReaderMV-IDH2000P/13NR/05RN/U
Interface
USB
Connection
Wired
$179.00View part

Ethernet readers over TCP

Each reader carries a network address, so the log line names its own boundary and no prefix parsing is needed. The TCP client or listener guide covers the two socket roles. Latency is a non-issue even on the slowest reader link: a 20-character line at 9,600 baud with 8N1 framing takes 20 × 10 / 9,600 ≈ 21 ms to arrive, under a hundredth of a percent of a 270 s takt, so stamping on receipt is safe. Past a switch or across the aisle, a Fast Ethernet handheld reaches the same host over the plant network:

Handheld code readersHikrobot MV-IDH3000/13NR/05RN/LE Industrial Wired Handheld Code Reader (IP LAN)MV-IDH3000/13NR/05RN/LE
Interface
Fast Ethernet
Connection
Wired
$379.00View part

Wireless handhelds with a base station

Where a run would cross an aisle or a fixed machine, a wireless handheld pairs with a base that sits on the network; the cordless base-station guide walks that link end to end. Reserve wireless for the boundaries that need it — each base is one more powered device to maintain:

Handheld code readersHandheld industrial barcode reader, 1.0 MP (LS-HCR-0002)LS-HCR-0002
Resolution
Up to 3 MP
Shutter
Global
Interface
Ethernet
Connection
Wireless
$539.00View part

Mounting the scan points

Handheld readers live in cradles at the boundaries; the operator scans the traveler while taking the part. A clean Code 128 label decodes on trigger in a fraction of a second, so the scan adds nothing measurable to a 270 s takt.

The boundaries you cannot afford to lose deserve a fixed reader over a part nest: the part's presence fires the scan, so a forgotten scan becomes impossible. Keep the traveler label inside the reader's focus band and print it matte — laminated gloss throws glare, which the barcode preprocessing guide treats alongside rotation and blur. A compact USB 2.0 reader covers a nest at its 60-120 mm reading distance:

Fixed code readersCompact fixed industrial barcode reader, 1.2 MP, USB 2.0, 60-120 mm reading distance (LS-CRD-0047)LS-CRD-0047
Resolution
Up to 3 MP
Shutter
Global
Interface
USB
$559.00View part

Cable the runs along the cell frame. Locking RJ45 data cable in a 15 m length reaches a host cabinet at the far end of the cell:

CablesCamera Data Cable, RJ45 (with locking stud), Bend (up) to RJ45, 15 m (LS-CBL-0117)LS-CBL-0117
Type
Camera data cables
Length
15 m
$89.00View partBuild a system with it

Worked example: from six stamps to a daily report

Part 2317-04-07 crosses the six points, and the logger stores:

# Boundary Host stamp
1 Cell entry (start of station 1) 08:12:05
2 Station 1 exit / station 2 entry 08:19:40
3 Station 2 exit / station 3 entry 08:26:12
4 Station 3 exit / station 4 entry 08:33:58
5 Station 4 exit / station 5 entry 08:41:03
6 Station 5 exit 08:47:29

Subtracting neighbours gives the report row:

Station Arithmetic Elapsed
Station 1 08:19:40 - 08:12:05 7 min 35 s = 455 s
Station 2 08:26:12 - 08:19:40 6 min 32 s = 392 s
Station 3 08:33:58 - 08:26:12 7 min 46 s = 466 s
Station 4 08:41:03 - 08:33:58 7 min 5 s = 425 s
Station 5 08:47:29 - 08:41:03 6 min 26 s = 386 s
Total lead time 08:47:29 - 08:12:05 35 min 24 s = 2,124 s

Cross-check by summing the intervals: 455 + 392 + 466 + 425 + 386 = 2,124 s.

Against the 270 s takt, station 1 at 455 s runs 185 s over, or 1.69× takt (455 / 270). That station caps the cell at 27,000 / 455 = 59 pieces a day against the 100 target. Pull station 1 down to takt and the same arithmetic gives 27,000 / 270 = 100. That is the report doing its job on day one.

Flag any interval above twice the station's rolling median. A part left sitting at a boundary between shifts shows, say, 14 h — 50,400 s against a 400 s median. Report it as dwell, not process time, and keep it out of the averages.

Checks before you order

Run five checks before the order goes in:

  • Print 20 traveler labels and scan them with the intended reader at the intended mounting distance; label size and glare failures show up in minutes.
  • Count the runs from the layout drawing — one per reader to the host or switch — and pick cable lengths from the drawing, not from the box.
  • Reserve one switch port and one power point per wired reader and per wireless base.
  • Build the three rules into the logger before day one: unique ID per piece, 3 s debounce, consecutive-station order.
  • Trial one shift against five hand-timed parts. The stamps should agree with the stopwatch within a couple of seconds; if they do not, the clock or the framing is wrong.

When the usual answer is wrong

The design assumes the cell stays single-piece flow. If operators start batching parts, intervals stop meaning process time: restore one piece in hand, or add entry and exit scans at every station — twelve points — so each station is measured directly.

It also assumes the traveler label survives the process. A smeared or torn label produces exactly the missed-scan gap, so reprint on synthetic stock in wet or abrasive work.

And it assumes reporting, not control. The moment a stamp must trigger a machine action, move to a controller with a real handshake: the PLC handshake queue guide shows the queue that loses no scans, the scan-to-flag latency guide shows how to shorten the response path, and the PLC link planning guide covers the link itself if the host is a controller from day one.

Parts list and next step

The hardware list is one reader per boundary: six handhelds for operator-scanned points, or five handhelds and one fixed reader over the most critical nest. Start from the handheld code readers and fixed code readers categories, add cable from the cables page, or filter by interface and mount in the code reader finder. The host can be any small industrial mini PC mounted inside the cell cabinet. More station-floor patterns sit on the code reading topic page, and if you want the layout checked against a parts list, contact us.

Build the whole station

The configurator matches a camera, lens, light, light controller and cables to each other, step by step, and lists only parts that fit what you already picked.

Start with the camera

Questions

How long can the raw scan log stay in spreadsheets before it outgrows them?

At six scan points and 100 pieces a day the log grows by 600 rows daily. Excel's per-sheet limit is 1,048,576 rows, which 600 rows a day reach in about 4.8 years (1,048,576 / 600 = 1,748 days). The practical limit is not size but edit risk: keep the raw log as CSV files that nothing edits by hand, and summarize in a separate report sheet or a small database.

Do all six readers need their own PLC or controller?

No. One logging host distinguishes stations by the link each reader uses: USB readers by a prefix programmed into each unit, Ethernet readers by their network address, wireless readers by the base that received the scan. A PLC becomes necessary only when the stamps must drive interlocks or machine logic; for a reporting study, the host alone is enough.

What timestamp resolution and clock accuracy does this need?

One-second stamps are enough. Worst case the error is 1 s per stamp and 2 s per interval, or 0.74% of a 270 s takt. Stamp on receipt at a single host so only one clock exists. If a second host is unavoidable, sync both to the same network time source first; a few seconds of drift corrupts every interval that crosses hosts.

Can the invoice number on the traveler serve as the part ID?

Only when one invoice line is one physical piece. If a line covers several pieces, they share an ID and the interval pairing mixes them up. Append a sequence to the printed barcode — invoice 2317, line 04, piece 07 becomes 2317-04-07 — and keep that format fixed for the whole study so the report can split results by product type later.

What happens to the data when an operator forgets a scan?

A missed scan merges two intervals: the part shows one long time covering two stations, and nothing afterwards can split it. The consecutive-station rule flags it the same day — the ID appears at station k but never at station k+1 — while the traveler is still in the cell. Plan on reconciling 1-2% of scans, six to twelve records a day here.

Does a fixed reader at the boundary change the numbers?

It improves them. A handheld stamps when the operator chooses to scan; a fixed reader over the part nest stamps when the part physically crosses the boundary, removing the forget-to-scan failure and the end-of-shift batch of catch-up scans. Use handhelds where the traveler is scanned in hand and fixed readers at the boundaries the report cannot lose.