EncoderCross

Industrial incremental encoder wiring

Encoder wiring starts with the output circuit and receiver

Match documented signal functions, not wire colors. Identify the full encoder code and controller input, confirm supply and signal levels, then build the connection map before powering the machine.

For industrial A/B/Z incremental encoders. Absolute bus encoders, motor power and safety feedback require their own product instructions.

Functional map connecting encoder and receiver documents by supply, return and A B Z signals
Functions guide the comparison; terminals and colors come from the exact documents.

Fast answer

There is no universal encoder wire color code

A five-wire or eight-wire cable does not identify its output circuit. A 24 V encoder supply does not establish the signal voltage. Check both ends of the signal path.

Before connecting:
  • Full encoder model and document revision
  • Receiver model, terminal diagram and input mode
  • Supply, output levels and load limits
  • Required channels, cable and shield arrangement
Use the function checklist →

01 / Identify the circuit

NPN, PNP, push-pull and differential outputs

Output family determines which receiver questions to ask
OutputHow it behavesVerify before connecting
NPN open collectorSinks current toward signal common when activeInput current path, pull-up arrangement, load and levels
PNP open collectorSources current from the supply side when activeInput return path, load, polarity and levels
Push-pull / totem-poleActively drives high and low statesHigh/low levels and source/sink ratings under load
Differential line driverProvides a channel and its inverted partner for a differential receiverCompatible differential receiver, pairs and common-mode limits
Voltage outputMay use an internal pull-up circuitOriginal circuit, load and high-level voltage; do not assume push-pull
Current flows from an input toward an active NPN output, and from an active PNP output toward the input
Conceptual current direction only. It does not assign terminal common, resistor value or logic polarity.

PLC terms such as sourcing and sinking can describe different sides of the connection. Read the actual input circuit rather than matching a word. Check whether a pull-up or input load is already built in; adding another resistor changes the load and the waveform.

TTL, HTL and RS-422 labels need exact specifications. Supply range, signal level and receiver acceptance are separate. A push-pull output described as complementary does not automatically provide separate A-bar, B-bar and Z-bar wires.

Separate A and A-bar wires connect to the positive and negative A inputs of a differential receiver, likewise for B
A-bar means the inverted A channel. Logical channel mapping only. Follow actual polarity labels, pin numbers and reference requirements.

Paired inverse signals alone do not establish RS-422 electrical compatibility. Unused inverse outputs are not automatically connected to 0 V. If single-ended operation is permitted, follow the receiver’s documented method. For example, Beckhoff explicitly excludes single-ended connection on EL5101-0010 and EL5101-0011. A generic adapter sketch cannot override that restriction.

02 / Missing-document check

Find the next interface checks

The result is a documentation checklist, not a connection verdict.

Select only what the equipment documentation establishes. The aid lists questions for the proposed connection; it does not approve wiring or choose resistor values.

Identify both exact equipment models and their circuits.

Without JavaScript, use the output table and connection checklist. Document unknowns instead of trying a wire combination.

03 / Document the connection

Map functions before colors or connector pins

Fill these from the two exact equipment documents
FunctionEncoder evidenceReceiver evidence
+V and returnAllowed supply, current and cable dropSupply capacity and documented reference
A / BTerminal, levels, load, phase relationCorrect high-speed inputs and configured mode
Z / indexPresence, polarity, pulse width and gatingSupported index/latch behavior and timing
A-bar / B-bar / Z-barSeparate inverse channels if providedMatching negative inputs if required
Shield / caseInternal bonding and connection optionSpecified shield termination / EMC arrangement

Record connector gender, coding and the drawing’s viewing side. Matching M12 size or pin count does not prove a compatible assignment. Do not join signal outputs together. Keep motor-power conductors separate from encoder supply and signal conductors.

A concrete reason to check both ends: the EL5101 connection page separates 5 V encoder supply and paired A/B/C inputs from its 24 V gate and latch connections. The controller’s 24 V power supply does not make every terminal a 24 V encoder signal input.
Request a function-by-function comparison

04 / Signal integrity

Cable routing, shield and signal common are different checks

Signal route kept separate from power and VFD route, with separate checks for zero volt reference and shielding
Functional routing concept. No fixed spacing or cable-distance guarantee is assigned.

Use the specified cable construction and keep signal routing separate from high-current conductors, motors and drive cables. Preserve differential channel pairs. Minimize unnecessary splices; where a junction is unavoidable, check continuity, pairing, shielding and environmental protection.

The supply return carries operating current; the signal reference establishes the receiver’s reference potential. The cable shield and protective earth serve different purposes. Follow the receiver’s isolation and bonding design rather than joining them by assumption. Follow the encoder, receiver and machine EMC instructions, including any internal shield-to-case bond. Never remove required protective-earth connections to cure noise.

The reviewed EPC Rev 11/18 guide shows shield termination at the controller end with the encoder end unconnected. Treat it as that guide’s arrangement, not a universal instruction for every machine. If equipment instructions disagree, resolve the bonding plan before installation.

Do not add a generic 120 Ω resistor to every encoder. Termination depends on the driver, cable and receiver, including built-in termination. An open-collector pull-up and a differential termination are different components. A resistor that overloads an output can distort signals or damage it.

No single cable-length number applies to all interfaces. Verify signal quality at the receiver at the intended speed, plus supply voltage at the encoder under load. See an example of supply and output-code separation →

05 / Controlled commissioning

Check a short sequence before normal operation

Six steps from isolation and identification through supply mapping, inspection, count mode, low speed direction and full speed checks
Follow the machine procedure and exact equipment manuals; this sequence is a verification checklist.
  1. Isolate power and identify the documents. Confirm full models, receiver version and terminal map before changing wires.
  2. Check supply and the connection map. Use the correct voltage, polarity, references and supported channels. Inspect continuity with equipment isolated as instructed.
  3. Secure connections and cable. Confirm strain relief, connector assembly, shield arrangement and unused-wire insulation.
  4. Configure the receiver. Select the intended quadrature / pulse mode, high-speed inputs, filter, count multiplier and index behavior.
  5. Test controlled low-speed motion. Compare A/B and count direction with a stated shaft viewing side. Use the documented receiver or machine method for any direction change, then recheck index alignment; do not swap wires casually in a feedback loop.
  6. Verify the operating point. Check waveform quality and timing at the receiver at intended speed, within both encoder and receiver limits.

For illustrative 2,500 PPR at 1,500 rpm, raw channel frequency is 2,500 × 1,500 ÷ 60 = 62,500 Hz. ×4 decoding produces 250,000 counts/s. Check both limits; input filters can also reject narrow pulses. These are arithmetic inputs, not a supported rating for a particular encoder. Use the PPR and count-rate guide for calculations →

06 / Symptoms

Use the symptom to choose the next measurement

Checks narrow the cause; no symptom proves the encoder is faulty
SymptomFirst checksNext evidence
No countsActual shaft movement, supply at encoder, wiring and receiver modeDocumented signal at receiver; correct input circuit
Wrong directionA/B relationship, viewing side and software direction settingBoth channels and required index alignment
Extra / erratic countsLoose connections, supply noise, EMC plan and mechanical slipWaveform during drive switching / actual operation
Misses at speedRaw Hz, decoded count limit, rise/fall time and input filterReceiver waveform at intended speed
Index not detectedZ present, polarity, gating and receiver capture modeIndex waveform and pulse duration; a meter may miss it

Use measurement equipment and probing methods suitable for the circuit. An oscilloscope ground connection can change a reference path; use the machine’s approved procedure. Record the test conditions before requesting a replacement. Request a comparison using your exact model and receiver →

07 / Model-specific next step

Request an encoder and receiver wiring comparison

Provide the full original label model, receiver model, supply, output circuit, cable length and symptom if known. Ask for a comparison of documented functions, levels and unresolved conditions. Name, email and the original model are required; unknown receiver details can be described in the message.

Preview mode: this form prepares text locally and sends nothing.

Ready to contact us? Copy the prepared request, then open the live web inquiry form and paste the details. Preview sends nothing.

Encoder wiring questions

Is there a universal five-wire or eight-wire color code?

No. Use the exact encoder and cable documents. Wire count does not identify the circuit, connector assignment or internal bonding.

Can I connect a 24 V supply encoder to a 5 V input?

Only if its actual output levels, circuit and references meet that input’s requirements. Supply voltage alone cannot answer the question.

Can I ground the inverse outputs?

Do not infer that from a generic sketch. Follow the receiver’s documented single-ended method if supported; some receiver variants require differential pairs.

Will a pull-up or 120 Ω resistor solve missed counts?

Not automatically. Check built-in loading, driver capability, wiring, waveform, receiver mode and filter first. Select any external resistor only from the exact circuit requirements.

Which replacement guide should I use?

Start from the installed family: Omron E6B2, Autonics E40S or Nemicon OVW2. A catalog lead still needs its own output and receiver comparison.

Sources and maintenance

Maintained by EncoderCross. Reviewed 13 October 2026. The connection worksheet is the main task; the linked PPR guide covers rate calculations in detail. Original diagrams show functions, not universal pinouts. Review the connection whenever equipment or document versions change. Brand names identify equipment and do not imply affiliation.