Cylinder and machine position guide
Reed Switch vs Proximity Sensor: Choose the Right Detection Principle
For a pneumatic cylinder with a magnetized piston, compare a reed cylinder switch with a solid-state magnetic cylinder sensor. For an exposed metal target, compare those options with an inductive proximity sensor. The target and mounting geometry decide the category before price, speed, or lifetime.
Direct answer
Start with what must trigger the signal.
A magnetized cylinder piston
Use a cylinder sensor designed to detect the piston magnet. The sensing element may be a reed contact or a solid-state magnetic element.
Compare reed vs magnetic solid-stateAn external metal flag or machine part
Use an inductive proximity sensor when a conductive metal target can enter the rated sensing field with adequate mounting clearance.
Compare target metal, size, range and mountingA measured position across the stroke
A binary reed or proximity switch only confirms one switching zone. Use a position transmitter or another analog measurement system when the controller needs stroke position.
Do not substitute an ON/OFF sensor for measurementFix the terminology first
“Proximity sensor” is an umbrella term, not one operating principle.
A reed switch detects a magnetic field and closes or opens internal mechanical contacts. A magnetic solid-state cylinder sensor also detects the piston magnet, but its signal is produced by a magnetic sensing element and electronic output circuit. An inductive proximity sensor detects conductive metal by measuring field losses caused by eddy currents.
All three can provide contactless detection relative to the moving target. The important difference is what happens inside the device and what target property activates it.
Reed cylinder switch
Magnet target, internal mechanical electrical contact, often used as a simple two-wire switching element.
Magnetic solid-state sensor
Magnet target, electronic sensing and output, available in cylinder-specific mounting and wiring variants.
Inductive proximity sensor
Metal target, electronic field detection, commonly used for machine flags, tooling, fixtures and part presence.
How each one switches
Three mechanisms produce three different electrical and installation behaviors.
The internal principle explains contact bounce, leakage current, load limits, target compatibility and the kind of failure that should be tested.
Reed switch
A nearby magnetic field magnetizes overlapping ferromagnetic reeds inside a sealed glass envelope. The reeds move and make or break an electrical contact.
Watch: contact rating, inrush, transients, bounce and magnetic windowSolid-state cylinder sensor
A Hall, magnetoresistive or other magnetic sensing element detects the piston magnet. Electronics condition the signal and drive a two-wire or three-wire output.
Watch: voltage, polarity, output type, leakage, residual voltage and field interferenceInductive proximity sensor
An AC field at the sensing face induces eddy currents in a conductive target. The resulting oscillator or impedance change is converted into an output signal.
Watch: target metal, target size, set distance, flush mounting and surrounding metalReed switch vs proximity sensor
Use this comparison before reading any model specification.
The table compares principles, not guaranteed model values. A protected reed assembly, a two-wire electronic sensor and a three-wire PNP sensor can behave very differently even when they fit the same cylinder family.
| Decision factor | Reed cylinder switch | Magnetic solid-state cylinder sensor | Inductive proximity sensor |
|---|---|---|---|
| Required target | A magnetic field with the correct strength and orientation. | A compatible piston magnet or external magnet. | A conductive metal target of adequate material, size and shape. |
| Internal switching | Mechanical electrical contacts inside the reed element. | Electronic magnetic sensing and output circuitry. | Electronic field generation, detection and output circuitry. |
| Supply and wiring | The bare contact does not need standby power, but complete assemblies may include an LED, resistor or protection circuit. Follow the exact diagram. | Requires a compatible supply. Two-wire and three-wire, PNP, NPN and other variants exist. | Requires a compatible supply. Common variants include DC three-wire, DC two-wire, AC and AC/DC. |
| Output behavior | Dry-contact behavior is possible, with contact bounce and load-dependent electrical life. | No mechanical contact bounce, but OFF-state leakage and ON-state voltage drop may matter. | No mechanical contact bounce; leakage, residual voltage and response frequency are model-specific. |
| High cycling | Electrical life depends strongly on load, inrush, transients, switching rate and environment. | Often preferred when frequent switching, diagnostics or consistent electronic output are important. | Suitable for frequent metal-target detection when the response rating and target motion fit the application. |
| Cylinder mounting | Use only when approved for the cylinder slot, piston magnet and mounting hardware. | Use only when approved for the cylinder slot, piston magnet, switch position and control input. | Usually mounted to detect an external metal flag; it does not normally read the internal piston magnet. |
| Main interference | Adjacent magnets, welding fields, motor fields, vibration, contact load and marginal dwell. | Magnetic field geometry, strong external fields, wiring noise, supply and output compatibility. | Surrounding metal, target alloy and size, mutual interference, temperature, vibration and wiring noise. |
| Best reason to choose | Simple magnet-operated contact behavior where the load and certified assembly are appropriate. | Cylinder magnet detection with electronic switching, model-specific diagnostics or high-cycle requirements. | Reliable non-contact detection of an accessible metal target elsewhere on the machine. |
Do not order by generic labels alone. Confirm the complete part number, cylinder compatibility, switch rail or slot, voltage, output, load, cable, connector and environmental approvals.
Pneumatic cylinder position
Both cylinder-switch types detect the piston magnet indirectly.
The sensor mounts at the desired switching position while the piston magnet moves inside the barrel. The sensor reports that the magnetic field has entered its operating zone; it does not directly measure rod position, clamping force, air pressure or whether the mechanism completed its external task.
A reed switch and a solid-state magnetic switch may be offered for the same cylinder family, but physical fit alone is not proof of interchangeability. Slot geometry, mounting hardware, piston magnet strength, switching zone, connector, lead direction, voltage, load, output polarity and indicator circuit all need confirmation.
When a reed switch makes sense
Choose the reed assembly for its circuit behavior, not because it is assumed to be the cheapest.
A reed contact can provide a simple isolated switching path and can operate without powering the bare contact. That can be valuable, but the complete sensor assembly and load still determine whether it is suitable.
Useful conditions
The controller can accept the specified contact type, switching duty is within the rated load-life data, the magnet and mounting are compatible, and the installation does not demand features available only from an electronic output.
Load-sensitive life
Contact life cannot be reduced to one cycle number. Voltage, current, power, AC or DC, capacitive inrush, inductive flyback, cable capacitance, switching frequency and ambient conditions all affect the result.
Protect the contacts
Use the suppression, resistor, interface relay or input arrangement specified for the actual load. A suppression component selected for one coil or cable is not automatically correct for another circuit.
Do not infer certification
A sealed reed element does not make every finished assembly intrinsically safe, explosion-proof, waterproof or suitable for a safety function. Those claims require the exact certified product and system design.
When magnetic solid-state wins
Use an electronic cylinder sensor when its output and diagnostics fit the control system.
Solid-state cylinder sensors remove the internal reed contact, but they do not remove selection work. Their electronics introduce supply, polarity, output and input-threshold requirements.
Confirm the magnet
Verify the sensor is approved for the cylinder family and piston magnet. Magnetic field shape and strength influence the switching zone.
Match the input
Check supply range, PNP or NPN behavior, two-wire or three-wire connection, NO or NC logic, load current and connector pinout.
Check OFF and ON states
OFF-state leakage can keep a sensitive input active; ON-state residual voltage can leave too little voltage for the load. Use model data and PLC thresholds.
Challenge the environment
Test welding fields, adjacent cylinders, vibration, coolant, cable flex, washdown and temperature using the final mounting hardware.
Inductive proximity detection
Choose inductive sensing for an accessible metal target, not for the hidden piston magnet.
An inductive sensor is often the better machine-position device when a metal flag, cam, tool, fixture or part can approach the sensing face. It avoids mechanical target contact and can switch repeatedly without internal mechanical contacts.
Rated sensing distance is established under defined test conditions. The usable set distance can shrink with a smaller target, non-ferrous alloy, temperature, surrounding metal, installation tolerance or vibration. Flush and non-flush models also require different clearances.
Application selector
Which position sensor should you start with?
Select the target and required result. The recommendation identifies a sensor family and the evidence needed before ordering a production quantity.
What must the machine detect?
Recommended starting point
Cylinder-approved reed switch
Consider a reed cylinder switch when a compatible piston magnet must operate a simple contact circuit and the real switching load is within the model's rating.
PLC and wiring checks
Most “sensor failures” begin as output and input mismatches.
Use the wiring diagram for the exact part number. Do not infer a pinout or output type from cable color, housing shape or another model in the same series.
Check the load path
Confirm normally open or changeover behavior, switching voltage, switching current, switching power, carry current, transient suppression and whether an LED or protection circuit changes polarity or voltage behavior.
Never drive a coil or capacitive input solely from a generic contact rating.Match PNP, NPN and two-wire circuits
Confirm whether the output sources or sinks current, how the PLC common is wired, the minimum load, maximum load, OFF leakage, ON residual voltage and short-circuit protection.
Read the NPN vs PNP sensor guide before wiring.Define the healthy state
NO and NC describe output behavior under stated conditions; they do not by themselves create fault monitoring. Decide how the PLC recognizes target absent, target present, cable break and power loss.
Review NO vs NC sensor output for control logic.Troubleshooting by symptom
Separate target, mounting, electrical and environmental causes.
Record the sensor LED, PLC input, supply at the sensor and physical target position at the same moment. That prevents a wiring fault from being mistaken for a sensing fault.
Cylinder sensor never turns ON
Check: non-magnetic piston, incompatible sensor, wrong slot position, weak or misaligned magnet, excessive wall gap, wrong supply, incorrect PNP/NPN wiring or broken cable.
Signal chatters at the end position
Check: piston stopping at the edge of the switching zone, vibration, loose clamp, pressure variation, contact bounce, electrical noise or an input filter that is too short.
Reed contact sticks ON
Check: contact welding from inrush or transient energy, residual magnetic field, nearby magnet, load above the rated conditions or damaged assembly.
Electronic sensor looks ON when OFF
Check: OFF-state leakage current versus PLC input threshold, two-wire indicator circuit, incorrect common, shared wiring path, cable damage or induced voltage.
Inductive sensor works only very close
Check: non-ferrous or undersized target, surrounding metal, non-flush model embedded in steel, target approach, temperature, supply, mounting tolerance or wrong set-distance assumption.
False signals near welding equipment
Check: weld-field suitability, magnetic field direction, cable routing, grounding, separation from welding current paths, adjacent cylinder magnets and whether another sensing principle is needed.
Purchase specification
Send these details before asking whether one sensor can replace another.
A useful replacement review needs the existing part number and application evidence. “T-slot sensor, 24 V” is not enough to confirm mechanical or electrical compatibility.
Target and actuator
Cylinder manufacturer and series, bore and stroke, piston magnet option, sensor slot, external metal target material and size, approach direction and switching position.
Electrical interface
Supply voltage, AC or DC, PNP or NPN, two-wire or three-wire, NO or NC, PLC input model, load current, relay or coil details, connector and pinout.
Machine duty
Cycles per minute, daily operating hours, target speed, required response, allowed downtime, cable motion, start-up transients and required diagnostic behavior.
Environment and compliance
Temperature, coolant, oil, washdown, dust, vibration, impact, welding field, hazardous area, machine-safety role and required third-party approvals.
XSZ selection support
Match the sensor to the real target and controller.
XSZ supports magnetic switches and proximity sensors for automation equipment, machine builders and distributor projects. Start by identifying whether the application detects a piston magnet, an external magnet or a metal target.
For inductive applications, XSZ can help compare housing size, flush or non-flush mounting, target material, practical set distance, NPN or PNP output, NO or NC logic, cable, connector and working environment.
Avoid an incompatible replacement
Send the current sensor, cylinder and PLC details to XSZ.
We can help narrow the correct magnetic switch or proximity sensor family before sampling, including OEM cable, connector, label and packaging requirements where supported.
Continue the selection
Related sensor guides and product pages
Frequently asked questions
Reed switch vs proximity sensor FAQ
Can an inductive proximity sensor replace a reed switch on a pneumatic cylinder?
Usually not as a direct slot replacement. A cylinder reed switch detects the magnetic field from a magnetized piston through a compatible cylinder wall. An inductive proximity sensor detects a conductive metal target in front of its sensing face. To replace a reed cylinder switch without adding an external metal flag, compare it with a cylinder-approved magnetic solid-state sensor rather than a standard inductive sensor.
Is a reed switch a contact sensor or a non-contact sensor?
The moving magnet does not physically touch the reed switch, so the application detects position without target contact. Inside the reed element, however, ferromagnetic reeds physically make or break an electrical contact. This internal contact is why load rating, transient energy, bounce and electrical life matter.
Which lasts longer: a reed switch or a solid-state magnetic sensor?
A solid-state magnetic sensor has no internal mechanical electrical contacts and is often preferred for frequent switching. A universal lifetime comparison is not valid, however. Reed life depends on the exact electrical load, inrush, transients, switching frequency, magnetic operation and environment, while electronic sensor life depends on electrical stress, temperature, sealing, cable and application conditions. Compare model-specific ratings and test the real circuit.
Does a reed switch require a power supply?
A bare reed contact does not require standby power to sense a magnetic field, but the complete circuit still needs energy to read or operate a load. Packaged reed sensors may also include an LED, resistor or protection circuit that introduces polarity, minimum-load or voltage considerations. Use the wiring diagram for the exact assembly.
Can reed and solid-state cylinder sensors use the same slot?
Sometimes both versions are offered for the same cylinder family, but slot fit alone does not prove interchangeability. Confirm the cylinder series, bore, piston magnet, slot profile, bracket, lead direction, switching zone, voltage, output, connector and control input. Use the cylinder manufacturer's compatibility list or validated replacement data.
Why does a reed switch chatter near the cylinder end position?
The piston may stop at the edge of the magnetic operating zone, or vibration and pressure variation may move the field across the operate and release points. Mechanical contact bounce, a loose mounting clamp, electrical noise or an overly short PLC filter can add symptoms. Map the ON and OFF points in both directions, then reposition and secure the sensor with adequate dwell.
Why does an electronic proximity sensor keep a PLC input ON when the sensor is OFF?
Two-wire and transistor outputs can pass a model-specific OFF-state leakage current. A high-impedance PLC input may interpret that current as ON, especially with an indicator circuit or wiring error. Compare sensor leakage with the PLC OFF threshold, check the common and polarity, and use a manufacturer-approved bleeder or interface solution only when required.
What information does XSZ need to recommend a replacement sensor?
Send the current sensor and cylinder part numbers, a photo of the slot or bracket, whether the target is a piston magnet or metal object, supply voltage, two-wire or three-wire connection, PNP or NPN, NO or NC, PLC input model, cable or connector, cycle rate, environment and required quantity. For inductive sensing, include target alloy, size, approach direction and required set distance.
Technical references
- SMC: Reed vs solid-state auto switches - mechanical contact versus magnetic detecting element and electronic circuit.
- Festo: Cylinder and inductive sensors - piston-magnet cylinder feedback and metal-target inductive sensing.
- OMRON Proximity Sensor Technical Guide - inductive, capacitive and magnetic principles plus selection factors.
- Littelfuse 59170 Reed Switch Datasheet - model-specific ratings and load-life cautions.
Image credits
- Pneumatic cylinder, Grummelbacke, CC BY-SA 4.0.
- Reed switch macro, Timothee Cognard, CC BY-SA 4.0.
- Inductive proximity sensor, Ekbsensor, CC BY-SA 4.0.
- XSZ product image supplied from xszsensor.com.
This guide compares sensing principles and common integration risks. Specifications, interchangeability, approvals and service life remain part-number and application specific. Validate the exact sensor, cylinder, target, circuit and environment before production release.