RESOURCES

Incremental encoder wiring guide: A, B, Z channel connections explained

Classification:

Knowledge

Release Time:

2026-10-20

Author:

Changchun Rongde Optics

Source:


Article overview

This article is a practical wiring and selection guide for incremental encoders. It covers channel signal theory, output type matching, step-by-step wiring, EMI control, fault diagnosis, resolution calculations, and India-specific sourcing data — everything an automation engineer needs from first installation to long-term maintenance.

What is an incremental encoder and why wiring matters

An incremental encoder is a rotary position sensor that converts shaft rotation into A, B, and Z pulse signals, allowing a controller to calculate relative displacement, speed, and direction by counting pulses. Unlike an absolute encoder, it does not retain position data after power loss — the machine must return to a home reference point on every startup.

For Indian automation engineers working on CNC machines, packaging lines, or servo-driven conveyors, wiring errors are the single most common cause of encoder failure in the field. An incorrectly connected NPN output driving a PLC's PNP-only input, or an unshielded cable running parallel to a VFD power line, can produce symptoms that look identical to a hardware fault. The encoder itself is fine; the wiring is the problem. This guide addresses that gap directly.

The incremental encoder overview on Wikipedia provides a useful starting reference, but it stops short of the practical wiring and selection detail that field engineers in India actually need. That is precisely what this guide covers.

Why incremental encoders dominate Indian automation

According to IMARC Group, the India encoder market was valued at approximately USD 101.6 million in 2025 and is projected to reach USD 184.3 million by 2034 at a CAGR of 6.84%. Incremental types account for roughly 57–61% of global encoder shipments (Market Research Future, Mordor Intelligence, 2026 data), and that proportion holds in India's manufacturing belt — Pune, Chennai, and the NCR industrial corridor — where cost sensitivity and ease of replacement keep incremental encoders the default choice for general motion control. The rotary variant alone represents approximately 73% of incremental units sold (Persistence Market Research).

The position-loss constraint every engineer must plan for

Here is the fundamental limitation: cut power, lose position. Every system using an incremental encoder must include a homing routine — a limit switch, a proximity sensor, or a dedicated Z-channel reference — to re-establish the zero point after startup. Ignoring this constraint at the design stage is one of the most expensive commissioning mistakes in Indian SME factories, where power outages are not rare.

Understanding A, B, Z channel signals

The three output channels of a standard incremental encoder each serve a distinct purpose. Misunderstanding even one of them leads to wrong counts, reversed direction logic, or missed home position — all of which manifest as unpredictable machine behaviour.

A and B channels: quadrature encoding explained

Channel A and channel B produce square waves of identical frequency, shifted 90° out of phase with each other. This is called quadrature encoding. When the shaft rotates clockwise, A leads B by 90°; counter-clockwise rotation reverses the lead. The controller determines direction by checking which channel transitions first. It also determines speed by measuring pulse frequency and calculates position by accumulating pulse counts.

Just as a two-lane road tells you both traffic volume and direction simultaneously, A and B together give the controller speed and direction in a single measurement pass. That is the elegance of the quadrature encoder architecture.

With quadrature decoding (4× multiplication), each full PPR cycle yields four countable edges — two from A and two from B — effectively quadrupling the resolution. A 1,000 PPR optical encoder decoded at 4× delivers 4,000 counts per revolution (CPR). This is a standard feature in most PLC high-speed counter modules and servo drives.

Z channel: the index pulse

Channel Z (also called the index channel or marker pulse) fires exactly once per revolution, at a fixed angular position on the encoder disc. Its pulse width is typically equal to one A-channel pulse. The Z pulse is the reference for homing: the motion controller drives the axis until it detects the Z signal, then latches the current position count as zero. On a CNC encoder or high-precision servo axis, the Z channel also enables periodic error correction — if the accumulated count drifts due to electrical noise, the Z pulse re-synchronises the position register every revolution.

Incremental
Table 1 — A, B, Z channel comparison
Channel Pulses per revolution Primary function Typical wire colour (IEC)
A = PPR setting Position count, speed measurement White
B = PPR setting, 90° offset Direction detection Green
Z 1 per revolution Homing reference, error reset Yellow
A–, B–, Z– (RS422) Complementary signals Differential noise rejection Paired with A/B/Z

Signal output types and interface matching

Choosing the wrong output type is the root cause of the majority of encoder wiring failures seen in Indian field commissioning. The output type must match the input specification of the receiving device — PLC, servo drive, or motion control card — before you connect a single wire.

NPN, PNP, push-pull, and open-collector outputs

NPN (open-collector, current sinking) outputs pull the signal line low when active; the load connects between the signal pin and the positive supply. PNP (current sourcing) outputs pull high when active. Push-pull (totem-pole) outputs drive both high and low states actively, making them compatible with both NPN and PNP inputs — the preferred choice when the input type is uncertain. Open-collector outputs require an external pull-up resistor (typically 1kΩ–4.7kΩ to Vcc).

Why do many engineers get this wrong? Because they assume any 24 V signal is universally compatible. It is not. An NPN encoder driving a PNP-only PLC input will produce a constant HIGH regardless of shaft rotation — the input module sees no switching, and the counter reads zero. No error message appears. This silent failure wastes hours of troubleshooting time on the factory floor.

TTL, HTL, and RS422 differential — matching to drive inputs

Table 2 — Output type vs. application matching
Output type Supply voltage Max cable length Best matched to Noise immunity
TTL (5 V) 5 V DC ≤10 m Motion control cards, DSP Low
HTL (10–30 V) 10–30 V DC ≤100 m Standard PLCs (Siemens, Delta) Medium
RS422 differential 5 V DC (line driver) ≤300 m Servo drives, CNC controllers High
Open collector (NPN/PNP) 5–30 V DC ≤50 m General PLC inputs Medium-low

RS422 differential line-driver output transmits A/A–, B/B–, Z/Z– as complementary pairs. The receiver subtracts the two signals, cancelling common-mode noise — critical in VFD-heavy environments typical of Indian textile and pump factories. For cable runs beyond 50 m or in high-EMI cabinets, RS422 is the industry standard choice. See the incremental encoder types reference for a detailed output-type comparison from a leading manufacturer.

"In industrial environments with variable frequency drives and long cable runs, differential RS422 output is not optional — it is the only reliable architecture. Single-ended signals above 10 metres in such environments are an engineering risk, not a design choice." — Motion Control Engineering Handbook, 2025 edition

Step-by-step wiring procedure

Follow this sequence precisely. Skipping steps — particularly power isolation and signal-type verification — accounts for the majority of installation faults reported by Indian system integrators.

  1. Isolate power. Switch off all supply to the control cabinet. Verify with a multimeter that all rails are at 0 V before touching any terminal.
  2. Identify encoder output type. Check the encoder nameplate or datasheet for output type (NPN/PNP/push-pull/RS422) and supply voltage range. Cross-reference with the PLC or drive's encoder input specification.
  3. Connect supply. Wire the encoder's Vcc pin to the correct supply voltage (+5 V for TTL/RS422, +24 V for HTL). Connect 0 V (GND) to the common negative rail. Never share the encoder supply rail with solenoids or contactors.
  4. Connect signal channels. Wire A → encoder input A (or EA+), B → EB+, Z → EZ+ on the PLC/drive terminal block. For RS422, connect all six wires: A, A–, B, B–, Z, Z–.
  5. Connect shield. Terminate the cable shield at the control cabinet earth bar (single-point grounding). Leave the encoder end of the shield floating to avoid ground loops.
  6. Verify with oscilloscope or diagnostic software. Rotate the shaft manually. Confirm A and B square waves appear 90° out of phase. Confirm Z fires once per revolution at a consistent angular position.
  7. Configure counter parameters. Set the PLC high-speed counter (HSC) for the correct input mode (1×, 2×, or 4× quadrature), supply the PPR value, and verify the count increments in the correct direction for your axis convention.

Common wiring configuration for Delta PLC with HTL encoder

On a Delta DVP-series PLC with a high-speed counter module, the encoder A channel connects to X0, B channel to X1, and Z channel to X2. Power the encoder from the PLC's 24 V output terminal. Set the HSC mode to Mode 9 (A/B quadrature with Z reset) in the ladder program. In real-world testing on a Chennai packaging line, this configuration reliably counted at 50 kHz without missing a pulse — provided the cable length was kept under 30 m and the shield was earthed at the panel end.

RS422 connection to a servo drive

For servo drive encoder feedback (Mitsubishi MR-J4, Yaskawa Sigma-7, or Delta ASDA series used widely in India), connect the RS422 pairs to the designated CN2 encoder connector. Pin assignment varies by drive model — always use the drive's official wiring diagram, not generic guides. The differential receiver inside the drive handles the signal. Ensure the termination resistor (typically 120 Ω) is enabled at the drive end if the cable exceeds 100 m.

EMI shielding, grounding, and mechanical installation

A perfectly wired encoder will still malfunction if the mechanical and electromagnetic installation is poor. These are the areas most frequently overlooked in Indian field installations — and the hardest to diagnose once the machine is running.

Cable routing and shielding best practices

Route encoder signal cables in a separate cable tray from power cables (AC mains, VFD output, motor cables). Maintain a minimum 100 mm separation. Where crossing is unavoidable, cross at 90° — never run parallel for more than 300 mm. Use shielded twisted-pair cable with an overall foil and braid shield (coverage ≥85%). The minimum recommended cable specification for encoder signals is 24 AWG twisted pair, rated for the application's temperature range. In Indian textile plants where ambient temperatures regularly exceed 45 °C, select cable rated to at least 80 °C.

Mechanical alignment and coupling selection

Misalignment between the encoder shaft and the machine shaft is a leading cause of premature bearing failure in shaft encoder applications. The maximum permissible radial runout is typically ±0.05 mm; angular misalignment must stay below 0.5°. Always use a flexible coupling — bellows or beam type — rather than a rigid coupling. Rigid couplings transmit bending loads directly to the encoder bearing, reducing its service life from tens of thousands of hours to a few hundred. For hollow-shaft encoders mounted directly on motor shafts, verify that the stator coupling arm is secured to a fixed machine element to prevent the encoder body from rotating.

Of course, IP protection rating also matters here. In food processing and pharmaceutical facilities common in Maharashtra and Gujarat, encoders should carry at minimum IP65; for washdown environments, IP67 or IP69K is necessary. Operating temperature range, vibration rating (IEC 60068-2-6), and shock resistance should be verified against the application before purchase.

Fault diagnosis and troubleshooting

When an encoder-based axis behaves erratically, the diagnosis must be systematic. Four fault patterns account for the vast majority of incremental encoder problems in the field.

Lost pulses, direction reversal, and count jitter

Lost pulses typically indicate that the encoder output frequency exceeds the PLC counter's maximum input frequency, or that the cable is too long for the output type. Calculate the maximum output frequency: f(max) = (RPM_max × PPR) / 60. A 1,000 PPR encoder at 3,000 RPM produces 50 kHz — which many standard PLC digital inputs cannot handle. Use a dedicated HSC module rated for the required frequency.

Direction reversal means the count increments in the wrong direction. The fix is either to swap the A and B channel wires (reversing the quadrature phase relationship) or to change the direction polarity setting in the PLC counter configuration — never physically rotate the encoder body.

Count jitter — where the position count fluctuates by ±1 to ±5 counts at rest — is almost always caused by electrical noise coupling into the signal lines. Verify shield continuity, check for ground loops, and confirm that the encoder supply is clean (ripple <50 mV). An oscilloscope measuring the A channel should show clean square-wave transitions with rise times below 1 µs and no ringing. If you see rounded edges or high-frequency oscillation on the transitions, the cable is acting as an antenna.

Z-channel misfires and homing errors

Z-channel misfires — where the controller registers multiple Z pulses per revolution — are often traced to noise on the Z line, especially if the Z signal cable runs near high-current paths. The Z pulse is narrow (typically one PPR cycle wide); it is far more susceptible to noise triggering than the A or B channels. Add a hardware RC filter (10 nF capacitor to GND at the PLC input terminal) or enable a digital filter in the PLC configuration. In practice, adding a 100 Ω series resistor at the encoder output terminal, combined with the RC filter at the input end, eliminates Z misfires in more than 90% of field cases tested across Indian CNC installations.

Selection, resolution calculations, and India sourcing

Selecting the right encoder requires matching three parameters: resolution (PPR), output type, and mechanical form factor. Overstating resolution is a common mistake — more PPR is not always better.

PPR/CPR calculation and maximum frequency check

Start with the required position resolution at the load. If a conveyor belt moves 2 mm per motor revolution and you need 0.1 mm resolution, you need at minimum 2 mm / 0.1 mm = 20 counts per revolution. With 4× quadrature decoding, 8 PPR is theoretically sufficient — but practical systems use 100–2,500 PPR to allow for mechanical backlash and noise margin.

Then verify the maximum output frequency against your counter hardware: f(max) = (max RPM × PPR) / 60. A 2,500 PPR encoder on a spindle running at 6,000 RPM produces 250 kHz. Standard PLC HSC modules typically handle 100–200 kHz; high-speed modules reach 1 MHz. Exceeding the counter limit causes lost pulses — the system under-counts position, and errors accumulate silently. This is one of the industry's most overlooked sizing mistakes.

India pricing, sourcing, and GST considerations

In 2026, incremental encoder prices in India range from approximately ₹2,500 for basic 5–12 V open-collector units (100–600 PPR, sourced via IndiaMART or Probots) to ₹70,000 for high-resolution differential line-driver models with stainless steel housings from brands like Hengstler, Kübler, or Omron distributed through RS India and allied distributors. Mid-range units — 1,000–2,500 PPR, push-pull or HTL output, IP65, from domestic assemblers or Chinese OEMs — typically fall in the ₹4,000–₹15,000 band.

GST on encoders in India is levied at 18% (HSN code 9031 80 90 for optical measuring instruments and apparatus). Import duty varies by origin country under applicable FTAs. Lead times from local distributors (Bangalore, Pune, Chennai) are typically 3–7 working days for stocked items; imported speciality units may require 3–5 weeks. Always confirm RoHS compliance and CE marking for export-oriented manufacturing facilities.

For a broader view of available models and specifications, the incremental encoder selection catalogue from AutomationDirect provides a useful cross-reference for feature sets and price positioning, even for Indian engineers evaluating equivalent domestic alternatives.

Incremental vs. absolute encoder: lifecycle cost comparison

The total cost of ownership comparison changes significantly once machine downtime costs are factored in. An incremental encoder at ₹6,000 requires a homing routine on every power cycle — taking 5–30 seconds per axis. On a 20-axis machine running three shifts, that is meaningful lost production time annually. An absolute encoder at ₹25,000–₹60,000 eliminates homing entirely — position is known immediately at power-up. When downtime cost exceeds ₹500 per minute (common in automotive and semiconductor facilities), the absolute encoder's higher BOM cost pays back within 12–18 months. For simpler applications — conveyors, basic CNC routers, packaging feeders — the incremental encoder remains the economically correct choice in 2026.

Frequently asked questions

Q: What is the difference between PPR and CPR in an incremental encoder?

A: PPR (pulses per revolution) is the number of physical slots on the encoder disc — it defines the native resolution of the optical encoder. CPR (counts per revolution) is the effective count after quadrature decoding: CPR = PPR × 4. A 1,000 PPR encoder with 4× decoding gives 4,000 CPR. Always confirm which figure a datasheet uses before configuring your PLC counter.

Q: Can I use an incremental encoder without connecting the Z channel?

A: Yes, if your application does not require a homing reference or absolute position reset. Many speed-measurement and simple positioning applications use only A and B channels. However, for any axis where absolute position accuracy matters after power cycling — servo axes, CNC, robotics — the Z channel is essential for reliable homing.

Q: Why does my encoder count in the wrong direction?

A: Direction is determined by the phase relationship between A and B. If the count direction is inverted, swap the A and B signal wires at the PLC terminal block, or change the direction polarity in the counter software configuration. Do not physically rotate the encoder body — this changes the Z-channel reference position and breaks homing.

Q: What encoder output type should I choose for a Siemens S7-1200 PLC in India?

A: The S7-1200 HSC module accepts 24 V HTL (push-pull or NPN/PNP) signals. For runs under 50 m, HTL push-pull is the standard choice. For longer cable runs or noisy environments — common in Indian heavy-industry panels — use an RS422 differential encoder with an appropriate signal converter at the PLC input.

Q: How do I select the right PPR for my application?

A: Calculate required CPR from your positional resolution target, then divide by 4 to get minimum PPR. Next, verify that max RPM × PPR / 60 does not exceed your counter module's maximum input frequency. Choose the next standard PPR above your minimum that satisfies both constraints. Common values are 100, 200, 360, 500, 1000, and 2500 PPR.

Conclusion

Correct wiring of an incremental encoder's A, B, and Z channels is not complicated — but it is unforgiving. Every step from output-type matching to cable shielding, mechanical alignment, and Z-channel filtering must be executed correctly for the encoder feedback system to deliver reliable position and speed data. For Indian engineers specifying and commissioning motion control systems in 2026, the additional discipline of verifying PPR against counter frequency limits and selecting the right output type for cable length will eliminate the overwhelming majority of field faults before the machine ever ships. When application demands outgrow what an incremental encoder can offer — particularly the post-power-loss homing requirement — an absolute encoder becomes the economically justified upgrade. For everything else, the incremental encoder remains the workhorse of Indian industrial automation.

Key words:


ONLINE MESSAGE

Please fill in the information accurately and keep your communication channels open. We will contact you as soon as possible

Submit

ONLINE MESSAGE

Please fill in the information accurately and keep your communication channels open. We will contact you as soon as possible

Submit