How contactless detection works
Non-contact sensors turn the presence, material or distance of a target into an electrical signal without physical contact. An inductive sensor reacts to the change in a magnetic field near a metal target. A capacitive sensor reacts to a change in the dielectric environment, so it can see many non-metal materials as well. An optical sensor responds to light that is reflected or interrupted. These three methods cover most workshop applications.
Sensing distance and target size
The sensing distance grows with the diameter of the housing. Typical nominal values are about 1 to 2 mm for an M8 body, 3 to 4 mm for M12, 5 to 8 mm for M18 and 10 to 15 mm for M30. Non-magnetic metals such as aluminium reduce the distance, and small targets reduce it further. For that reason the selection should be based on the smallest target that must be seen, not the largest. A margin below the nominal value keeps the output stable.
Mounting and the gap to the target
The gap between the sensing face and the target must stay within the value given in the manufacturer data sheet. When the body is mounted into metal, a spacer may be needed so that the surrounding metal does not change the field and the reading. The target must also cross the sensing field completely. A useful habit is to make the target wider than about twice the sensing distance, so that the switching point is reached cleanly.
PNP, NPN and contact types
A PNP output connects the load to the positive line and switches to the supply voltage when the target is detected. An NPN output connects the load to the negative line instead. The chosen type must match the input card of the PLC, because the two output kinds are not interchangeable. A normally open contact closes on detection, and a normally closed contact opens on detection; safety circuits usually prefer normally closed contacts because a broken wire then stops the machine.
A worked example with a 10 mm sensor
A sensor with a nominal sensing distance of 10 mm is used in a line where a designer keeps a safety margin of 70 percent. The working distance becomes 10 × 0.70 = 7 mm. A target that is 8 mm away is therefore too far for reliable switching under this rule, so the sensor should be moved closer. Writing the margin and the result down before mounting prevents this error on the bench.
Common mistakes with proximity sensors
The most common mistake is to use an inductive sensor for plastic or wood, which it cannot detect at all. The second is to wire a PNP output to an NPN input card and then expect the input to switch. The third is to mount the body flush into metal without checking the data sheet, because the reading then changes. Always test the sensor with the real target and the real supply before accepting the wiring.
Frequently asked questions
Can an inductive sensor detect plastic?
No. An inductive sensor reacts to the change in a magnetic field caused by metal, so plastic and wood cannot be detected. For those materials a capacitive or optical sensor is the right choice.
What does a typical M18 inductive sensor reach?
A typical M18 body reaches about 5 to 8 mm of sensing distance, though the exact figure depends on the target material and size and on the manufacturer’s data sheet. Always confirm the value in the data sheet before designing the mounting.
How is a PNP output connected to a PLC input?
The PNP output switches the positive supply to the input, so the common of the input card is tied to the 0 V line. With an NPN output the input would be wired to the supply instead. The input card type must match the sensor output type.
Create an account — save your progress
Save your notes