MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Wiring inductive proximity switches to PLC digital inputs
HomeModels
Table of contents

On this page

Sensors & Detection (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Wiring inductive proximity switches to PLC digital inputs

Connecting proximity switches to PLC inputs looks trivial until the four variables - sink or source, two-wire or three-wire, leakage current and residual voltage - combine into a fault. A short checklist per combination prevents most of it.

1. How it works

Step one is always the common logic: NPN switches need sinking wiring with S/S or COM on +24V, current leaving the input terminal through the switch to 0V; PNP switches need sourcing wiring with S/S on 0V, current entering the input. Get this backwards and the whole bank of inputs stays dead or inverts. Three-wire units go wire by wire; two-wire units sit in series with the input loop - one lead to supply, one to the input, the other supply rail into the common per the chosen logic. Trigger each point by hand and watch the input LED before touching the program.

2. Practice and pitfalls

Two-wire units carry two numeric constraints: standby leakage must stay below the input off-threshold, typically around 1.5mA, or the input ghosts on; and the ON-state loop current must reach the input on-threshold, typically 3~5mA, or actuation stays unreliable. Residual voltage of 3V or less eats into the supply budget. Route shielded twisted pair with the shield earthed at the cabinet end only, keep 200mm from power runs, cross at right angles, and megger the cables yearly - below 1 megohm, schedule replacement.

3. Combination quick table for sensor-to-PLC wiring

Switch typePLC wiringKey check
Three-wire NPNSinking, S/S on +24VInput pulled toward 0V when active
Three-wire PNPSourcing, S/S on 0VInput pushed toward +24V when active
Two-wireIn series with input loopLeakage under 1.5mA, ON current at threshold
Four-wire with diagnosticSignal and diagnostic separatedDiagnostic to its own input for warning
High-speed pulse outputHigh-speed counter terminalFilter set under 1ms
Cable over 20mShielded pair plus repeaterCheck end-of-line drop

4. Notes

Three disciplines keep this interface healthy: fix the common logic before wiring, measure three numbers after wiring - idle current, acting current, input LED response - and record the single-point shield earth on the drawing. Follow them and sensor-to-PLC faults drop to nearly zero.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Control circuits and interfaces per GB/T 5226.1 (IEC 60204-1); switch characteristics per GB/T 14048.10. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① Wiring without checking sink or source logic:A reversed common dead-ends the whole bank and costs a full rework
② Skipping the two-wire leakage test:A ghosted input gets blamed on the program for hours - clamp a milliampmeter first
③ Earthing the shield at both ends:Ground loops inject glitches into the inputs - earth at the cabinet end only

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL