Short answer

A 4-pin D-coded M12 connector uses a dedicated keyway to prevent accidental mating with standard A-coded sensor cables. It transmits 100BASE-TX Fast Ethernet across two differential twisted pairs (Tx+, Tx−, Rx+, Rx−). Unlike office RJ45 patch cables, an industrial M12 assembly relies on continuous 360-degree shielding connected to the metal connector housing to survive electromagnetic noise from variable frequency drives.

PNP sensor to PLC input wiring diagramA three-wire PNP sensor sends positive voltage to a PLC input.PNP / SOURCING OUTPUTSENSOR3-wire DCPLC INPUTsinking / common −I0.0+24 V / brownsignal / black0 V / blue Original diagram · Signal Field Guide / field note connectors

Quick reference: M12 D-Coded (100BASE-TX) Fast Ethernet Industrial Pinout Specification

M12 D-Coded (100BASE-TX) Fast Ethernet Industrial Pinout Specification
Pin NumberWire Color (PROFINET / Industrial)Signal NameElectrical Function
Pin 1Yellow (or White-Orange)TD+ (Tx+)Transmit Data Positive Differential
Pin 2White (or White-Green)RD+ (Rx+)Receive Data Positive Differential
Pin 3OrangeTD− (Tx−)Transmit Data Negative Differential
Pin 4Blue (or Green)RD− (Rx−)Receive Data Negative Differential
Shield / BodyBraided copper mesh & drainChassis Earth360° Continuous Shield Termination to Housing

What to look for

The standardized industrial Ethernet color code places Pin 1 as Yellow (or White-Orange, Tx+), Pin 2 as White (or White-Green, Rx+), Pin 3 as Orange (Tx−), and Pin 4 as Blue (or Green, Rx−). A common installation error occurs when field technicians follow T568B color sequencing inside an unshielded field-wireable plug, inadvertently pairing Tx+ with Rx− and creating extreme near-end crosstalk (NEXT).

When a PLC port shows intermittent link flapping or high FCS error counts, measure cable loop resistance across each pair and verify shield continuity from shell to shell. A cable tester that only verifies DC continuity will miss impedance discontinuities caused by crushed jackets, tight bend radii in drag chains, or loose knurled coupling nuts.

FIELD CASE / REASONING PATH

When the symptom appears in the plant

A bottling packaging line suffered random Profinet communication drops between a PLC rack and a remote pneumatic valve manifold whenever high-power conveyor drives ramped up. Static ping tests passed with 0% loss, but real-time industrial Ethernet frames failed CRC checks. Inspection revealed an unshielded field-wireable M12 connector where the shield drain wire was cut flush instead of crimped against the metal connector housing, leaving the differential pairs unshielded across the final 40 mm.

Safety & Meter Pitfall

Split-Pair Wiring Trap on Field-Wireable M12 Connectors

When assembling field-attachable M12 D-coded plugs, do not terminate wires simply based on visual circular symmetry. In 100BASE-TX Ethernet, Pin 1 and Pin 3 MUST be routed through the exact same twisted pair inside the cable jacket, and Pin 2 and Pin 4 MUST be routed through the other pair. Splitting a pair across pins 1 and 2 destroys common-mode noise rejection and causes near-end crosstalk (NEXT), leading to severe packet drops as soon as nearby variable frequency drives are energized.

DIAGNOSTIC SEQUENCE

Five checks before replacement

  1. Check managed switch port error counters (specifically CRC errors, FCS errors, and link status flaps).
  2. Power down and measure end-to-end DC continuity across each of the two twisted pairs using a digital multimeter (should be <10 Ω for runs under 80 meters).
  3. Measure DC insulation resistance between each conductor and the metallic connector shield (must be >100 MΩ at 250 V DC).
  4. Inspect the M12 mating face for bent male pins, recessed female sockets, or conductive fluid contamination.
  5. Verify tightening torque on the knurled locking ring (0.6 Nm is standard; hand-tight connections frequently loosen under machine vibration).
PRACTICAL NOTES

Always use pre-molded M12 cables with 360-degree overmolded shielding for continuous-motion drag chain applications.

D-coded Ethernet is limited to 100 Mbps; Gigabit (1000BASE-T) industrial Ethernet requires an 8-pin X-coded M12 connector.

Never run unshielded industrial Ethernet cables parallel to 480 V AC servo motor power leads in the same wireway.

BEFORE YOU REPLACE THE PART

Bench checklist

  • Confirm connector coding: verify D-coding keyway (4 pins) instead of A-coding (standard sensor).
  • Inspect cable wire pairing: ensure Pin 1 (Tx+) and Pin 3 (Tx−) form one twisted pair; Pin 2 (Rx+) and Pin 4 (Rx−) form the other.
  • Measure shield continuity from the connector metal housing to the switch chassis ground.
  • Verify bend radius in moving drag chains: ensure high-flex Cat5e cable meets minimum 10x outer diameter bend radius.
  • Check switch port diagnostics: monitor CRC, runts, and frame alignment errors on the managed Ethernet switch.

Reference families

  • IEC 61076-2-101
  • PI Profinet Installation Guideline
  • ODVA Media Planning Manual

Always verify the current edition and the exact device manual for the installation.

READ THE PRIMARY MATERIAL

Official references

These links point to standards bodies, industry organizations, or manufacturer documentation. Standards landing pages may require purchase or institutional access.

MV
FIELD INSTRUMENTATION & CONTROLS SPECIALIST

Marcus Vance, PE

16+ Yrs Field Exp

Marcus is a licensed Professional Engineer specializing in industrial process automation, PLC/DCS I/O commissioning, and instrumentation troubleshooting across petrochemical and manufacturing facilities.

Peer-reviewed for IEC & ISA standards compliance · Editorial methodology →
This note is an educational reference, not a substitute for the equipment manual, site procedures, or qualified electrical work.