Know the pinout
before the cut.
Standardized pin assignments, wire colors, and bench-tested multimeter procedures for M12 and M8 circular industrial connectors.
Pin numbering flips across male and female faces. Verify against standardized schematics before troubleshooting sensor drops or communication faults.
M12 A-Coded 4-Pin Connector
Pin 1 is +24V (Brown), Pin 2 is NC/Signal 2 (White), Pin 3 is 0V (Blue), Pin 4 is NO/Signal 1 (Black).
M12 A-Coded 5-Pin Connector
Pin 1 is +24V (Brown), Pin 2 is White, Pin 3 is 0V (Blue), Pin 4 is Black, Pin 5 is Gray/Earth (Center).
M12 D-Coded 4-Pin Connector
Pin 1 is Yellow (Tx+), Pin 2 is White (Rx+), Pin 3 is Orange (Tx−), Pin 4 is Blue (Rx−). Shell is 360° Shield.
M12 X-Coded 8-Pin Connector
4 isolated shielded quadrants. Pairs 1-2 (White-Orange/Orange), 3-4 (White-Green/Green), 5-6 (White-Brown/Brown), 7-8 (White-Blue/Blue).
M12 B-Coded 5-Pin Connector
Pin 1 is +5V Supply, Pin 2 is Line A (Green), Pin 3 is 0V Ground, Pin 4 is Line B (Red), Pin 5 is Shield.
M12 L-Coded 5-Pin Connector
Pin 1 is +24V P1 (Brown), Pin 2 is 0V P2 (White), Pin 3 is 0V P1 (Blue), Pin 4 is +24V P2 (Black), Pin FE is Earth (Gray).
M8 A-Coded 3-Pin Connector
Pin 1 is +24V (Brown), Pin 3 is 0V (Blue), Pin 4 is Switched Output (Black). Pin 2 is intentionally omitted.
M8 A-Coded 4-Pin Connector
Pin 1 is +24V (Brown), Pin 2 is Output 2/NC (White), Pin 3 is 0V (Blue), Pin 4 is Output 1/NO (Black).
Need help diagnosing erratic signals?
Explore step-by-step troubleshooting workflows for 4–20 mA loops and sensor noise.