The iRAYPLE MH2056XR is part of the MH-XR series of C-mount lenses designed specifically for barcode reading and recognition applications. It features a 20mm focal length with a maximum image circle of 17.6mm (1.1 inch), supporting sensors with pixel sizes down to 2.4 μm. The lens delivers ultra-low optical distortion (-0.0194) and TV distortion (-0.008), with high relative illumination of 92% at F5.6, making it suitable for demanding machine vision tasks. Manual focus and aperture adjustment are provided via the C-mount interface, with spectral coverage from 430nm to 700nm.
At 20 mm, with the 2.4 µm pixels this lens supports, the footprint on the part at the 500 mm minimum distance is 2.4 µm × 500 mm ÷ 20 mm = 60 µm, between the 75 µm of the 16 mm MH1656XR and the 48 µm of the 25 mm MH2556XR. That is the finest sampling this lens gives, since it does not focus closer than 0.5 m, so focal length is how you choose the smallest module you can resolve: an example 0.25 mm module is about 4 px (0.25 ÷ 0.06 ≈ 4.2). On a 4:3 sensor with a 17.6 mm diagonal (14.08 mm wide) the field at 0.5 m is about 14.08 mm × 500 mm ÷ 20 mm ≈ 350 mm.
Corner illumination is 92% at F5.6, so shading is small at the fast end of the F5.6–F11 range. The pass band is 430–700 nm, distortion is specified as ultra-low, and the image circle is Ø17.6 mm (1.1-inch).
Best for
OCR and OCV on printed text, where 92% corner brightness at F5.6 keeps exposure even along a long line of characters.
Code reading at 0.5 m to 1 m: at 1 m the footprint is 2.4 µm × 1000 mm ÷ 20 mm = 120 µm, so an example 0.5 mm module is about 4 px.
Packaging inspection with some height variation: with an example 10 µm blur tolerance, F8 and 500 mm, depth of field ≈ 2 × 8 × 0.010 mm × (500 mm)² ÷ (20 mm)² = 100 mm.
Selection notes
Pick this lens when 16 mm is too coarse and 25 mm too tight a field. Divide the module width by the pixel footprint to check the pixels per module.
The 430–700 nm window covers white and red lighting; NIR illuminators lie outside it.
Check the sensor diagonal against the Ø17.6 mm circle: a 1.1-inch sensor fills it almost completely.
Specifications: Optical
Lens mount
C-Mount
Focal length
20mm
Aperture (f-number)
F5.6 - F11
Image circle / max sensor
Φ17.6mm (1.1")
Working distance
0.5m to ∞
Telecentric
No
Magnification
N/A
Specifications: Environment
Operating temperature
-20°C ~ +50°C
Specifications: Mechanical
Dimensions
39.2×Φ31.5mm
Weight
70 g
Applications this product is commonly selected for. Open one to see the full recommended hardware and approach.
Matched automatically by: camera mount fits the lens mount · camera sensor is covered by the lens image circle — this lens: C-Mount · Φ17.6mm (1.1") image circle.
Follow these steps to bring up your iRAYPLE camera, capture a first image, and move from the viewer to your own application. The flow is the same across the A, AE, AX and L series; only the physical interface differs.
Download and install the iRAYPLE machine-vision SDK together with its viewer client for your operating system. The installer provides the camera drivers, the GenTL producer, and the viewer you will use for first light. For GigE Vision models, also install or enable the bundled filter/performance driver on the network adapter to maximize throughput.
2. Connect the camera to the correct interface
Wire the camera to its matching host interface: a dedicated Gigabit (or 10 GigE) NIC for GigE Vision models, a USB3 Vision port with a quality cable for USB3 models, or a frame grabber for CoaXPress models. Power the camera (PoE, USB bus power, or PoCXP / external supply as applicable). For GigE Vision, put the NIC and camera on the same subnet and, where supported, enable jumbo frames.
3. Detect and open the camera in the viewer
Launch the iRAYPLE viewer, run device enumeration, and select your camera from the discovered list. Open it to load the device feature tree (GenICam node map). If a GigE camera is found but cannot be opened, correct the IP configuration so the camera and NIC are in the same address range.
4. Set exposure, gain and trigger, then grab a first image
Start with continuous (free-run) acquisition under stable lighting. Adjust exposure time and gain for a well-exposed, low-noise image, set the pixel format (e.g. Mono8 or a Bayer/RGB format), and tune white balance on color models. Once the live image looks correct, switch trigger mode to hardware or software trigger to synchronize capture with your process, and verify a single triggered frame.
5. Move from the viewer to the SDK or a GenICam library
With imaging confirmed, reproduce the same settings in code using the SDK's C/C++ or Python API: enumerate, open, configure the relevant GenICam features, register a frame callback or grab loop, and convert frames to your pipeline's buffer format. Since the cameras are GenICam/GenTL-compliant, you can alternatively drive them from a third-party GenICam vision library. From here a stable image stream can feed a deep-learning inspection step such as Rosepetal for automated quality control.
Frequently asked questions
Yes, focus runs from 0.5 m to infinity, so parts nearer than 500 mm cannot be focused. Moving the camera back coarsens the sampling; if that is a problem, the 25 mm MH2556XR gives 48 µm per pixel at 0.5 m instead of 60 µm.
At the same distance and aperture it is smaller: 100 mm against 156 mm at F8 and 500 mm in the same example, a ratio of (16 ÷ 20)² = 0.64.