Magnetic Switches for Cylinder Position Detection.
XSZ magnetic switches provide non-contact position feedback for pneumatic cylinders, grippers, actuators and automation equipment. Choose by cylinder groove, magnet strength, output type, cable connection and installation environment.
- Reed and Hall-effect options for cylinder sensing and motion feedback
- Selection support for T-slot, C-slot, round cylinder and custom mounting
- OEM support for cable length, connector, label, wiring diagram and packaging
Use magnetic switches when machines need repeatable position feedback
Magnetic switches detect the magnet inside a pneumatic cylinder or moving actuator without mechanical contact. They help controllers confirm extend, retract, clamp, release and intermediate positions.
Non-contact detection
No mechanical lever is required, so the switch can detect cylinder piston position through the cylinder wall using the built-in magnet.
Clear motion feedback
Use the signal to confirm cylinder end position, clamp state, stroke completion or machine sequence before the next action starts.
Easy controller integration
Choose reed, Hall-effect, PNP, NPN, 2-wire or 3-wire versions according to the PLC input and machine wiring.
For pneumatic cylinders, grippers, actuators and compact automation modules
Magnetic switches are used anywhere a controller needs to know whether a cylinder or actuator has reached the expected position.
- Pneumatic cylinder extend and retract position detection
- Robotic grippers, clamping fixtures and pick-and-place equipment
- Packaging machines, assembly lines and material handling systems
- Compact automation modules where space is limited around the cylinder
- OEM equipment requiring repeatable cable, connector and label configuration
Choose by cylinder groove, output type and wiring condition
For magnetic switches, the correct model depends on the cylinder structure and electrical interface. A switch with the wrong slot size or output logic may not install or may not communicate with the controller.
| Selection Point | Customer Problem | Recommended Check | Information to Provide |
|---|---|---|---|
| Cylinder groove | Switch body does not fit the cylinder slot | Confirm T-slot, C-slot, round cylinder or bracket mounting | Cylinder brand, model and groove photo |
| Switch type | Signal is unstable or load is not suitable | Choose reed or Hall-effect based on load and controller input | PLC input type, voltage and load current |
| Output logic | PLC cannot read the signal correctly | Confirm PNP, NPN, 2-wire, 3-wire, NO or NC requirement | Wiring diagram and controller input specification |
| Magnet strength | Switch misses the piston position or triggers too early | Check cylinder magnet and mounting distance | Cylinder bore size, piston magnet type and target position |
| Cable connection | Cable is too short, too exposed or incompatible with cabinet layout | Confirm cable length, connector and outlet direction | Cable length, M8/M12 connector need and routing photo |
| Environment | Oil, water, dust or vibration causes failure | Check protection rating, mounting tightness and cable protection | Working environment, vibration level and cleaning condition |
Reed magnetic switches vs Hall-effect magnetic switches
The right choice depends on load, wiring, switching frequency and controller input. Confirm these details before replacing an existing switch.
Reed magnetic switches
- Common for simple cylinder end-position detection
- Often used in 2-wire circuits and general automation feedback
- Suitable when the load and switching frequency match the reed design
- Need attention to surge, load current and contact protection
Hall-effect magnetic switches
- Solid-state sensing option for stable electronic signal output
- Common for 3-wire PNP or NPN controller input requirements
- Useful where switching frequency or electronic interface matters
- Need correct power supply polarity and output logic selection
Common causes of magnetic switch failure or false signal
Most magnetic switch problems come from wrong groove fit, output mismatch, weak magnet position, poor cable protection or nearby magnetic interference.
Wrong slot or bracket
A switch that looks similar may still be too wide, too loose or too short for the cylinder groove.
Output mismatch
PNP, NPN, 2-wire, 3-wire, NO and NC signals must match the PLC input and wiring method.
Weak sensing position
If the piston magnet is weak, offset or too far from the switch, the signal may flicker or trigger at the wrong point.
Configure magnetic switches around your cylinder and controller
Send the cylinder model, slot photo and wiring diagram. XSZ can help match the switch structure, electrical output and cable configuration.
Slot and mounting fit
Select the body shape, groove fit, bracket and fixing method based on the cylinder structure.
Output and wiring
Choose reed, Hall-effect, PNP, NPN, NO, NC, 2-wire or 3-wire according to the controller input.
Cable and connector
Confirm cable length, M8/M12 connector, indicator light, outlet direction and cable protection.
What to confirm before buying magnetic switches
These details help avoid buying a switch that fits electrically but not mechanically, or fits the cylinder but gives the wrong signal to the PLC.
- Cylinder brand, model, bore size and groove type
- Required sensing position, stroke end and magnet strength
- Reed or Hall-effect preference based on load and switching condition
- PNP/NPN, NO/NC, 2-wire/3-wire and voltage requirement
- Cable length, connector type, working environment and protection rating
| Need | Better Choice | Risk if Ignored |
|---|---|---|
| Cylinder slot fit | Match switch body to groove and bracket | Loose mounting or impossible installation |
| PLC input match | Correct PNP/NPN or 2-wire/3-wire output | No signal, wrong signal or damaged input |
| Frequent operation | Confirm switch type and load condition | Shorter service life or unstable feedback |
| OEM production | Confirmed cable, label and package before bulk order | Assembly delay and inconsistent repeat orders |
Send the cylinder and wiring details before choosing the final model
XSZ can review the cylinder structure and controller input, then recommend a magnetic switch configuration for sample testing or repeat supply.
Share the cylinder
Send cylinder model, groove photo, stroke position and mounting space.
Confirm the signal
Provide voltage, PLC input, output logic, cable length and connector need.
Test before bulk
Use samples to confirm fit, signal stability, indicator visibility and cable route.
Manufacturer support for magnetic switch projects
For machine builders, pneumatic component suppliers and automation distributors, XSZ supports magnetic switch selection, OEM presentation and repeat order supply.
Compare other position and safety sensor options
If your application needs object detection, machine guarding or metal target sensing, these related pages may help you choose faster.