{
 "version": "2026-10-20",
 "license": "Dimension sheets: CC BY 4.0. Standard and published-size files: CC BY 4.0. Xem Studio's own designs (files_license = Xem Studio Design License): free to use and sell things from, not to redistribute as files — https://xemstudio.com/license/. Other publishers' files: their own license, linked beside them.",
 "slug": "m12-m8-circular-sensor-connectors",
 "name": "M12 and M8 circular sensor connectors: thread, coding A / B / D / X, pin counts and panel-mount hole sizes (+ hole gauge)",
 "kind": "standard",
 "category": "Electronic components",
 "group": "Panel cutouts",
 "year": null,
 "question": "What are the M12 and M8 sensor connector codings, pin counts and standards, and what hole size does an M12 (M16 or PG9) panel-mount receptacle need?",
 "tags": [
  "m12",
  "m8",
  "sensor connector",
  "circular connector",
  "iec 61076-2-101",
  "a-coded",
  "d-coded",
  "x-coded",
  "panel mount",
  "electrical"
 ],
 "aliases": [
  "m12 connector dimensions",
  "m12 panel mount hole size",
  "m12 pg9 hole 15.3",
  "m12 m16 panel cutout",
  "m12 coding chart",
  "m12 a coded pin count",
  "m12 d coded 4 pin",
  "m12 x coded 8 pin",
  "m8 connector thread",
  "m8 sensor connector pinout",
  "iec 61076-2-101",
  "iec 61076-2-104",
  "m12 bulkhead hole diameter",
  "m12 receptacle mounting thread",
  "sensor plug m12x1"
 ],
 "overall_mm": {
  "length": null,
  "width": null,
  "height": null
 },
 "official_cad": false,
 "xem_status": "free-files",
 "les": false,
 "free_files": 1,
 "url": "https://xemstudio.com/objects/m12-m8-circular-sensor-connectors/",
 "sheet_txt": "https://xemstudio.com/objects/m12-m8-circular-sensor-connectors/sheet.txt",
 "sheet": {
  "basis": "HARTING coding table (IEC 61076-2-101 / -104 / -109 / -111 / -113 / -114), Pepperl+Fuchs mounting-hole table from two data sheets, M8Con / IO Connections / CUI sheets for threads; hole gauge file is Xem-drawn",
  "overall_mm": {
   "length": null,
   "width": null,
   "height": null
  },
  "notes": [
   "M12 and M8 are the round sensor / actuator connectors on industrial machines. The coupling thread is M12 × 1 (IEC 61076-2-101; Pepperl+Fuchs) or M8 × 1 (IEC 61076-2-104; the M8Con sheet read). The coding is the key pattern that stops mismatched plugs; it is not the pin count, though each coding has typical counts. The coding table is HARTING's (standards and applications) with pin counts as it states them; L-com's overview lists the same letters (A sensors and DC power, B PROFIBUS, D 100 Mbit Ethernet, K and S AC power, L DC power, X 10 Gigabit Ethernet) without standard numbers or pin counts.",
   "Panel mounting is a different thread from the coupling thread. The panel-mount (receptacle) body threads read are M16 × 1.5 or PG9 for M12 receptacles (Pepperl+Fuchs; IO Connections lists 'PG9 or M16×1.5'; a CUI D-coded sheet gives M16 × 1.5), M8 × 0.5 for M8, and PG13.5 for larger bodies. Pepperl+Fuchs prints one mounting-hole table on two data sheets (V1-PG9-500 and V1-PG13,5-Y124355): hole Ø M8 × 0.5 8.2, M12 × 1 12.2, M16 × 1.5 16.1, M20 × 1.5 20.1, PG9 15.3, PG13.5 20.5 mm (hole tolerances +0.1 to +0.2 printed; 1 × 45° chamfer). That V1-PG9-500 receptacle tightens at 3 to 4 Nm (locknut not included). The column labels in the extracted text are positional (hole Ø is column B), so confirm on the maker's drawing for your connector.",
   "Not in any text read: the wrench size, panel thickness range and the front / rear flange diameter of each connector; the IO Connections and Pepperl+Fuchs drawings carry those as unlabelled picture callouts. M8 mounting-hole values for M8 × 1 receptacles were also not readable (Mouser's M8Con sheet references a drawing only).",
   "File: a panel-hole gauge plate with the six Pepperl+Fuchs hole diameters (8.2, 12.2, 15.3, 16.1, 20.1, 20.5) to test-fit a receptacle thread before drilling a panel. Plate size, spacing and thickness are an example; the holes are the maker's.",
   "Related: the cable-gland page has the M12 to M63 metric thread panel holes (EN 60423); the panel-cutouts page has other connector cut-outs."
  ],
  "table": {
   "columns": [
    "coding / feature",
    "thread",
    "standard",
    "poles",
    "use",
    "panel hole Ø, mm",
    "source note"
   ],
   "rows": [
    [
     "A-coded M8",
     "M8 × 1 coupling thread",
     "IEC 61076-2-104",
     "3 to 12 (HARTING; the A-coded M8 sheet read: 3 and 4 pin)",
     "sensor and actuator signals, field-device power",
     "",
     ""
    ],
    [
     "A-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-101",
     "3 to 12 (4, 5 and 8 on the receptacle pages read)",
     "sensor and actuator signals, field-device power",
     "",
     ""
    ],
    [
     "B-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-101",
     "2, 4 or 5",
     "PROFIBUS fieldbus",
     "",
     ""
    ],
    [
     "D-coded M8",
     "M8 × 1 coupling thread",
     "IEC 61076-2-114",
     "not stated",
     "industrial Ethernet up to 100 Mbit/s",
     "",
     ""
    ],
    [
     "D-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-101",
     "4 (a D-coded receptacle read: 4 positions, pin Ø1 mm)",
     "industrial Ethernet up to 100 Mbit/s",
     "",
     ""
    ],
    [
     "K-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-111",
     "4 + PE",
     "power for small drives",
     "",
     ""
    ],
    [
     "L-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-111",
     "4 + FE",
     "device power at high current and voltage",
     "",
     ""
    ],
    [
     "P-coded M8",
     "M8 × 1 coupling thread",
     "IEC 61076-2-114",
     "4",
     "EtherCAT P data and power",
     "",
     ""
    ],
    [
     "S-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-111",
     "3 + PE",
     "power for smaller devices",
     "",
     ""
    ],
    [
     "X-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-109",
     "8",
     "industrial Ethernet up to 10 Gbit/s",
     "",
     ""
    ],
    [
     "Y-coded M12",
     "M12 × 1 coupling thread",
     "IEC 61076-2-113",
     "8",
     "hybrid signal and power",
     "",
     ""
    ],
    [
     "mounting hole for a receptacle with M8 × 0.5 body thread",
     "",
     "",
     "",
     "",
     "8.2",
     "Pepperl+Fuchs mounting drawing (hole Ø 'B')"
    ],
    [
     "mounting hole for a receptacle with M12 × 1 body thread",
     "",
     "",
     "",
     "",
     "12.2",
     "Pepperl+Fuchs mounting drawing (hole Ø 'B')"
    ],
    [
     "mounting hole for a receptacle with PG9 body thread",
     "",
     "",
     "",
     "",
     "15.3",
     "Pepperl+Fuchs mounting drawing (hole Ø 'B')"
    ],
    [
     "mounting hole for a receptacle with M16 × 1.5 body thread",
     "",
     "",
     "",
     "",
     "16.1",
     "Pepperl+Fuchs mounting drawing (hole Ø 'B')"
    ],
    [
     "mounting hole for a receptacle with M20 × 1.5 body thread",
     "",
     "",
     "",
     "",
     "20.1",
     "Pepperl+Fuchs mounting drawing (hole Ø 'B')"
    ],
    [
     "mounting hole for a receptacle with PG13.5 body thread",
     "",
     "",
     "",
     "",
     "20.5",
     "Pepperl+Fuchs mounting drawing (hole Ø 'B')"
    ]
   ]
  }
 },
 "sheet_text": "M12 and M8 circular sensor connectors: thread, coding A / B / D / X, pin counts and panel-mount hole sizes (+ hole gauge) — dimension sheet\nSource: Xem Studio, https://xemstudio.com/objects/m12-m8-circular-sensor-connectors/  (sheet CC BY 4.0)\nBasis: HARTING coding table (IEC 61076-2-101 / -104 / -109 / -111 / -113 / -114), Pepperl+Fuchs mounting-hole table from two data sheets, M8Con / IO Connections / CUI sheets for threads; hole gauge file is Xem-drawn\nCatalog version: 2026-10-20\n\nSizes: see table below\n- M12 and M8 are the round sensor / actuator connectors on industrial machines. The coupling thread is M12 × 1 (IEC 61076-2-101; Pepperl+Fuchs) or M8 × 1 (IEC 61076-2-104; the M8Con sheet read). The coding is the key pattern that stops mismatched plugs; it is not the pin count, though each coding has typical counts. The coding table is HARTING's (standards and applications) with pin counts as it states them; L-com's overview lists the same letters (A sensors and DC power, B PROFIBUS, D 100 Mbit Ethernet, K and S AC power, L DC power, X 10 Gigabit Ethernet) without standard numbers or pin counts.\n- Panel mounting is a different thread from the coupling thread. The panel-mount (receptacle) body threads read are M16 × 1.5 or PG9 for M12 receptacles (Pepperl+Fuchs; IO Connections lists 'PG9 or M16×1.5'; a CUI D-coded sheet gives M16 × 1.5), M8 × 0.5 for M8, and PG13.5 for larger bodies. Pepperl+Fuchs prints one mounting-hole table on two data sheets (V1-PG9-500 and V1-PG13,5-Y124355): hole Ø M8 × 0.5 8.2, M12 × 1 12.2, M16 × 1.5 16.1, M20 × 1.5 20.1, PG9 15.3, PG13.5 20.5 mm (hole tolerances +0.1 to +0.2 printed; 1 × 45° chamfer). That V1-PG9-500 receptacle tightens at 3 to 4 Nm (locknut not included). The column labels in the extracted text are positional (hole Ø is column B), so confirm on the maker's drawing for your connector.\n- Not in any text read: the wrench size, panel thickness range and the front / rear flange diameter of each connector; the IO Connections and Pepperl+Fuchs drawings carry those as unlabelled picture callouts. M8 mounting-hole values for M8 × 1 receptacles were also not readable (Mouser's M8Con sheet references a drawing only).\n- File: a panel-hole gauge plate with the six Pepperl+Fuchs hole diameters (8.2, 12.2, 15.3, 16.1, 20.1, 20.5) to test-fit a receptacle thread before drilling a panel. Plate size, spacing and thickness are an example; the holes are the maker's.\n- Related: the cable-gland page has the M12 to M63 metric thread panel holes (EN 60423); the panel-cutouts page has other connector cut-outs.\n\ncoding / feature  thread  standard  poles  use  panel hole Ø, mm  source note\nA-coded M8  M8 × 1 coupling thread  IEC 61076-2-104  3 to 12 (HARTING; the A-coded M8 sheet read: 3 and 4 pin)  sensor and actuator signals, field-device power    \nA-coded M12  M12 × 1 coupling thread  IEC 61076-2-101  3 to 12 (4, 5 and 8 on the receptacle pages read)  sensor and actuator signals, field-device power    \nB-coded M12  M12 × 1 coupling thread  IEC 61076-2-101  2, 4 or 5  PROFIBUS fieldbus    \nD-coded M8  M8 × 1 coupling thread  IEC 61076-2-114  not stated  industrial Ethernet up to 100 Mbit/s    \nD-coded M12  M12 × 1 coupling thread  IEC 61076-2-101  4 (a D-coded receptacle read: 4 positions, pin Ø1 mm)  industrial Ethernet up to 100 Mbit/s    \nK-coded M12  M12 × 1 coupling thread  IEC 61076-2-111  4 + PE  power for small drives    \nL-coded M12  M12 × 1 coupling thread  IEC 61076-2-111  4 + FE  device power at high current and voltage    \nP-coded M8  M8 × 1 coupling thread  IEC 61076-2-114  4  EtherCAT P data and power    \nS-coded M12  M12 × 1 coupling thread  IEC 61076-2-111  3 + PE  power for smaller devices    \nX-coded M12  M12 × 1 coupling thread  IEC 61076-2-109  8  industrial Ethernet up to 10 Gbit/s    \nY-coded M12  M12 × 1 coupling thread  IEC 61076-2-113  8  hybrid signal and power    \nmounting hole for a receptacle with M8 × 0.5 body thread          8.2  Pepperl+Fuchs mounting drawing (hole Ø 'B')\nmounting hole for a receptacle with M12 × 1 body thread          12.2  Pepperl+Fuchs mounting drawing (hole Ø 'B')\nmounting hole for a receptacle with PG9 body thread          15.3  Pepperl+Fuchs mounting drawing (hole Ø 'B')\nmounting hole for a receptacle with M16 × 1.5 body thread          16.1  Pepperl+Fuchs mounting drawing (hole Ø 'B')\nmounting hole for a receptacle with M20 × 1.5 body thread          20.1  Pepperl+Fuchs mounting drawing (hole Ø 'B')\nmounting hole for a receptacle with PG13.5 body thread          20.5  Pepperl+Fuchs mounting drawing (hole Ø 'B')\n\nFiles elsewhere (not hosted by Xem Studio; license as stated by the publisher):\n- HARTING: Circular coding: M8 / M12 codings A, B, D, K, L, P, S, X, Y with IEC 61076-2-xxx numbers, pole counts and applications — web — Publisher's page; dimensions are facts — https://www.harting.com/en-NL/circular-coding\n- Pepperl+Fuchs: V1-PG9-500 M12 / PG9 4-pin receptacle: plug thread M12 x 1 per IEC 61076-2-101, torque 3 to 4 Nm, mounting hole table by thread — web — Publisher's page; dimensions are facts — https://files.pepperl-fuchs.com/webcat/navi/productInfo/pds/456934_eng.pdf\n- Pepperl+Fuchs: V1-PG13,5-Y124355 M12 / PG13.5 receptacle: same mounting hole table, locknut included — web — Publisher's page; dimensions are facts — https://files.pepperl-fuchs.com/webcat/navi/productInfo/pds/124355_eng.pdf\n- Pepperl+Fuchs: M12 x 1 A-coded receptacles with M16 or PG9 mounting thread, 4 / 5 / 8 pins — web — Publisher's page; dimensions are facts — https://files.pepperl-fuchs.com/online-catalogs/911360/files/assets/basic-html/page1040.html\n- Mouser (M8Con datasheet): M8 straight panel-mount connectors 3 / 4 pin, A-coded, M8 x 1, IEC 61076-2-104, 4 A / 60 V — web — Publisher's page; dimensions are facts — https://www.mouser.com/datasheet/2/743/M8Con_3_4_M_SC_F_v1_0-3500914.pdf\n- IO Connections (elitaliaweb copy): M12 male panel mount front-fastened: codings A, B, C, D; 3 to 17 pins; chassis thread 'PG9 or M16 x 1.5' — web — Publisher's page; dimensions are facts — https://elitaliaweb.it/images/uploads/ds-ioconnections/M12_MB12MBxFFxxST-X.pdf\n- Same Sky (CUI Devices): CDM1211-04D-MT-F9-67: M12 D-coded 4-position receptacle, M16 x 1.5 mounting thread, IP67 — web — Publisher's page; dimensions are facts — https://www.sameskydevices.com/product/interconnect/connectors/circular-connectors/cdm1211-04d-mt-f9-67\n- L-com: M12 connector coding demystified (A to X by application) — web — Publisher's page; dimensions are facts — https://www.l-com.com/resources/blog/m12-connector-coding-demystified\n\nFree files (CC BY 4.0, Xem Studio; STEP + STL, 1 parts): https://xemstudio.com/files/hardware/m12-m8-circular-sensor-connectors/index.json\nAPI: https://xemstudio.com/api/geometry?object=m12-m8-circular-sensor-connectors\n",
 "sources": [
  {
   "publisher": "HARTING",
   "title": "Circular coding: M8 / M12 codings A, B, D, K, L, P, S, X, Y with IEC 61076-2-xxx numbers, pole counts and applications",
   "url": "https://www.harting.com/en-NL/circular-coding",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "Pepperl+Fuchs",
   "title": "V1-PG9-500 M12 / PG9 4-pin receptacle: plug thread M12 x 1 per IEC 61076-2-101, torque 3 to 4 Nm, mounting hole table by thread",
   "url": "https://files.pepperl-fuchs.com/webcat/navi/productInfo/pds/456934_eng.pdf",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "Pepperl+Fuchs",
   "title": "V1-PG13,5-Y124355 M12 / PG13.5 receptacle: same mounting hole table, locknut included",
   "url": "https://files.pepperl-fuchs.com/webcat/navi/productInfo/pds/124355_eng.pdf",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "Pepperl+Fuchs",
   "title": "M12 x 1 A-coded receptacles with M16 or PG9 mounting thread, 4 / 5 / 8 pins",
   "url": "https://files.pepperl-fuchs.com/online-catalogs/911360/files/assets/basic-html/page1040.html",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "Mouser (M8Con datasheet)",
   "title": "M8 straight panel-mount connectors 3 / 4 pin, A-coded, M8 x 1, IEC 61076-2-104, 4 A / 60 V",
   "url": "https://www.mouser.com/datasheet/2/743/M8Con_3_4_M_SC_F_v1_0-3500914.pdf",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "IO Connections (elitaliaweb copy)",
   "title": "M12 male panel mount front-fastened: codings A, B, C, D; 3 to 17 pins; chassis thread 'PG9 or M16 x 1.5'",
   "url": "https://elitaliaweb.it/images/uploads/ds-ioconnections/M12_MB12MBxFFxxST-X.pdf",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "Same Sky (CUI Devices)",
   "title": "CDM1211-04D-MT-F9-67: M12 D-coded 4-position receptacle, M16 x 1.5 mounting thread, IP67",
   "url": "https://www.sameskydevices.com/product/interconnect/connectors/circular-connectors/cdm1211-04d-mt-f9-67",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  },
  {
   "publisher": "L-com",
   "title": "M12 connector coding demystified (A to X by application)",
   "url": "https://www.l-com.com/resources/blog/m12-connector-coding-demystified",
   "formats": [
    "web"
   ],
   "license": "Publisher's page; dimensions are facts",
   "license_verified": true,
   "hosted": false
  }
 ],
 "xem": {
  "status": "free-files",
  "sheet_free": true,
  "mesh_price_usd": null,
  "step_price_usd": null,
  "tolerance_mm": null
 },
 "related": [
  "cable-glands-metric-thread",
  "panel-cutouts",
  "cable-and-plug-sizes",
  "terminal-blocks",
  "pluggable-terminal-blocks",
  "thread-reference-tap-drills-clearance"
 ],
 "fits": [],
 "dimensions": "exact (nominal, no tolerance added)",
 "dimension_rule": "All geometry on Xem Studio is exact (nominal, true size) with no tolerance added. Where a part meets another part, the object lists its mating features (feature, exact size, what it mates with, fit class: press, slide, run, socket, clamp or designed). Apply your process's allowance to those features only; 'designed' gaps are part of the design and stay as drawn. Typical accuracy by process and ISO 286 fits: https://xemstudio.com/tolerances/",
 "mating": [
  {
   "feature": "panel hole",
   "exact": "Ø8.2 (M8×0.5), 12.2 (M12×1), 15.3 (PG9), 16.1 (M16×1.5), 20.1 (M20×1.5), 20.5 (PG13.5)",
   "mates": "receptacle body thread of that size (maker's drawing governs panel thickness and flange)",
   "fit": "slide",
   "files": "panel-hole"
  }
 ],
 "fit_classes": {
  "press": "stays put: pin, tube, bearing or magnet held by interference. ISO 286 equivalent: H7/p6 (locational interference) or tighter.",
  "slide": "assembles by hand and is held by a grub, pinch or clamp: shaft in a hub, rod in a socket, spigot in a bore. ISO 286 equivalent: H7/g6 or H7/h6.",
  "run": "turns or slides in use: pin in a link, rod through a guide. ISO 286 equivalent: H8/f7 (close running).",
  "socket": "large sliding fit: syringe barrel, sleeve, bobbin in a bore. ISO 286 equivalent: H9/d9 (free running) or looser.",
  "clamp": "split part that closes on the mating part with screws: make it at size.",
  "designed": "a gap that is part of the design (piston fit option, displacer gap, air gap): do not change."
 },
 "faq": [
  {
   "q": "What size hole does an M12 panel receptacle need?",
   "a": "It depends on the body thread: Ø16.1 for M16 × 1.5, Ø15.3 for PG9 (Pepperl+Fuchs); the M12 × 1 plug thread itself is the coupling side."
  },
  {
   "q": "What is the difference between A, B and D coded M12?",
   "a": "Different key patterns: A for sensors and DC power, B for PROFIBUS, D for 100 Mbit industrial Ethernet (4 pins), X for 10 Gbit Ethernet (8 pins)."
  },
  {
   "q": "What standard defines M12 connectors?",
   "a": "IEC 61076-2-101 (A, B, D coding); X is -2-109, K, L and S are -2-111, Y is -2-113."
  },
  {
   "q": "What thread is an M8 sensor connector?",
   "a": "M8 × 1 (IEC 61076-2-104, A-coded 3 and 4 pin); the panel body thread of M8 receptacles is M8 × 0.5 with an 8.2 mm hole."
  }
 ],
 "files_license": null,
 "offers": [
  {
   "file": "panel-hole-gauge-m8-m12-m16-pg9-pg13-5-m20",
   "formats": [
    "step",
    "stl"
   ],
   "price_usd": 0,
   "license": "CC BY 4.0 (Xem Studio)",
   "step": "https://xemstudio.com/files/hardware/m12-m8-circular-sensor-connectors/panel-hole-gauge-m8-m12-m16-pg9-pg13-5-m20.step",
   "stl": "https://xemstudio.com/files/hardware/m12-m8-circular-sensor-connectors/panel-hole-gauge-m8-m12-m16-pg9-pg13-5-m20.stl",
   "note": "Panel-hole gauge plate for circular-connector receptacles: six through holes Ø8.2 (M8 × 0.5), 12.2 (M12 × 1), 15.3 (PG9), 16.1 (M16 × 1.5), 20.1 (M20 × 1.5), 20.5 (PG13.5), smallest first, hole diameters as in the Pepperl+Fuchs mounting table; plate 136.4 × 34.5 × 3 mm with 3 mm corners is an example"
  }
 ],
 "markdown": "https://xemstudio.com/objects/m12-m8-circular-sensor-connectors/index.md"
}