OSSD wiring (NPN/PNP with EDM)
Engineer-ready guide. How to wire dual-channel OSSD with EDM feedback in PNP and NPN topologies, avoid common mistakes, and verify with a simple commissioning routine. Includes copy-ready I/O map, checklists, and fault-finding notes.
1) OSSD & EDM in practice
OSSD are two independent, self-monitoring outputs (OSSD1/OSSD2). The pair drops on beam interruption, channel fault, cross-fault, or desynchronization. Channels must be electrically separated and tested at power-up.
EDM (External Device Monitoring) supervises the external switching devices (K1/K2). If a contactor welds or a safety relay fails, EDM prevents reset and flags a diagnostic state.
| Item | Good practice | Why it matters |
|---|---|---|
| Channel independence | Separate fusing/harnesses for OSSD1/OSSD2 | Prevents single fault from masking failures |
| EDM loop | Series NC contacts of K1/K2 back to the controller | Blocks reset on welded contacts |
| Polarity | Match PNP/NPN to input common (COM) | Wrong polarity causes permanent ON/OFF |
| Safety distance | Document ISO 13855: S = K×T + C | Ensures timely stop before hazard reach |
2) Topologies: PNP vs NPN (with EDM)
PNP (sourcing) — recommended default
- COM = 0 V on the input module.
- OSSD1 → Input X0, OSSD2 → Input X1, EDM → Input X2.
- Reset PB → Input X3 (rising edge or two-stage).
- 24 V sensor PSU isolated from drives; single-point shield ground.
// Logic view (simplified)
+24V ──► OSSD1 ──► X0 K1 K2 (NC series) ──► EDM ──► X2
+24V ──► OSSD2 ──► X1 Reset PB ────────────► X3
0V ───────────────────────── COM=0V on input moduleNPN (sinking) — when COM = +24 V
- COM = +24 V on the input module.
- Logic inverted: OSSD pulls to 0 V to signal ON.
- Do not mix PNP/NPN on the same shared COM block.
// Logic view (simplified)
X0 ◄── OSSD1 ─── 0V K1 K2 (NC series) ──► EDM ──► X2
X1 ◄── OSSD2 ─── 0V Reset PB ────────────► X3
COM=+24V feeds the input commonWiring checklist (copy-and-do)
- Label TX/RX terminals per drawing; keep OSSD1/2 in separate sleeves.
- EDM returns the series NC contacts of K1/K2; verify opens on energy removal.
- Keep sensor cabling ≥ 200 mm from motor/power cables; cross at 90°.
- Ground shields at cabinet side only (single-point) to avoid loops.
3) Copy-ready I/O map & naming
| Variable | Address | Source | Purpose | Remarks |
|---|---|---|---|---|
LC_OSSD_CH_A | X0 | Light curtain OSSD1 | Channel A status | Separate fuse/harness |
LC_OSSD_CH_B | X1 | Light curtain OSSD2 | Channel B status | Alarm on mismatch |
LC_EDM_FB | X2 | K1/K2 NC | External device monitoring | Blocks reset if welded |
LC_RST_PB | X3 | Reset pushbutton | Manual reset | Edge only / two-stage |
LC_STATUS_OK | M100 | Logic | Both channels + EDM OK | Internal bit |
LC_INTERLOCK | M101 | Logic | Enable-to-start | Drop on any fault |
Structured Text (illustrative, PLC-agnostic)
// OSSD status
LC_STATUS_OK := (X0 = TRUE) AND (X1 = TRUE) AND (X2 = TRUE);
// Rising edge helper (one-shot)
IF (X3 = TRUE) AND (X3_last = FALSE) AND LC_STATUS_OK THEN
LC_INTERLOCK := TRUE;
END_IF;
X3_last := X3;
// Auto-cancel on error
IF NOT LC_STATUS_OK THEN
LC_INTERLOCK := FALSE;
END_IF;Tip: for two-stage reset, require press → release → press within a 0.5–3 s window before setting LC_INTERLOCK.
4) Reset strategies
- Mandatory manual reset: do not auto-restart after beams clear.
- Two-stage action: reduces inadvertent resets in noisy environments.
- Edge-only: hold-to-reset is prohibited; use rising-edge detection.
- Ergonomics: operator must have full view of the hazard zone when resetting.
5) Commissioning routine (5-step)
- Polarity & commons: verify input module COM (0 V for PNP, +24 V for NPN) and PSU polarity.
- Channel coherence: block/unblock beams; OSSD1/2 must switch near-simultaneously. Desync > a few ms should alarm.
- EDM test: de-energize and mechanically hold a contactor; reset must be inhibited.
- Reset validation: long-press ineffective; only rising edge / two-stage accepted.
- Record: file ISO 13855 calculation, I/O list, and capture levels at OSSD1/2, EDM, Reset.
Self-test log (CSV copy)
Item,Test,Expected,Actual,Result,Notes
1,OSSD1/2 simultaneous response,Two channels drop together,,,
2,Desync detection,Channel mismatch triggers fault,,,
3,EDM welded contact block,Reset inhibited when K1/K2 held,,,
4,Reset logic,Rising-edge/two-stage only,,,
5,Safety distance,ISO 13855 recorded & signed,,,
6,Waveform/levels,OSSD/EDM/Reset captured & archived,,,
6) Common mistakes & how to avoid
| Mistake | Symptom | Fix |
|---|---|---|
| Mixing PNP/NPN on one input common block | Inputs stuck ON/OFF; intermittent faults | Standardize polarity per module; segregate commons |
| Sharing fuse/harness for OSSD1/2 | Single fault compromises redundancy | Independent protection & routing for each channel |
| Skipping EDM | Reset possible with welded contactor | Always wire series NC of K1/K2 back to EDM |
| Parallel runs with VFD/motor cables | False trips, noise-induced resets | Maintain ≥200 mm separation; cross at 90°; shield/ground correctly |
| Holding reset pushbutton | Unexpected restarts after faults clear | Edge-trigger or two-stage reset only |
7) FAQ
Why is PNP preferred in most plants?
Industry convention, better interoperability with standard modules, and clearer fault behavior. Use NPN only when the input common is designed for +24 V.
Can a PLC directly open the safety circuit?
No. Use a safety relay/controller and force-guided contactors for the stop; PLC inputs are for status/interlocks only.
How do I prove the EDM path?
De-energize and hold one contactor; confirm the EDM input stays open and reset is blocked. Record the test in the commissioning log.
