Code readingGuide

DataMatrix codes on gauges and small tools for check-out tracking

Size and mark DataMatrix codes on gauges and small tools for check-out tracking, and wire the scan into sign-out software so borrowed gauges come back logged.

LumaSpec Vision10 min read Share on LinkedIn

On this page 9 sections
  1. 01Why a DataMatrix fits a gauge better than a barcode
  2. 02Choose symbol size, module size and quiet zone
  3. 03Worked example: a 14 x 14 symbol for an eight-digit gauge ID
  4. 04Fixed reader or handheld at the hand-off point
  5. 05Light the mark, not the reflection
  6. 06Wiring the scan into the check-out software
  7. 07Checks before you mark the batch
  8. 08When the code is not the problem
  9. 09Questions

Gauges leave the crib, get used at a machine across the shop, and come back three days later — or never. A sign-out sheet depends on everyone filling it in, and they don't. The dependable fix is mechanical: mark a small DataMatrix code on each gauge, park a reader where the hand-off happens, and let every scan type the gauge ID straight into your check-out software. This guide gives you the numbers to mark it right the first time — the symbol size that fits a pin-gauge handle or a micrometer barrel, the pixel density any reader needs, the light that beats glare on polished steel — and the wiring that gets the ID into your software as plain text.

Why a DataMatrix fits a gauge better than a barcode

A barcode needs length, and a gauge gives you a small flat. An eight-digit ID in Code 128 runs about 80 modules from start bar to stop bar, so at the module size you would mark on a tool it is roughly 16 mm long before quiet zones — too wide for most pin-gauge handles and easy to scuff end to end. A DataMatrix packs the same eight digits into a 14 x 14 square: 2.8 mm per side at that same module size. The square form also takes abuse better: ECC 200 error correction rebuilds the message from cells that are gouged, half-lit or worn, which is the normal life of a mark on a shop tool.

DataMatrix geometry is defined by ISO/IEC 16022. ECC 200 symbols run from 10 x 10 modules upward in even steps, and rectangular variants from 8 x 18 to 16 x 48 exist for narrow flats (Data Matrix). The standard expects square modules, which matters when you mark metal directly: a dot-peen stylus leaves round dots, so match dot diameter to pitch and keep the grid even. For parts that also ride through machining, the DMC code readers for workpiece tracking guide covers the same symbol on production parts.

Choose symbol size, module size and quiet zone

Start from the ID, not from the tool. ECC 200 numeric capacity climbs with symbol size:

  • 10 x 10 — 3 digits
  • 12 x 12 — 6 digits
  • 14 x 14 — 10 digits
  • 16 x 16 — 16 digits
  • 18 x 18 — 22 digits

Pick the smallest size that holds your gauge number plus a check digit. A plain eight-digit number fits in 14 x 14, and a nine-digit ID with a check digit still fits. Then set the module size. Plan on 0.20 mm: laser marks on tool steel hold it cleanly and it leaves room for wear. Go down to 0.15 mm only with a good laser and a reader you have tested on your finish. Everything below works that example module; scale the millimetre results in proportion if your flat forces something smaller.

The quiet zone is the blank border around the symbol. ISO/IEC 16022 calls for at least one module width on all four sides; on metal, leave two, because brush wear, edge breakout and light spill eat into borders first. Anneal rather than engrave on stainless so the mark is dark contrast with no removed material.

symbol side (mm) = module count × module size marked patch (mm) = (module count + 2 × quiet modules) × module size pixels per mm needed = 3 px ÷ module size (mm) field width ceiling (mm) = sensor pixels across ÷ pixels per mm needed

Worked example: a 14 x 14 symbol for an eight-digit gauge ID

Inputs, and where each comes from: the ID is eight digits because every gauge in the crib is numbered and the sign-out record needs one unambiguous key; the symbol is ECC 200 DataMatrix because 14 x 14 holds 10 digits; the module is the 0.20 mm default from the section above; the quiet zone is two modules, the practice value on metal; the reader is the 1.2-1.3 MP class, whose sensor is 1,280 pixels wide; and the decode rule of thumb is at least 3 pixels across one module.

The arithmetic, with the module kept as m = 0.20 mm:

  1. Symbol side: 14 × m = 2.8 mm.
  2. Marked patch with the two-module quiet zone: (14 + 4) × m = 3.6 mm square — room to spare on an 8 mm pin-gauge handle flat.
  3. Pixel density needed: 3 px ÷ m = 15 px/mm.
  4. Field width ceiling for a 1,280-pixel sensor: 1,280 ÷ 15 ≈ 85 mm.
  5. Reality check at a bench stand framing a 40 mm field: 1,280 ÷ 40 = 32 px/mm, so one module spans 32 × m = 6.4 pixels.

Decision: the pixel budget clears the 3 px rule with more than double the margin, so pixel count is not what you shop for — focus range, lighting and interface decide the reader. The ceiling only starts to matter if the flat forces the module down to 0.15 mm: there you need 20 px/mm and a 1,280-pixel sensor tops out at a 64 mm field. If you want that margin back, the LS-CRD-0028 pairs a 2560 x 2048 sensor with an 8 mm lens. Those 2,560 columns hold the 3 px rule at 0.15 mm modules across a 128 mm field, roughly double the 1.2 MP ceiling.

Check your own sensor width and field with the calculator below; its finder then filters to readers with the pixels you need.

Camera resolution for the smallest feature
Units
Pixels needed
–
Sensor size
– MP
Smallest sensor that fits
–
Pixel on the part
– mm
Pixels across the feature, that sensor
–

Pixels needed = field / feature × pixels per feature on each axis (field incl. margin). The lens must resolve the pixels too: Nyquist = 1000 / (2 × pixel µm) lp/mm.

Find cameras with enough pixels Open the full calculator

Fixed reader or handheld at the hand-off point

If gauges are signed out at one crib window, park a fixed reader on a stand there — it cannot wander, and the scan happens where the gauge changes hands. If gauges travel to machines all over the floor, put handhelds where the machinists already stand. Four set-ups cover this job:

Set-up Reader in this shop Reaches the software by Choose it when
Fixed reader on a stand at the crib window LS-CRD-0047 — 1.2 MP, USB 2.0, 60-120 mm reading distance Keystrokes (keyboard wedge) One hand-off bench, one shared PC
Fixed reader on the network MV-ID3013PM-12M-WBN — 1.3 MP, 12 mm focal length, Fast Ethernet TCP payload into the check-out app or PLC Several benches writing one database
Wired handheld LS-HCR-0001 — 1.0 MP, USB 2.0, wired Keystrokes at any PC Sign-out wherever someone stands
Wireless handheld LS-HCR-0002 — 1.0 MP, Ethernet, wireless Network message Check-out at machines across the floor

The LS-CRD-0047 reads at 60-120 mm, which suits a stand angled over the bench with the handle presented flat. For the networked route, MV-ID3013PM-12M-WBN is a 1.3 MP compact code reader with a 12 mm focal length on a Fast Ethernet link, so the cable run goes straight to your switch.

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

Away from the crib, the handheld is the whole station: if the hand-off happens at the machine, put the reader in the machinist's hand.

Handheld code readersHandheld industrial barcode reader, 1.0 MP, USB 2.0 (LS-HCR-0001)LS-HCR-0001
Resolution
Up to 3 MP
Shutter
Global
$539.00View part
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

Light the mark, not the reflection

Polished gauge steel mirrors your own lights back into the lens, and a washed-out mark reads like a blank patch. Three fixes, in the order to try them: rotate the reader 10-15 degrees off perpendicular so the specular lobe leaves the field; drop the light to a grazing angle so each cell casts a micro-shadow; and shroud the stand so shop overheads stay out of its view. Blue light earns its place on ground or machined surfaces, where it sharpens cell edges against the background — the ID2000 accessory line carries an 8-LED blue light board for exactly this:

Code reader accessoriesHikrobot MV-IDA-L-8-47-41-B 8 LEDs, 47, 41, Blue light boardMV-IDA-L-8-47-41-BPrice on requestView and quote

On smart cameras, a semi-polarizing lens cover such as the MV-SC3000-C-HP trims the remaining glare off polished work.

Wiring the scan into the check-out software

The mark is the durable half; the hand-off between reader and software is where projects stall. Three patterns work, and your software's input method picks one:

  1. Keyboard wedge. The reader acts as a second keyboard and types the ID into whatever field the cursor is in. Add an Enter or carriage-return suffix so each scan commits the line instead of waiting for a click — the CR LF suffix guide shows the setting, and the Enter-key programming-barcode guide does it straight from the scanner's manual codes. Test framing by scanning into a text editor: one code per line, nothing appended.
  2. Direct network device. A fixed reader on Ethernet posts the decoded string to the app or PLC itself, no keyboard involved. The barcode scanner input methods guide compares serial, USB and Ethernet paths, and the TCP server wiring guide covers pointing your PLC at the reader.
  3. Triggered, confirmed scan. At an unmanned window, a foot switch fires the read and the reader returns an OK signal the software logs. The trigger-and-confirm pattern transfers directly from robot cells.

Decision: one bench PC wants the wedge; a shared database wants TCP; an unmanned crib wants trigger and confirm. For HID-specific quirks on shared panels, the HID keyboard mode guide and the keyboard wedge overview cover the failure modes worth knowing before rollout.

Checks before you mark the batch

  • Print before you mark. Print the symbol at true size on paper, stick it on a gauge, and scan at the worst angle and offset you will allow. It costs nothing and catches a wrong symbol size before the laser does.
  • Wipe and re-scan. Mark one sacrificial gauge, wipe it with coolant and oil, and run 20 consecutive scans; one miss means the light or angle needs rework before rollout.
  • Prove the framing. Scan into a plain text editor and check each code lands on its own line, because an appended character corrupts every record silently.
  • Grade a sample mark. Have one direct-marked sample graded for print quality (ISO/IEC 29158 covers direct part marks) before committing a few hundred gauges.
  • Re-check after a calibration cycle. Rescan every marked gauge at the next recall; that measures real wear against your quiet-zone margin.

When the code is not the problem

The scan only records the hand-off you enforce. Pair the gauge scan with an operator ID at the same station — badge, login or a second code — and make the software refuse a check-out that has no operator attached. Then the log answers the question the clipboard never could: not just which gauges are out, but who has them. Keep the station at the crib window; one place, one habit, and the discipline holds. For shops that also want a pass/fail gate at the same bench, the pass/fail check station guide shows how one reader drives both logging and verification.

Every reader mentioned here sits under fixed code readers, handheld code readers and reader accessories, with more reading on the code-reading topic page. To match a reader to your software's input, start with the code reader finder or the configurator below, or contact us with the input method and we will point you at the right pattern.

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 small can a readable DataMatrix on a metal gauge be?

The ECC 200 series starts at a 10 x 10 symbol, so the printed size is ten modules across: 2.0 mm at a 0.20 mm module, or 2.4 mm once the minimum one-module quiet zone is added. That smallest symbol holds only three digits, though. An eight-digit gauge ID needs 14 x 14, which is 2.8 mm square, or 3.6 mm with a two-module quiet zone, at the same module size.

Why does my reader miss the code only on polished gauge steel?

A polished surface mirrors your own lights back into the lens and washes out the dark cells. Rotate the reader 10 to 15 degrees off perpendicular so the specular lobe leaves the field, drop the light to a grazing angle so the cells shadow, and shroud the stand against shop overheads. On smart cameras, a semi-polarizing lens cover trims the remaining glare. Re-test after each change, counting misses over 20 scans.

Do I need new software to log the scans?

No decoder of your own is needed if the reader enters the ID as keystrokes into the field your check-out software already has; add an Enter or CR suffix so each scan commits the line. If the software listens on a network or serial port instead, configure the reader to send the decoded string directly. Ask the software vendor which input it accepts, then match the reader output mode to it.

Should I laser mark or dot peen the gauges?

Laser annealing gives a dark, high-contrast mark on stainless and tool steel without removing material, and it holds small modules cleanly. Dot peen is faster on softer steels but leaves round dots in a grid that expects square cells, so keep the dot inside its pitch and lean toward slightly larger modules. Either way, mark the largest flat on the tool and keep the quiet zone clear of wear.