Zhejiang Xinsenzheng Automation Co., Ltd.

Industrial Sensor Manufacturer OEM & Application Support Factory-direct Supply
Conceptual assortment of three threaded inductive proximity sensors in different body sizes on a workbench

How to Choose M8, M12 and M18 Proximity Sensors for Machines

M8, M12 and M18 describe threaded body size—not a guaranteed sensing distance. Choose a model that detects your real target across the full operating gap, fits the bracket with room for servicing, and matches the machine’s controls. Then decide which housing size makes sense.

Which size should you shortlist first?

Shortlist M8 for restricted space, M12 when a mid-size body fits the machine, and M18 when a suitable larger model solves a range or construction requirement. These are starting points, not performance grades. Eliminate any candidate that cannot detect the real target throughout its travel or fit with its nuts, connection and service clearance.

This guide focuses on threaded inductive proximity sensors for metal detection. If the object itself is plastic, glass or another non-metal, first check whether a different sensing principle is needed. Changing the barrel diameter does not change an inductive sensor into a general-purpose non-metal detector.

Choose a shortlist from the machine constraint, then compare complete models.
BodyWhen to investigate itWhat could rule it out?
M8
8 mm nominal thread diameter
A narrow gripper, compact slide or crowded fixture where the entire assembly must stay small.Insufficient application range, inaccessible nuts, or a cable exit that cannot fit.
M12
12 mm nominal thread diameter
The bracket accepts an intermediate envelope and a matching model meets the target, gap and controls.The selected mounting class needs unavailable clearance, or the required connection makes it too long.
M18
18 mm nominal thread diameter
A documented model offers the needed sensing capability and there is room to install and service it.Nuts, nearby metal or the removal path do not fit; the actual target cannot reproduce the catalog result.

If several candidates pass, choose the one that best fits the machine's space, maintenance and spare-part strategy. The smallest possible diameter is not automatically the best purchasing decision.

Does a larger sensor always detect farther?

No. Diameter helps describe packaging; the sensing design, mounting class and target determine the specified distance. A catalog can contain several range families within the same body size. Compare the complete part numbers before deciding to enlarge a bracket.

A documented comparison—not a universal size chart

The following OMRON E2E NEXT examples are shielded, three-wire NPN/NO models with 2 m cables. The manufacturer distinguishes the sensing-distance rating from the smaller setting-distance range. These are third-party product examples, not xsz sensor specifications.

OMRON E2E NEXT: published model and specification tables.
Exact model / bodySensing / setting distanceStandard iron target
E2E-X3C18 2M
M8 · triple-distance family
3 mm ±10%
Setting: 0–2.4 mm
9 × 9 × 1 mm
E2E-X6C112 2M
M12 · triple-distance family
6 mm ±10%
Setting: 0–4.8 mm
18 × 18 × 1 mm
E2E-X9C112 2M
M12 · quadruple-distance family
9 mm ±10%
Setting: 0–6.8 mm
27 × 27 × 1 mm
E2E-X12C118 2M
M18 · triple-distance family
12 mm ±10%
Setting: 0–9.6 mm
36 × 36 × 1 mm

The two M12 rows answer the key question: one body diameter does not have one sensing distance. Their reference targets differ too, so the larger rating does not establish performance on a small tab. See the original OMRON specifications for operating conditions.

Does your target match the rating?

Write down the metal grade, smallest face presented to the sensor, thickness and approach direction. Aluminum, stainless steel, a thin washer and a curved shaft need not behave like the specified flat iron target. Use the selected product's material and target-size data; a reduction factor taken from another series is not a reliable substitute.

If the target passes sideways, check the sensing-area curve as well as the axial distance. A sensor that switches when a plate approaches head-on may produce a different switching window when a narrow edge passes across its face.

How much usable gap does your machine actually need?

Compare the greatest expected face-to-target gap with the distance supported for the actual application, then check the closest position for collision. A room-temperature trigger at one convenient position is not enough.

Use the right distance, not an automatic percentage

Nominal or rated distance, Sn, is the product's reference value; it does not itself account for manufacturing, voltage and temperature variation. Sa denotes an assured operating distance under stated conditions. Some manufacturers instead publish a recommended setting range. Retain the supplier's terminology and conditions rather than treating these labels as interchangeable.

If a datasheet also lists Sr or Su, these describe measured operating distances under their respective conditions. They are not extra percentages to subtract from an already specified setting range. The detailed distance terminology belongs in the separate range guide; the selection question here is whether the documented application limit covers your machine.

Illustrative arrangement of a threaded sensor on a bracket facing a metal target carried along a rail
Illustrative arrangement, not a validated installation: the sensor face, moving target and bracket define the gap. No distance should be estimated from this image.

Check the far position, near position and release

Use the tolerance stack and credible movement of the actual mechanism. Include installation variation, runout, bearing play and bracket deflection where they change the gap. Count each contribution once and in the correct direction.

  • Farthest position: the intended target must still switch the sensor.
  • Closest position: the target must remain clear of the sensing face under the specified machine conditions.
  • Target absent: the output must return to the required state, despite nearby carriers, fixtures and other metal.

Do not treat metal chips or a new cover as merely another millimeter allowance. They can alter the sensing environment, and need their own review. Likewise, a good approach distance does not prove that the target moves far enough away to release the sensor.

A compact bracket with a 3 mm nominal gap

Illustrative selection scenario: assume the combined mechanical variation is ±0.6 mm. The target gap is therefore 2.4–3.6 mm. Also assume the candidates' documentation has already established application-specific distance limits for this exact target and mounting—not just catalog Sn values.

  • Candidate A, M8: its applicable maximum is 2.0 mm. It fits the bracket but fails the distance screen.
  • Candidate B, M12: its applicable maximum is 4.2 mm and the assembly fits. The far-position margin is 4.2 − 3.6 = 0.6 mm.
  • Candidate C, M18: its applicable maximum is 8.0 mm, but the nut and tool envelope conflicts with a guide rail. Extra range does not fix that interference.

Decision: take Candidate B into the application trial. This is not final approval: the 2.4 mm closest gap must satisfy the machine's collision-clearance requirement, and release, timing and environmental behavior still need checking. All candidate values here are assumed, not product ratings or recorded test results.

Will the sensor fit the bracket and remain serviceable?

Check the sensing-face mounting class and the complete installed envelope. Fitting the threaded barrel through a hole is only the first mechanical check.

Flush, non-flush and nearby metal

A flush or shielded inductive model can be installed level with surrounding metal where its instructions permit. A non-flush or unshielded model needs a free zone around the active head. This is a property of the selected design, not a mounting preference you can change afterward.

Long-range and semi-flush designs make the installation drawing especially important. Check side metal, metal facing the sensor and adjacent active sensors separately. Do not apply one universal clearance multiple to every M8, M12 or M18 device, or assume that flush mounting eliminates mutual interference.

Threaded cylindrical sensor showing two retaining nuts, the front sensing face and rear connection area
The barrel, nuts, sensing face and rear connection occupy different parts of the installation envelope. Identify them on the dimensional drawing, not by scaling the photograph.

Body size is not the mounting-hole specification

The M-number identifies nominal thread diameter. Read the complete thread callout, including pitch, and establish whether the bracket uses a tapped hole, clearance hole or slot. These are different details.

Also check usable thread length, bracket thickness, nut seating, wrench access and the permitted tightening torque. Two sensors with the same thread can have different overall lengths and tightening limits.

Allow room behind the sensor, too

Include the mating connector, molded boot, coupling access and the cable's specified bend radius. A right-angle cordset can change the required depth but introduces an orientation constraint. Finally, check the withdrawal path: can maintenance remove the sensor after the surrounding machine is assembled?

A replacement with a longer barrel or different sensing-face projection may move the switch point even though both parts fit the same bracket. Record the installed face position and adjustment method as part of the replacement specification.

Will the connector and PLC interface still match?

Specify body thread and electrical connection separately, then match the circuit to the receiving input. “M12 sensor” is an incomplete order description: it could refer to the barrel or the connector.

For example, OMRON lists the M8-body E2E-X3C18-M1 with an M12 connector. That documented combination shows why body and connector labels cannot substitute for each other. Check the connector's contact count, coding and pin functions as well as its diameter.

  • Power and output: match the supply range, wire arrangement and PNP/NPN circuit to the PLC input diagram and common connection.
  • Switching logic: confirm the required target-present and target-absent states; NO/NC is separate from PNP/NPN.
  • Load compatibility: compare output-current limits, ON-state voltage drop and OFF-state leakage with the input or load requirements.
  • Connection: specify a fixed cable or the complete connector and mating cordset, including cable length and pin assignment.

Neither a matching connector nor matching wire colors proves electrical interchangeability. Isolate the machine before changing connections and follow its electrical procedures. An ordinary proximity switch does not become a personnel-protection device because its output is NC.

Can it capture the target at speed and survive the environment?

Check the shortest useful sensor pulse and the actual exposure conditions. Neither a larger barrel nor a high headline switching frequency proves that the complete detection chain will work.

A slow event rate can still contain a short pulse

Illustrative timing: a target pitch of 75 mm at 600 mm/s gives 8 events per second. That does not mean the target stays detectable for the whole 125 ms cycle. If the effective detectable travel is only 3 mm, the geometric window is 3 ÷ 600 = 5 ms, before accounting for the sensor's switching behavior.

Check ON and OFF response, the measured output pulse and the PLC's input filter and capture method. The required OFF interval matters too. Do not convert a catalog frequency into a guaranteed pulse duration without the manufacturer's measurement conditions.

Specify the exposure, not only an IP code

List the operating temperature, fluid or cleaning chemical, cable motion and nearby welding or drive equipment. An ingress rating addresses specified enclosure tests; it does not by itself prove chemical compatibility, repeated-flex life or suitability beside a welder.

Review the sensing face, seals, cable and mated connection as well as the metal housing. If a special environment eliminates a general-purpose model, investigate a documented suitable series instead of simply moving from M12 to M18.

What should you confirm before ordering samples or a replacement?

Give the supplier enough information to select an exact part, and define what the sample trial must demonstrate. A concise application description is more useful than an inquiry that only says “M12, long range.”

  1. Describe the target and required event. Include material, minimum dimensions, approach direction, speed, and what target presence must mean to the machine.
  2. Supply the installed geometry. State minimum and maximum gaps; attach the bracket drawing or a dimensioned photo showing nearby metal, other sensors and available service space.
  3. Identify the controls and exposure. Provide the existing full model code if applicable, required output/logic, PLC input model, connection and operating conditions.
  4. Request the proposed model's documents. Obtain the complete order code, applicable distance and target data, installation/dimensional drawing and wiring information. Make sure they describe the same variant.

In the trial, confirm detection and release with representative production targets at the gap extremes, using the final bracket and adjacent sensors powered as intended. Check the shortest pulse at operating speed and the relevant environmental conditions. Record the sensor output separately from the PLC result when a discrepancy appears.

For a replacement, confirm that adjustment, connection and removal are practical, not merely that the sensor switches once. Keep the approved model suffix, drawing and settings with the spare-parts record.

The decision in one sentence: choose the M8, M12 or M18 model that satisfies the real detection window and complete installation—not the body with the biggest range number or the one that happens to fit the old hole.

Sources and method references

Product values are manufacturer-documented examples; the gap scenario and timing calculation are illustrative. Application suitability remains specific to the selected sensor, target and installation.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare