How to 6-bit Code Leica M Lens

Leica M lenses are arguably some of the best in the world, and lenses manufactured more than half a century ago for the film Leica cameras of yesteryears can still be used on the modern M series digital bodies of today.

Leica Summicron-M 50mm 6-bit code lens
Leica Summicron-M 50mm f/2

In fact, using some of these older M lenses is a great way to start off with a Leica rangefinder camera without having to spend too much money on the more expensive modern lenses.

However, older M lenses are not 6-bit coded, and the lens designation would not be recorded and transferred to the EXIF metadata or for corrections to be made.

Today, we will explore applying this 6-bit code on the older Leica M lenses.

Advertisement

Leica M-Adapter L
6-bit code reader on the Leica M-Adapter L so that M lenses can be used and identified on the Leica T.

I bought the Leica Summicron-M 50mm f/2.0 version V a few years ago to be used with my Leica T, with the M-Adapter L in between to make this pairing work.

While the M-Adapter L incorporates a 6-bit code reader to identify the lens, my version of the Summicron-M 50mm was of the older version that didn’t come with the 6-bit code. This wasn’t really a problem as I rarely shot the Leica T with this lens.

However, when I got the Leica M Typ 240 recently and began shooting with this lens more frequently, it became quite a hassle having to manually set the camera to identify this lens in-menu. Having to always remember to change the settings back to automatic so that the next 6-bit coded lens mounted on could be properly identified by the camera doesn’t get better with age.

6-bit code Leica M lens
The 6-bit code reader located at the 5-o’clock position on the Leica M Typ 240 lens mount.
“…using some of these older M lenses is a great way to start off with a Leica rangefinder camera without having to spend too much money on lenses”

I switch between a number of 6-bit coded lens and this older Summicron quite frequently, and I eventually decided that I should apply the 6-bit coding to this lens for convenience. I believe there are a few people around the world who would undertake this task for a fee, but I felt this was a short weekend project I could try on my own.

The following steps describe how I applied the 6-bit coding to my Leica Summicron-M 50mm lens. If you own one or a few of these older Leica M lenses and desire the convenience of having your Leica M digital body automatically detecting the lens that is mounted on, and if you feel comfortable with this DIY project as described below, read on.

UPFRONT WARNING: On a difficulty scale of one to five (1 being easiest and 5 being hardest), this project probably falls somewhere between a 2 and 3, PROVIDED NOTHING GOES WRONG. If you work carefully and remove only the things you should, everything will work out smoothly without a hitch. However, if you’re not careful and something such as a ring or ball bearing (in the case of R lenses) falls out of the lens because you didn’t keep the lens upright or accidentally remove more than you should, then the difficulty level quickly escalates to an 8 (yes, beyond 5!). As careful as you may be, accidents can happen, and I have dismantled more than one Leica lens to learn this the hard way. If you’re OK with the risks and feel you’re comfortable and confident enough to undertake this task, please carry on reading. You are also advised to read through the steps below in its entirety once or twice before commencing actual work.

Determining the 6-bit Code for Your Leica M Lens

reading 6-bit code Leica M lens
The 6-bit code is read clockwise and for the lens above, it is 100100, which makes it an APO-Summicron-M 75mm f/2 ASPH based on the data given in the table below.

Before proceeding, you will first need to determine if your M lens has a removable flange. Some lenses such as the Leica Tele-Elmarit-M 135mm f/4.0 do not come with a user-removable flange, evident from the lack of screws holding the flange down.

It is also possible that there is no 6-bit coding available for that particular lens.

For those which are available, the following is a list of Leica M lenses and their corresponding 6-bit codes arranged in ascending focal length followed by ascending aperture. Black is 1 and white is 0. Codes should be read in clockwise order, i.e. from left to right with the 6-bit coding located at 12 o’clock position as shown at right.

Focal
Length
Lens Designation Lens Model No. Binary
Code
6-bit Code
Black Chrome
n/a Macro-Adapter-M 14409 n/a 101000 6 bit code leica m lens
16-21mm Tri-Elmar-M 16-18-21mm f/4 ASPH 11626 n/a 010000 6 bit code leica m lens
18mm Super-Elmar-M 18mm f/3.8 ASPH 11649 n/a 110100 6 bit code leica m lens
21mm Summilux-M 21mm f/1.4 ASPH 11647 n/a 101111 6 bit code leica m lens
21mm Elmarit-M 21mm f/2.8 11134 n/a 000001 6 bit code leica m lens
21mm Elmarit-M 21mm f/2.8 ASPH 11135 11897 011000 6 bit code leica lens
21mm Super-Elmar-M 21mm f/3.4 11145 n/a 110011 6 bit code leica m lens
24mm Summilux-M 24mm f/1.4 ASPH 11601 n/a 110000 6 bit code leica m lens
24mm Elmarit-M 24mm f/2.8 ASPH 11878 11898 011001 6 bit code leica m lens
24mm Elmar-M 24mm f/3.8 ASPH 11648 n/a 110010 6 bit code leica m lens
28mm Summicron-M 28mm f/2 ASPH 11604 n/a 011010 6 bit code leica m lens
28mm Elmarit-M 28mm f/2.8 ver. III 11804 n/a 000011 6 bit code leica m lens
28mm Elmarit-M 28mm f/2.8 ver. IV 11809 n/a 011011 6 bit code leica m lens
28mm Elmarit-M 28mm f/2.8 ASPH 11606 n/a 011100 6 bit code leica lens
28-50mm Tri-Elmar-M 28-35-50mm f/4 ASPH 11890
11625
11894 101010 6 bit code leica m lens
35mm Summilux-M 35mm f/1.4 ASPH pre-FLE 11874 11883 011101 6 bit code leica m lens
35mm Summicron-M 35mm f/2 ver. IV 11310 11311 000110 6 bit code leica m lens
35mm Summicron-M 35mm f/2 ASPH 11879 11882 011110 6 bit code leica m lens
35mm Summarit-M 35mm f/2.5 11643 n/a 101011 6 bit code leica m lens
50mm Noctilux-M 50mm f/0.95 ASPH 11602 n/a 110001 6 bit code leica m lens
50mm Noctilux-M 50mm f/1 11821
11822
n/a 011111 6 bit code leica m lens
50mm Summilux-M 50mm f/1.4 ver. II 11868 11856 000101 6 bit code leica m lens
50mm Summilux-M 50mm f/1.4 ASPH 11891 11892 100000 6 bit code leica m lens
50mm Summicron-M 50mm f/2 ver. III 11817 n/a 010111 6 bit code leica m lens
50mm Summicron-M 50mm f/2 ver. IV and V 11819
11826
11825
11816
100001 6 bit code leica m lens
50mm APO-Summicron-M 50mm f/2 ver. VI 11141 n/a 101001 6-bit code leica m APO summicron 50
50mm Summarit-M 50mm f/2.5 11644 n/a 101100 6 bit code leica m lens
50mm Elmar-M 50mm f/2.8 11831
11824
11823 100010 6 bit code leica m lens
75mm Summilux-M 75mm f/1.4 11810
11814
11815
n/a 100011 6 bit code leica m lens
75mm APO-Summicron-M 75mm f/2 ASPH 11637 n/a 100100 6 bit code leica m lens
75mm Summarit-M 75mm f/2.5 11645 n/a 101101 6 bit code leica lens
90mm Summicron-M 90mm f/2 ver. II 11136 11137 000111 6 bit code leica lens
90mm APO-Summicron-M 90mm f/2 ASPH 11884 11885 100101 6 bit code leica m lens
90mm Summarit-M 90mm f/2.5 11646 n/a 101110 6 bit code leica lens
90mm Elmarit-M 90mm f/2.8 11807 11808 100110 6 bit code leica lens
90mm Tele-Elmarit-M 90mm f/2.8 ver. II 11800 n/a 000100 6 bit code leica lens
90mm Macro-Elmar-M 90mm f/4 11633 11634 100111 6 bit code leica lens
135mm Elmarit-M 135mm f/2.8 ver. I and II 11829 n/a 001001 6 bit code leica lens
135mm APO-Telyt-M 135mm f/3.4 11889 n/a 110101 6 bit code leica lens
Leica Summilux Lenses on eBay


Preparation

There will be a few things you will need to prepare before you begin:

  1. 6 bit code leica m lens6-bit code for your particular Leica M lens
    You will need to determine the 6-bit code for your M lens. These are provided in the table above. You will need to follow and apply on the flange the black and white markings as shown for your particular lens before installing the flange on your lens. The lens I will be working on today is the Summicron-M 50mm f/2 ver. V, and the 6-bit binary code is 100001.
  2. 6-bit code Leica lens mount6-bit blank-coded M-mount flange
    M-mount flanges with 6-bit slots are available from third-party vendors. These are sometimes hit and miss. Although unlikely, the quality and fit may not be perfect with the first one you get. However, more often than not, you will get one that works well like that one I got. I cannot guarantee if the links provided here will get you the perfect one at the first attempt, but these M-mount 6-bit blank-coded flanges are mostly available from eBay. The one used in this guide was also sourced on eBay. Click here to see a listing sold on eBay now.
  3. krylon flat black enamel paintColouring medium and fine-tip brush
    The most suitable medium for this task are the matte black and matte white metal paint from Krylon (links to purchase this provided at the end of this article) or other similar non-reflective enamel paint. You can also find Krylon and Rust-Oleum paints at Ace Hardware and other hardware shops. This paint does not require any primer coat on the flange surface and can be painted directly onto metal. You may also use a suitable oil-base permanent marker pen, which is what I have used in the guide below. I believe that paint would be the better medium between the two, but for simplicity, I have selected to work with marker pens, and also to see, out of curiosity, if these would work. Whatever medium you choose, remember to always choose flat or matte colours for both black and white, and the finest tip (brush or marker pen tip size) for application of the colour to the flange. Glossy or reflective (black) paint will not work as well or may not work at all.
    N.B. You may get away with using glossy white paint or leaving the white cavities unpainted as those are supposed to be reflective (unlike the black cavities which are supposed to absorb light signals from the camera), but for reasons of consistency and adhering to the manner in which original 6-bit code markings are done on lenses by the manufacturer, flat or matte (non-glossy) white is suggested.
  4. #0000 philiips screwdriverExtra-fine Phillips precision screwdriver
    You will need a size #0000 or #4/0 Phillips precision screwdriver to remove and replace the screws that hold the M-mount flange on the lens. This is the smallest tipped Phillips precision screwdriver around, and anything larger may not work. You may already have this, but if you don’t, links to purchase this are provided at the end of this article.

6-bit Code Leica M Lens Procedure

Once you’ve prepared all the necessary materials above, we may begin. It is best that you peruse all the steps below once or twice before actually starting.

A. Preparing the New Flange

 
6 bit code leica m lens 6 bit code leica lens
 
A1. Unpack the new lens flange from its packaging.
6 bit code leica m lens 6 bit code leica lens
 
A2.Inspect the flange closely to ensure that surfaces on both sides are flat and smooth and that there are no burrs left behind from the milling process.

6 bit code leica m lens

 
A3.For my flange, I’ll be using oil-based permanent, lightfast and waterproof marker pens suitable for metal surfaces. The brand I am using is Zig Painty, but any fine-tip marker pen that fits the above description should be usable. If you’re using metal enamel paint, remember to select only matte black and matte white – not the glossy variants.

6 bit code leica m lens

 
A4.Apply the paint generously in the cavities of the flange according to the 6-bit code in the table above for your particular lens. It is ok to allow some of the paint to fall outside the boundary of the cavities by accident for now. For this Summicron-M 50mm f/2 ver. V, the code is 100001, i.e. black-white-white-white-white-black. Make sure you get the clockwise orientation correct as described above.

6 bit code leica m lens

 
A5.Wipe off any excess and reapply paint where necessary until an even fill of the cavities is achieved. You may also find it is possible to remove excess paint outside of the boundary by scraping it off with your thumbnail.

6 bit code leica m lens

 
A6.The end result should be an array of evenly filled markings in black and white of the 6-bit code for the lens as shown. Next, we will remove the existing flange and replace it with this.

B. Removing the Existing Lens Flange

 

6 bit code leica m lens

 
B1.Before removing the flange, you may want to take note of the position of the lens lock/release notch in relation to the red dot on the lens body in the diagram above, to make fitting the new flange at the correct position less of a guesswork. In any case, the screws are irregularly spaced and the flange can only fit in one orientation.

6 bit code leica m lens

 
B2.Remove the rear lens cap. Hold the lens firmly with one hand and remove the screws that secure the flange with a #0000 precision Phillips screwdriver.

6 bit code leica m lens

 
B3.Remove all 6 screws and place them in a receptacle for safe keeping. The screws may also be placed in the rear lens cap to prevent them from being misplaced or accidentally wiped off the workspace.

6 bit code leica m lens

 
B4.At this point, you may want to visualise the orientation of the 6-bit coded flange on the lens mount.

6 bit code leica m lens

 
B5.Proceed to remove the existing flange from the lens body and store it away. Tread carefully from this point onwards. KEEP THE LENS UPRIGHT OR NEAR UPRIGHT AS YOU REMOVE THE FLANGE TO PREVENT ANY PARTS OR COMPONENTS FROM FALLING OUT OF THE LENS. Read the following Step B6 before removing the flange.

6 bit code leica m lens

 
B6.IMPORTANT: Remove ONLY the flange from the lens body. Due to some oil residue on the lens, other components of the lens may stick to the flange as you’re removing it. Ensure that only the single metal flange is pulled away from the lens body, and any other loose component remains on the lens body.

N.B.: As I was removing the flange, I inadvertently pulled along some other loose parts of the lens (a separate black flange and the brass ring you see in the photo above), and it took me awhile to figure out how to reassemble that part. If you’re mechanical-savvy and have a knack for how these things work, you should have no problem reassembling it back. But it is not for the faint-hearted, and my earlier upfront warning at the start of this article applies. Just be sure you remove only the chrome silver flange as shown above.

C. Fitting on the 6-bit Coded Flange

 

6 bit code leica m lens

 
C1.Place the new 6-bit coded flange on the lens body in the correct orientation as visualised in Step B4 above.

6 bit code leica lens

 
C2.Replace all 6 screws sequentially in a cross pattern (instead of following a circular order), so that the flange is mounted flat and evenly on the lens barrel. DO NOT screw in tightly at this point, but just enough to secure the new flange in place without it being wobbly.

6 bit code leica m lens

 
C3.Once all 6 screws are in place, you may begin to screw them firmly in, finger-tight. Do not risk damaging the screw heads or threads by screwing them in too tightly. They should only be as tight as your fingers (not hand) will allow as you rotate the precision screwdriver between your fingers. Just to be sure, check that the lens lock/release notch is in the correct relative position as given in Step B1 above. As the screws are irregularly spaced, it is not likely you will get this part wrong.

6 bit code leica m lens

 
C4.And there it is…a newly 6-bit coded Leica M lens! But all is not done. We will still need to test the lens and make sure everything is done correctly and works as it should.

D.Testing the Newly 6-bit Coded Leica M Lens

 

6 bit coding leica m lens

 
D1.Test the lens by rotating focusing ring and aperture ring to make sure that nothing is jammed up, stuck, or missing. Focusing ring should still rotate smoothly and the aperture ring should still have its detents or clicks.

6 bit coding leica lens

 
D2.Next, attach the lens to your Leica M digital body and make sure that the new flange and lens mount on the camera body is a perfect fit. At any time you feel that the mounting isn’t a perfect fit or if the lens is getting stuck or in binding, you should stop and remove the lens and avoid risk of damage to your camera body lens mount. Unfortunately, there is no way to test this until we have reached this point, and if the fit is a problem, it is best to revert to the old flange, or try with another flange. No 6-bit coding convenience is worth the damage to your precious Leica M body.

6 bit code leica m lens

 
D3.Assuming the fit is ideal and perfect, the final step is to take a test shot and see if the camera reads the 6-bit coding correctly. The screenshots of Lightroom below show the results of this final test.
6 bit coding leica m lens
One of the earlier test shots I took with this lens when I first got my Leica M. I had not figured out the Lens Detection setting in the Menu then, and just attached the uncoded Summicron 50mm and took a few shots. Note that in the EXIF metadata in Lightroom shown above, it is indicated that lens is not selected. There is also no data on focal length.
6 bit code leica m lens
Right after applying the 6-bit coding to the lens, this test shot was taken and opened in Lightroom. The EXIF metadata now shows the lens name as well as the focal length above it.

Conclusion

“With one less process to keep in mind during every shoot session, the M photographer can now focus on the essentials, in a truly Leica Das Wesentliche manner.”

With the 6-bit code on Leica M lenses, shooting with the Leica M becomes more convenient without having to constantly remember to set the lens detection in the menu settings between automatic and manual.

Forgetting to switch this back to automatic during lens changes can cause the wrong metadata to be recorded to the images, as well as the wrong lens correction applied to the images, if any.

leica m lenses best deals
LEICA M LENSES Best Deals

VIEW ON EBAY

With one less process to keep in mind during every shoot session, the M photographer can now focus on the essentials, in a truly Leica Das Wesentliche manner.

The new Leica M10 comes with a feature that switches the camera back to automatic lens detection every time a 6-bit coded lens is mounted on so that you don’t have to remember to change the settings.

This would be a feature quite easily implemented on relevant past digital M bodies with a simple firmware update, I reckon. Regardless, applying 6-bit code to your Leica M lens where possible is always the better way to go.

SEE ALSO:

Please find the links to purchase parts and materials required for this 6-bit Code Leica M Lens project as follows:

 
LEICA SUMMICRON LENSES on EBAY

LEICA CAMERAS on EBAY


 
6-BIT CODED LENS FLANGE MOUNTS


 
PRECISION SCREWDRIVER AND BRUSH


 
PAINT AND COLOUR MEDIUM


 
LEICA 50MM M-LENSES


Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

17 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Jean remy
Jean remy
6 years ago

Thanks for this very good information.
Even if the answer appears evident: Is there any restriction to use this flange with Leica M10 ?
Is there any flange available for summicron 35mm “king of bokeh” ?
Thank you

Alessandro
6 years ago

Hi, thank you for this very detailed guide.
Did the paint come off after some use? When I bring my M9 around, I am used to change lenses many times according to what I shoot, so I would like to know how long can it last (roughly) before I need to apply a new layer. Thanks

Jerry
Jerry
5 years ago

Thank you for this excellent lesson. After reading it several (10?) times I decided that this is a project I can do. I easily obtained the pens and screwdriver. The replacement flange is a different story. I have checked the items for sale on ebay and cannot figure out which is the correct one for my lens: Summicron-M 50mm/2.0 chrome, 6-bit code 100001. Any help would be appreciated.

Jerry
Jerry
5 years ago
Reply to  dB

Great. Thank you very much for your help!

Bashir Lunat
Bashir Lunat
5 years ago

Very useful guide. Just a question is it also straight forward to 6bit my Noctiluc 50mm F1 (V1)? And non Leica lenses?
Thanks.

Assaf Gavra
Assaf Gavra
5 years ago

Great article
I have tele elmarit 90mm , with regular screws not equipped with philips ones , is it makes the project impossible?
Or the flange holes can accept those screws also

A

Stefano Sagri
Stefano Sagri
4 years ago

Great instructive article.
Do have a question, I have coming in an older, first version of the 35-28-50 Tri-Elmar, and am confuses as to the exact type of mount I would require. Any assistance would be appreciated. Also, who, in your opinion makes the absolute best mounts? as I also have an older, 1970 version, 50 f 2 Summicron black that would require coding.
Thanks again

Dahl
Dahl
3 years ago

Thanks for the information. It seems that 6-bit code for the 50mm APO-Summicron-M 50mm f/2 (11141) is not correct in the above table. The correct 6-bit code is 101001.

devonbuy.com