Explainer
Why a proximity switch RPM reading steps by 60 at low speed
Short answer
With one target and a one-second frequency gate, the counter sees whole pulses only: at 190 to 200 RPM that is 3.2 to 3.3 pulses per second, so the display shows 3 or 4 counts times 60, giving 180 or 240 RPM. Add targets to cut the step to 60/P RPM, lengthen the window to 6 RPM per count over 10 s, or time the gap between pulses.

On this page
Your display is not watching the speed change; it is counting whole pulses. With one target on the shaft and a one-second measuring window, each pulse the counter sees is worth 60 RPM. At 190 to 200 RPM the shaft passes the switch 3.17 to 3.33 times per second, so a one-second count comes back as 3 or 4, and multiplying by 60 prints 180 or 240. Shaft, switch and wiring can all be healthy while the number steps like this. The fix is arithmetic: more pulses per revolution, a longer window, or timing the gap between pulses instead of counting them.
Why the display steps by exactly 60 RPM #
A high-speed counter in frequency mode counts pulses during a fixed gate and reports pulses per second; one controller's configuration labels a one-second gate HSC 1: Frequency Measurement (1000), the figure being the gate time in milliseconds. Speed comes from RPM = 60 × f / P, where f is that frequency and P is the number of pulses the shaft produces per revolution. Multiplying by 60 alone is correct only while P = 1.
The gate returns whole pulses, so f is quantized to integers and the display moves in 60 RPM steps. Run the numbers for a shaft turning 195 RPM with one target: 195 / 60 = 3.25 pulses per second. The gate cannot report 3.25; it reports 3, which scales to 180 RPM, or 4, which scales to 240 RPM. Which one appears depends on where the pulse edges fall against the gate boundary: a pulse landing just inside one window and just outside the next flips the reading a full step while the shaft speed never moves. That flicker between two neighboring values is the signature of count quantization, one count of uncertainty on a three-count measurement. A proximity switch reports target passages, never speed itself — why an inductive proximity switch cannot sense motion itself covers that limit — so every RPM figure you see is this arithmetic applied to counted edges.
One formula covers all three fixes #
Any pulse-counting speed measurement follows RPM = 60 × N / (P × T), with N the count accumulated in a window of T seconds. The display can only move in steps of 60 / (P × T) RPM per count, and each reading sits within one step of the true speed. The fixes change P, change T, or stop counting and start timing:
| Targets on the shaft (P) | Window (T) | Step per count | New reading every |
|---|---|---|---|
| 1 | 1 s | 60 RPM | 1 s |
| 2 | 1 s | 30 RPM | 1 s |
| 4 | 1 s | 15 RPM | 1 s |
| 12 | 1 s | 5 RPM | 1 s |
| 1 | 10 s | 6 RPM | 10 s |
Targets buy resolution without slowing the update; a longer window buys it with response time; period timing buys it with neither, but only works well while pulses are sparse.
Fix one: more targets on the shaft #
Each extra target divides the step, and the update rate is untouched. With four evenly spaced targets at 195 RPM, the pulse rate is f = 195 × 4 / 60 = 13 Hz, the gate counts 13, and RPM = 60 × 13 / 4 = 195 exactly — a calculated example for those inputs, not a measured result. The step drops to 15 RPM while readings still arrive every second, which makes this the fix when the application must follow speed changes.
Two things must move with the hardware. The divisor first: leave the plain ×60 scaling in place and four targets make the display read four times the true speed. Pulse integrity second: every target must produce exactly one count per pass, which comes down to target size, spacing and sensing clearance; how a proximity switch detects a target bolt on an axis covers the sensing side. For choosing the targets themselves, selecting proximity switch targets for an industrial rotary shaft goes deeper than this article.
There is also a ceiling. The expected pulse rate f = RPM × P / 60 must stay below the sensor's maximum switching frequency — datasheets define it as the highest rate at which the sensor still delivers discrete individual output pulses — and the on and off states must each last longer than the minimum pulse width of sensor and counter input alike. Take those numbers from the datasheets of the exact parts; at 200 RPM, twelve targets ask for 40 Hz, so confirm that against the switch you have before drilling a target disc.
Fix two: a longer counting window #
Keep one target and stretch the window to ten seconds. The step becomes 60 / (1 × 10) = 6 RPM per count. At 195 RPM the shaft delivers 195 × 10 / 60 = 32.5 pulses per window, so the count reads 32 or 33 and the display shows 192 or 198 RPM — again a calculated example for those inputs, not a measured result.
In logic this is a raw-count difference: read the counter, run a timer for the window, read it again, subtract, and scale with the formula above, handling the counter's rollover from its documented range. Counting encoder pulses on a PLC without losing position covers keeping that count trustworthy. The cost is time: a fresh value only at the end of each window, and each value averages over its window, so a speed change in mid-window appears late and softened. If this speed value drives an overspeed trip or an interlock, that delay belongs to a safety function and is sized under the machine's risk assessment, as ISO 13849-1 requires for safety-related control functions — not chosen as a display preference.
Fix three: time the gap between pulses #
Counting asks how many pulses fit a fixed time; timing asks how long each pulse-to-pulse interval lasts. With t the seconds between successive pulses, RPM = 60 / (P × t). At 195 RPM with one target, t = 60 / 195 = 0.308 s, and a 1 ms timer reads that as 307 or 308 ms, which converts to 195.4 or 194.8 RPM — within half an RPM of the true speed, with a fresh value at every pulse, about three per second here.
This is the standard answer for coarse pulse rates: a one-pulse-per-revolution sensor cannot resolve better than 60 RPM by frequency counting, so at low speed the period is measured instead. The method has a weak end — as the pulse rate climbs, the interval shrinks and the timer's own quantization grows until counting wins. Around 200 RPM with one target, timing is comfortably the finest of the three methods.
Checks before you change the scaling #
- Confirm P by measurement, not intent: with the machine stopped, rotate the shaft one full revolution and watch the raw counter advance. The increase must equal the target count on every repetition. A count that differs between revolutions is a sensing fault — loose target, marginal clearance, a doubled edge — and no window or divisor will repair it. Measuring RPM with a proximity switch on a pulley covers mounting and pickup so each pass produces one clean pulse.
- Confirm the gate: read the window time out of the counter configuration instead of assuming it; the arithmetic above holds only for the window actually configured.
- Classify the symptom: a steady shaft with a display stepping between exactly two neighboring values is quantization; a value that wanders is not. A handheld tachometer against the shaft settles the question in a minute.
The decision #
For the 190 to 200 RPM shaft in front of you:
- If fast updates matter, fit four evenly spaced targets, keep the gate as it is, and set the divisor to match: RPM = 60 × f / 4. That yields 15 RPM steps, and twelve targets take that to 5 RPM if the sensor's switching frequency allows.
- If a slow display is acceptable, keep one target and stretch the window to ten seconds: 6 RPM steps, a fresh reading every ten seconds.
- If you want fine resolution and fast updates together, time the pulse period instead: within half an RPM with a 1 ms timer, updating about three times a second at this speed.
Commission the four-target fix by default: the hardware change is a target disc, the logic change is one divisor, and the one-target step becomes 15 RPM steps with the update rate unchanged. Move to period timing only if those steps are still too coarse for the operator or the process.
Questions asked
Is averaging ten one-second readings the same as a ten-second count?
Only when the ten windows are consecutive. Averaging ten successive one-second results reproduces the resolution of a ten-second count while still updating every second, but each new average carries nine seconds of older speed. Re-reading the same one-second result ten times adds nothing: the samples must come from separate windows to count as more information.
How many targets do I need for a given step size?
Invert the step formula: P = 60 / (step × T). For 2 RPM steps with a one-second window, P = 60 / (2 × 1) = 30 evenly spaced targets. Then check the ceiling: at 200 RPM, thirty targets produce 200 × 30 / 60 = 100 Hz, which must sit below the sensor's documented maximum switching frequency, with on and off durations longer than the minimum pulse width of the counter input.
Could the stepping come from the sensor instead of the arithmetic?
Yes, when the raw count per window is not stable. Quantization at constant speed changes the count by exactly one between windows and alternates between two values; a sensor problem shows counts varying by more than one, dropping out, or doubling. Watch the raw counter for a minute at steady speed: a clean pattern of 3, 3, 4, 3, 3, 4 is arithmetic; anything irregular points at the sensor, the target or the clearance.
Does period timing still work at higher speeds?
It degrades as speed rises, because the interval shrinks and the timer's resolution becomes a larger fraction of it. With one target and a 1 ms timer, 1000 RPM gives a 60 ms period, so one millisecond is about 1.7 % of the measurement, near 17 RPM of uncertainty. Above a few hundred pulses per second, counting pulses in a window beats timing them; the crossover depends on your timer resolution and pulses per revolution.

