What you are specifying
The Square D / Telemecanique XS2M12MA250 is a tubular inductive proximity sensor in the XS series, packaged in an M12 nickel-plated brass threaded barrel with a PPS sensing face and a 2 m PVR cable exit. It is built for non-contact detection of metallic targets in industrial control panels and field wiring, which is what the tubular inductive class does on a line.
Ratings that drive the BOM line
Operating voltage spans 24 to 240 VAC and 24 to 210 VDC across the 2-wire connection, so the part covers both AC and DC control feeds from a single SKU. Front sensing distance is 4 mm on an unshielded face, the figure that sets how close the target must pass in front of the barrel. Load current is 5 to 200 Milliampere on AC or DC, which is the window the downstream relay, contactor coil or PLC input has to live within. Switching frequency splits by supply: 25 Hz on AC and 4000 Hz on DC, so DC-fed applications count the high-speed end for high-cycle lines while AC-fed applications are capped at the 25 Hz end. The barrel is rated -13 to 176 Deg F operating with NEMA 3/4X/6P/12/13 and IP68 enclosure, which covers outdoor, washdown and submerged-installation environments.
Mechanical and wiring fit
The 12 mm barrel diameter is the standard M12 cut-out the XS series is built around, and the threaded barrel plus nickel-plated brass body is the rugged mounting choice on machinery. Connection is a 2-wire 2 m PVR cable with no polarity flagged on the listing, matching the AC/DC-tolerant 2-wire topology that the load-current window above covers.
Comparison against the M30 sibling
Against the XS4P30MA230, the M12 here is a different frame: 30 mm barrel and 15 mm sensing range on the M30 part versus 12 mm and 4 mm here, and the M30 part raises the AC load to 5 to 300 Milliampere and drops DC switching to 1000 Hz.
