Professional Industrial Sensor Manufacturer
XSZ Sensor

Industrial Automation Sensing

Magnetic
Switches

Non-contact detection of magnet-equipped targets for machine position feedback. Choose the housing, operating gap and electrical version to suit your installation.

Magnet target detection Non-contact position feedback
Threaded housing options M5, M8, M12 and M18 bodies
Factory direct supply Application and model support
OEM support Cable, connection and labeling

Position Feedback from a Target Magnet

What Are Magnetic Switches?

Magnetic switches respond to the magnetic field from a target magnet. Unlike an inductive proximity sensor that detects a metal target, a magnetic switch can confirm the position of a moving component fitted with a suitable magnet, without mechanical contact.

The XSZ Sensor threaded range includes M5, M8, M12 and M18 housings. Select the body for your mounting space, then confirm the target magnet, operating gap, supply voltage, load and wiring for the exact electrical version.

Our Product Range

Magnetic Switch Models

Match the magnet.
Confirm the operating gap.

Need a different body or electrical version?

Share your target magnet, operating gap, supply voltage and controller input.

Get More Products

Find the right switch for your application

Magnetic Switch Selection Guide

Match the magnet, mounting position and electrical interface
for reliable position feedback.

01

By Target Magnet

Check magnet size, orientation and travel path. Test the operating gap with the magnet used on your machine.

02

By Switch Technology

Confirm reed-contact or solid-state sensing. Match the switching behavior and load requirements to your application.

03

By Mounting Style

Check the bracket, cylinder groove or clamp. Allow space for position adjustment and cable routing.

04

By Electrical Interface

Match supply voltage, output logic and load rating. Verify the wiring diagram and compatibility with your controller input.


Compare mounting styles at a glance

Magnetic Switch Selection Comparison

Compare common installation formats. Confirm dimensions and electrical options for the selected model.

Mounting FormatTargetKey Fit CheckAdjustmentCircuit CheckTypical Use
Threaded
Housing
External
magnet
Thread size and
bracket clearance
Set gap
with nuts
Voltage, output
and load
Fixture position,
machine home signal
Rectangular
Housing
External
magnet
Mounting holes and
active-face direction
Adjust bracket
position
Voltage, output
and pinout
Compact assemblies,
moving carriers
T-Slot
Cylinder Mount
Piston
magnet
Groove dimensions and
retaining screw
Slide along
the groove
Output and
PLC input
Cylinder end-position
feedback
C-Slot
Cylinder Mount
Piston
magnet
Groove profile and
insertion clearance
Set position
in the slot
Output and
PLC input
Compatible compact
cylinders and grippers
Clamp-On
Cylinder Mount
Piston
magnet
Clamp size and
cylinder compatibility
Position clamp
on the body
Output, cable
and load
Round cylinders with
a matching adapter

Validate performance on your machine

What Should Your Sample Test Prove?

Repeatable Switching

Check turn-on and release positions across repeated cycles with the actual magnet, gap and approach direction.

False-Trigger Resistance

Check for unwanted signals from nearby magnets, steel fixtures and other sources of magnetic interference.

Secure Installation

Confirm the switch stays in position during motion and vibration, with enough clearance for the cable.

Reliable Input Signal

Verify that the controller captures every required state change at operating speed with the intended load.


Match the switch to your equipment

Installation & Output Options

Mounting hardware and output availability depend on the selected switch.

Mounting Options

Match the sensor position to the magnet's travel path.

Threaded Bracket

  • Match the thread and bracket
  • Set the gap and orientation
  • Secure the locking nuts

Cylinder Slot

  • Match the T-slot or C-slot
  • Set the switching position
  • Secure with the specified torque

Cylinder Clamp

  • Use a compatible adapter
  • Check piston magnet detection
  • Route and support the cable

Electrical Options

Check the model's circuit diagram before connecting.

Reed Contact

Check contact ratings and load protection for the intended circuit.

NPN Output

Sinking output, when specified.
Match the controller input.

PNP Output

Sourcing output, when specified.
Verify supply polarity.

NO / NC Logic

Check the output state with the magnet present and absent. Availability varies by model.

Industrial Applications
Magnetic Switches
for Position Feedback

Detect a magnetic target without a mechanical lever. From cylinder strokes to moving fixtures, choose a switch that matches the magnet, mounting position and controller input.

Cylinder End-Position Feedback

Detect the piston magnet at a selected stroke position with a compatible cylinder and switch.

Gripper Position Feedback

Confirm actuator position in a compatible magnetic gripper; this does not prove part presence.

Slide & Home Position

Use a magnet on the moving carriage to signal a selected reference position.

Fixture Open / Closed Feedback

Monitor a magnet-equipped fixture or cover for process feedback, not safety interlocking.

Detection Challenges
Keep Position Signals Consistent

A magnetic switch responds to a suitable magnetic field, not ordinary metal alone. Check the actual magnet and both switching positions in the installed setup.

Magnet Strength & Orientation

Magnet size, field strength and orientation affect switching. Confirm the target and approach direction.

Gap & Switching Position

Set the mounting gap and verify turn-on and release points. Allow for movement and vibration.

Nearby Magnetic Interference

Nearby magnets and steel fixtures can change the field at the sensor. Test the complete assembly.

Output & Load Matching

Confirm reed or solid-state design, supply, output and load limits. Match the wiring to the controller.

Why XSZ Sensor
More Than a Sensor.
A Stronger Partner.

From application review to OEM supply, build a sensing solution around your production line.

Factory-Direct
Manufacturing

Support from
selection to supply.

Application-Based
Selection

Review your magnet,
gap and circuit.

Product
Inspection

Check the selected
configuration.

Sample
Support

Validate on your
actual machine.

Real Factory Trust
Inside Our Sensor Manufacturing Facility

From production to inspection, every step is built for stable quality.

10+Years
50+Countries
OEM/ODMSupport
XSZ sensor assembly workstations
XSZ sensor customization workstation
Shelves of sensor components in storage bins
Labeled parts bins on warehouse shelving
Coils of sensor cable stored on a rack
Cylindrical sensors arranged above a workbench
Sensor component workbench with organized parts bins
Cable reels beside sensor assembly workstations

Flexible Solutions for Your Application

Customization & OEM

Share your target magnet, mounting space and electrical requirements. Our engineering team can review feasible configuration and branding options for your magnetic switch application.

Housing & Mounting

Review housing dimensions, mounting points and available space in your equipment.

Magnet Matching

Check the target magnet, working gap and approach direction as a matched setup.

Cable Length

Discuss cable length and routing for your machine layout.

Connection Type

Review available cable or connector options against your wiring requirements.

Output & Load

Match available switching behavior and electrical ratings to your controller or load.

Label / Branding

Discuss custom labels, logos and part numbers for your OEM project.

Explore More

Related Articles

Practical reading for magnetic switch selection, magnet matching and installation.

Selection Guide

How to Choose a Magnetic Proximity Switch

Review the target magnet, mounting space, working gap and electrical requirements.

Read Article

Technology Comparison

Reed vs. Hall-Effect Magnetic Switches

Compare sensing principles and circuit requirements before choosing a switch.

Read Article

Installation Guide

Magnet Alignment and Switching Distance

Understand how magnet orientation and approach direction affect the switching point.

Read Article

Common Questions

Frequently Asked Questions

Quick answers to help you select, install and connect a magnetic switch.

What does a magnetic proximity switch detect?

It responds to a magnetic field, usually from a target magnet. An ordinary metal part is not a substitute for that magnet; magnetic and inductive proximity switches use different sensing principles.

Can I use any magnet with the switch?

Do not assume every magnet is compatible. Check the magnet's size, strength and orientation against the chosen sensor, including any polarity requirements, then test the actual combination.

What determines the switching distance?

The switching gap depends on the sensor's sensitivity and the magnet's field, size, shape and alignment. Verify it with the actual magnet and installation rather than relying on a generic distance.

Are reed and Hall-effect magnetic switches interchangeable?

Not automatically. A reed switch uses magnetic-field-operated contacts; a Hall-effect switch uses powered electronic sensing. Compare supply, wiring, switching behavior and electrical ratings for the exact models before replacing one with the other.

How do I connect a magnetic switch to a PLC?

Follow the model's wiring diagram. Confirm supply voltage, output or contact type, allowable load and controller input compatibility. Do not assume all magnetic switches share the same two-wire or three-wire connection.

What should I check if switching is inconsistent?

Check the working gap, magnet alignment and mounting stability through the complete motion. Review nearby magnetic fields and the electrical connection, then verify switching with the final assembly and operating load.

Let's Build a Smarter Tomorrow

Need Help Choosing a Magnetic Switch?

Share your magnet details, working gap, mounting space and controller requirements. Our technical team can help you review a suitable switch and connection.