Lenses & opticsExplainer

Machine vision lens anatomy: what each part of the barrel does

Part-by-part anatomy of a machine vision lens: focus ring, iris and f/# tick marks, thumbscrews, filter thread, mount flange distance and rear protrusion.

LumaSpec Vision11 min read Share on LinkedIn

On this page 11 sections
  1. 01The six parts of the barrel, front to back
  2. 02Focus ring: setting the working distance
  3. 03Iris ring and the f-number tick marks
  4. 04Thumbscrews: locking the settings against vibration
  5. 05Filter thread: what the front of the barrel accepts
  6. 06Camera mount, lens shoulder and flange distance
  7. 07Worked example: a C-mount lens on a CS-mount camera
  8. 08Rear protrusion: the clearance check before the lens goes in
  9. 09Telecentric barrels: the coaxial light path
  10. 10Reading the markings and the pre-mount checklist
  11. 11Questions

Every machine vision lens barrel carries the same set of controls, and each one moves a number that decides whether the image is sharp, bright and mechanically possible at all. The focus ring sets the working distance. The iris ring sets the f-number, and with it depth of field and diffraction. Thumbscrews freeze both settings against vibration. The filter thread decides what bolts onto the front, the mount fixes the flange distance, and the rear protrusion decides whether the lens physically fits the camera. This walkthrough names each part, gives the number that goes with it, and closes with a fitting example and a pre-mount checklist. Read a barrel well and you can shortlist from the machine vision lenses catalog in minutes, without the mount mismatches that come back as returns.

The six parts of the barrel, front to back

Six controls do the work, and four reference surfaces carry the datasheet dimensions.

  • Focus adjustment ring - moves internal element groups to place best focus inside a printed working distance range.
  • Iris adjustment ring - sets the aperture stop, with tick marks for the f-number at each detent.
  • Thumbscrews - clamp focus, iris or both once the image is tuned.
  • Filter thread - the front thread that accepts filters, polarizers and protective windows.
  • Camera mount - the coupling that seats the lens on the camera and fixes the flange distance.
  • Rear protrusion - how far the back of the lens reaches past the mount, into the camera body.

The four surfaces make the printed numbers measurable. The first surface is the front element or, when it sits recessed, the barrel face: working distance runs from there to the part. The lens shoulder is the face that seats against the camera flange. Overall length runs from first surface to shoulder and excludes the mount, which is why two similar focal lengths can need very different enclosure depths. The last surface is the rear element or the mount face, and it sets how deep the barrel reaches inside the body - the rear protrusion check below.

Focus ring: setting the working distance

Turning the focus ring moves internal element groups, and the barrel stops where the image is sharpest. The working distance is then the gap from the first surface to the part, and the printed range on the barrel - sometimes labelled object distance range - is everything that travel can cover.

That travel is finite and uneven: a full turn near minimum distance covers millimetres of object shift, while the same turn at metres of stand-off sweeps far more. If the part sits closer than the printed minimum, more turning cannot help; extension tubes move the whole range closer instead. And when a lens that once reached distant targets now only snaps in near, the focus-range diagnosis starts at this ring and at whatever was added behind it.

Stand-off and framing are one decision: set the working distance first, then let the working distance and field of view formula give the focal length the barrel must carry.

Iris ring and the f-number tick marks

The iris ring opens and closes the aperture stop inside the barrel, and the tick marks give the f-number at each detent: focal length divided by entrance pupil diameter. Lower numbers open up; higher numbers stop down.

Three consequences ride on that one number. Brightness falls with its square, so doubling the f-number from F2.8 to F5.6 quarters the light on the sensor. Depth of field deepens as the number rises, trading blur tolerance against diffraction. And diffraction grows in proportion to it: at f/8 in green light the blur spot from diffraction alone is 2.44 × 0.55 µm × 8 ≈ 10.7 µm across, so stopping down past the sharpness peak softens fine detail.

Depth of field around the focus plane Light from the lens converges on the focus plane. In front of and behind it, each point spreads into a blur circle; the zone where that blur stays below about a pixel or two is the depth of field. A smaller aperture gives a narrower cone and a deeper zone.depth of fieldfocus planeapertureoutside it, pointsblur into circleswide aperture: steep cone, shallow zonesmall aperture (high F#): deeper zone
Depth of field around the focus plane. Light from the lens converges on the focus plane. In front of and behind it, each point spreads into a blur circle; the zone where that blur stays below about a pixel or two is the depth of field. A smaller aperture gives a narrower cone and a deeper zone.

Lower f-numbers gather more light at the same focal length; the lower f-number, more light guide works that arithmetic for S-mount barrels, and the physics is identical in C-mount. The ring itself is manual on machine vision lenses: if exposure hunts on a live line, the fix lives in the camera's automatic iris, exposure and gain settings, not on the barrel.

A datasheet prints the range the iris covers. The LS-FFL-0567, a 16 mm lens built for 20 MP sensors, spans F2.8-22 on its scale: wide open at the low end, most stopped down at the top.

Machine vision lenses16 mm, 1.1", 20 MP, C-mount machine vision lens, F2.8-22, <0.3% distortion (LS-FFL-0567)LS-FFL-0567
Type
Machine vision fixed
Sensor format
1.1"
Mount
C-mount
Resolution
16-25 MP
$679.00View partBuild a system with it

Thumbscrews: locking the settings against vibration

Thumbscrews on the rings clamp focus and iris in place. Set them after tuning, because vibration walks an unlocked ring along the barrel, and an iris that drifts two ticks silently changes exposure and depth of field mid-shift.

The focus screw matters more than it looks at long stand-offs: best focus at the object moves by the image-side drift divided by magnification squared. At 0.05x, a 0.1 mm drift of the focus setting puts the sharp plane 0.1 mm ÷ 0.05² = 40 mm away at the part - enough to fail a station that was aligned yesterday.

Which screw to tighten, and how hard, has its own failure modes: the lens locking screws guide covers torque, aperture screws and enclosure clearance.

Filter thread: what the front of the barrel accepts

When the first element sits recessed inside the barrel, the front thread accepts screw-in filters and protective windows directly. A protruding front element or a wide-angle design leaves no thread to use, and a stepped adapter ring replaces it. A window is an optical change, not just cover: the protective window guide shows what thickness does to focus and reflections. Polarizers bolt onto the same thread, and the cross-polarization guide shows the glare they remove from shiny surfaces.

Thread pitches are not standardized across lenses, so the filter has to match the barrel. The LS-LXR-0225, an 850 nm band-pass filter, is cut on an M30.5 x 0.5 thread, one of several pitches in the accessories range.

Lens accessoriesBand-pass filter, 850 nm (near IR), M30.5 x 0.5 thread (LS-LXR-0225)LS-LXR-0225
Type
Filters & polarizers
$119.00View partBuild a system with it

Camera mount, lens shoulder and flange distance

The camera mount is the threaded or bayoneted coupling that clamps the lens shoulder against the camera flange, and the flange distance it enforces - shoulder to sensor - is standardized per mount. It is the one number the back of the barrel has to agree with.

Mount Coupling Flange distance
C-mount 1-inch, 32 threads per inch 17.526 mm
CS-mount 1-inch, 32 threads per inch 12.526 mm
F-mount bayonet 46.5 mm

C-mount dominates machine vision, and CS-mount differs only by holding the sensor 5 mm nearer the shoulder; the C-mount versus CS-mount guide walks the combinations. Larger sensors outgrow both, so the catalog moves to F-mount and to M42, M58 and M72 barrels; the large-format M58 and M72 guide covers the big-sensor cases. The LS-FFL-1676 is a 60 mm, 65 MP lens on an M58 mount with a working distance range of 214-1536 mm.

Machine vision lenses60 mm fixed focal length lens, 65 MP, M58, WD 214-1536 mm (LS-FFL-1676)LS-FFL-1676
Type
Fixed focal length
Sensor format
Large format
Mount
M58
Resolution
Over 25 MP
$785.00View partBuild a system with it

Where mounts mismatch, an adapter of exactly the flange difference restores focus, and the adapter fit and flange distance guide shows the checks before fitting. The flange focal distance reference lists standardized values for other mounts. Newer large-format CMOS sensors also arrive on TFL mounts, a standard built for sensor formats C-mount cannot cover.

Worked example: a C-mount lens on a CS-mount camera

Inputs: the camera carries a CS-mount holder, so its sensor sits 12.526 mm behind the mounting face - the CS standard. The lens at hand is marked C-mount, so it forms its sharpest distant image 17.526 mm from its own shoulder.

The rule: a lens images correctly when the sensor sits at its flange distance. A spacer ring between camera face and lens shoulder adds directly to the sensor distance, so the ring to fit is the difference between what the lens wants and what the camera gives:

spacer length = lens flange distance - camera flange distance

The arithmetic: 17.526 mm - 12.526 mm = 5.000 mm.

The result: a 5.000 mm C-to-CS adapter ring, and with it the C-mount lens lands at its designed 17.526 mm on the CS camera. The threshold is the sign of the difference. Positive means order the ring of exactly that length, because fractions of a millimetre show up as front- or back-focus. Negative - a CS lens offered a C-mount holder - no ring can shorten the distance, the pairing will not focus distant objects, and the fix is a different lens or a camera whose sensor position switches between C and CS settings.

The same geometry in larger steps is the extension tube: the LS-LXR-0284 is a 15 mm C/CS tube that shifts a lens's whole focus range closer for magnified work, and the extension tube guide shows what each added millimetre costs.

Lens accessoriesC/CS machine vision lens extension tubes, length 15 mm (LS-LXR-0284)LS-LXR-0284
Type
Extension tubes
$79.00View partBuild a system with it

Rear protrusion: the clearance check before the lens goes in

Behind the shoulder, the barrel keeps going past the mount face by the rear protrusion, and the camera has parts there you can no longer see once the lens is seated: the IR-cut filter window over the sensor and, in some designs, sensor electronics. A rear element that reaches past the filter meets it as you thread the lens home.

Camera makers publish a limit for exactly this. At least one machine vision camera manual caps C-mount rear protrusion at 10.0 mm; treat that as the scale of typical limits and read the printed figure for your camera. Lens data sheets dimension their own protrusion in the mechanical drawing, so both halves of the comparison are on paper before anything is ordered.

When the chosen lens is too deep, the options are a shorter-protrusion lens or a camera without sensor cover glass; the cameras without cover glass guide covers that trade. An extension tube also pulls a deep lens back out of the body, at the price of moving the focus range closer, which suits fixed-distance stations.

Telecentric barrels: the coaxial light path

Telecentric barrels follow their own logic: a long body, a large fixed front element, and frequently a coaxial light path built into the barrel. A coaxial port accepts your own collimated light through an internal beam splitter; a built-in coaxial light ships with the source integrated. Both illuminate shiny, machined and curved parts along the viewing axis, which is why dimensional cells specify them.

Three telecentric models show the two arrangements as the catalog lists them:

Specification LS-TCL-2194 LS-TCL-0811 LS-TCL-0980
Sensor format 1" – 1/3"
Max sensor size (dia. mm) 16.0 – 6.0
Magnification – 1.36x 1.5x
Working distance – 73 mm 65 mm
Depth of field – 0.5 mm 0.8 mm
Price $1,539.00 $789.00 $220.00

All 3 share: Mount C-mount. Values as printed in each product's data sheet; open a part for its drawing and full specifications.

Filters sit differently in these barrels and placement matters; the telecentric lens filters guide explains where. If the open question is whether the job needs one at all, the entocentric versus telecentric comparison gives the decision rules, and the telecentric lenses category lists the barrels with ports and with integrated light.

Reading the markings and the pre-mount checklist

Barrel markings are the datasheet in miniature: focal length, fastest f-number, part number, with the working distance range and the iris ticks alongside. A barrel printed 25 mm 1:1.4 is a 25 mm lens, fastest at F1.4. The machine vision glossary decodes the rest of the vocabulary, and the focal length selection guide works the choice backward from your field of view.

Before any lens meets a camera, run the list:

  • Sensor format fits inside the lens image circle with margin, or the corners vignette.
  • Mount matches, and any flange difference is corrected by the spacer length from the worked example above.
  • Printed working distance range covers the stand-off, with margin for setup drift.
  • Rear protrusion sits under the camera's limit, so the IR-cut filter survives the install.
  • The front element leaves the filter thread usable, or the stepped adapter ring is on the order with it.
  • Lens resolution class matches or exceeds the sensor's megapixels, or fine detail never resolves.
  • Thumbscrews finish the job: lock focus and iris after the final image check.

Each line costs minutes on paper and days once the hardware is bolted together. To turn a shortlist into an order, the lens finder filters by sensor format, mount and focal length in one screen, and the lens configurator builds the lens together with its adapter stack. When a barrel in hand disagrees with its printed numbers, the contact page reaches the applications team, and the lenses topic page collects the rest of this series.

Questions

Can I mount a C-mount lens on a CS-mount camera?

Only if you keep the 5 mm spacer ring many C/CS cameras ship with, or fit one: a C-mount lens expects its image plane 17.526 mm from the shoulder, while a bare CS-mount holder seats it at 12.526 mm. Remove that ring and the lens sits 5 mm too close to the sensor, so distant objects never sharpen. Keep the ring and the C lens behaves as designed.

How much does a protective window in front of the lens shift focus?

A plane-parallel window has no optical power but still moves best focus by t x (n - 1) / n with n about 1.5 - roughly one third of its thickness, about 0.67 mm for a 2 mm window. Fit any window or filter before setting focus; adding one afterwards costs a refocus pass at the working distance.

Does an extension tube still let a lens focus at infinity?

No. Every millimetre of tube moves the whole focus range closer: a 15 mm C-mount tube turns a lens that once covered distant targets into a close-up lens, trading far focus for magnification. That is the intended use. If distant objects must stay sharp, remove the tube rather than forcing the focus ring past its stop.

What is the coaxial port on a telecentric lens for?

It couples light along the optical axis through an internal beam splitter, so a shiny or curved metal part is lit from the viewing direction with little glare. Port versions take your own collimated light; built-in versions carry the source inside the barrel. Drive either from a light controller so brightness stays repeatable across parts and shifts.

Where is rear protrusion printed before I order?

It is dimensioned in the mechanical drawing on the lens data sheet, listed as rear protrusion from the mounting shoulder. Compare that figure with the camera's allowed maximum before ordering - one common camera manual caps C-mount lenses at 10.0 mm - because a protruding rear element can crack the sensor's IR-cut filter on assembly.