Making a new table top cnc and would like to use these NPN I got a few years back (10 of them). In the past I have always used mechanical type limit switches but now I would like to learn how to wire them NPN and how to use/install.

The attached picture is what is market on the body of each NPN and of course I don’t understand anything. There is a box in the middle line which I assume represent a resistor or diode? What type/size?

I do have a 12VDC power supply and I will try to wire one after I get a feed back from you just to experiment with it

Also in my X & Z axis I have 2 limits for each axis which I normally combine all of them but with the NPN how do I combine 4 of them?

Thanks