Typically, your signal type can be found on the specs sheet for your sensor. When calling in for...
What is the Difference Between NPN and PNP Signal Input Types?
PNP sensors are a current sourcing device, while NPN sensors are a current sinking device. It is important to know whether your input signal for your counter is a sinking or sourcing signal when programming your counter.