Working Distance and Minimum Object Distance for Machine Vision and Robotics Lenses
The machine sets the working distance and the lens sets the minimum object distance. This guide covers both, and what happens to image quality at short range.
Working distance (WD) is the gap from the front of the lens housing to the object. Minimum object distance (MOD) is the closest that gap can get while the lens still focuses, and it is set by the lens. Early in a project there may be room to move WD. Once the mechanical design is committed it is fixed, and the lens must cover the required field of view at that distance.
C-mount and M12 lenses reach focus differently. Commonlands C-mount lenses use cam-driven focus, and the mechanism and its near-limit behavior are product-specific, so check the product page. An M12 lens moves as a rigid body, threading in or out of its holder. Both work well at the distances they are designed for and behave differently at the edges of their range. This guide covers working distance selection, the optics behind minimum object distance, and how to hold sharpness across the full field.
What working distance means
Working distance (WD) is the distance from the front of the lens housing to the target surface. In machine vision it is set by conveyor height, fixture geometry, or the inspection station layout; in robotics it follows from arm reach, end-effector clearance, or bin depth. Early on, WD is a design variable, since brackets and gantry heights can move. Once the mechanical design is committed it is fixed, and the lens has to perform at whatever distance the system requires.
How working distance drives lens selection
WD sets the required focal length. A longer distance needs a longer EFL to cover the same field of view; a shorter distance needs a shorter one. The relationship comes from rectilinear projection geometry (Hecht, Optics, 5th ed., §5.2):
For wide-angle or fisheye lenses with significant distortion, use the Commonlands distortion-corrected field of view calculator instead of the thin-lens estimate.
Working distance versus depth of field
A robot bin-picking at 150mm and the same camera inspecting at 600mm differ in depth of field only if the framing changes with them. Object-side depth of field follows magnification and working F-number (about 2Nwc / m²), so holding the field of view fixed from 150mm to 600mm takes roughly four times the focal length and returns about the same depth. Depth grows with distance only when the lens stays put and the field widens.
What minimum object distance means and why it differs by mount type
Minimum object distance (MOD) is the closest distance at which a lens can focus in the center of the image, measured from the front of the lens to the object. Not every datasheet lists it, so you may need to verify it experimentally or request it from the manufacturer. How MOD behaves depends on whether the lens is C-mount or M12, because the two focus in different ways.
C-mount: cam-driven focus
Commonlands C-mount lenses use cam-driven focus: an internal cam turns focus-ring rotation into linear motion of the optics inside the barrel. The focus mechanism and its near-limit behavior are product-specific, so check the product page for the lens you are evaluating.
MOD is the hard limit set by the end of cam travel. When the ring hits its stop, the focus mechanism is at the end of its travel and the object cannot be focused any closer without an extension tube.
A shorter EFL needs less image-side travel to reach the same object distance, but MOD does not follow focal length on its own. It falls out of the prescription, the conjugate the design was corrected for, and how much travel the mechanics allow, so two lenses of the same EFL can list very different MODs (Kingslake, Lens Design Fundamentals, 2nd ed., §18.3).
M12: rigid-body focus by threading
An M12 lens has no internal moving groups. It is a rigid assembly that threads into a holder, and focus is set by screwing it in or out to change the lens-to-sensor distance. So M12 has no cam-stop MOD, though it does have real limits: with a tall enough holder the center can usually be brought into focus, but thread engagement, sensor and rear-element clearance, and the aberrations that grow as the conjugate moves off the design point all bound how close it goes.
Off-axis aberration is the usual limit at short range, but not always the first. Because the elements never move relative to each other, nothing rebalances as focus changes, so the corners often soften while the center holds, and on some designs spherical aberration at the new conjugate takes the center down first. Which one goes depends on the prescription, the pixel pitch, and how far the WD sits from the design distance, so measure center and corner.
Commonlands can confirm the MOD for any of its C-mount and M12 lenses on request.
Working distance vs minimum object distance
These two numbers show up in many lens specs, though not every manufacturer publishes MOD. They are not the same thing, and confusing them is one of the most common reasons a vision system fails to focus after integration. Commonlands lists working distance guidance and, where defined, the MOD for its machine vision lenses.
| Term | Measured from | Measured to | Who defines it | Notes |
|---|---|---|---|---|
| Working distance (WD) | Front of lens housing | Object surface | Machine designer | Fixed by mechanical layout. Not a lens property. |
| Minimum object distance (MOD) | Front of lens | Object surface | Lens manufacturer | C-mount: hard limit (end of cam travel). M12: practical limit (thread engagement or field quality). Not always published. |
When a datasheet lists MOD, check whether it refers to center focus or full-field performance. The physics behind it is the thin lens equation, 1/f = 1/do + 1/di (Hecht, Optics, 5th ed., §5.2). As the object moves closer, the image distance di grows, and the C-mount cam or the M12 thread depth supplies that extra distance. Note that do is referenced to the object-side principal plane, not the housing, so it differs from a housing-measured MOD by whatever offset the design puts between them.
What happens at short working distance
Center focus is rarely the problem at short working distance; corner sharpness is. The reason is the design conjugate. Every lens is aberration-corrected for a target object distance. Many M12 lenses are corrected for longer distances, so field curvature and astigmatism are balanced there. As the object moves off that conjugate, the best-focus surface for the corners no longer sits on the flat sensor and they degrade. How much depends on the prescription, so two M12 lenses with similar headline specs can behave differently at the same short WD.
Smaller pixels make this more visible, since the same blur spot spans more pixels on a fine-pitch sensor, so re-verify lens performance whenever a sensor upgrade reduces pixel pitch.
At short range, bench-test 2-3 candidate M12 lenses at the actual distance on the actual sensor and check the corners, not just the center. If one passes and another does not at the same distance, that is the prescription difference at work. Commonlands can confirm the finite conjugate correction for any of its lenses on request.
Mount selection by working distance
These bands group working distances by packaging, not by optical thresholds. The point where corners degrade shifts with prescription, F#, pixel pitch, and sensor size.
The 50mm-500mm figures below are each SKU's published correction range, not a promise of uniform performance across a decade of object distance. A range that wide still needs measured through-focus and field data at the exact working distance, sensor, and resolution target before it is designed in.
| Working distance | M12 standard lens | M12 finite conjugate (CIL064, CIL142, CIL121) | C-mount |
|---|---|---|---|
| Longer working distances | A wider range of standard lenses may be viable; verify full-field performance for the actual sensor and resolution target | Corrected for the 50mm-500mm range; verify performance beyond it | A wider range of lenses may be viable; verify full-field performance |
| Short range (below a few hundred mm) | Risk zone: verify corner sharpness at the actual WD, sensor, and pixel pitch | Good across the corrected 50mm-500mm range | Often more forgiving due to iris control and finite conjugate correction |
| Very close range (<100mm) | High risk. Not recommended without bench testing. | Supported from 50mm; bench-verify corners at the exact WD | Also strong; verify conjugate match. |
Lenses by working distance range
Representative Commonlands lenses for short and medium working distances in machine vision and robotics applications.
Best lens picks by working distance
The right pick depends on the focal length the distance requires and on whether the job needs iris control for depth of field. The table pairs each working distance range with a Commonlands lens whose published focus range covers it, split by mount. Detailed cards follow below.
| Working distance range | Recommended lens | Mount | Focus range / iris | Why this pick |
|---|---|---|---|---|
| Short (50mm-500mm) wide field, 2/3" sensors |
CIL064 6mm | M12 | Finite conjugate, F/2.9, 11.0mm image circle | Finite conjugate correction reduces field curvature at close range; widest field of the three. |
| Short (50mm-500mm) narrower field |
CIL142 14.4mm | M12 | Finite conjugate, F/2.6-F/5.2 variants, 9.3mm image circle | Mid-telephoto framing with the same reduced field curvature across the 50mm-500mm range. |
| Short (50mm-500mm) 500mm design point |
CIL121 21.8mm | M12 | Finite conjugate, corrected at 500mm | Aberration balance set for a shorter conjugate, so corners stay sharp where a long-conjugate M12 softens. |
| Medium, several hundred mm iris and DOF control |
CIL532 12mm | C-mount | Finite conjugate from 100mm, F/2.0–F/16 | Cam-driven focus across the range, with an iris to tune depth of field. |
| Medium, several hundred mm wide FOV, low distortion |
CIL062 6mm | M12 | 50mm to ∞, uncorrected | Low-distortion wide field for measurement at standard inspection distances in a small M12 package. |
Each range starts from the focal length the working distance requires (confirm it with the EFL calculator), then the mount follows from whether depth of field needs iris tuning. Focus and iris values are each Commonlands SKU's published figures, not numbers computed here. Bench-test full-field sharpness on your own sensor before ordering. The focal length selection guide covers the full method.
Short working distance: finite conjugate M12 lenses
Medium working distance (several hundred mm)
Frequently asked questions
Common questions on working distance and MOD for Commonlands machine vision and robotics lenses.
What is working distance in machine vision and robotics?
Working distance is the distance from the front of the lens housing to the target surface. In machine vision, it is typically driven by the machine frame or conveyor geometry. In robotics, it follows from the arm reach, end-effector design, or bin depth. WD is a system-level design consideration. Early in a project there may be room to adjust it, but once the mechanical design is committed, the lens must perform at that distance.
What is minimum object distance and how is it different from working distance?
Minimum object distance (MOD) is the closest distance at which a lens can focus in the center of the image, measured from the front of the lens to the object. WD is also measured from the front of the lens. The key difference: WD is a system-level design choice, while MOD is a lens characteristic.
On cam-focused C-mount lenses, MOD is a hard limit set by the end of focus-mechanism travel; fixed-focus and helicoid designs set MOD differently, so check the product page. M12 lenses have no cam stop, but thread engagement, rear-element and sensor clearance, and the aberrations that grow off the design conjugate still set a limit, and the center can fail before the corners do. Not all lens datasheets publish MOD, so you may need to verify it experimentally.
Why are my image corners blurry at short working distance?
This is usually an off-axis aberration issue, most commonly field curvature and/or astigmatism when the lens is used far from its design conjugate. Many standard M12 lenses are infinite conjugate designs, optimized for longer working distances, and because they focus as a rigid body (no internal cam mechanism), there is no aberration rebalancing as you thread them closer.
How badly corners degrade depends on the individual lens design. Two lenses with similar specs can perform differently at the same distance. At short working distances, bench-test multiple candidates. If none pass, try a finite conjugate M12 (CIL121) or a C-mount lens; short-range behavior is product-specific, so check the product page.
Should I use M12 or C-mount for short working distances?
Both can work. The question is which one best fits your mechanical and optical constraints. Commonlands C-mount lenses offer cam-driven focus and an adjustable iris for depth-of-field control; the focus mechanism and its near-limit behavior are product-specific, so check the product page. M12 lenses are simpler, lighter, and smaller, which matters for embedded robotics and space-constrained applications. If you need M12 at short WD, test 2-3 candidates because field quality varies between designs. The CIL121 is an M12 lens specifically optimized for a 500mm working distance.
Can extension tubes or holder adjustments extend the focus range?
Yes. C-mount extension tubes increase the lens-to-sensor distance and shift the focus range closer. For M12, threading the lens farther out of the holder does the same. A taller holder just maintains thread engagement. Tradeoffs: the far focus limit moves in and FOV changes. For C-mount, extension tubes work the lens outside its designed focus range; image quality there is product-specific, so test it. For M12, extension can recover center focus within clearance limits, but it corrects no aberration. If corners are soft, a different lens design is needed.
Find the right lens for your working distance
Commonlands publishes working distance and conjugate information for its machine vision lenses, and can confirm the MOD or finite conjugate correction for any product on request. If nothing in the standard range fits your inspection station or robot cell, our San Diego engineering team can review application-specific configurations. Same-day shipping on orders placed before 12 PM PT.





