What is limit switch?

Mechanical limit switch for detecting machine travel and position

What Is a Limit Switch?

A limit switch is an electromechanical device that detects when a moving part reaches a defined position. Physical contact with a lever, roller or plunger changes the state of electrical contacts inside the switch. The control system uses that change to confirm a position, advance a machine sequence or request a stop.

Typical duties include detecting the end of a slide's travel, confirming that a mechanism has returned home and checking that a component is seated. As a position sensor, it provides a straightforward answer: the mechanism has reached this switching point.

A limit switch reports position; it does not absorb the machine's momentum. Stopping depends on the control circuit, drive and any braking equipment involved.

From mechanical movement to an electrical signal

Imagine a cam attached to a moving carriage. As the carriage approaches the end of its working range, the cam moves a roller lever. Once the actuator reaches its operating point, the contacts change state. A PLC can read that change, or the contact can operate within a suitable hardwired control circuit.

On a conventional spring-return model, the mechanism resets when the cam moves away. Maintained-action and manual-reset switches behave differently. The output is normally a discrete state read by a digital input, rather than a continuous measurement of distance.

Understanding normally open and normally closed contacts

NO and NC describe contact states with the actuator unoperated on a conventional switch. “Normal” does not mean “while the machine is running.” If the installed mechanism holds the lever down during production, the contacts will be in their actuated state.

Contact type Actuator released Actuator past its switching point
NO — Normally open Electrical path open Contact closes
NC — Normally closed Electrical path closed Contact opens

Switches may contain several contact elements. A changeover contact has a common terminal, while other designs provide separate circuits. Read the contact diagram before choosing terminals. An identical housing does not guarantee an identical internal arrangement.

An NC contact can make a broken wire remove an operating permissive in a properly designed circuit. It does not, by itself, detect a short across the contact, a jammed actuator or a mounting failure. NC wiring alone does not establish a safety function.

Is a mechanical limit switch PNP or NPN?

A basic dry-contact switch is neither a PNP nor an NPN electronic sensor. It opens or closes an externally supplied circuit. Compatibility depends on the input module's wiring, common connection and voltage. Models with indicators or internal electronics may introduce additional supply and polarity requirements.

Common Actuator Styles

Roller lever: A cam moves a lever through a roller at its tip. This arrangement is useful on travelling carriages and transfer mechanisms. The roller reduces sliding friction, but the approach angle and impact speed still matter.

Plunger: A moving part presses a pin along its intended operating axis. Plunger switches suit compact installations where the motion is well aligned. Side loading and excessive depression can damage the mechanism.

Roller plunger: A roller on the plunger allows a suitably shaped cam to pass across the actuator. The cam profile must respect the permitted approach direction, speed and travel.

Flexible rod: A passing object deflects a flexible actuator. This can be useful for presence detection where the contact point varies, but suitability for precision referencing needs separate assessment.

The internal mechanism also matters. Snap-action contacts transfer rapidly once the operating point is reached. Slow-action contacts follow actuator movement more directly. Neither description alone establishes suitability for every control or safety duty.

Using a limit switch with a motor or drive

In many machines, the switch operates a contactor control circuit or an interposing relay. It does not necessarily switch motor power directly. The marked current rating must be interpreted alongside voltage, load type and utilization category.

A limit signal connected to a variable frequency drive may request deceleration, inhibit one direction or stop operation, depending on the input configuration. Verify the assigned function. An ordinary drive stop input is not automatically a safety input.

On an axis driven by a servo motor, a home switch, working limit and final overtravel device may serve distinct purposes. A linear encoder provides continuous position feedback where required. A discrete limit switch cannot replace that measurement.

Mounting: Allow for Both Switch Travel and Stopping Distance

Do not use the switch as a mechanical stop. Its actuator and housing are not intended to arrest the moving load. Any required end stop, buffer or energy-absorbing arrangement must be designed separately.

Pretravel (PT) is the actuator movement from its free position to the operating point. Overtravel (OT) is the permitted movement beyond that point. Movement differential (MD) is the difference between the operating and release positions. Depending on the actuator, these values may be stated in millimetres or degrees.

The cam must operate the switch positively without exceeding the permitted travel. Barely touching the switching point can cause an unstable signal under vibration; forcing the actuator too far can damage it. Use the manufacturer's recommended operating range rather than an assumed universal setting.

A useful stopping-distance check: At 0.5 m/s, a carriage travels another 10 mm during an assumed 20 ms sensing and control delay. Braking distance comes after that. This is an illustration, not a mounting specification: the actual installation must account for measured stopping behaviour, load variation and tolerances.

How does it compare with a proximity sensor?

An inductive sensor detects a metal target without contact. A photoelectric sensor uses light, while a capacitive sensor can detect suitable non-metallic materials as well.

All can be used to detect a travel boundary, but their operating principles differ. With a mechanical switch, consider contact force, wear and cam geometry. With a non-contact sensor, consider sensing distance, target properties and electronic output compatibility. Select the technology around the application rather than grouping every position detector under the same device type.

What should you check before selecting a switch?

Mechanical duty: Establish the approach direction, operating speed, cycle rate, required force and repeatability. Confirm that the bracket and cam remain aligned throughout operation. Successful operation during one setup cycle does not demonstrate long-term durability.

Electrical duty: Check AC or DC voltage, load characteristics, switching capacity and minimum applicable load. Contacts designed for substantial currents may not be the best choice for a very low-current PLC input; suitable microload versions are available for such duties.

Environment: Assess dust, water, oil, coolant, temperature and vibration. An IP rating does not establish chemical compatibility or suitability for every washdown process. Cable entries, seals and cover installation also affect protection.

Can an ordinary limit switch perform a safety function?

Appearance and contact count are not enough to decide. Safety applications require suitable components, actuation and circuit design. Direct opening under IEC 60947-5-1 concerns mechanical opening of an NC contact under specified force and travel conditions.

That feature does not establish the performance of the complete safety function. The sensor, logic and final switching elements must be assessed together. ISO 13849-1 design principles provide one relevant framework. Guard applications also require consideration of ISO 14119 interlocking principles.

Common faults and what they suggest

Intermittent detection: Check for a loose bracket, worn roller, insufficient actuator travel, vibration or contacts unsuitable for the electrical load.

The switch clicks but the machine keeps moving: Confirm that the contacts change electrically, that the input receives the signal and that the control logic requests the intended action. Then check the drive response and stopping system. An audible click is not a functional test of the complete circuit.

Several input transitions from one operation: Contact bounce or mechanical vibration may be responsible. Input filtering can help in suitable control applications, but its delay must be included in the response-time assessment. Arbitrary software delays are not an acceptable substitute for validated safety behaviour.