News
News
Contact Us
Home > Industry information

M12 X-Code Connector Guide: 10Gbps Industrial Ethernet, Pinout and Part Numbers

Time:2026-09-29 Views:3
M12 X-Code Connector Guide: 10Gbps Industrial Ethernet, Pinout and Part Numbers

A machine builder asked us last month why his 4-pin M12 sensor connectors wouldn‘t carry his camera feed. They wouldn‘t. Four pins do sensor power and simple signals. His gigabit camera needed eight contacts and an X-coded shell. Same 12 mm thread, completely different job. This is the bit that catches people out with M12: the thread size tells you almost nothing about what the connector can do. The code does. Here‘s what we tell customers who need real Ethernet speed in a factory.

Where X-code sits in the M12 family

M12 comes in several keyed versions, and they don‘t mate with each other. A-code and B-code are the 4 and 5-pin sensor and fieldbus types. D-code is 4-pin, used for 100 Mbit/s Fast Ethernet. X-code is the eight-contact version built for 10 Gbit/s. It‘s covered by IEC 61076-2-109 and specified to Cat6A performance, up to 500 MHz. If you‘ve read our M12 selection guide, think of X-code as the high-speed branch rather than the power branch. Same screw shell, different insert and pinout.

Why eight pins and not four

Gigabit Ethernet over two pairs works on 4 pins, which is what D-code gives you. Ten gigabit needs four pairs, so it needs eight contacts. X-code uses all eight, arranged to keep the pairs separated and the crosstalk down. That‘s the whole reason the code exists. You can‘t get 10 Gbit/s out of a D-code plug by using better cable. The connector geometry is the limit. On the bench the shells look similar, but the inserts are keyed differently, so a D-code plug won‘t go into an X-code socket. Good, really, because it stops someone plugging a slow device into a fast port.

Reading the manufacturer part numbers

The big catalogue numbers look brutal, but each one maps to a shape and a termination. 21 03 881 1813 from HARTING, ordered as M12-SD-CC-CRIMP-8P-XCOD-M-STR-CF, is a straight X-coded male cable connector with crimp contacts, 8 pins, shielded, IP65/IP67 when mated. The 3805 variant, 21 03 881 3805, is the slim angled male version. Both handle 0.5 A and 48 V, with Cat6A transmission up to 500 MHz and data rates from 10 Mbit/s all the way to 10 Gbit/s. HARTING lists AWG 28 to 23 conductors, a 0.6 Nm tightening torque and at least 500 mating cycles.

On the TE side, 2350791-1 and 2350791-2 are 8-position gold crimp receptacles, and 2350797-1 and 2350797-2 are the mating plugs. TE rates these at 10 Gb/s with a 42.5 mm low mating height, IP67, 360-degree shielding and a 22 to 26 AWG conductor range. Amphenol LTW‘s MSXS-08BMMD-SL8001 takes a different route: an X-coded 8-pin male IDC field-installable connector for Cat6A. The IDC contacts terminate without stripping the wire insulation, which is quicker on site. It‘s rated IP68 mated, 0.5 A, 50 V AC / 60 V DC, and suits 5.0 to 9.0 mm cable with 22 to 26 AWG conductors.

Spec Typical value Why it matters
Standard IEC 61076-2-109 Sets the X-code geometry and mating
Contacts 8 pin Four pairs for 10 Gbit/s
Category Cat6A, up to 500 MHz Determines the data rate
Data rate 10 Mbit/s to 10 Gbit/s Backwards compatible with slower networks
Current / voltage 0.5 A, 48 V (50 V AC / 60 V DC on IDC) Signal-only, not power delivery
Sealing IP65 / IP67, IP68 mated on IDC Washdown and outdoor use
Shielding 360-degree EMI protection in industrial settings

Termination: crimp, IDC or panel

X-code cable assemblies come three ways. Crimp, like the HARTING and TE parts, needs a crimp tool and gives a solid, repeatable termination in production. IDC, like the Amphenol LTW part, is for field work where you don‘t want to strip every conductor. Panel-mount receptacles go on the equipment side and mate with either. The choice depends on where the cable gets made. A factory building hundreds of assemblies will crimp. A technician running a cable on a production line will reach for IDC. We‘ve seen both, and we‘ll tell you which one fits your workflow.

What to check before you order

Four things: the code letter, the pin count, the termination style, and the sealing rating. Add the cable type and OD if you need an assembly. One more, easy to overlook: 0.5 A means this is a data connector, not a power one. If you‘re also sending power down the same cable, that‘s a different connector and a different design. Our M8 vs M12 guide covers the smaller format if space is tight. For the industrial Ethernet side, have a look at our M8 Ethernet adapter and the power and circular connector range.

Factory-direct supply

Branded X-code connectors from HARTING, TE and Amphenol are well documented but expensive and slow to buy in volume, with long lead times and high minimums. We source and assemble M12-format connectors in Shenzhen, including shielded circular parts and custom cable assemblies, at lower MOQ and shorter lead times. Send us the branded number, or the code, pin count and cable length, and we‘ll confirm what matches and quote it straight.

FAQ

Can I use a D-code connector for 10 Gbit/s?

No. D-code is 4-pin and made for Fast Ethernet. X-code is the 8-pin, 10 Gbit/s type.

Will X-code mate with A-code or B-code M12?

No. The inserts are keyed differently. Match the code letter on both halves.

Is X-code a power connector?

No. It‘s a data connector, typically 0.5 A and 48 V. Use a separate power connector.

What does IDC mean on these connectors?

Insulation displacement contact. It terminates the wire without stripping, handy for field installs.

Can you build a custom M12 X-code cable?

We can. Send the length, cable type and termination style and we‘ll quote it.