M12 Coding Cheat Sheet
Based on ยง8.1 of the M12 deep dive โ this page is the print-friendly extract; the deep dive is the authority, and the exact part's datasheet outranks both.
Coding keyways and insert geometry prevent mismatched codings from mating โ exact geometry per IEC 61076-2-101/-109/-111 and the manufacturer drawing. Standardization improves cross-vendor interoperability, but it does not make it automatic: exact code, pin count, gender, shielding, sealing, torque, and cable-assembly details still need verification against the specific part.
The codingsโ
| Code | Pins | Primary use | Practical note |
|---|---|---|---|
| A | 3/4/5/8 | DC sensors, actuators, I/O, IO-Link, some CAN | 4-pin A-coded is extremely common for basic industrial sensors. IO-Link = a point-to-point digital sensor/actuator protocol carried over the same unshielded 3โ4 wires. |
| B | 5 | PROFIBUS and similar fieldbus | Less common in new systems; keyed differently from A |
| D | 4 | 10/100BASE-TX industrial Ethernet | 4-pin; commonly used for 10/100 Mbps; not rated for GbE/10G |
| X | 8 | Gigabit / 10G-class industrial Ethernet | 8-pin, shielded; used for GbE/10G applications |
| L | 4+FE | Higher-current DC power (e.g. PROFINET power) | 4 power contacts + FE (functional earth) per DIN EN 61076-2-1111; vendor example rating 12 A/16 A at 63 V DC โ distributed I/O power, higher current than A; verify exact rating by catalog |
| T | 4 | DC power (dedicated) | 4 contacts per DIN EN 61076-2-1111; vendor example rating 12 A at 63 V DC โ verify exact rating by catalog |
| S | 4/5 | AC power | Application-specific; verify by catalog |
| K | 4+PE | AC power | 4 power contacts + PE (protective earth); the 630 V AC class is an example configuration per IEC 61076-2-1112, not a universal M12 rating โ verify exact current, voltage, and pinout by standard edition and catalog/application |
Schematic face views of the four most common codings.
Which standard covers whatโ
- IEC 61076-2-101 โ many common A/B/D signal/data codings.3
- IEC 61076-2-109 โ X- (and H-) coded high-speed data.4
- IEC 61076-2-111 โ power codings such as S/T/K/L.5
The two mix-ups this sheet exists to preventโ
- A-coded current: many A-coded M12 connectors are in the ~4 A class within common standard/catalog scopes,3 but the exact rating depends on the connector, cable assembly, wire gauge, loaded contacts, and temperature. Use L-, T-, or other power codings where the exact datasheet supports the load.
- D vs. X: D-coded is not obsolete โ it is the common 10/100BASE-TX choice.3 X-coded is for GbE/10G-class Ethernet4 and is not a blanket default for every Ethernet use. Choose by data rate, then verify cable category, shielding, pinout, and assembly rating.
Record before you commitโ
- Coding and pin count, from the drawing (not the listing photo)
- Standard identifier and edition/date checked
- Manufacturer datasheet revision used for the design
- Exact current/voltage rating for the loaded configuration
- Gender, shielding, sealing (mated and unmated), and coupling torque per the exact datasheet
This is a working reference, not a standard. The datasheet, applicable standard, and customer/program requirements always win. Scenario walkthroughs: Industrial sensor ยท Rugged Ethernet.
