What it is and what it handles
The XUB0BNSNL2 is a Square D / Telemecanique XUB-series 18mm metal-bodied photoelectric sensor with an NPN output. It's built for the grease and spray of a real route — nickel-plated brass body, NEMA 4X/12, IP67, 12-24 VDC, 2ms on/off. The 2m PVR cable keeps the connection sealed, and the lens is PMMA. It's rated for diffuse sensing to 30cm, diffuse with background suppression to 12cm, polarized retroreflective to 2m, and through-beam to 15m. Output is NO/NC configurable NPN, 100 mA max load, 250 Hz switching. That's stout enough for counting or position sensing on a packaging line or conveyor, but it's not a high-speed sensor — the 2ms response limits it to parts moving at moderate line speeds. Operating temperature range is -13 to 131 °F, so it lives inside a panel or on a machine frame without complaint. The metal barrel and IP67 rating mean I’d trust it out here in the grease on a wash-down zone.
How it compares to the PNP sibling and the M12 version
The closest functional sibling is the XUB0BPSNL2 — same 18mm metal barrel, same cable, same sensing distances, same IP67. The only difference is output: the BPSNL2 is PNP, while this BNSNL2 is NPN. Both have 100 mA load and 250 Hz switching. If your PLC input card expects a sinking (NPN) signal, grab this one. If your input card needs sourcing (PNP), go with the BPSNL2. Same mount, same wiring colors besides the output wire function. The XUB0BNSNM12 swaps the 2m cable for an M12 4-pin connector. Mechanical fit and electrical ratings are identical — same metal barrel, same NPN output, same 12-24 VDC. The connector version saves you the pigtail if your panel uses M12 field-terminable connectors, but the cable version is simpler for a direct run to the terminal block. Choose by your preferred termination method.
