CAN Bus Connector Guide · Wiring diagram

M12 5-pin to DB9 CAN wiring diagram

Pin to pin, M12 5-pin A-coded → DB9 / D-Sub 9 (CiA): pin 4 → pin 7 (CAN High); pin 5 → pin 2 (CAN Low); pin 3 → pin 3 (Ground reference); pin 1 → pin 5 (Shield / drain).

  • From M12 5-pin A-coded
  • To DB9 / D-Sub 9 (CiA)
  • Wires 4
  • Power not carried
Wiring diagram

M12 5-pin A-coded → DB9 / D-Sub 9 (CiA) pin-to-pin wiring

Industrial CANopen and DeviceNet devices use the A-coded M12 5-pin connector; most PC interfaces are DB9. Both pinouts are defined in CiA 303-1. Power is not carried in this diagram; the interactive converter can add it after you check the voltages.

M12 5-Pin A-Coded CAN (CANopen / DeviceNet) to DB9 (D-Sub 9) CAN — CiA 303-1 wiringM12 5-pin A-coded → DB9 / D-Sub 9 (CiA)123451234567891CAN shield / drain2CAN_V+ supply3CAN ground / V−4CAN High5CAN Low1Reserved2CAN Low3CAN ground4Reserved5CAN shield6Ground7CAN High8Reserved9CAN_V+ supplyWire colours: CAN High yellow, CAN Low green (SAE J1939-15), ground black, power red, drain bare. Always check against your harness drawing.imatrixsys.com/engineering/can-bus-connectors/
M12 5-pin A-codedSignal / wireDB9 / D-Sub 9 (CiA)
4CAN High7
5CAN Low2
3Ground reference3
1Shield / drain5
  • Shield: connect the drain through, but ground it at one point on the whole network only (J1939-11), never at both ends, to avoid ground loops.
  • Power (M12 5-pin A-coded pin 2, DB9 / D-Sub 9 (CiA) pin 9) is left unconnected. Tick “Carry power” to wire it, after checking voltages.
  • An adapter does not terminate the bus. A healthy network measures about 60 Ω between CAN High and CAN Low with power off (two 120 Ω terminators). Use twisted pair for High and Low.
Pinouts

The two connectors

Full pinouts, variants and sources are on each connector's page.

FAQ

M12 5-pin A-coded to DB9 / D-Sub 9 (CiA) questions

Which M12 5-pin A-coded pins connect to which DB9 / D-Sub 9 (CiA) pins?

Wire M12 5-pin A-coded pin 4 to DB9 / D-Sub 9 (CiA) pin 7 (CAN High); M12 5-pin A-coded pin 5 to DB9 / D-Sub 9 (CiA) pin 2 (CAN Low); M12 5-pin A-coded pin 3 to DB9 / D-Sub 9 (CiA) pin 3 (Ground reference); M12 5-pin A-coded pin 1 to DB9 / D-Sub 9 (CiA) pin 5 (Shield / drain). Leave every other pin unconnected.

Does a M12 5-pin A-coded to DB9 / D-Sub 9 (CiA) adapter need a 120 Ω terminating resistor?

An adapter does not terminate the bus. A healthy network measures about 60 Ω between CAN High and CAN Low with power off (two 120 Ω terminators). Use twisted pair for High and Low.

Should the M12 5-pin A-coded to DB9 / D-Sub 9 (CiA) cable carry power?

Power (M12 5-pin A-coded pin 2, DB9 / D-Sub 9 (CiA) pin 9) is left unconnected. Tick “Carry power” to wire it, after checking voltages.

What bit rate do these networks use?

M12 5-Pin A-Coded CAN (CANopen / DeviceNet): Up to 1 Mbit/s. DB9 (D-Sub 9) CAN — CiA 303-1: Any (classic CAN & CAN FD). Set the interface to the bit rate of the network it connects to; a mismatch shows up as error frames or a bus-off, not as data.

Generated from the same pin data and rules as the interactive converter; pin assignments follow CiA 303-1 / DeviceNet / NMEA 2000 and CiA 303-1 / CiA 106 (sources on each connector page). Last reviewed 2026-11-27. Spotted an error? Tell us.

Wiring diagrams: J1939 9-pin → DB9 · J1939 Type II (green) → DB9 · OBD-II → DB9 · J1939 9-pin → OBD-II · 6-pin J1708 → 9-pin J1939 · NMEA 2000 → DB9 · RJ45 → DB9 · 3-pin Deutsch → DB9

Need a CAN adapter or harness?

iMatrix designs and builds CAN, J1939 and OBD-II harnesses for OEMs and fleets, and our FleetConnect telematics devices plug straight into the 9-pin and OBD-II ports. Tell us the two ends and the quantity.