M12 connector coding assigns one-letter mechanical keyways inside a 12 mm ISO metric screw-locking circular shell so sensor, fieldbus, industrial Ethernet, and AC or DC power cordsets cannot cross-mate. Matching only thread size and pin count causes field rework when a pre-terminated cable meets an incompatible keyway on a switch or sensor port.

In industrial automation, the IEC metric screw-sized connector family spans M5, M8, and M12 shells whose numbers denote outer screw thread diameter in millimeters. Each letter code defines pin layout, mating surface geometry, and electrical ratings across the IEC 61076-2 product standards, fitting alongside connector and datasheet records on the components hub.

Coding IEC Standard Standard Pin Layouts Electrical Rating Primary Industrial Duty
A-coded IEC 61076-2-101 2 to 17 pins 4 A / 250 V (2–4 pin) down to 1.5 A / 30 V (9–17 pin) Sensors, actuators, IO-Link, DeviceNet, CANopen, PROFIBUS PA, 1 Gb/s Ethernet
B-coded IEC 61076-2-101 5 pins 2 A / 60 V AC/DC Non-Ethernet fieldbus connections such as PROFIBUS DP
C-coded IEC 61076-2-101 3 to 6 pins AC sensor and motor power (being replaced by S-coded) Legacy AC power and motor connections
D-coded IEC 61076-2-101 4 pins 4 A / 250 V AC/DC 100 Mb/s Fast Ethernet (PROFINET, EtherNet/IP) and Type 1 PoE
X-coded IEC 61076-2-109 8 pins Up to 500 MHz (Cat 6A or higher cabling) 10 Gb/s Industrial Ethernet and Type 2 or higher PoE
Y-coded IEC 61076-2-113 8 pins Up to 100 MHz Hybrid power plus 100 Mb/s Ethernet in one housing
L-coded IEC 61076-2-111 2, 2+FE, 3, 3+FE, 4, 4+FE 12 A or 16 A / 63 V DC High-current PROFINET and field DC power distribution
T-coded IEC 61076-2-111 2, 3, or 4 pins 12 A / 60 V DC DC power distribution replacing A-coded DC power
S-coded IEC 61076-2-111 2+PE or 3+PE 12 A / 300 V AC (2+PE) or 600 V AC (3+PE) Single-phase and 3-phase delta AC power replacing C-coded
K-coded IEC 61076-2-111 2+PE, 3+PE, or 4+PE 16 A / 600 V AC Single-phase, 3-phase delta, and 3-phase wye AC power
M-coded IEC 61076-2-111 2+PE to 5+PE 8 A / 600 V AC Single-phase, 3-phase, and 3-phase motor plus auxiliary pair

What Are the Main M12 Connector Coding Types?

The main M12 connector coding types divide into four functional groups defined across separate IEC standards: signal and fieldbus codings (A, B, and C under IEC 61076-2-101), industrial Ethernet codings (D, X, H, and hybrid Y), high-current power codings (E, F, K, L, M, P, S, and T under IEC 61076-2-111), and fiber optic M12-FO (IEC 61754-27).

As summarized in the IEC metric screw sized connectors reference, every coding letter alters the physical keyway inside the shell so a 600 V AC power cable cannot plug into a 24 V DC sensor input or a 100 Mb/s Ethernet port. L-com technical notes highlight that A-, B-, D-, and X-coded connectors are the most widely deployed in automation panels because A, B, and D originated with the earliest M12 releases while X-coded grew rapidly alongside high-speed industrial Ethernet.

Six-panel M12 connector coding chart showing A-coded, B-coded, D-coded, X-coded, L-coded, and S- or K-coded circular mating faces, IEC 61076-2 standards, pin counts, and electrical ratings.
Schematic comparison of six primary M12 codings across IEC 61076-2-101, IEC 61076-2-109, and IEC 61076-2-111, showing how keyway geometry separates signal, fieldbus, Ethernet, and power circuits.

Two additional codings cover specialized links beyond the core six. IEC 61076-2-109 defines 8-pin H-coding alongside X-coding for data transmission frequencies up to 500 MHz, while IEC 61076-2-113 defines 8-pin Y-coding for combined power and 100 Mb/s Ethernet up to 100 MHz. For optical links in harsh machine zones, IEC 61754-27 defines M12-FO with two optical channels and two electrical contacts.

How Do You Read an M12 Connector Coding Chart?

Reading an M12 connector coding chart requires checking five fields in sequence: thread diameter (12 mm for M12), coding letter (keyway and standard), contact count, pin-count electrical derating, and coupling-thread style (rotating cable nut versus fixed panel thread). Confirming only the first two fields still leaves voltage limits and mechanical mating errors unresolved.

Check pin-count electrical derating

Higher pin density reduces contact diameter and creepage spacing inside the same 12 mm shell, so voltage and current ratings step down sharply as pin count rises. On A-coded M12 connectors, a 4-pin plug handles 4 A at 250 V AC/DC, whereas a 12-pin insert in the exact same A-coded shell drops to 1.5 A at 30 V AC/DC. In workplace electrical compliance, OSHA Section 1910.303 evaluates equipment suitability by type, size, voltage, current capacity, and specific use, and requires listed or labeled equipment to be installed and used in accordance with its listing instructions.

M12 A-Coded Pin Count Current Rating per Pin Voltage Rating Typical Circuit Envelope
2, 3, or 4 pins 4 A 250 V AC/DC Standard DC sensors, actuators, and low-voltage control feeds
5 pins 2 A 60 V AC/DC IO-Link Port Class B, DeviceNet, CANopen, and PROFIBUS PA
6, 7, or 8 pins 2 A 30 V AC/DC Multi-signal sensors and legacy 1 Gb/s A-coded Ethernet
9 to 17 pins 1.5 A 30 V AC/DC Dense multi-channel discrete or analog signal harnesses

Verify fixed versus rotating threads and custom pin removal

Mechanical mating also depends on which half carries the rotating coupling nut. Cable-end connectors use freely rotating screw threads to tighten onto a mating socket, whereas equipment panel-mount connectors use fixed non-rotating threads regardless of male or female gender. As a result, two cable ends can couple together inline, while two panel-mount connectors cannot screw directly together.

All IEC metric connector variants also allow removing one or more pins to create custom, incompatible keying arrangements. For example, removing a single pin from a 6-pin layout yields six distinct 5-pin variations that will not interchange, so always match the exact part drawing rather than counting occupied cavities alone. When comparing circular M12 interfaces against rectangular panel inserts, review the Han rectangular connector replacement record to keep housing ratings and assembly constraints documented separately.

What Is A-Coded M12 Pinout Used For?

A-coded M12 connectors under IEC 61076-2-101 are the primary industrial interface for discrete sensors, actuators, DC control power, IO-Link, DeviceNet, CANopen, PROFIBUS PA, and legacy 1 Gb/s Ethernet across 2- through 17-pin layouts. Because A-coding spans so many protocols, the exact pinout depends on the field standard assigned to the port.

Under the IO-Link standard (IEC 61131-9), cabling consists of unshielded 3- or 5-conductor cables up to 20 meters long with pin assignments derived from IEC 60947-5-2. Master ports carry female connectors and field devices carry male connectors, while every M12 IO-Link port uses mechanical A-coding per IEC 61076-2-101.

M12 A-Coded Pin IO-Link Port Class A (Max 4 Pins) IO-Link Port Class B (5 Pins, M12 Only) Electrical and Standard Basis
Pin 1 +24 V DC supply (L+) +24 V DC supply (L+) 24 V DC max 200 mA between pins 1 and 3 from master
Pin 2 Unspecified (manufacturer-defined) Additional power supply Auxiliary actuator supply on Class B ports
Pin 3 24 V DC supply return (L-) 24 V DC supply return (L-) Completes the 24 V DC device supply loop
Pin 4 DI / DO or IO-Link communication DI / DO or IO-Link communication IEC 61131-2 backward-compatible with IEC 60947-5-2 proximity sensors
Pin 5 Not specified (absent on 4-pin) Additional power supply return Required on 5-pin M12 Class B ports

IO-Link operates at 4.8 kilobaud, 38.4 kilobaud, or 230.4 kilobaud, achieving a 400-microsecond minimum transmission time at 230.4 kilobaud. When connecting discrete switching sensors on Pin 4 to controller cards, pair the connector pinout check with the PNP vs. NPN proximity sensor wiring guide to verify sourcing, sinking, and leakage limits.

Separating A-coded fieldbuses from B-coded PROFIBUS DP

Beyond point-to-point sensor ports, 5-pin A-coded M12 connectors carry DeviceNet, CANopen, and PROFIBUS PA fieldbus drops rated 2 A at 60 V AC/DC. For non-Ethernet PROFIBUS DP segments, plants switch from A-coding to 5-pin B-coded M12 rated 2 A at 60 V AC/DC so serial fieldbus trunks cannot cross-mate with 24 V sensor ports.

When Do You Need D-Coded vs. X-Coded M12 Connectors?

Use 4-pin D-coded M12 connectors (IEC 61076-2-101) for 100 Mb/s Fast Ethernet over two twisted pairs and Type 1 PoE, and upgrade to 8-pin X-coded M12 connectors (IEC 61076-2-109) when links demand Gigabit or 10 Gb/s throughput up to 500 MHz over Category 6A or higher cabling or Type 2 and higher PoE.

In harsh factory zones subject to ongoing machinery vibration, M12 and M8 locking connectors are far more durable than standard RJ-45 plugs because their threaded shells lock mechanically into place, supporting the performance, reliability, and safety requirements highlighted for operational technology (OT) systems in NIST SP 800-82 Rev. 3. D-coded M12 carries four contacts rated 4 A and 250 V AC/DC, which restricts data transmission to 100 Mb/s Fast Ethernet for protocols such as PROFINET and EtherNet/IP because only two wire pairs are present.

Ethernet Coding Governing Standard Contacts and Shielding Max Data Rate / Bandwidth PoE and Cabling Requirement
D-coded M12 IEC 61076-2-101 4 pins (2 twisted pairs) 100 Mb/s Fast Ethernet Type 1 (2-pair) PoE; Cat 5e or higher cabling
X-coded M12 IEC 61076-2-109 8 pins (4 pairs with internal shield) Up to 10 Gb/s / 500 MHz Type 2 and above PoE; Category 6A or higher cabling
Y-coded M12 IEC 61076-2-113 8 pins (hybrid power + signal) 100 Mb/s Ethernet / 100 MHz Combined device power and Fast Ethernet in one cordset

ShowMeCables and Fluke Networks engineering guidance notes that X-coded 8-pin connectors are steadily replacing both A-coded and D-coded ports on new high-bandwidth industrial switches and vision cameras because their shielded 8-contact architecture supports up to 10 Gb/s without crosstalk bottlenecks. When specifying field switches alongside M12 patch cords, review our managed vs. unmanaged industrial Ethernet switch guide to align port coding with ring-redundancy and multicast requirements.

What Is L-Coded M12 Used For in Field Power?

L-coded M12 connectors under IEC 61076-2-111 distribute high-current low-voltage DC power up to 63 V DC and 12 A or 16 A per pin across 2-pin through 4+FE configurations, making them the dedicated field-power standard for decentralized PROFINET I/O blocks and DC distribution rails.

Historically, engineers fed 24 V DC field devices through 4-pin A-coded M12 connectors limited to 4 A per contact, forcing parallel power drops or bulky larger-diameter connectors. L-coded M12 eliminates that bottleneck inside the same 12 mm threaded envelope while mechanically blocking accidental connection to sensor or Ethernet ports.

Comparing IEC 61076-2-111 DC and AC power codings

IEC 61076-2-111 separates DC power codings (L, T, E, and F) from high-voltage AC power codings (K, S, and M) so low-voltage 24 V DC control electronics can never receive 300 V or 600 V AC mains power. As L-com technical summaries note, T-coded parts replace legacy A-coded DC power drops and S-coded parts replace legacy C-coded AC power drops.

Power Coding Current Type Contact Configurations Max Current Max Voltage Typical Power Application
L-coded DC 2, 2+FE, 3, 3+FE, 4, 4+FE 12 A or 16 A 63 V DC PROFINET DC power and high-current field I/O rails
T-coded DC 2, 3, or 4 pins 12 A 60 V DC Compact DC power replacing legacy A-coded DC feeds
S-coded AC 2+PE or 3+PE 12 A 300 V AC (2+PE) / 600 V AC (3+PE) Single-phase or 3-phase delta AC motors and drives (replaces C-coded)
K-coded AC 2+PE, 3+PE, or 4+PE 16 A 600 V AC High-current single-phase, 3-phase delta, and 3-phase wye AC
M-coded AC 2+PE, 3+PE, 4+PE, 5+PE 8 A 600 V AC 3-phase AC power and 3-phase motor plus auxiliary wire pair

What Is the Difference Between M8 and M12 Connectors?

The primary difference between M8 and M12 connectors is the outer ISO metric locking thread diameter: 8 mm for M8 versus 12 mm for M12. That smaller thread diameter makes M8 ideal for compact, space-limited sensors and actuators, while M12 accommodates higher pin counts (up to 17 pins), 5-pin IO-Link Port Class B, and high-power 16 A DC or 600 V AC circuits.

ShowMeCables notes that both M8 and M12 use threaded locking mechanisms to resist vibrations, shocks, and mechanical stresses, yet their IEC product standards and electrical envelopes diverge quickly once a machine needs auxiliary power or multi-conductor density.

Side-by-side comparison of M8 (8 mm thread) and M12 (12 mm thread) circular connectors showing proportional outer diameters, IEC 61076-2 standards, pin counts, electrical envelopes, and IO-Link Port Class A versus Class B boundaries.
Proportional comparison of 8 mm M8 and 12 mm M12 circular connectors across IEC 61076-2 standards, electrical limits, and IO-Link port class constraints.
Selection Factor M8 Circular Connector M12 Circular Connector
Outer screw thread diameter 8 mm ISO metric thread 12 mm ISO metric thread
Governing IEC standards IEC 61076-2-104 (A, B) and IEC 61076-2-114 (D, P up to 100 MHz) IEC 61076-2-101, -109, -111, -113, and IEC 61754-27
Locking mechanism Screw-locking or snap-locking Screw-locking (rotating cable nut onto fixed panel thread)
Typical pin counts 3, 4, 6, 8 pins (A), 5 pins (B), 4 pins (D/P), 12 pins (C) 2 to 17 pins (A), 4–8 pins (Ethernet), 2–5+PE/FE (Power)
Signal current / voltage envelope 3 A / 60 V (3-pin A), 3 A / 30 V (4-pin A, 5-pin B), 1 A / 30 V (6–8 pin A) 4 A / 250 V (2–4 pin A/D), 2 A / 60 V (5-pin A/B), 1.5 A / 30 V (9–17 pin A)
High-power DC / AC capability Signal and low-power sensor loads only Up to 16 A / 63 V DC (L-coded) or 16 A / 600 V AC (K-coded)
Industrial Ethernet support 4-pin D-coded (100 Mb/s, Type 1 PoE) and 8-pin (up to 10 Gb/s, Type 2+ PoE) 4-pin D-coded (100 Mb/s, Type 1 PoE) and 8-pin X-coded (up to 10 Gb/s, Type 2+ PoE)
IO-Link port compatibility Port Class A only (maximum 4 pins) Port Class A (4 pins) and mandatory for Port Class B (5 pins)

Both M8 and M12 assemblies are widely specified with IP67 or higher ingress protection ratings, providing dust-tight sealing and protection against temporary immersion in water. Under workplace electrical rules, OSHA Section 1910.303 prohibits placing conductors or equipment in damp, wet, or deteriorating environments unless identified for that operating environment, OSHA Section 1910.305 requires weatherproof covered enclosures for receptacles in damp or weather-protected outdoor locations, and OSHA Section 1910.399 defines watertight equipment as constructed so moisture will not enter the enclosure in wet locations such as washing areas; see our high-pressure washdown protection guide before finalizing connector sealing for high-pressure sanitation lines.