Explainer
5V encoder external supply when the card gives 24V
Short answer
When a counter module's manual shows 24 V DC on its encoder-supply terminal, that is a documented supply output for the higher-voltage encoder family, not a printing mistake. A 5 V DC incremental encoder needs its own regulated external supply, sized from its datasheet current and verified at the encoder terminals under load, with the 24 V terminal left disconnected. Whether the encoder's low-voltage pulses suit the module's counting inputs is a separate check from what powers the encoder.

On this page
- Is the 24 V on the encoder supply terminal a misprint?
- What power supply does the encoder need instead?
- How much voltage does the encoder cable drop?
- Do the encoder's signals connect straight to the module?
- How do you check the wiring before trusting the count?
- Where is the best place to mount the supply?
- Questions asked
When your counter module's connection diagram shows 24 V DC on its encoder-supply terminal, believe the diagram: that terminal is a real supply output, provided for encoders built to run on the higher voltage, and it is not a misprint you correct by wiring a 5 V encoder to it. A TTL-level incremental encoder gets its own regulated external supply, sized for the encoder's current draw and checked for cable voltage drop, and the module's supply terminal stays disconnected from the encoder's power input. What powers the encoder and whether the module accepts its pulses are two separate checks. Below are the supply decision, a cable-drop calculation with real numbers, and the powered checks that prove the result.
Is the 24 V on the encoder supply terminal a misprint? #
No, it is not a misprint: the manual's 24 V DC is what that terminal actually delivers, it exists so encoders rated for the higher voltage can run without a separate supply, and an encoder rated for the lower voltage must never be connected to it.
Counter and positioning modules that accept encoder feedback usually include one encoder supply output. On modules aimed at HTL encoders (the higher-voltage logic family), that output is the higher rail, and the supply pair wiring for those encoders is covered in HTL incremental encoder supply terminals +Us and 0Vs. Modules aimed at TTL encoders either provide a matching low-voltage output of their own or state that the encoder is externally supplied. Your diagram showing the higher voltage tells you which family the module was built around.
Two things follow. First, connecting the higher rail to an encoder whose supply input is rated for the lower voltage overloads its input circuitry; the usual outcome is a dead encoder on first power-up, sometimes a degraded output stage that fails weeks later. Second, do not tie an external low-voltage source to that terminal to fix it: the terminal is an output of the module's internal supply, and paralleling two supplies on one conductor risks damage to both. Your external supply lands on the encoder's own power conductors, and nowhere else.
What power supply does the encoder need instead? #
You need a regulated 5 V DC supply whose output sits inside the encoder's permitted window (for example 4.75 to 5.25 V on a datasheet that states the nominal value ±5 %), rated above the encoder's maximum current draw, with its 0 V tied to the module's input reference.
Read four lines from the encoder datasheet before buying anything: the supply voltage range, the current consumption with outputs loaded, the polarity and conductor assignment (wire colors), and the output circuit type. The same document states the minimum load resistance the outputs can drive, for example 1 kΩ; that number matters later when the signals meet the module inputs. Take every one of these values from the datasheet of the exact encoder, because a label that names only the nominal voltage is not enough to wire from.
Size the supply from the current figure: choose a regulated unit rated at or above the encoder's stated maximum, and a margin of roughly twice that draw is a common rule of thumb, not a requirement. Dedicated or shared both work, provided other loads on the same supply cannot drag it out of the window. If your module does provide its own encoder supply output, none of this applies, and wiring a TTL incremental encoder to a matching-voltage counter module covers that simpler case end to end.
The external supply's 0 V conductor connects to the reference terminal the module's diagram assigns to its counting inputs, so the pulses arrive measured against the potential those inputs expect. Reversed polarity destroys most encoders of this type, so verify polarity with a meter at the encoder connector before plugging in.
How much voltage does the encoder cable drop? #
In a worked example, a 150 mA encoder at the end of 20 m of 0.34 mm² cable, the round-trip resistance drops 0.30 V, which puts 4.70 V on the encoder, below a 4.75 V floor, so that cable fails as sized.
The current travels out on the supply conductor and back on the return conductor, so the loop is twice the cable length. Resistance per conductor is R = ρ × L ÷ A, with ρ = 0.0172 Ω·mm²/m for copper at 20 °C (cable datasheets state maximum DC resistance per IEC 60228, which covers conductor resistance of insulated cables; use their figure when it is given), L the one-way length in metres and A the cross-section in square millimetres. Worked through for the example inputs:
- Per conductor: 0.0172 Ω·mm²/m × 20 m ÷ 0.34 mm² = 1.01 Ω
- Loop: 2 × 1.01 Ω = 2.02 Ω
- Drop: 0.150 A × 2.02 Ω = 0.30 V
- At the encoder: 5.00 V − 0.30 V = 4.70 V, against a 4.75 to 5.25 V window, a fail by 0.05 V
Three fixes, same arithmetic:
- 0.50 mm² cable: 0.0172 × 20 ÷ 0.50 = 0.69 Ω per conductor, 1.38 Ω loop, 0.150 A × 1.38 Ω = 0.21 V drop, 4.79 V at the encoder, passing with 0.04 V to spare.
- Trim an adjustable supply to 5.10 V (encoder maximum 5.25 V): 5.10 V − 0.30 V = 4.80 V, passing until someone resets the trim.
- Mount a small converter within 2 m of the encoder: loop 4 m, 0.0172 × 4 ÷ 0.34 = 0.20 Ω, drop 0.03 V, 4.97 V at the encoder, passing with wide margin.
This is a calculated example for these inputs, not a measurement; your numbers come from your encoder's datasheet and your measured route. Copper resistance also climbs about 0.4 % per degree C, so a hot cabinet eats into whatever margin the arithmetic shows. The decision for the example: take the 0.50 mm² cable or move the converter to the encoder, and never treat the supply's front-panel reading as the encoder's voltage.
Do the encoder's signals connect straight to the module? #
Only if the module's counting inputs accept the encoder's output format: powering an encoder from the lower supply says nothing about whether its pulses are single-ended TTL channels or differential pairs, and the input thresholds decide, not the supply.
A single-ended output drives each channel against a 0 V reference; a differential output drives a pair per channel with levels that commonly follow TIA/EIA-422. The module datasheet states which formats its inputs take and the voltage thresholds that count as low and high. An input built for HTL logic expects swings toward the higher rail and will typically sit blind to a TTL-level high, so a module whose diagram shows only the higher-voltage supply may also be the wrong receiver for your encoder, and no supply choice fixes that.
If the module has differential inputs and the encoder is single-ended, why a differential input rejects a single-ended encoder signal explains what happens and what to change. Cable length interacts with format too: for long runs, encoder cable length limits for 24 V single-ended versus TTL and RS-422 signals compares how far each format holds up. Shield and reference are separate functions, so terminate the shield as the module's diagram shows and never press it into service as the 0 V return.
How do you check the wiring before trusting the count? #
Work in a fixed order: inspect with everything isolated, measure the module terminal unloaded, measure the supply at the encoder under load, then watch the channels and the count, four stages that keep a supply fault from being misread as a signal or configuration fault.
| Check | How | Pass condition |
|---|---|---|
| Supply isolation | Power off; confirm no conductor runs from the module's encoder-supply terminal to the encoder power input; confirm polarity markings | Open circuit between the two; the external positive lands on the encoder's positive conductor |
| Terminal identity | Meter on the module's encoder-supply terminal against its documented return, encoder still disconnected | Reads nominal 24 V DC, closing the misprint question with a measurement |
| Supply setpoint | Meter at the external supply's output | Set where the calculation wants it, 5.00 V in the example |
| Loaded voltage | Meter at the encoder's supply terminals, connected, outputs driving the inputs | Inside the datasheet window during motion, not just at rest |
| Signal quality | Oscilloscope at the module inputs during slow movement | Clean transitions crossing the module's stated thresholds, no chatter between edges |
| Count and direction | Jog the axis each way | Repeatable counts, direction matching the configured counting mode |
| Noise immunity | Hold the encoder still while nearby drives and contactors switch | No count change |
A meter proves supply voltage; only a scope resolves pulse shape, amplitude and interference. An encoder that counts at rest but drops counts in motion is the classic loaded-drop symptom, and why a servo encoder supply collapses under load walks through the same measurement discipline on a servo axis. One safety note: isolate both supplies before opening the circuit, because one slip of the higher voltage onto the encoder's power input is usually fatal to the encoder.
Where is the best place to mount the supply? #
Mount it where the low-voltage run is shortest: a small 24 V-to-5 V converter in a junction box near the encoder keeps the low-voltage drop negligible, while a cabinet supply makes every metre of encoder cable part of the arithmetic.
Two workable arrangements:
- Cabinet supply, with the drop calculated and conductors sized for it, fine for short runs; the worked numbers above show where it stops working.
- Converter at the encoder, fed from the machine's field supply or from the module's own supply terminal if the module datasheet's output current covers the converter's input draw. Feeding the converter at the higher voltage helps twice: in the example, delivering 0.75 W to the encoder draws only about 35 to 40 mA on the field side once you allow for converter losses, so the feed drop shrinks, and the converter regulates what the encoder actually sees.
Match the converter's enclosure rating to its location; an open-board converter belongs inside a cabinet or a rated enclosure, not loose in a junction box. Keep the single reference tie between the converter's 0 V and the module's input reference. The decision for each case: short run, cabinet supply with the arithmetic done; long run that the arithmetic cannot hold, converter at the encoder; module with its own encoder supply output, use it and skip the external supply entirely.
Questions asked
Can one external low-voltage supply feed several TTL encoders?
Yes, if its current rating covers the summed maximum draws of all the encoders with margin, and you run a separate supply pair from the distribution point to each encoder rather than chaining through connector pins. Check the drop for each cable individually, because the longest run decides whether the arrangement holds, and tie every 0 V return to the one reference point at the module.
The encoder datasheet lists a 5 to 24 V supply range. Can it use the module's terminal?
Yes, for power: an encoder whose stated supply range includes the higher voltage is exactly what that terminal exists for, and no external supply is needed. Read the output line separately, because wide-supply encoders ship with different output stages, either push-pull outputs that suit HTL inputs or TTL outputs that still need the module to accept low-voltage levels.
The encoder was briefly wired to the 24 V terminal. Now what?
Treat the encoder as suspect even if it still counts: a 5 V supply input that saw the higher rail may be degraded rather than dead. Disconnect it, measure its supply current against the datasheet figure, and check both channels on a scope for clean full-amplitude transitions; overvoltage can damage the input circuitry without an immediate failure. On any axis where a dropped pulse scrapes parts, replace the encoder rather than gamble on the survivor.
Is a consumer USB-style adapter good enough as the encoder supply?
No, use an industrial regulated supply or a rated converter. A consumer adapter typically offers loose regulation, no ride-through hold-up, screwless connections and a plastic case with no cabinet-grade enclosure rating, and its output can sag when the encoder's output drivers switch. The encoder's supply window is tight, so give it a supply built for a control cabinet.


