Technical Guides · 2026-11-30

Counter Input Wiring Guide: Contact, NPN, PNP and Encoder Signals

A counter is chosen by its input terminal, not by its display. This guide separates the four input families found on preset counters and totalisers — dry contact and no-voltage, NPN open collector, PNP sourcing, and encoder or quadrature pulses — explains what each terminal expects and how a mismatch shows up on the panel, and gives the numbers that decide it: counting speed per input type, the 35 mA sensor bias on a JM72S, the 50 ms reset blind spot, and a worked encoder scaling example on a 50 mm roller.

A preset counter is usually chosen on its display and digit count, then installed beside a sensor that was already on the machine. That is where most of them fail: the counter is healthy, the display is lit, the sensor LED blinks at every part, and the total stays at zero. The signal exists; the terminal cannot read it, because it was built for a different way of delivering that signal.

Four input families sit across the counters we supply: dry contact, NPN open collector, PNP sourcing, and a pulse or quadrature input from an encoder. They look identical on a terminal strip and behave nothing alike. This guide covers what each expects, the rate each carries, the supply and reset limits behind the total, and the arithmetic to check first.

Before wiring: isolate and lock off the counter supply and every source feeding its input terminals, then verify dead at the terminals you will touch. A sensor output on the counter is a bias for one small sensor, never a substitute for a fused 24 V rail. Where a sensor runs from a separate supply, it must share 0 V with the counter, or the input has no reference and reads noise. Work from the terminal diagram on the actual unit: numbering changes between revisions, and a transferred diagram is how a good counter gets destroyed.

Four questions that decide the input before the model

Ask these in order. Each one eliminates models; the last only chooses a body size, which is why panels end up with an interface relay bolted beside a new counter.

  1. What does the source deliver? A closing contact, a transistor pulling to 0 V, a transistor pushing to +24 V, or a pulse train.
  2. What is the pulse rate at full line speed? Parts per minute and pulses per part, or pulses per revolution and revolutions per minute. Write it in hertz before opening a catalogue.
  3. Who supplies the sensor? The counter's bias output — tens of milliamps — or the panel's 24 V rail.
  4. What happens at the set value? Stop, divert, alarm, or reset and start the next batch, and how much dead time the reset may take.

Answer the first two first. A counter ordered on cut-out and then found to accept only NPN costs a week, and the rescue relay adds its own delay in the pulse path.

Dry contact and no-voltage input

A no-voltage input is the simplest arrangement in a panel: the counter applies a small sensing current through its own terminal and waits for an external contact to close the path. A limit switch, a reed switch on a cylinder, a contactor auxiliary or a second contact block all work here, and nothing external needs a supply.

The cost is speed. A mechanical contact bounces for a few milliseconds on closing and again on opening, and the debounce window that filters it is what sets the counting rate. On the totalisers in this range the contact input is specified at 10 counts per second, a 100 ms period. A machine ejecting 300 parts a minute asks for 5 counts per second and fits comfortably; one at 900 a minute asks for 15 and cannot be served by this input at all, whichever counter you buy.

A switch that also energises a relay coil will arc, and the arc wears the contact long before the counter is at fault. Where one switch must feed a counter and a logic input, use a second contact block rather than paralleling two inputs onto one contact.

NPN and PNP: the terminal that decides whether it counts

Both are three-wire sensors with a transistor output, and the difference is which rail the transistor connects the signal wire to. An NPN sensor pulls the signal down to 0 V when it senses; a PNP sensor pushes it up to +24 V. A counter input is built for one of the two, with a fixed reference on the other side, and no sensitivity setting will talk it into the other.

Put a PNP sensor on an input that expects a sink and the terminal sits at 24 V continuously: one permanent on state, nothing, or a burst of counts as the sensor output charges — three symptoms, one cause, all three read as a broken counter. The ZN48 and ZN72 state their input as contact or NPN sensor, so a PNP sensor there needs an interface that adds its delay to every pulse.

Input familyTerminal expectsTypical sourceCeilingMismatch symptom
Dry contact / no-voltageA closing contact against the counter's own sensing currentLimit switch, reed switch, relay or contactor auxiliary10 counts/s on the totalisers, a 100 ms periodCounts once then stops, or misses fast parts entirely
NPN open collectorSignal pulled to 0 VInductive or photoelectric proximity sensor, NPN encoder10 kHz on ZN48 and ZN72, 50 kHz on JM72SReads permanently on, or no count at all
PNP sourcingSignal pulled to +24 V, on an input wired for sourcingPNP proximity or photoelectric sensorThe counter's rated speed once the input matchesPermanent on state, or a burst of counts at switch-on
Voltage / pulseA pulse of the stated voltage levelController output, older sensor with voltage output1,000 counts/s on the fast setting of LY-11JCounts mains-borne noise and contactor switching
Encoder / quadratureOne pulse train, or two channels in phase differenceIncremental encoder, grating, Hall sensor30 kHz on HB961, 50 kHz single channel on JM72SWrong direction, half the counts, or lost pulses at speed

Read the ceiling column twice: a model listing 10 kHz is quoting its input stage's processing limit on a clean square wave, not a promise that a slow interface will reach it.

The sensor supply is a bias, not a power supply

Several counters bring a sensor supply out to the terminal block so a three-wire sensor can be fed from the instrument. Read the current figure first: on the JM72S that output is 5 V and 24 V DC at 35 mA, which covers one inductive sensor at 10 to 15 mA and is marginal at two, while a laser head or a line-driver encoder is outside it by an order of magnitude.

So an encoder is normally fed from the panel's 24 V supply, and only its A and B channels plus a shared 0 V reach the counter. That 0 V is not optional: without a common reference the input floats, which shows up as random counts that stop when you touch the panel.

Encoder and quadrature input

An incremental encoder delivers two square waves 90 electrical degrees apart, so the counter takes direction from which channel leads. Single-channel counting gives a total; phase-difference counting gives a total and a sign and halves the usable frequency. That is why the JM72S is specified at 50 kHz single channel and 20 kHz on phase difference, and the HB961 falls from 30 kHz to 15 kHz on the grating input.

Reaching those figures depends on the cable. Screen the run and earth the screen at the counter end only — earthing both ends makes a loop that injects the interference the screen was fitted to remove. Keep it out of the motor and contactor tray, cross unavoidable crossings at right angles. A half-volt induced spike on a 5 V line driver is a count, every cycle.

The speed budget, and why 10 kHz never applies to a contact

Pulse rate is revolutions per second times pulses per revolution, or parts per minute ÷ 60 × pulses per part. Do that sum before comparing with any datasheet figure.

Worked example: a 100 pulse-per-revolution encoder on a 50 mm roller. The circumference is π × 50 = 157.08 mm, so one pulse is 157.08 ÷ 100 = 1.5708 mm of travel. At 3,000 rpm the roller turns 50 revolutions per second and the counter sees 50 × 100 = 5,000 pulses per second — 5 kHz, one sixth of the HB961's 30 kHz limit.

Now put the same roller on a contact input: 10 counts per second over 100 pulses per revolution allows 0.1 revolutions per second, which is 6 rpm. The same encoder that reaches 18,000 rpm at the 30 kHz limit — 300 revolutions per second — reaches six revolutions per minute through a mechanical contact. Nothing about the counter changed; the input did.

Reset time, the blind spot and the counting error

Starting again is half of a preset counter's job, and the ZN48 and ZN72 specify a reset of at least 0.05 s, or 1 s after power is restored, with a counting error of one count or less. That 0.05 s is not a rounding detail: at 5 kHz a 50 ms window is 250 pulses, so a reset taken on the run loses a quarter of a second of production.

Two ways out, both cheaper than trusting the reset: arm it from a gap in the line, or accumulate into a second register and clear the running total while the process is idle. The same arithmetic covers a power dip — 1 s of restart at 5 kHz is 5,000 pulses, so a counter that must survive one needs its retention checked, not its display.

Wiring sequence

The sequence assumes one counter, one sensor and a contactor for the output.

  1. Isolate and lock off the counter, sensor and output supplies, then verify dead at every terminal you will touch.
  2. Write the signal type from the sensor nameplate — contact, NPN, PNP, voltage or line driver — and compare it with the counter label.
  3. Convert the machine speed into hertz and compare it with that input's ceiling: 10 counts/s for a contact, the rated figure for a solid-state input.
  4. Decide who feeds the sensor: above the counter's bias output, take it from the panel 24 V rail and bring only signal and 0 V to the counter.
  5. Mount the counter in its cut-out — 45 × 45 mm for ZN48, 68 × 68 mm for ZN72 and JM72S, 92 × 45 mm for HB961 — and confirm depth clearance.
  6. Wire the sensor in screened cable, screen earthed at the counter end only, clear of contactor and motor conductors.
  7. Switch the contactor coil or the valve with the output contact, not the load: the ZN48 and ZN72 contact is rated 5 A at 250 V AC and 7 A at 24 V DC, a control-circuit rating.
  8. Set counting mode and decimal point before the first run, then test at minimum speed: one step per part, not two.
  9. Run at production speed against a hand count over 100 parts: a shortfall points at the input ceiling or the reset window, an excess at bounce, noise or a double-pulse setting.
  10. Record mode, scaling, set point and output mode inside the panel door.

Matching the counter to the signal

ModelFace and cut-outInputCounting speedDigits and rangeNote
ZN4848 × 48 mm, 45 × 45 mm cut-outContact or NPN sensor10 kHz4 digits, dial switchAlso frequency, tachometer and reversible count modes
ZN7272 × 72 mm, 68 × 68 mm cut-outContact or NPN sensor10 kHz4 digits, dial switchSame functions in a 72 mm body, 115 mm deep
LY-11J63.6 × 49.99 mm front, snap fitVoltage, no-voltage, or NPN sensor10 counts/s, 1,000 counts/s fast6 digits, 0–99999.9 or 0–999999Ten-year retention without supply
MCF-4/6X42 × 20 mm body, snap fitContact20 counts/s DC, 10 counts/s AC4 digits, 0–9999Totaliser, no output relay
JDM9-4 / JDM9-648 × 48 mm panelContactContact rate4 or 6 digits, thumbwheel presetSPDT, 3 A at 250 V AC, 5 A at 24 V DC
JM72S72 × 72 mm, 68 × 68 mm cut-outSwitch, proximity, encoder, grating or Hall50 kHz, 20 kHz phase difference4 digits, 1–99995 V and 24 V sensor supply at 35 mA
HB96196 × 48 mm, 92 × 45 mm cut-outPulse, grating input30 kHz, 15 kHz grating4 digits, 1–9999Scaling Display = pulses × A ÷ b + C

Read the table from the input column outwards. Above 10 parts per second no contact input will do, whichever body it comes in; a batch total plus a running total needs a second register, not a faster counter; a length measurement needs scaling, which only JM72S and HB961 offer. Body size is the last decision.

Asking for a selection check

Send the sensor type and its output stage, the pulses per part or per revolution, the machine speed, the panel supply and what the output must switch. We will check the input against the ZN48 counter, the ZN72 counter, the JM72S multi-function counter, the HB961 length counter, the LY-11J totaliser or the MCF-4/6X totaliser, and pair it with a matching sensor or a SEP58 incremental encoder.

The counters category lists every model with its input type; for the panel side see the product catalogue and the contact page.

Questions this guide answers

Why does my counter show zero when the sensor LED blinks?
The sensor is working and the counter cannot see it. A PNP sensor pushes the signal to +24 V; an input specified for contact or NPN sensor expects the signal to be pulled to 0 V, so the terminal stays at one level and no edge is counted. Check the input specification on the label before adding parts — the ZN48 and ZN72 are listed as contact or NPN, so a PNP sensor needs an interface.
Can I wire a PNP sensor to a counter that only lists NPN?
Not directly. Use a small interface relay or an optocoupler board, and add its operating delay to every pulse when you check the speed budget. On a fast line the interface, not the counter, becomes the limit — a 10 ms relay on a 50 Hz pulse train will not pass every part.
Why is my counter missing counts at high line speed?
Compare the pulse rate with the input's ceiling, not with the highest number on the datasheet. Ten counts per second is a 100 ms period; a machine ejecting 15 parts a second needs 15 Hz and cannot be served by a contact input at all. Move to a solid-state sensor on the NPN input, or to an encoder input for a pulse train.
How many sensors can I power from the counter's 24 V output?
One, normally. On the JM72S that output is 5 V and 24 V DC at 35 mA, and a three-wire inductive sensor draws about 10 to 15 mA. Two sensors are already marginal and a line-driver encoder is outside the rating. Feed the encoder from the panel supply and keep only the signal and the shared 0 V on the counter.
Why does the total drop by a few parts after every batch reset?
The reset takes time. The ZN48 and ZN72 specify a reset of at least 0.05 s, and pulses arriving during that window are not counted — at 5 kHz that is 250 pulses. Arm the reset in a gap in the line, or accumulate into a second register instead of clearing the running total.
Does a counter need a separate 24 V supply for the sensor?
Only if the sensor draws more than the counter's bias output can give, which is most encoders and many photoelectric sensors. When a separate supply is used, its 0 V must be common with the counter's 0 V, otherwise the input has no reference and the display counts noise.

More in Technical Guides

Need help selecting the right model?

Send us the load, voltage, sensor type and output signal. We reply with the matching model, wiring notes and an OEM quotation.