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.
- What does the source deliver? A closing contact, a transistor pulling to 0 V, a transistor pushing to +24 V, or a pulse train.
- 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.
- Who supplies the sensor? The counter's bias output — tens of milliamps — or the panel's 24 V rail.
- 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 family | Terminal expects | Typical source | Ceiling | Mismatch symptom |
| Dry contact / no-voltage | A closing contact against the counter's own sensing current | Limit switch, reed switch, relay or contactor auxiliary | 10 counts/s on the totalisers, a 100 ms period | Counts once then stops, or misses fast parts entirely |
| NPN open collector | Signal pulled to 0 V | Inductive or photoelectric proximity sensor, NPN encoder | 10 kHz on ZN48 and ZN72, 50 kHz on JM72S | Reads permanently on, or no count at all |
| PNP sourcing | Signal pulled to +24 V, on an input wired for sourcing | PNP proximity or photoelectric sensor | The counter's rated speed once the input matches | Permanent on state, or a burst of counts at switch-on |
| Voltage / pulse | A pulse of the stated voltage level | Controller output, older sensor with voltage output | 1,000 counts/s on the fast setting of LY-11J | Counts mains-borne noise and contactor switching |
| Encoder / quadrature | One pulse train, or two channels in phase difference | Incremental encoder, grating, Hall sensor | 30 kHz on HB961, 50 kHz single channel on JM72S | Wrong 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.
- Isolate and lock off the counter, sensor and output supplies, then verify dead at every terminal you will touch.
- Write the signal type from the sensor nameplate — contact, NPN, PNP, voltage or line driver — and compare it with the counter label.
- 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.
- 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.
- 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.
- Wire the sensor in screened cable, screen earthed at the counter end only, clear of contactor and motor conductors.
- 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.
- Set counting mode and decimal point before the first run, then test at minimum speed: one step per part, not two.
- 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.
- Record mode, scaling, set point and output mode inside the panel door.
Matching the counter to the signal
| Model | Face and cut-out | Input | Counting speed | Digits and range | Note |
| ZN48 | 48 × 48 mm, 45 × 45 mm cut-out | Contact or NPN sensor | 10 kHz | 4 digits, dial switch | Also frequency, tachometer and reversible count modes |
| ZN72 | 72 × 72 mm, 68 × 68 mm cut-out | Contact or NPN sensor | 10 kHz | 4 digits, dial switch | Same functions in a 72 mm body, 115 mm deep |
| LY-11J | 63.6 × 49.99 mm front, snap fit | Voltage, no-voltage, or NPN sensor | 10 counts/s, 1,000 counts/s fast | 6 digits, 0–99999.9 or 0–999999 | Ten-year retention without supply |
| MCF-4/6X | 42 × 20 mm body, snap fit | Contact | 20 counts/s DC, 10 counts/s AC | 4 digits, 0–9999 | Totaliser, no output relay |
| JDM9-4 / JDM9-6 | 48 × 48 mm panel | Contact | Contact rate | 4 or 6 digits, thumbwheel preset | SPDT, 3 A at 250 V AC, 5 A at 24 V DC |
| JM72S | 72 × 72 mm, 68 × 68 mm cut-out | Switch, proximity, encoder, grating or Hall | 50 kHz, 20 kHz phase difference | 4 digits, 1–9999 | 5 V and 24 V sensor supply at 35 mA |
| HB961 | 96 × 48 mm, 92 × 45 mm cut-out | Pulse, grating input | 30 kHz, 15 kHz grating | 4 digits, 1–9999 | Scaling 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.
