Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Accounting for a Fourfold Encoder Scale Change: Pulses per Revolution Versus Counts | Crystal & Oscillator Handbook

After replacing an incremental encoder with a nominal match, the displayed angle is exactly four times the expected value. Check whether the encoder's pulses per revolution and the receiver's decoded counts per revolution refer to the same quantity. The inputs and counts can be correct while the conversion uses the wrong denominator.

Use an isolated low-voltage capture board and synthetic encoder data, without moving a robot arm or sending commands to its controller. The board oscillator may time the acquisition logic. The example does not identify the frequency or brand fitted in a finished system.

Why 1,000 cycles per revolution can yield 4,000 counts

An incremental quadrature encoder typically provides A and B pulses offset in phase. Their sequence indicates direction. One selected edge on one channel gives one count per cycle, both edges on one channel give two, and both edges on both channels give four. Verify the receiver's actual direction and edge definitions.

Purchasing can encounter three different quantities: full cycles per revolution on one channel, counts at a specified decoder setting, and effective resolution at a geared output or in display coordinates. Abbreviations vary by manufacturer. State whether a revolution is at the sensor or output shaft and how counts are produced. Clock accuracy does not determine the correct scaling denominator.

A stable fourfold increase in raw counts can also come from a replacement with more physical cycles per turn. Capture an independent A-channel sequence and compare physical cycles to local counts before assigning the discrepancy to the source, decoder, or display.

Worked example: a simulated quarter-turn displays a full turn

Assume 1,000 full cycles per revolution per channel and 4× decoding, so one turn gives 4,000 counts. A synthetic quarter-turn has 250 complete cycles and gives 1,000 counts. Use a defined start state and complete cycles to avoid ambiguous partial-cycle endpoints. This is a synthetic count test, with no actual arm movement.

The correct calculation is 1,000 ÷ 4,000 × 360° = 90°. If the app divides by the single-channel cycle count of 1,000, it instead calculates 1,000 ÷ 1,000 × 360° = 360°. A display that wraps after a full turn may jump to zero. This example uses the same shaft and excludes gearing and backlash.

Repeat with the same 250-cycle input and 1× decoding. The board now produces 250 counts. With 1,000 counts per revolution as the denominator, the angle remains 90°. Changing only the denominator or only the decoder creates a new scale error. Use the production mode required by the project.

Agree on counting definitions across engineering and purchasing

On one receiver board revision, test fixed forward and reverse sequences and a sequence that resumes after a pause. Preserve source edges, direction, local total, and host conversion. A stable 2× or 4× error is a scaling clue. Faults limited to reversals, fast transitions, or minimum pulse width call for checking input bandwidth, filtering, and invalid states. Fix reversed sign by checking A/B definitions and direction conventions.

CheckRecordVerify
Encoder definitionFull part number, one-channel cycles, and specified shaftWhich shaft makes one revolution
Acquisition boardActual decoder mode, direction, and minimum pulse widthCounts per complete cycle
SoftwareAngle units, denominator, display wrapping, and reset boundaryConversion from accumulated count to angle
Time referenceLive clock tree, operating mode, and observed faultWhether timing needs separate verification

Define pulses per revolution as full cycles on one channel if that is the intended value, and specify decoder multiplication separately. Compare exact ordering codes, cycles or lines, interface, supply, channel logic, and approved receiver revision. Similar printed numbers need not mean the same wiring, shaft, or counting method.

NDK's NZ2520SH series covers 16 MHz for an isolated board designed to accept a CMOS active reference. Specify actual supply, load, tolerance, temperature, and control-pin conditions. Verify complete ordering information. When replacing a same-frequency reference, check the receiver's filtering time and measurement window. A conforming reference does not validate angle conversion.

A fixed time-window count measures speed and depends on elapsed time. Accumulated counts converted to angle, with no missed edges, need not have a fourfold scale error from a faster or slower window. Document both formulas and exercise them with the same synthetic data after a change.

Replay the same number of cycles in reverse without changing resolution. Keep the denominator and reverse the signed count direction. Leave stable signal states before and after the sequence. Preserve raw signed changes and final display values separately. If absolute magnitudes differ, inspect missed edges, sequence validity, and where the window closed. Equal magnitudes alone do not prove correct sign.

Tie component version, decoder setup, and conversion rules to one acceptance record. Check interface compatibility when one version changes. Retain input edges and local counts alongside screenshots.

Frequently asked questions

If changing from 4× to 1× makes the display correct, is the issue closed? Verify the required resolution and every consumer of the count first. Two errors can cancel in a single display.

Does a once-per-revolution index determine the total count? An index can establish a reference position. Check the full cycles, decoder counts, and index configuration separately to establish how counts are generated.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.