Difference between NPN/PNP Sensors

There seems to be quite a bit of confusion by the response to your question. I think it's best to refer to the sensors as just Sourcing or Sinking and forget about transistor types.

If you compare the manufacturers schematics for sensor and input module you should see if they will work together.

Personally I prefer sourcing sensors, they work well with zero referenced inputs.

The best way i understand is with PNP sensor you supply 24V to sensor and 0V to PLC.
PNP = Power give and neutral take.

In NPN you supply 0V to Sensor and 24V to PLC/controller.
NPN = neutral give power take