How to Display the Image Magnification on a Fully Automatic CNC Image Measurement Instrument
This guide is for metrology engineers and quality inspectors who run optical CNC measurement machines on the shop floor. You will learn how to display the image magnification correctly, calibrate it against a stage micrometer, and keep the reading stable from part to part.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Key takeaways
What the magnification readout actually tells you
On a fully automatic CNC image measurement instrument, the magnification shown on screen is a calculated value. The software takes the objective or zoom lens position, the camera sensor pixel pitch, and the current field of view, then converts them into a single number. That number tells the operator how many micrometres of the part sit on one camera pixel.
A 2× setting on a 5 MP camera with 3.45 μm pixels gives roughly 1.7 μm per pixel. A 10× setting on the same camera drops that to about 0.35 μm per pixel. The second number is more useful for measuring a 0.1 mm chamfer, but it also shrinks the field of view, so you may only see 1.5 mm of the part at once.
The instrument does not measure the part directly. It measures pixels, then multiplies by the calibration factor. That is why the displayed magnification and the calibration factor must always be paired. If you change the lens and forget to reload the calibration file, every dimension on the report is wrong by the ratio between the two settings.
- 1Pixel size matters more than the round numberA 10× label is marketing; μm per pixel is what limits your measurement.
- 2Field of view shrinks as magnification risesCheck that the whole feature fits before you commit to a zoom level.
Choose the right magnification for the feature
A common rule on the floor is to spend at least 10 camera pixels on the smallest tolerance you need to verify. If the drawing calls for ±0.02 mm, you want about 0.002 mm per pixel or better. That usually means a 5× to 10× objective on a standard 5 MP sensor, or a zoom setting in the upper half of the range.
Going higher is not free. At 20× or 30×, depth of field falls to a few micrometres. A stamped bracket with 0.15 mm of bow will drift out of focus across the field, and the edge detection starts wandering. For those parts, drop to 5× and check flatness separately with a touch probe or a height gauge.
Zoom lenses are convenient but their magnification drifts with temperature. A machine that sits near a loading door can shift 0.1% to 0.3% over a day. For work inside ±0.005 mm, use a fixed objective and re-run the calibration check at the start of each shift. It takes about two minutes and it catches most drift before it reaches a report.
- 1Minimum 10 pixels per tolerance bandFewer pixels means the edge algorithm has too little data to average.
- 2Fixed objectives for tight workZoom lenses are fine for screening; fixed glass holds calibration better.
Calibrate the displayed magnification before you inspect
Calibration starts with a certified stage micrometer, typically a 1 mm scale with 10 μm divisions, or a glass grid with 0.1 mm squares. Place it on the stage, bring the scale into focus at the magnification you plan to use, and let the software measure the known distance. The instrument then back-calculates μm per pixel for that exact optical setup.
Do not calibrate at 2× and then measure at 10×. Each objective or zoom position needs its own calibration file. The same applies after any of these events: a lens change, a camera swap, a ring light replacement that changes the working distance, or a software update that touches the image pipeline.
After calibration, verify with a second artefact. A 5.000 mm gauge block or a certified pin gauge works well. If the check reads 4.998 mm or 5.002 mm, the setup is usable. A 0.05 mm error means something is wrong with the scale entry, the lens selection, or the pixel pitch value in the configuration file.
- 1One calibration file per lensName the file with the objective and zoom position so nobody loads the wrong one.
- 2Verify against an independent artefactThe calibration standard and the check standard should not be the same object.
Set lighting and edge detection so the readout stays honest
Edge detection on a CNC image measurement instrument uses contrast, not geometry. A sharp step in grey value is treated as the part edge. That means the lighting setup directly controls the number the instrument reports, even though the magnification readout has not changed.
Coaxial light works well for flat, reflective surfaces such as ground steel or anodized aluminium. It reveals scratches and burrs that a ring light hides. Ring light at a low angle, around 20° to 30°, is better for turned diameters and drilled holes because it throws a shadow into the edge. Backlight is the most repeatable option for through-holes and thin sections, but it needs a translucent fixturing plate.
Set the exposure so the background sits near 200 to 230 grey levels and the part edge falls to below 50. Then fix the threshold. If you let the software auto-set the threshold on every image, the reported edge moves with surface finish. A single threshold value stored in the program keeps the measurement repeatable between operators.
- 1Lock the exposureAuto exposure turns a surface finish change into a dimensional change.
- 2Store the threshold in the programOne value per feature type, checked on a master part each shift.
Common mistakes that break the magnification reading
The most frequent failure is calibrating at one magnification and measuring at another. The screen still shows a sensible number, so nobody questions it, and the report ships with a 5× error on every dimension. Add a line to the setup sheet that names the calibration file and the objective, and have the operator sign it.
The second failure is measuring a feature that does not fit the field of view. Software can stitch images, but the stitch introduces its own error, often 2 to 5 μm at the seam. If a 12 mm bore needs a 10× setting, measure it at 5× or use a touch probe instead.
The third is a dirty or scratched protective window on the lens. It lowers contrast, the edge detection widens, and the reported dimension creeps. Check the window at the start of every shift and replace it when scratches are visible under a torch.
- 1Wrong calibration fileSymptom: all dimensions scale by the same ratio.
- 2Feature larger than the fieldSymptom: repeatability drops on the biggest dimension only.
- 3Contaminated lens windowSymptom: slow drift over a shift, worse on reflective parts.
Step by step: display and lock the magnification
Run these steps at the start of a job, then again after any optical change.
- 1Clean the optics and the stageUse lens tissue and a blower on the objective. Wipe the glass stage with isopropyl alcohol. Dust on the lens lowers contrast and forces the software to raise gain, which adds noise to the edge.
- 2Load the correct calibration fileSelect the file that matches the mounted objective or zoom position. Confirm the pixel pitch value matches the camera data sheet, for example 3.45 μm for a typical 5 MP sensor.
- 3Place the stage micrometer and focusFocus until the 10 μm divisions are sharp across the middle of the field. Check the four corners. If only the centre is sharp, the stage or the lens is tilted and the calibration will not hold across the field.
- 4Run the calibration routine and record the factorLet the software measure the known distance. Write the resulting μm per pixel value in the job setup sheet. A typical 5× setup lands between 1.3 and 1.8 μm per pixel.
- 5Verify with a gauge block or pin gaugeMeasure a 5.000 mm artefact three times. Spread should be under 0.003 mm and the mean within 0.005 mm of nominal. Outside that, re-focus and repeat the calibration.
- 6Set lighting and lock exposure and thresholdAdjust the ring light angle between 20° and 30° for turned features, set background grey near 200 to 230, then disable auto exposure and enter a fixed threshold.
- 7Save the program with the magnification displayedStore the objective, zoom position, calibration file name, lighting mode and threshold together. The next operator loads one file and sees the same magnification and the same edge position.
Magnification settings and what they suit
Indicative values for a 5 MP camera with 3.45 μm pixels. Always confirm against your own calibration file.
| Setting | Approx. μm per pixel | Field of view | Best for |
|---|---|---|---|
| 2× | 1.7 μm | About 8 mm | Overall profile, hole positions, warped parts |
| 5× | 0.7 μm | About 3 mm | General tolerances, radii, chamfer checks |
| 10× | 0.35 μm | About 1.5 mm | Tight bores, small slots, tool marks |
| 20× | 0.17 μm | About 0.8 mm | Edge quality on flat, well-supported parts |
| Zoom mid-range | 0.5–0.9 μm | 2–4 mm | Mixed features in one program |
| Fixed 10× objective | 0.35 μm | About 1.5 mm | Repeat work inside ±0.005 mm |
Frequently asked questions
How often should I re-check the displayed magnification?
At the start of every shift, and after any optical change. A quick check on a 5.000 mm artefact takes under two minutes.
If the machine sits in a room with temperature swings above 3 °C, add a mid-shift check on tight jobs.
Can I trust the on-screen magnification without calibration?
No. The number is derived from configuration values, not from the actual optics. If the pixel pitch entry is wrong, the readout is wrong even though the image looks perfect.
Use the displayed value as a guide to choose a setting, and the calibration file as the source of the measurement.
Why does the same part measure differently at 5× and 10×?
Edge detection finds the point of maximum gradient. At higher magnification the gradient profile is spread over more pixels, so the detected edge can move by one or two pixels.
Pick one magnification per feature, record it, and stick to it for the life of the program.
Does lighting really change a dimensional reading?
Yes. On a turned diameter, moving a ring light from 0° to 30° can shift the apparent edge by several micrometres because the shadow line moves.
Fix the light angle in the program and check it against a master part before running production.
What if the part is too large for the field of view at the needed magnification?
Either drop to a lower magnification with adequate pixels per tolerance, or measure the feature with a touch probe.
Stitching works for documentation but is a weak choice for a tolerance call, because the seam adds an error that is hard to quantify.
How do I keep two operators reading the same edge?
Store the full optical setup in the program: objective, zoom position, calibration file, light mode, exposure and threshold.
Then have both operators measure the same master part and compare. A spread under 0.003 mm means the setup is locked well enough.
Need parts that hold up under optical inspection?
Send us your drawing and get a quotation plus a free DFM analysis within 12 hours.
12-hour quote±0.005 mm tolerance100% inspection before shipment