Hi what do you mean with NPN sensor? It ´s a sensor with an NPN output , and the output can be 24V or 0V? I don´t think you can connect the NPN output to a robot input or a PLC input.
Can you tell us the sensor type? Is always better to check the Datasheet.