A passive M12 to RJ45 cable or adapter connects ruggedized industrial equipment to standard 8P8C (RJ45) switch, router, or PC ports—provided both endpoints support a common multi-pair Ethernet mode and data rate (10BASE-T, 100BASE-TX, 1000BASE-T, or 10GBASE-T). Because passive assemblies do not convert signaling protocols or data rates, start by matching the connector coding on your device receptacle: use 4-pin D-coded (two twisted pairs) for 10BASE-T / 100BASE-TX links, and 8-pin X-coded (four twisted pairs) for 1000BASE-T and 10GBASE-T channels. If you already know your connector type and need the wiring tables right away, jump directly to the M12 to RJ45 Pinout and Wiring Reference.
When a Passive M12 to RJ45 Cable or Adapter Works
An M12 to RJ45 cordset or bulkhead adapter is a purely passive interconnect. It transitions the circular industrial contacts to a modular RJ45 plug or jack without performing any signal modulation, speed conversion, or protocol translation.
Compatible Multi-Pair Ethernet Interfaces and Shared Rate Requirements
For multi-pair Ethernet, both connected ports must support at least one common mode and data rate, and the complete cable channel must meet that mode's signal requirements. A passive adapter cannot bridge a speed mismatch.
Compare the modes at both ends
Physical Link vs. Upper-Layer Industrial Protocols
Getting a valid link LED on an RJ45 switch or PC network interface card (NIC) confirms physical-layer connectivity, but it does not automatically enable application data exchange. Industrial Ethernet devices may rely on real-time protocol stacks such as PROFINET, EtherNet/IP, or EtherCAT:
- For IP-based protocols, each endpoint must have a unique IP address within a compatible subnet (or appropriate gateway routing) along with matching VLAN settings.
- For non-IP or specialized industrial frames (such as standard EtherCAT frames or PROFINET discovery), the connected controller or PC software must run the corresponding protocol driver and device configuration.
Interfaces That Cannot Use a Passive M12 to RJ45 Cable
- Fieldbus and Non-Ethernet M12 Ports: Rewiring pins cannot turn a non-Ethernet port into Ethernet. For instance, M12 B-coded connectors are widely used for fieldbuses such as PROFIBUS, while standard A-coded receptacles commonly carry discrete sensor/actuator I/O or DC power. Connecting non-Ethernet signaling to an RJ45 switch or NIC will not establish a link and risks damaging the port.
- Single-Pair Ethernet (
100BASE-T1/1000BASE-T1): Industrial and automotive Single-Pair Ethernet (SPE) transmits full-duplex data over a single twisted pair. Because a T1 physical layer cannot communicate directly with a multi-pair RJ45 PHY, bridging a T1 device to a standard RJ45 port requires a powered active media converter designed specifically for T1-to-RJ45 conversion (see the PEAK-System PAE Media Converter user manual). Keep in mind that a T1 media converter only bridges IEEE 802.3 T1 and multi-pair RJ45 Ethernet—it cannot convert non-Ethernet fieldbuses.
The 8-Pin A-Coded Exception
Do not assume every 8-pin M12 port on an industrial device is X-coded. Although 8-pin A-coded connectors are typically assigned to multi-wire sensors and actuators, certain legacy or vendor-specific Ethernet devices use an 8-pin A-coded receptacle with a manufacturer-defined Ethernet pinout. Because A-coded and X-coded connectors have different keyways and pin maps, only use an 8-pin A-coded to RJ45 assembly when your device manual explicitly specifies an Ethernet pinout for that A-coded port.
D-Coded (4-Pin) vs. X-Coded (8-Pin) M12 to RJ45 Selection
Standard industrial Ethernet M12 to RJ45 assemblies use either D-coded (4-pin) or X-coded (8-pin) interfaces. Because their mechanical keying profiles and contact arrangements differ, D-coded and X-coded connectors do not mate directly—ordering an X-coded cordset will neither fit nor upgrade a D-coded device receptacle.
D-coded · 4 pins
EB-400-8122 male · front view

Pairs: 1/3 and 2/4
EB-400-8122 drawingX-coded · 8 pins
EB-400-2488-G-M-A male · front view

Pairs: 1/2 · 3/4 · 5/6 · 7/8
Elecbee EB-400-2488-G-M-A drawing| Attribute | M12 D-Coded to RJ45 (4-Pin) | M12 X-Coded to RJ45 (8-Pin) |
|---|---|---|
| RJ45 Contacts Populated | M12 D-Coded to RJ45 (4-Pin)Pins 1, 2, 3, 6 (Pins 4, 5, 7, 8 unconnected) | M12 X-Coded to RJ45 (8-Pin)All 8 contacts (Pins 1–8) |
| Target Ethernet Channel Rates (Requires Matching Endpoint PHYs) | M12 D-Coded to RJ45 (4-Pin)10BASE-T (10 Mbps), 100BASE-TX (100 Mbps) |
M12 X-Coded to RJ45 (8-Pin)1000BASE-T (1 Gbps), 10GBASE-T (up to 10 Gbps); also supports 10BASE-T / 100BASE-TX when both PHYs support those modes |
| Typical Device Interfaces | M12 D-Coded to RJ45 (4-Pin)10/100M PLCs, HMIs, managed field switches, 100M barcode readers and vision sensors | M12 X-Coded to RJ45 (8-Pin)GigE / 10GigE vision cameras, high-speed industrial switches, railway and automation backbones |
Why "Cat6 / Cat7" Cable Markings Cannot Make a 4-Pin D-Coded Link Gigabit
As shown in standard industrial connector specifications such as Binder's M12 D-coded series, a 4-pin D-coded interface provides only two twisted pairs mapped to RJ45 pins 1, 2, 3, and 6. Standard 1000BASE-T and 10GBASE-T Ethernet over RJ45 require all four twisted pairs (8 contacts) operating simultaneously. Even if a 4-pin D-coded assembly is built with bulk cable stamped "Cat6" or "Cat7", the bulk cable rating cannot add the four missing connector contacts—limiting standard RJ45 links across a 4-pin D-coded cable to 10BASE-T / 100BASE-TX.
What the X-Coded Cross-Shield Does (and What Still Depends on the Cable)
In an 8-pin X-coded connector (IEC 61076-2-109), an internal metal cross-shield (X-shaped divider) separates the eight contacts into four isolated pair quadrants inside the connector insert, suppressing pair-to-pair near-end crosstalk (NEXT) for 1000BASE-T and 10GBASE-T transmission. Note that this X-shaped divider describes the connector insert geometry, not the raw cable's internal shielding structure. Whether the cable itself uses an overall foil/braid shield or individually shielded pairs—and what maximum speed and distance the assembly achieves—depends on the complete cable assembly specification, wire gauge, channel length, and the PHYs at both ends.
Choosing the Form Factor: Cordsets, RJ45 Female Pigtails, and Bulkhead Adapters
Selecting the right hardware configuration from M12 Series Cables & Assemblies involves matching the gender of both endpoints, accounting for intermediate patch cords, and checking the ingress protection rating at each end.
Two ways to connect
RJ45 female end: add a patch cord

RJ45 male end: connect directly

For a device with a male M12 receptacle, select a cable with the corresponding female M12 connector.
Panel Mounting and Channel Length
A panel-mount M12-to-RJ45 bulkhead adapter suits an enclosure-wall transition. Include any added RJ45 mating point and patch cord when checking the complete channel’s insertion-loss and length limits.
Evaluating Ingress Protection on Both Ends Separately
An "IP67" label on an M12 to RJ45 assembly never means the unsealed RJ45 end is waterproof. Ingress protection must be checked for each connector end individually and requires proper mating:
- The M12 end achieves IP67 protection only when the connector is rated for IP67 and is properly mated and tightened to a matching M12 receptacle.
- An unsealed RJ45 plug or female socket on the other end does not share the M12 rating. For instance, the Phoenix Contact 1421855 X-coded cordset datasheet explicitly rates its M12 end as IP67 and its RJ45 plug as IP20.
Unless the RJ45 interface is protected by a dedicated sealed RJ45 housing, always place unsealed RJ45 plugs and female jacks inside a dry, protected environment such as an enclosure or indoor test rack.
M12 to RJ45 Pinout and Wiring Reference
The 4-pin D-coded and 8-pin X-coded tables below document reference pinouts from the Advantech EKI-9500 Series M12-to-RJ45 Pin Definition FAQ, the Elecbee EB-400-8122 engineering drawing (D-coded), and the Elecbee EB-400-2488-G-M-A drawing (X-coded). Always confirm your specific device manual and cable drawing before terminating or energizing a link.
4-Pin M12 D-Coded to RJ45 Pinout (10BASE-T / 100BASE-TX)
A 2-pair 10BASE-T / 100BASE-TX link uses RJ45 pins 1, 2, 3, and 6. Because which pair transmits (TX) and which receives (RX) depends on whether the connected port is wired as MDI or MDI-X, the reference table groups connections by differential pair and pin number:
| Pair | M12 D pin | RJ45 pin |
|---|---|---|
| Pair 1 | Pin 1 | Pin 1 |
| Pair 1 | Pin 3 | Pin 2 |
| Pair 2 | Pin 2 | Pin 3 |
| Pair 2 | Pin 4 | Pin 6 |
| Unused | — | Pins 4, 5, 7, 8 |
| Shield | Shell | Shell |
Why M12 Pins 2 and 3 Transpose to RJ45 Pins 3 and 2
In the reference table, M12 Pin 3 connects to RJ45 Pin 2, and M12 Pin 2 connects to RJ45 Pin 3. This transposition is not an Ethernet TX/RX crossover. In a 4-pin D-coded insert, Pair 1 is assigned to Pins 1 and 3 and Pair 2 is assigned to Pins 2 and 4, whereas an RJ45 connector places those two pairs on Pins 1 & 2 and Pins 3 & 6. Routing M12 1/3 → RJ45 1/2 and M12 2/4 → RJ45 3/6 simply keeps each twisted pair together across the two contact numbering systems; wiring 1→1, 2→2, 3→3, 4→6 would misconnect the pair conductors. That pin-number error can be found with a pin-by-pin continuity check.
8-Pin M12 X-Coded to RJ45 Pinout (1000BASE-T / 10GBASE-T)
Both the Advantech EKI-9500 Series FAQ and the Elecbee EB-400-2488-G-M-A drawing document the following 4-pair reference mapping for 8-pin M12 X-coded to RJ45 assemblies:
| Pair | M12 X pin | RJ45 pin |
|---|---|---|
| Pair 1 | Pin 1 | Pin 1 |
| Pair 1 | Pin 2 | Pin 2 |
| Pair 2 | Pin 3 | Pin 3 |
| Pair 2 | Pin 4 | Pin 6 |
| Pair 3 | Pin 5 | Pin 7 |
| Pair 3 | Pin 6 | Pin 8 |
| Pair 4 | Pin 7 | Pin 5 |
| Pair 4 | Pin 8 | Pin 4 |
| Shield | Shell | Shell |
X-coded wiring is not a sequential 1-to-8 connection. Pay particular attention to the last pair: M12 7→RJ45 5 and M12 8→RJ45 4.
Pin Numbers and Viewing Direction vs. Conductor Insulation Colors
Field wiring mistakes frequently happen when technicians try to match internal conductor insulation colors between an office RJ45 chart and an industrial M12 cable.
As detailed in Fluke Networks' T568A vs. T568B wiring guide, T568A and T568B define the conductor insulation color order across all four pairs (all 8 pins) of standard horizontal RJ45 cabling: the two standards swap the Green and Orange pairs between RJ45 pins 1/2 and 3/6 (T568A places Green on 1/2 and Orange on 3/6; T568B places Orange on 1/2 and Green on 3/6), while keeping the Blue pair on pins 4/5 and the Brown pair on pins 7/8 in both schemes.
Industrial M12 cordsets, however, often use internal conductor insulation colors that do not follow T568A or T568B at all. For example, in the Elecbee EB-400-8122 engineering drawing (4-pin D-coded male P1 to RJ45 female P2), the pin-to-pin wiring follows the D-coded reference table above, but its four internal conductor insulation colors are:
EB-400-8122 conductor colors
To avoid miswiring when terminating or inspecting connectors:
- Follow Pin Numbers and Pair Groupings: Trace continuity by connector contact number rather than assuming office T568A/B insulation colors.
- Check the Viewing Direction and Terminal Markings: Viewing the same connector insert from the opposite side (front mating face vs. rear solder/crimp side) reverses the apparent contact layout. In addition, on many RJ45 female jacks and keystone modules, the rear IDC terminal block is routed through an internal PCB and does not necessarily match the front pin order or a simple mirror image—always wire according to the manufacturer's terminal numbering and drawing.
Power over Ethernet (PoE) and Link Troubleshooting
PoE Over M12 to RJ45: Alternative A, Alternative B, and 4-Pair Power
Can an M12 to RJ45 assembly deliver Power over Ethernet (PoE) to a field device such as an industrial PoE camera? Physical mating and a "Cat6" or "Cat7" cable label do not automatically guarantee PoE compatibility; the assembly must provide the physical conductor pairs required by your PoE mode and be rated for the current and voltage.
According to Microchip's Power over Ethernet Power Interfaces documentation, IEEE 802.3 PoE interfaces deliver power across RJ45 twisted pairs in three configurations:
Switch / injector
Powered device
RJ45 contact pairs · yellow = pairs carrying power
Alternative A 2-pair power
Alternative B 2-pair power
4-pair power Both groups together
How PoE Modes Apply to D-Coded and X-Coded Assemblies
- 4-Pin D-Coded Boundaries: A 4-pin D-coded link can carry Alternative A (2-pair power on Pins 1/2 and 3/6) only when both the Power Sourcing Equipment (PSE) and Powered Device (PD) support Alternative A and the complete assembly is rated for the required current and voltage. Never extrapolate a standalone M12 insert rating to certify the whole RJ45 cable for PoE, and never use unconnected RJ45 contacts as improvised power lines.
- 8-Pin X-Coded Prerequisites: An 8-pin X-coded assembly connects all four pairs across all eight contacts (as seen in industrial camera deployments like the Luxonis Series 2 PoE camera M12-to-RJ45 cable), providing the physical conductor paths for Alternative A, Alternative B, or 4-pair power. Even with all eight pins connected, always verify that the PSE/PD standards, conductor gauge, contact current limits, and cable length support the required PoE class.
Troubleshooting M12 to RJ45 Links by Symptom
Disconnect Both Ends Before Continuity Testing: Before using an ohmmeter or continuity tester on a cable, completely unplug both ends from all equipment and confirm the cable is isolated from any power source. Simply turning off one device is unsafe if the opposite switch or PoE port remains energized, and probing a live or PoE port with an ohmmeter can damage both the meter and the port.
1. No Link LED on Either Port
- Verify System Power, Port State, and Interface Compatibility First: Confirm that both devices are powered, the Ethernet ports are administratively enabled, and both ports share a compatible multi-pair Ethernet PHY (not a fieldbus port or a single-pair
100BASE-T1 / 1000BASE-T1interface). - Check MDI/MDI-X Role and Pin Continuity: On 2-pair connections without active Auto-MDI/MDI-X, check whether TX and RX pairs need crossover matching. On field-terminated plugs, unplug both ends and test pin-by-pin continuity against the device and cable drawings for opens, shorts, or rear-termination pin numbering errors.
2. Link Connects at 100 Mbps Instead of 1 Gbps
- Check Port Settings and Connector Coding First: Confirm that neither endpoint port is hardware-limited or manually locked to
100BASE-TX, and check whether the cable is a 4-pin D-coded assembly (for which 100 Mbps is the normal 2-pair ceiling). - Test All Four Pairs on an 8-Pin X-Coded Assembly: Because
1000BASE-Trequires all four twisted pairs, an unintended 100 Mbps fallback can indicate a pair or termination problem, but the negotiated speed alone does not identify the cause. Unplug the cable and check continuity across all eight contacts—including the two additional pairs required beyond 10/100M (M12 Pins 5/6 → RJ45 Pins 7/8 and M12 Pins 7/8 → RJ45 Pins 5/4 in the reference map) as well as M12 Pins 1–4 → RJ45 Pins 1, 2, 3, 6.
3. Link Establishes, But Packets Drop or Application Data Fails
When a physical link LED turns on but communication drops under load or fails at the application layer, evaluate both physical pair integrity and upper-layer configuration:
- Split Pairs vs. Simple Continuity: A basic DC continuity tester checks only whether pin X conducts to pin Y (
OPEN,SHORT, or a pin-number miswire such as mistakenly wiring D-coded2→2and3→3instead of2→3and3→2). As explained in NetAlly's Cable Testing & Wire Mapping guide and Fluke Networks' LinkIQ Split Pair Identification note, simple continuity cannot detect a split pair—where end-to-end pin numbers match the table, but a differential signal pair is wired across conductors from two different physical twisted pairs inside the cable, causing severe crosstalk.


- Choosing the Right Cable Test Level: As categorized in Fluke Networks' Levels of Network Cable Testing, field instruments fall into three distinct tiers:
- Verification: Checks basic wiremap continuity (
OPEN,SHORT, miswire); advanced verification testers can also flag split pairs. - Qualification (such as Fluke LinkIQ): Identifies wiring faults (including split pairs) and assesses whether an existing link can support a specific Ethernet data rate (
100BASE-TX,1000BASE-T,10GBASE-T), but does not perform full standards compliance certification. - Certification: Uses a dedicated field certifier configured for the applicable TIA category or ISO class standard to measure high-frequency parameters such as return loss and NEXT against strict pass/fail limits.
- Verification: Checks basic wiremap continuity (
- Installation & Upper-Layer Checks: Inspect field terminations for excessive pair untwisting, follow the device manufacturer's manual for shield/ground bonding, account for total cable length and any RJ45 female adapter hops, and check the industrial protocol configuration (such as PROFINET device names or EtherNet/IP parameters). For IP-based communication, also verify unique IP addresses, subnet/routing settings, and the intended VLAN configuration.
FAQ: Direct PC Connection and Ethernet Crossover Wiring
Do I need a crossover M12 to RJ45 cable when connecting an industrial device directly to a PC, and is the D-coded 2→3 / 3→2 mapping already a crossover?
These are two separate questions:
- The D-Coded
2→3 / 3→2Mapping Is Pair Preservation, Not Crossover: As shown in the 4-Pin M12 D-Coded to RJ45 Pinout section, routing M12 Pins 2 and 3 to RJ45 Pins 3 and 2 simply keeps the two twisted pairs intact across different connector pin numbering schemes—it does not swap the transmit (TX) and receive (RX) pairs. - Whether a Direct PC Connection Needs a Crossover Cable: Connecting an industrial device directly to a PC without an intermediate switch depends on both ports' MDI / MDI-X roles and their Auto-MDIX settings. As documented in Cisco's Auto-MDIX link conditions guide, when Auto-MDIX is supported and enabled on at least one of the two ports, the port automatically adjusts to either a straight-through or crossover cable. When Auto-MDIX is disabled or unsupported on both ends, the cable must match the ports' fixed wiring roles: connecting an MDI port to an MDI-X port uses a straight-through pair mapping, whereas connecting two like ports (MDI to MDI, or MDI-X to MDI-X) requires swapping the transmit and receive pairs (
RJ45 Pair 1/2 ↔ Pair 3/6). Always check your specific industrial device and NIC documentation rather than assuming a direct PC link always needs a crossover or that Auto-MDIX is active on every port.
