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

Using an Encoder Index Pulse Without Mistaking It for an Absolute Multi-Turn Position | Crystal & Oscillator Handbook

An offline sorting-line handwheel display shows zero after reboot before any Z pulse arrives. Later an index gives it a reference within one turn. An incremental encoder's A and B signals give relative motion. A once-per-revolution Z index does not reveal the number of turns before startup. Use an isolated low-voltage display bench with no motion or safety decisions.

Why startup zero is not mechanical zero

A reset counter can start at zero without implying a known shaft position. Motion while power was off is unobserved, and a later A or B edge cannot reconstruct it. Report relative motion since startup separately from a verified absolute position, with independent validity indicators.

An index is a recurring within-turn marker. Direction, repeated crossings, and capture rules depend on the product. Verify whether it aligns with the external mechanical reference, its polarity and minimum width, whether A or B gates it, and how the host captures it.

Worked example: two histories give the same Z pulse

Suppose the offline model uses 1,000 valid counts per revolution after decoding, with the within-turn index defined at zero. After a restart, both replay histories provide identical relative edges and one index. Only the simulator knows the earlier totals.

ReplaySimulator totalDisplay-board evidenceValid conclusion
First Z in history A1,000One index after the defined edge sequenceWithin-turn reference, with turn number unknown
First Z in history B2,000The same signal as AThe same reference and unknown turn number
Both add 250 counts1,250 or 2,250The same 250 counts after ZA quarter turn in both cases, with absolute totals one turn apart
Startup display is zero before ZEither history possibleCounter initializationRelative origin only

For within-turn position, 250 ÷ 1,000 × 360° = 90° in both histories. For accumulated position, 1,250 and 2,250 differ. Define whether the product needs position within one turn, accumulated motion, or a verified absolute multiturn value. Keeping a prior count cannot reveal motion that happened while unobserved. The example is an offline verification model.

Verify whether the reference or an input edge was lost

Replay two different histories with identical post-startup signals on the isolated fixture. Keep motors, relays, and equipment inputs outside the test. Record restart, A and B increments, Z capture, and display validity. If the display confirms zero before an index or other defined reference, investigate initialization and labeling.

Replay the same counts while changing only index arrival. Check that the reference flag changes only under allowed conditions. Verify repeated indices do not inadvertently reset the accumulated turn count. If the driver captures Z but the display does not change, inspect software propagation. If the hardware does not capture it, check connectors, input configuration, signal qualification, and timing separately.

Keep separate status for relative count, recognized within-turn reference, and trusted absolute multiturn position. Recheck after power cycles, reconnects, material changes, and interruptions. Keep absolute position unknown until evidence supports it.

Specify clock and encoder capability separately

Epson SG2016CAN X1G004801005700 is a 20 MHz CMOS active oscillator example for a compatible display board. Its nominal rate cannot supply an unreported turn count. If edge capture is unstable or relative counts disagree, verify reference, input signals, and supply independently of absolute position validity.

Specify signal channels, index behavior, valid-position rules, and any requirement for absolute multiturn position after power loss. If a vendor specifies a “zero position,” verify whether it means an index or actual position over a specified range. Test what the display can assert before and after the first index and whether it distinguishes the two histories.

Frequently asked questions

Can once-per-turn Z pulses help count turns? With a known origin, continuous observation, and the defined direction and counting logic, they can track observed changes. They do not recover an unknown initial turn count.

Are two encoders compatible if both provide Z? Also verify electrical format, pulse definition, relationship to A and B, and the host's supported validity rules for the exact part.

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.