A PNP sensor sources: when it switches, it connects its output to +24 V and pushes current out into the load.
An NPN sensor sinks: it connects its output to 0 V and pulls current in.
A sinking input card has its common on 0 V; it needs something to push current into it, a PNP sensor or a contact from +24 V. A sourcing input card has its common on +24 V and needs an NPN sensor or a contact to 0 V.
Mismatch them and the input never comes on, however hard the sensor’s own LED glows. The sensor LED shows the sensor switched; the card LED shows current reached the card.
The words get used both ways round by different makers. Look at where the card’s common goes, and at the sensor’s label (PNP or NPN). European ships mostly use PNP; Japanese-built gear often uses NPN.