Renhotec / Product guides

A, B, D or X? Start with the mating face, then match the connector to the port’s job.

M12 connectors can look similar from the outside while carrying sensor signals, Ethernet data or power. Their coding changes the mating interface to help prevent the wrong connection. To identify a connector, look at the keying and contact arrangement together; counting the pins is only part of the job.

Find a codeABDXPower codes
On this page

Read the interface

What does M12 coding tell you?

The coding letter identifies a keyed mating interface. Features in the insert align the contacts and distinguish interfaces that should not mate. A, B, D and X are different codes, not successive grades of quality.

Renhotec M12 four-pin A-coded male field-assembly connector

RHT-634-3370-04-PG7
Four-pin, A-coded male plug

Coding
Read the key profile and contact layout at the mating face.
Contact count
Count the pins or sockets. One coding can have several contact arrangements.
Male or female
Identify pin or socket contacts. The coupling thread alone does not establish contact gender.
Locking style
Check the mating mechanism as well as the coding. A letter alone does not specify the complete mechanical connection.

For a screw-locking M12 interface, the mating thread is M12 × 1. That thread size does not tell you the pin functions, operating voltage or network protocol. The IEC 61076-2-101 interface specification distinguishes multiple contact arrangements and codings within the M12 family.

If you are still choosing between connector sizes, start with M8 vs M12 connectors.

Mating-face atlas

Identify A-, B-, D- and X-coded M12 connectors

Look straight at the mating face and use the key as your orientation reference. Compare male with male, or female with female. A mating-face view and a wire-termination view face opposite directions, so contact positions cannot be copied between them without checking the drawing.

Read the shape, then the contacts

Male contacts · mating-side views
A4 contacts shown
A-coded 4-contact male mating faceFour male contacts around the centre, with a narrow rounded key recess at the top. Recognition drawing; not a wiring or dimensional drawing.

Narrow rounded key recess. A-coding also comes with other contact counts.

Catalog p. 78
B5 contacts shown
B-coded 5-contact male mating faceFive male contacts, including a centre contact. Two shallow shoulders flank the raised central key profile at the top. Recognition drawing; not a wiring or dimensional drawing.

A central key profile between two shoulders, plus a centre contact in this five-contact arrangement.

Catalog p. 78
D4 contacts
D-coded 4-contact male mating faceFour male contacts. Two shoulders flank a central key profile at the top; an additional recess appears on the left side in this view. Recognition drawing; not a wiring or dimensional drawing.

A stepped top profile and a side recess. Four contacts alone do not distinguish it from A-coded.

Catalog p. 78
X8 contacts
X-coded 8-contact male mating faceEight male contacts grouped in four pairs, separated by a cross-shaped partition. Recognition drawing; not a wiring or dimensional drawing.

Four separated contact pairs. Compare this partitioned face with the A-coded eight-contact face below.

Catalog p. 157
The recognition drawings follow the Renhotec catalog contact arrangements. Green lines highlight the keying features on A/B/D; X shows the partition between contact pairs. Not to scale; use the exact product drawing for dimensions and contact numbering.

A-coded and D-coded can both have four contacts in similar positions. The A-coded face has a narrow rounded recess at the top. The D-coded face has a stepped top profile and an additional side recess in this orientation. Match the complete face before trying to engage the connector; do not force parts together to test a suspected match.

Scroll sideways to read all columns.

M12 coding chart: common signal and data connections
CodeTypical useWhat to establish next
ASensor and actuator connections; also specified DC-power and fieldbus interfacesContact count, device functions and the required signal assignment
BPROFIBUS DP connectionsThe specified bus connector, cable and termination arrangement
DFour-contact industrial Ethernet, commonly 100 Mbit/sEquipment port, pair assignment and cable performance
XEight-contact Ethernet connections, with products supporting up to 10 Gbit/sThe required link speed and the performance of the entire assembly

Typical uses: binder’s coding guide.

A, B, D and X are common codes, but other M12 codings exist. For an unfamiliar code on existing equipment, use its part number and mating drawing.

A closer comparison

Eight contacts do not make two connectors interchangeable

An eight-contact A-coded connector has a different face from an eight-contact X-coded connector. The A-coded arrangement below places one contact in the centre. The X-coded face separates four pairs into individual sectors.

A-coded 8-contact vs X-coded 8-contact

Male · mating side
A-coded 8-contact male mating faceSeven male contacts around one centre contact, with a narrow rounded key recess at the top. Recognition drawing; not a wiring or dimensional drawing.

A-coded

Seven outer contacts
+ one centre contact

X-coded 8-contact male mating faceEight male contacts grouped in four pairs, separated by a cross-shaped partition. Recognition drawing; not a wiring or dimensional drawing.

X-coded

Four pairs
in separated sectors

Compare the keying and arrangement, not just the total number of contacts. Sources: Renhotec catalog p. 78 and p. 157. Recognition views, not pin assignments.

An adapter that changes the plug shape cannot by itself turn a sensor port into an Ethernet port. Even where two ends use the same coding, the assembly still has to connect the functions the equipment expects.

Select for the connection

Choose the code by the port’s job

When replacing a cable, the equipment port determines the coding you need. When designing a new connection, choose the electrical task and mating interface together.

Sensor signals and fieldbus connections

Start with A-coded for a sensor or actuator port that specifies it. Contact count matters because it changes the available circuits, and the device determines what each contact does. A five-contact cable is not automatically a substitute for every four-contact sensor cable.

Once you have identified an A-coded sensor connection, use the M12 A-coded 4-pin and 5-pin wiring reference for the next step. Keep the equipment’s signal diagram alongside it. A wire color cannot establish a contact’s function on its own.

A
RHT-634-3370-04-PG7

Four-pin male A-coded plug with screw contacts for field assembly.

Renhotec

B-coded is a common choice for PROFIBUS DP interfaces. Match a replacement to the specified B-coded port and bus wiring.

B
RHT-634-3423-5B-XXX

Five-pin male B-coded panel receptacle with wires, for the equipment side of a connection.

Renhotec

D-coded or X-coded for Ethernet?

D

Four contacts

A common interface for 100 Mbit/s industrial Ethernet. Use it when the equipment specifies a D-coded port and the assembled link meets the network requirements.

X

Eight contacts

Four contact pairs support higher-speed Ethernet implementations. For a 1 Gbit/s or 10 Gbit/s application, select the cable assembly for that speed and match the equipment’s X-coded interface.

Changing from D-coded to X-coded usually involves more than replacing a plug: the port, pair arrangement and cabling must support the intended link. Conversely, an X-coded port does not guarantee that the device itself operates at 10 Gbit/s. See the manufacturer’s typical coding applications and the actual device specification.

D
RHT-M12001-4D

Four-pin male D-coded single-ended molded cable assembly.

Renhotec
X
RHT-634-3052-8X

Eight-pin male X-coded shielded field-assembly plug with crimp contacts.

Renhotec

Power connections

S, T, K, L and M need their own matching check

M12 power codings separate different power interfaces. S and K are commonly associated with AC power applications; T and L with DC power applications. These families are not interchangeable, and their names do not supply a complete operating rating. Power-coding application reference.

Scroll sideways to read all columns.

Power coding: start with the mating interface
CodeSelection starting pointA distinction to retain
S / KAC power equipment specifying that exact codeS and K have different contact arrangements; match the required protective-earth connection
T / LDC power equipment specifying that exact codeCheck power circuits and the documented earth function; do not equate FE with PE
MEquipment specifying an M-coded power interfaceMatch its contact arrangement and circuit assignment; it is not a substitute selected solely by contact count

PE is protective earth; FE is functional earth. PE serves the equipment’s protective measure against electric shock. FE serves a functional purpose, such as interference control. A contact specified as FE cannot be treated as a protective-earth contact merely because both are earth connections. The Phoenix Contact M12 overview distinguishes L-coded configurations with FE from K- and M-coded configurations with PE.

Use the exact power connector and cable specifications for voltage, current, conductor size and installation conditions. IEC 61076-2-111:2025 covers several M12 power interfaces; a value applying to one interface or product must not be assigned to the whole family.

Follow the ports

Why one device uses three different M12 codes

A field-mounted I/O device can use M12 for several independent jobs. The Belden LioN-Xlight model below has A-coded I/O connections, D-coded Ethernet connections and L-coded power connections. Identifying one M12 port does not identify the other ports on the same housing.

One device, three connection roles

IO-Link master · connection groups
Highlight ports

8 I/O · 2 network · 2 power connections

A

Sensors and I/O devices

8 connections · 5 contacts each

Four of the eight I/O connections are IO-Link Class A master ports; the model also provides eight digital inputs.

D

Ethernet network

2 connections · 4 contacts each

D-coded interfaces connect this device to its EtherNet/IP network.

L

Device power

2 supply connections

The power assembly has its own interface, separate from the I/O and network connections.

Illustration based on Belden 0980 LSL 3110-121-0006-002 and its technical data sheet. Interface groups follow the device layout; contact details and wiring are omitted. Use the product drawing for installation dimensions.

For this device, select a sensor cable for an A-coded I/O port, a network cable for a D-coded network port, and the specified power assembly for an L-coded power port. Trace the cable’s destination before choosing a replacement, particularly where several M12 cables enter the same machine.

From identification to an order

Match the replacement to the actual port

A clear photograph helps identify a connector, but the equipment model and part number usually resolve details that a photograph cannot show. Record the port label before disconnecting an assembly, following the equipment’s isolation and maintenance procedure.

  1. Identify both mating interfaces

    Record the coding, contact count, pin or socket contacts and locking style at each end. Compare the mating faces with the appropriate connector drawing. Cable-jacket color is not a reliable coding identifier.

  2. Keep the electrical job attached to the port

    State whether the connection carries sensor I/O, a specified network or power. Match contact assignments, shielding and any PE/FE requirements. An identical connector name does not prove an identical cable wiring arrangement.

  3. Check the assembly in its installation

    Confirm the required operating conditions, cable length, straight or angled exit, routing space and cable suitability. Check the stated sealing conditions, including whether the protection rating requires the connector to be mated.

  4. Order a traceable configuration

    Include the equipment reference, both end descriptions and the required wiring or assembly drawing. For a repeat order, retain the part number and approved drawing revision together.

Browse Renhotec M12 connectors and cable assemblies once the interface is identified. For a configuration enquiry, send the equipment and connection details so the proposed assembly can be matched to the actual task.