blog

Blog Details

Created with Pixso. Home Created with Pixso. Blog Created with Pixso.

M12 Connector Pinout Guide: How to Choose 3, 4, 5, 8 or 12 Pins

M12 Connector Pinout Guide: How to Choose 3, 4, 5, 8 or 12 Pins

2026-11-23

M12 Connector Pinout Guide: How to Choose 3, 4, 5, 8 or 12 Pins

An M12 connector’s pin configuration tells you how many electrical contacts pass through the interface and how those contacts are numbered. In general, 3-pin and 4-pin connectors serve standard sensors, 5-pin versions add signal or power capacity, and 8-pin or 12-pin connectors consolidate higher-density I/O.

This buyer’s guide compares the common pin counts and uses examples from the surveyed KRONZ catalog snapshot dated November 20, 2026. It is intended as a practical companion to an M12 coding guide: coding determines whether two connectors mechanically mate, while pin count and wiring determine whether the electrical connection is suitable.

Quick Comparison: M12 Pin Counts at a Glance

Pin Count Typical Use Common Coding Buyer’s Main Check Example from Surveyed Catalog
3-pin DC 3-wire sensors: supply, 0 V and one output A-coded Confirm pins 1, 3 and 4 match the sensor diagram M1203M-10/P00K
4-pin Sensors with a second signal, complementary output or diagnostic line A-coded; D-coded for specific Industrial Ethernet interfaces Do not treat all 4-pin connectors as interchangeable—check coding and protocol M1204F-5/P00K; H1204MAV-0
5-pin Supply plus multiple signals, control circuits or selected power connections A-coded in the examples covered here Confirm the purpose of pin 5 and the required voltage/current rating M1205M-5/P00R; H1205MA-7 / H1205MA-9
8-pin Multi-channel equipment, combined power and communication, or Gigabit Ethernet with X-code A-coded or X-coded, depending on application Match both coding and wiring; A-coded 8-pin is not a substitute for X-coded Ethernet M1208 series cordsets
12-pin High-density I/O, compact control boxes and multi-axis equipment A-coded Define every used and unused position at both ends M1212FA-10/P00R

What “Pin Configuration” Means on an M12 Connector

Three factors define whether an M12 connector is electrically suitable for a device.

  1. Contact count: the number of pins or sockets inside the connector. Common industrial options include 3, 4, 5, 8 and 12 positions.
  2. Contact numbering and conductor identification: each contact has a defined position number. Cordsets commonly use standardized conductor colors to simplify installation, but the actual electrical function assigned to each pin must still be checked against the device documentation.
  3. Connector coding: the keying geometry that prevents incompatible connectors from mating. A-coded connectors cover a broad range of signal and sensor applications, while D-coded and X-coded connectors are associated with specific Ethernet layouts.
Important purchasing rule: matching the pin count alone is not enough. A connector can have the correct number of contacts but the wrong coding, gender, wiring assignment, voltage rating or current rating.

3-Pin and 4-Pin M12 Connectors: The Sensor Standard

When to choose a 3-pin M12 connector

A 3-pin M12 connector is the classic choice for a DC 3-wire sensor. The connection normally provides supply voltage, 0 V and one switching output.

The surveyed pre-molded M1203M-10/P00K provides a practical example. It is a straight male cordset with a 10 m molded PVC cable, three 0.34 mm² conductors, 22 AWG construction and an IP67 rating. Its conductor identification is:

Contact Wire Color Abbreviation Common 3-Wire Sensor Function
Pin 1 Brown BN Positive supply
Pin 3 Blue BU 0 V / supply return
Pin 4 Black BK Switching output

These are common sensor conventions. The equipment wiring diagram remains the final authority.

When to choose a 4-pin M12 connector

A 4-pin connector adds one conductor to the standard 3-wire arrangement. That extra contact may support a second output, complementary signal, input, teach function or diagnostic line, depending on the device.

Two surveyed products illustrate the available purchasing options:

  • M1204F-5/P00K: a pre-assembled 4-pin A-coded female cordset offered with 1–15 m cable options.
  • H1204MAV-0: a full-metal, field-assembled 4-pin A-coded male connector with angled construction, screw termination and a 4 A rating.
Contact Common Cordset Color Typical Sensor-Circuit Use
Pin 1 Brown (BN) Positive supply
Pin 2 White (WH) Device-specific second signal, input or output
Pin 3 Blue (BU) 0 V / supply return
Pin 4 Black (BK) Primary signal or switching output
Simple selection shortcut: if the sensor diagram shows brown, blue and black conductors, start with a 3-pin cordset. If it also shows a white conductor, start with a 4-pin option. Then verify the contact numbers, coding and electrical ratings before ordering.

5-Pin M12 Connectors: Additional Signals or Power Capacity

A 5-pin connector is useful when one cable must carry supply plus multiple signals, or when the application requires an additional protective, grounding or control connection. The exact role of the fifth contact is device-dependent.

5-pin product options

  • Signal-dense cordset: the straight male M1205M-5/P00R uses five 0.34 mm², 22 AWG conductors and is rated at 4 A / 60 V.
  • Field-wireable connection: the angled H1205MA-7 and H1205MA-9 A-coded connectors are rated at 4 A and up to 250 V. They accept external cable diameters from 4–8 mm for custom cable runs.
Contact Wire Color Abbreviation Selection Note
Pin 1 Brown BN Function must match the device diagram
Pin 2 White WH May carry an additional device signal
Pin 3 Blue BU Function must match the device diagram
Pin 4 Black BK May carry a primary device signal
Pin 5 Gray GY Device-specific signal, ground or other assigned function

Do not select a 5-pin cordset solely because it has the correct colors. Two 5-pin devices may assign different electrical functions to the same contact position. Confirm the wiring drawing at both ends, especially when pin 5 is used for grounding, shielding or a second output.

8-Pin M12 Connectors: Multi-Channel and Communication Applications

An 8-pin interface provides more conductors in the same M12-format connection. It can be used for multi-channel equipment or combined power and communication lines. An X-coded connector also uses eight positions for Gigabit Ethernet, but its contact arrangement and coding are different from an 8-pin A-coded connector.

The surveyed Q80-series RFID read/write head, KRH-Q80G-TCP, is specified with an M12 8-pin male interface for combined power and communication connections. The listed device specifications include a TCP/IP port, 13.56 MHz operating frequency and 9–30 V DC supply range.

Available 8-pin A-coded cordsets

The following 8-pin cable assembly models are available in male, female, straight and angled configurations:

Model Gender Body Style Cable Length Coding
M1208F-2/P00K Female Straight 2 m A-code
M1208M-2/P00K Male Straight 2 m A-code
M1208FA-2/P00K Female Angled 2 m A-code
M1208MA-2/P00K Male Angled 2 m A-code
M1208F-2/S00K Female Straight 2 m A-code
M1208M-2/S00K Male Straight 2 m A-code
M1208FA-2/S00K Female Angled 2 m A-code
M1208MA-2/S00K Male Angled 2 m A-code
8-Pin Cordset Specification Value
Coding A-code
Rated current 2 A
Rated voltage 30 V
Cable Black shielded PVC
Conductor notation 8 × 0.258 × 24 AWG, as provided in the product information
Do not substitute by contact count: these listed cordsets are A-coded. They should not be treated as X-coded Gigabit Ethernet cables simply because both connector types have eight contacts.

12-Pin M12 Connectors: High-Density I/O in Limited Space

A 12-pin M12 connector places twelve contacts into the compact M12 interface. It is commonly considered when a control box, actuator group or multi-axis device needs more signals without adding several separate connectors.

The surveyed M1212FA-10/P00R is an angled, 12-pin A-coded female assembly with a molded PVC cable. It is offered with 2 m, 5 m and 10 m cable options and has an IP67 rating.

No universal device function can be assigned to pins 1–12 without the equipment wiring diagram. A useful purchasing schedule should therefore document every position explicitly:

Contact Positions Required Purchasing Action
Pins 1–12 Match each contact to the equipment manufacturer’s wiring drawing
Used contacts Record the signal name, voltage and expected current
Unused contacts Mark as unused or reserved at both ends rather than leaving the status undefined
Shield or ground Confirm whether it uses a contact, the connector shell or another termination method

A 12-pin connector can consolidate the conductor capacity of several lower-pin-count connections, but it is not automatically a drop-in replacement for three 4-pin circuits. The full wiring assignment, electrical load and grounding design must be validated first.

Pre-Molded vs Field-Wireable: Which Should You Buy?

Option Best For Advantages Points to Check
Pre-molded cordset Standard machine wiring and repeat installations Factory-assembled cable, faster installation and fewer on-site termination steps Cable length, conductor size, jacket material, shielding and connector orientation
Field-wireable connector Custom cable runs, maintenance and installation through cable routes Allows on-site cable-length adjustment and custom conductor termination Permitted cable diameter, conductor size, termination method and assembly quality

M12 Connector Purchasing Checklist

  1. Count the equipment conductors. A 3-wire or 4-wire sensor will usually point toward a 3-pin or 4-pin cordset, but verify the device schematic.
  2. Match the coding. Confirm A-code, D-code or X-code rather than ordering by pin count alone.
  3. Confirm connector gender. Check whether the equipment port requires a male or female mating connector.
  4. Select straight or angled construction. Angled connectors may be better for shallow cabinets or restricted cable exits.
  5. Check every pin assignment. Document the electrical function attached to each contact at both ends.
  6. Verify voltage and current. For example, the surveyed molded 5-pin assembly is rated at 4 A / 60 V, while the listed field-wireable 5-pin options reach 4 A / 250 V.
  7. Choose the cable specification. Review length, conductor size, jacket material, shielding and environmental requirements.
  8. Check the protection rating. Remember that the stated IP performance generally depends on correct mating and installation.
  9. Define unused contacts. This is especially important for 8-pin and 12-pin high-density wiring.

Frequently Asked Questions

Can I plug a 3-pin M12 connector into a 4-pin port?

Do not assume compatibility. Even when the coding and mechanical arrangement appear similar, the mating design and electrical assignment must be confirmed from the connector and device drawings.

Are all 4-pin M12 connectors wired the same way?

No. A-coded 4-pin sensor connectors and D-coded 4-position Ethernet connectors serve different applications and have different keying. Device manufacturers can also assign different functions to individual contacts.

Is the fifth pin always ground or shield?

No. Pin 5 may be assigned to a signal, ground or another device-specific function. The device wiring diagram must define its purpose.

Is every 8-pin M12 connector suitable for Gigabit Ethernet?

No. Gigabit Ethernet commonly uses an 8-position X-coded design. The M1208 cable assemblies listed in this guide are A-coded and must not be treated as X-coded Ethernet cordsets.

Should I choose a higher pin count for future expansion?

Only when both ends support the higher contact count and the spare positions are clearly documented. Extra contacts can provide expansion capacity, but they also increase wiring complexity and the risk of incorrect termination.

Conclusion

M12 pin count is one part of a complete connector specification. For most standard sensors, 3-pin and 4-pin configurations are the starting point. A 5-pin connector provides room for additional signals or selected power applications, while 8-pin and 12-pin options consolidate more conductors where panel space is limited.

Before placing an order, match the pin count, coding, gender, pin assignment, voltage, current, cable construction and connector orientation. The device wiring diagram—not the contact count by itself—should always be the final reference.

Browse the KRONZ M12 connector range for pre-molded and field-assembled options, or provide your device wiring diagram for a matching recommendation.

Coming next in this series: “M12 A Coded vs D Coded Connectors: Key Differences and Applications” will compare signal and Ethernet applications, keying geometry and practical selection points.

banner
Blog Details
Created with Pixso. Home Created with Pixso. Blog Created with Pixso.

M12 Connector Pinout Guide: How to Choose 3, 4, 5, 8 or 12 Pins

M12 Connector Pinout Guide: How to Choose 3, 4, 5, 8 or 12 Pins

2026-11-23

M12 Connector Pinout Guide: How to Choose 3, 4, 5, 8 or 12 Pins

An M12 connector’s pin configuration tells you how many electrical contacts pass through the interface and how those contacts are numbered. In general, 3-pin and 4-pin connectors serve standard sensors, 5-pin versions add signal or power capacity, and 8-pin or 12-pin connectors consolidate higher-density I/O.

This buyer’s guide compares the common pin counts and uses examples from the surveyed KRONZ catalog snapshot dated November 20, 2026. It is intended as a practical companion to an M12 coding guide: coding determines whether two connectors mechanically mate, while pin count and wiring determine whether the electrical connection is suitable.

Quick Comparison: M12 Pin Counts at a Glance

Pin Count Typical Use Common Coding Buyer’s Main Check Example from Surveyed Catalog
3-pin DC 3-wire sensors: supply, 0 V and one output A-coded Confirm pins 1, 3 and 4 match the sensor diagram M1203M-10/P00K
4-pin Sensors with a second signal, complementary output or diagnostic line A-coded; D-coded for specific Industrial Ethernet interfaces Do not treat all 4-pin connectors as interchangeable—check coding and protocol M1204F-5/P00K; H1204MAV-0
5-pin Supply plus multiple signals, control circuits or selected power connections A-coded in the examples covered here Confirm the purpose of pin 5 and the required voltage/current rating M1205M-5/P00R; H1205MA-7 / H1205MA-9
8-pin Multi-channel equipment, combined power and communication, or Gigabit Ethernet with X-code A-coded or X-coded, depending on application Match both coding and wiring; A-coded 8-pin is not a substitute for X-coded Ethernet M1208 series cordsets
12-pin High-density I/O, compact control boxes and multi-axis equipment A-coded Define every used and unused position at both ends M1212FA-10/P00R

What “Pin Configuration” Means on an M12 Connector

Three factors define whether an M12 connector is electrically suitable for a device.

  1. Contact count: the number of pins or sockets inside the connector. Common industrial options include 3, 4, 5, 8 and 12 positions.
  2. Contact numbering and conductor identification: each contact has a defined position number. Cordsets commonly use standardized conductor colors to simplify installation, but the actual electrical function assigned to each pin must still be checked against the device documentation.
  3. Connector coding: the keying geometry that prevents incompatible connectors from mating. A-coded connectors cover a broad range of signal and sensor applications, while D-coded and X-coded connectors are associated with specific Ethernet layouts.
Important purchasing rule: matching the pin count alone is not enough. A connector can have the correct number of contacts but the wrong coding, gender, wiring assignment, voltage rating or current rating.

3-Pin and 4-Pin M12 Connectors: The Sensor Standard

When to choose a 3-pin M12 connector

A 3-pin M12 connector is the classic choice for a DC 3-wire sensor. The connection normally provides supply voltage, 0 V and one switching output.

The surveyed pre-molded M1203M-10/P00K provides a practical example. It is a straight male cordset with a 10 m molded PVC cable, three 0.34 mm² conductors, 22 AWG construction and an IP67 rating. Its conductor identification is:

Contact Wire Color Abbreviation Common 3-Wire Sensor Function
Pin 1 Brown BN Positive supply
Pin 3 Blue BU 0 V / supply return
Pin 4 Black BK Switching output

These are common sensor conventions. The equipment wiring diagram remains the final authority.

When to choose a 4-pin M12 connector

A 4-pin connector adds one conductor to the standard 3-wire arrangement. That extra contact may support a second output, complementary signal, input, teach function or diagnostic line, depending on the device.

Two surveyed products illustrate the available purchasing options:

  • M1204F-5/P00K: a pre-assembled 4-pin A-coded female cordset offered with 1–15 m cable options.
  • H1204MAV-0: a full-metal, field-assembled 4-pin A-coded male connector with angled construction, screw termination and a 4 A rating.
Contact Common Cordset Color Typical Sensor-Circuit Use
Pin 1 Brown (BN) Positive supply
Pin 2 White (WH) Device-specific second signal, input or output
Pin 3 Blue (BU) 0 V / supply return
Pin 4 Black (BK) Primary signal or switching output
Simple selection shortcut: if the sensor diagram shows brown, blue and black conductors, start with a 3-pin cordset. If it also shows a white conductor, start with a 4-pin option. Then verify the contact numbers, coding and electrical ratings before ordering.

5-Pin M12 Connectors: Additional Signals or Power Capacity

A 5-pin connector is useful when one cable must carry supply plus multiple signals, or when the application requires an additional protective, grounding or control connection. The exact role of the fifth contact is device-dependent.

5-pin product options

  • Signal-dense cordset: the straight male M1205M-5/P00R uses five 0.34 mm², 22 AWG conductors and is rated at 4 A / 60 V.
  • Field-wireable connection: the angled H1205MA-7 and H1205MA-9 A-coded connectors are rated at 4 A and up to 250 V. They accept external cable diameters from 4–8 mm for custom cable runs.
Contact Wire Color Abbreviation Selection Note
Pin 1 Brown BN Function must match the device diagram
Pin 2 White WH May carry an additional device signal
Pin 3 Blue BU Function must match the device diagram
Pin 4 Black BK May carry a primary device signal
Pin 5 Gray GY Device-specific signal, ground or other assigned function

Do not select a 5-pin cordset solely because it has the correct colors. Two 5-pin devices may assign different electrical functions to the same contact position. Confirm the wiring drawing at both ends, especially when pin 5 is used for grounding, shielding or a second output.

8-Pin M12 Connectors: Multi-Channel and Communication Applications

An 8-pin interface provides more conductors in the same M12-format connection. It can be used for multi-channel equipment or combined power and communication lines. An X-coded connector also uses eight positions for Gigabit Ethernet, but its contact arrangement and coding are different from an 8-pin A-coded connector.

The surveyed Q80-series RFID read/write head, KRH-Q80G-TCP, is specified with an M12 8-pin male interface for combined power and communication connections. The listed device specifications include a TCP/IP port, 13.56 MHz operating frequency and 9–30 V DC supply range.

Available 8-pin A-coded cordsets

The following 8-pin cable assembly models are available in male, female, straight and angled configurations:

Model Gender Body Style Cable Length Coding
M1208F-2/P00K Female Straight 2 m A-code
M1208M-2/P00K Male Straight 2 m A-code
M1208FA-2/P00K Female Angled 2 m A-code
M1208MA-2/P00K Male Angled 2 m A-code
M1208F-2/S00K Female Straight 2 m A-code
M1208M-2/S00K Male Straight 2 m A-code
M1208FA-2/S00K Female Angled 2 m A-code
M1208MA-2/S00K Male Angled 2 m A-code
8-Pin Cordset Specification Value
Coding A-code
Rated current 2 A
Rated voltage 30 V
Cable Black shielded PVC
Conductor notation 8 × 0.258 × 24 AWG, as provided in the product information
Do not substitute by contact count: these listed cordsets are A-coded. They should not be treated as X-coded Gigabit Ethernet cables simply because both connector types have eight contacts.

12-Pin M12 Connectors: High-Density I/O in Limited Space

A 12-pin M12 connector places twelve contacts into the compact M12 interface. It is commonly considered when a control box, actuator group or multi-axis device needs more signals without adding several separate connectors.

The surveyed M1212FA-10/P00R is an angled, 12-pin A-coded female assembly with a molded PVC cable. It is offered with 2 m, 5 m and 10 m cable options and has an IP67 rating.

No universal device function can be assigned to pins 1–12 without the equipment wiring diagram. A useful purchasing schedule should therefore document every position explicitly:

Contact Positions Required Purchasing Action
Pins 1–12 Match each contact to the equipment manufacturer’s wiring drawing
Used contacts Record the signal name, voltage and expected current
Unused contacts Mark as unused or reserved at both ends rather than leaving the status undefined
Shield or ground Confirm whether it uses a contact, the connector shell or another termination method

A 12-pin connector can consolidate the conductor capacity of several lower-pin-count connections, but it is not automatically a drop-in replacement for three 4-pin circuits. The full wiring assignment, electrical load and grounding design must be validated first.

Pre-Molded vs Field-Wireable: Which Should You Buy?

Option Best For Advantages Points to Check
Pre-molded cordset Standard machine wiring and repeat installations Factory-assembled cable, faster installation and fewer on-site termination steps Cable length, conductor size, jacket material, shielding and connector orientation
Field-wireable connector Custom cable runs, maintenance and installation through cable routes Allows on-site cable-length adjustment and custom conductor termination Permitted cable diameter, conductor size, termination method and assembly quality

M12 Connector Purchasing Checklist

  1. Count the equipment conductors. A 3-wire or 4-wire sensor will usually point toward a 3-pin or 4-pin cordset, but verify the device schematic.
  2. Match the coding. Confirm A-code, D-code or X-code rather than ordering by pin count alone.
  3. Confirm connector gender. Check whether the equipment port requires a male or female mating connector.
  4. Select straight or angled construction. Angled connectors may be better for shallow cabinets or restricted cable exits.
  5. Check every pin assignment. Document the electrical function attached to each contact at both ends.
  6. Verify voltage and current. For example, the surveyed molded 5-pin assembly is rated at 4 A / 60 V, while the listed field-wireable 5-pin options reach 4 A / 250 V.
  7. Choose the cable specification. Review length, conductor size, jacket material, shielding and environmental requirements.
  8. Check the protection rating. Remember that the stated IP performance generally depends on correct mating and installation.
  9. Define unused contacts. This is especially important for 8-pin and 12-pin high-density wiring.

Frequently Asked Questions

Can I plug a 3-pin M12 connector into a 4-pin port?

Do not assume compatibility. Even when the coding and mechanical arrangement appear similar, the mating design and electrical assignment must be confirmed from the connector and device drawings.

Are all 4-pin M12 connectors wired the same way?

No. A-coded 4-pin sensor connectors and D-coded 4-position Ethernet connectors serve different applications and have different keying. Device manufacturers can also assign different functions to individual contacts.

Is the fifth pin always ground or shield?

No. Pin 5 may be assigned to a signal, ground or another device-specific function. The device wiring diagram must define its purpose.

Is every 8-pin M12 connector suitable for Gigabit Ethernet?

No. Gigabit Ethernet commonly uses an 8-position X-coded design. The M1208 cable assemblies listed in this guide are A-coded and must not be treated as X-coded Ethernet cordsets.

Should I choose a higher pin count for future expansion?

Only when both ends support the higher contact count and the spare positions are clearly documented. Extra contacts can provide expansion capacity, but they also increase wiring complexity and the risk of incorrect termination.

Conclusion

M12 pin count is one part of a complete connector specification. For most standard sensors, 3-pin and 4-pin configurations are the starting point. A 5-pin connector provides room for additional signals or selected power applications, while 8-pin and 12-pin options consolidate more conductors where panel space is limited.

Before placing an order, match the pin count, coding, gender, pin assignment, voltage, current, cable construction and connector orientation. The device wiring diagram—not the contact count by itself—should always be the final reference.

Browse the KRONZ M12 connector range for pre-molded and field-assembled options, or provide your device wiring diagram for a matching recommendation.

Coming next in this series: “M12 A Coded vs D Coded Connectors: Key Differences and Applications” will compare signal and Ethernet applications, keying geometry and practical selection points.