M12 5-pin connectors are widely used in industrial equipment where reliable connections are needed for power, signals, and control. Available in different coding types, cable configurations, and mounting styles, they provide flexible connection options for sensors, actuators, control devices, and industrial systems.

However, choosing an M12 5-pin connector involves more than checking the number of pins. The coding type, pin numbering, wire color, connector gender, and equipment wiring requirements must all be considered.

What Is an M12 5-Pin Connector?

An M12 5-pin connector is a circular industrial connector with an M12 × 1 threaded coupling interface and five electrical contacts. It is designed to provide a secure connection in industrial environments where vibration resistance, reliable contact, and protection against dust or moisture may be required.

The five contacts allow a connector to carry multiple electrical connections through one compact interface. Depending on the equipment design, these contacts may be used for power, control signals, communication, or other electrical functions.

M12 5-Pin Connector Pinout

Understanding the M12 5-pin connector pinout is essential when connecting sensors, actuators, and control equipment. Each contact has a number, and the corresponding wire color helps identify the conductor during installation and maintenance.

The conventional wire color arrangement in Renhotec’s M12 catalog is:

Pin NumberWire ColorAbbreviation
Pin 1BrownBN
Pin 2WhiteWH
Pin 3BlueBU
Pin 4BlackBK
Pin 5GrayGY
Table 1: Conventional wire colors for an M12 A-coded 5-pin connector.

The connector’s contact arrangement is viewed from the mating face. Male pin views and female socket views are mirrored, so make sure you use the correct drawing when identifying contact positions.

For common DC sensor applications, the pins may serve the following functions:

PinTypical FunctionDescription
1L+Positive supply voltage
2Output 2 / AuxiliarySecondary output or device-specific function
3L-0 V supply return
4Output 1 / C-QMain switching output or IO-Link communication
5FE / NC / AuxiliaryFunctional earth, unused contact, or another device-specific function
Table 2: Typical pin functions for DC sensor and IO-Link applications.

Important: These are common sensor and IO-Link wiring references, not universal assignments for every M12 A-coded 5-pin device. Pin 2 and Pin 5 are particularly dependent on the equipment design. Always check the sensor datasheet, connector drawing, or wiring diagram before making a connection.

M12 5-Pin Color Code and Wiring Diagram

M12 Male Female A-Coded 5 Pin Connector Pinout

M12 A-coded 5-pin male and female connector pinout viewed from the mating face

M12 Male Female B-Coded 5 Pin Connector Pinout

M12 B-coded 5-pin male and female connector pinout viewed from the mating face

M12 Male Female A-Coded B-Coded 5 Pin Color Code

M12 5-pin A-coded and B-coded color code chart with pin numbers and wire colors

Common Applications of M12 5-Pin Connectors

M12 A-coded 5-pin connectors are suitable for industrial equipment that needs a compact, secure connection for power and multiple signals. Common application areas include:

Industrial Sensors: Proximity sensors, photoelectric sensors, and other industrial sensors may use 5-pin connections when an additional output or auxiliary contact is required.

Actuators and Control Equipment: M12 connectors can connect field devices to control systems, helping organize power and signal wiring around machines and production equipment.

Distributed I/O Systems: Compatible M12 5-pin connections can be used in sensor and actuator networks where multiple conductors are needed between field devices and I/O modules.

Automated Machinery: Packaging equipment, conveyor systems, assembly machines, and other automated equipment use M12 connections to simplify field wiring and equipment maintenance.

The exact application depends on the device interface, pin assignment, electrical requirements, and connector configuration. Always confirm compatibility with the equipment manufacturer’s documentation.

Types of M12 A-Coded B-Coded 5-Pin Connectors

M12 5-pin connectors are available in several structural designs. Choosing the right type depends on how the connector will be installed and whether the cable needs to be permanently attached or connected on site.

Molded Cable Connectors

Molded cable connectors have the cable permanently attached and sealed to the connector body during manufacturing. They are suitable for fixed cable assemblies and applications where a ready-to-install connection is preferred.

Renhotec offers both male and female A-coded 5-pin molded cable connector options, including shielded and unshielded versions.

Browse the full range of M12 molded cable assemblies, or compare overmolded connectors by pin count and coding.

M12 overmolded connectors →

Field-Wireable Connectors

Field-wireable connectors allow installers to terminate a cable directly at the installation site. They are useful when cable length needs to be adjusted or when a pre-assembled cable is not practical.

Depending on the model, termination options may include screw or solder connections. The installer should follow the product’s assembly instructions to maintain reliable electrical contact and environmental sealing.

The M12 field-wireable connector range lists the current body styles and termination options.

M12 field-wireable connectors →

Panel-Mount and PCB Connectors

Panel-mount receptacles are fixed to equipment housings or enclosures, providing an external connection point. PCB-mount versions connect directly to a circuit board and are used in equipment with an integrated connector interface.

When selecting these connectors, check the mounting method, fastening direction, contact termination, and available installation space.

The M12 panel-mount receptacle range lists the available thread sizes and termination types.

M12 panel-mount receptacles →

Adapters and Distribution Boxes

M12 adapters and distribution boxes help connect multiple sensors or actuators to a common wiring system. For example, an M12 5-pin distribution box can collect several field-device connections and route them through a main cable or another connector interface.

These solutions can reduce individual cable runs and make machine wiring easier to organize.

Renhotec stocks distribution boxes, splitters, and adapters for these layouts.

M12 distribution boxes → M12 adapters →

How to Choose the Right M12 5-Pin Connector

Before purchasing an M12 A-coded 5-pin connector, work through the four decisions below. Each one narrows the part list before electrical details are compared.

Selection factorOptionsChoose it whenCheck before ordering
Contact genderMale (pins) / Female (sockets)Match the mating interface on the deviceContact arrangement and coding must match
Body styleStraight / Right-angleRight-angle saves bending space near walls or in tight enclosuresCable exit direction and clearance
ShieldingShielded / UnshieldedShielded where VFDs, servo drives or long motor leads run nearbyGrounding and cable-shield termination
MountingMolded cable / Field-wireable / Panel-mount / PCBMolded for ready-made assemblies, field-wireable for on-site length, panel or PCB for built-in interfacesPanel cut-out, fastening direction, installation space
RatingsVoltage, current, temperature, IP, materialMust cover both the circuit and the environmentRead them per part number, never assume
Table 3: M12 5-pin connector selection matrix.

M12 A-Coded 5-Pin vs. 8-Pin Connectors

Both 5-pin and 8-pin M12 A-coded connectors are used in industrial applications, but they provide different numbers of electrical contacts.

ComparisonM12 A-Coded 5-PinM12 A-Coded 8-Pin
Number of contacts58
Connection capacityFewer circuitsMore circuits
Typical useSensors, actuators, and control signalsDevices requiring more signal connections
Wiring complexityFewer conductorsMore conductors
Selection considerationSuitable for the required five-contact interfaceSuitable when additional contacts are needed
Table 4: M12 A-coded 5-pin vs. 8-pin at a glance.

An 8-pin connector is not automatically faster or more suitable for Ethernet simply because it has more contacts. The coding, electrical design, and device interface determine its application.

For 8-pin layouts, wire colors, and connector coding, the dedicated guide covers each one in detail.

M12 8-Pin Connector Guide →

Renhotec M12 A-Coded 5-Pin Connector Products

Renhotec offers several M12 A-coded 5-pin connector configurations for industrial sensor and control applications. The following products cover different connector genders, termination styles, and shielding options.

M12 Male 5-Pin A-Code Shielded Molded Connector - Renhotec

1. M12 Male 5-Pin A-Code Shielded Molded Connector

Part No.: RHT-700-0114

A straight male connector with a molded cable design and shielded construction. It is suitable for applications requiring a ready-made cable connection.

View product details →

2. M12 Male 5-Pin A-Code Solder Cup Molded Connector

Part No.: RHT-700-0121

A male 5-pin option with solder-type contacts, providing an alternative termination configuration for cable connection projects.

View product details →

M12 Male 5-Pin A-Code Solder Cup Molded Connector - Renhotec
M12 Female 5-Pin A-Code Unshielded Solder Cup Connector - Renhotec

3. M12 Female 5-Pin A-Code Unshielded Solder Cup Connector

Part No.: RHT-700-0122

A straight female connector with unshielded construction and solder-cup contacts.

View product details →

4. M12 Female 5-Pin A-Code Shielded Molded Connector

Part No.: RHT-700-0113

A straight female molded cable connector with shielding, suitable for applications where the cable assembly requires a shielded connection.

View product details →

M12 Female 5-Pin A-Code Shielded Molded Connector - Renhotec
M12 B-Coded Metal Solder Field-Wireable Connector - Renhotec

5. M12 B-Coded Metal Solder Field-Wireable Connector

A metal field-wireable B-coded connector with solder-cup contacts and IP67 protection when mated, for PROFIBUS and Interbus runs that are terminated on site.

View product details →

6. Right-Angle M12 B-Coded Metal Screw Field-Wireable Connector

Part No.: RHT-634-3290 (male) / RHT-634-3166 (female)

A right-angle B-coded connector with screw terminals in a metal shell, built for field assembly where the cable has to exit parallel to the panel and the joint must still seal to IP67.

View product details →

Right-Angle M12 B-Coded Metal Screw Field-Wireable Connector - Renhotec

Frequently Asked Questions

Q1: What is the difference between M12 A-coded 4-pin and 5-pin connectors?

The main difference is the number of electrical contacts. A 5-pin version provides one additional contact, which may be used for an auxiliary signal or another device-specific function.

Q2: What is the wire color code for an M12 A-coded 5-pin connector?

The conventional Renhotec color arrangement is Pin 1 brown, Pin 2 white, Pin 3 blue, Pin 4 black, and Pin 5 gray. Always confirm the actual wiring diagram before installation.

Q3: Can I use an M12 A-coded 5-pin connector for any 5-wire sensor?

No. The connector must match the sensor’s coding, contact arrangement, pin assignment, electrical ratings, and mating interface. Five wires alone do not guarantee compatibility.

Q4: Are M12 A-coded 5-pin connectors waterproof?

Some Renhotec M12 5-pin products are rated IP67 when properly mated. Always check the protection rating and installation conditions of the exact connector model.


Need an M12 5-Pin Connector for Your Project?

Whether you need a molded cable connector, a field-wireable plug, a panel-mount receptacle, or a customized M12 cable assembly, Renhotec can help you identify a suitable configuration.

Contact our team with your connector type, cable requirements, pin assignment, and application details to discuss the right solution.

Contact Us Product Catalog Product Datasheets

Leave a Reply

Your email address will not be published. Required fields are marked *


Add Renhotec as a preferred source on Google