PLC Simulator
All 151 components

sensors · indicator model

Proximity sensor

A PLC proximity sensor is a non-contact detector connected to a discrete input. An inductive model creates a high-frequency electromagnetic field at its active face; a nearby metal target absorbs energy from that field and makes the output transistor change state. The PLC does not see distance. It sees a clean ON or OFF input that the program can use for part presence, position proof, counting or an interlock.

1 I/O points1 snap portsPLC-driven state

Start with the public scenario; create a free account when you want to save progress.

Isolated component viewPROP_ProximitySensor_ROOT

Explore Proximity sensor in 3D

Load the interactive model when you are ready to rotate, inspect and operate it. Deferring WebGL keeps the reference page fast.

Motion and state

Its visible state changes with simulated I/O, making status and diagnosis readable in the scene.

PLC control pattern

Commission it by proving detecting before accepting the next sequence state.

Fault practice

Inject stuck-on, stuck-off, misaligned states and require the PLC sequence to detect, stop and recover deliberately.

PLC integration guide

How to use a proximity sensor with a PLC

Choose PNP or NPN to match the input circuit

A three-wire DC sensor normally has brown for positive supply, blue for 0 V and black for the switched output, but the datasheet remains authoritative. A PNP sensor sources positive voltage into a sinking PLC input when active. An NPN sensor sinks current toward 0 V for a sourcing input. The sensor and input common must form a complete current path. Guessing from wire colour or changing only the PLC program cannot repair an incompatible electrical circuit.

Program position proof, not a decorative input

Name the tag for what the sensor proves, such as CYLINDER_RETRACTED or PART_AT_STOP, rather than SENSOR_1. For a motion command, start a travel timer and require the expected position within a justified interval. Reject impossible combinations such as both mutually exclusive end sensors being true. For a counter, use a one-shot or edge detector so one stationary target contributes one count rather than one count per PLC scan.

Account for the physical installation

Rated sensing distance is measured with a standard target under controlled conditions. Small targets, non-ferrous metals, a recessed mounting arrangement, temperature and nearby metal can reduce usable range. Leave margin instead of commissioning at the edge of detection. Secure the cable, protect the active face from impact and verify the target remains aligned across machine tolerance and vibration.

Learn the physical principle first

The reference above focuses on PLC integration. The interactive school lesson shows the device, signal or mechanism before you write the control sequence.

Open the inductive proximity sensor lab

Signal map

I/O you can reason about

PLC input Detecting

SignalPLC directionType / range
Detecting
detecting
inputbool

Field checklist

Commissioning sequence

  1. 01Confirm sensor voltage, output type, normally-open or normally-closed behaviour and PLC input compatibility.
  2. 02Measure supply voltage at the sensor under load and confirm the input common is wired for the chosen PNP or NPN circuit.
  3. 03Move the real target through the operating position while observing both the sensor LED and the raw PLC input.
  4. 04Set the mounting distance with operating margin, then test the smallest and fastest expected target.
  5. 05Inject missing, stuck-on and chattering input states and prove the sequence alarms or stops deliberately.

Fault finding

Symptoms and first checks

SymptomCheck
Sensor LED changes but PLC input stays offCheck PNP/NPN compatibility, input common, output conductor continuity and the correct input address.
Input chatters near the targetIncrease sensing margin, correct alignment, inspect mounting vibration and apply only the minimum justified input filtering.
Input remains on with no targetRemove metal swarf, inspect a shorted output wire, check the configured polarity and substitute a known-good sensor.

Fault and recovery exercise

Make abnormal states part of the sequence

Inject stuck-on, stuck-off, misaligned states and require the PLC sequence to detect, stop and recover deliberately.

stuck-onstuck-offmisaligned

Engineering boundary

The model teaches PLC sequence behaviour and diagnosis. Confirm ratings, wiring, guarding, process calculations and commissioning limits against the real manufacturer documentation and site design.

Plain-English answers

Proximity sensor FAQ

Can a proximity sensor measure distance?

A standard inductive proximity switch is a discrete detector, not a distance transmitter. Some analog or IO-Link devices expose a process value, but the ordinary three-wire output provides only a switching state.

Should I debounce a proximity input in PLC logic?

Filter only when the application and response-time requirement permit it. First correct vibration, marginal range or wiring noise; a long software delay can hide a real fast event.

Why use a normally-closed sensor output?

A healthy-state signal can make some broken-wire conditions visible, but it does not automatically create a safety function. The complete circuit and diagnostic requirement determine the design.

Free first success

Put the proximity sensor into a working control sequence

Open a related browser scenario, run the PLC logic and see the component state respond. Start without installing software or entering a card.

No installNo credit cardImmediate pass/fail feedback