M12 Connector Wiring Guide
M12 A-coded sensor and D-coded Industrial Ethernet pinouts with color codes and 3D assembly
🔒 Your data stays in your browser: nothing you type or upload is sent to a server.
M12 A-coded sensor and D-coded Industrial Ethernet pinouts with color codes and 3D assembly
🔒 Your data stays in your browser: nothing you type or upload is sent to a server.
Choose A-coded 4-pin, A-coded 5-pin or D-coded 4-pin, rotate the 3D M12 connector and follow the steps to wire a field-attachable plug. A-coded connectors carry power and signals for sensors (brown +24 V, blue 0 V, black signal), while D-coded ones carry 10/100 Mbit/s Industrial Ethernet such as PROFINET.
The coding is the mechanical key of the M12 connector. A-coded is used for sensor and actuator power and signals, D-coded for Industrial Ethernet. The keys differ, so an A-coded and a D-coded connector cannot be mated.
Brown (pin 1) is +24 V, blue (pin 3) is 0 V and black (pin 4) is the switching output of a 3-wire sensor. Pin 2 (white) is a second output on some sensors. Always check the sensor datasheet.
Pin 1 TD+ (yellow), pin 2 RD+ (white), pin 3 TD− (orange), pin 4 RD− (blue). The pairs are 1/3 and 2/4.