What is TTL and HTL output signals?

TTL vs HTL encoder outputs: what they mean and how to choose
TTL and HTL describe the electrical interface between an encoder and its controller. In an incremental encoder, shaft movement becomes a sequence of pulses. The receiver uses these pulses to determine speed, direction and position relative to a starting reference.
The key question is: Does the encoder output match the receiving input? Compare encoder output types with the specifications of the PLC or drive. The distinction between an absolute encoder and an incremental encoder is separate from TTL/HTL: one describes how position information is provided, while the other concerns the electrical interface.
TTL: a 5 V signal class does not always mean a 5 V supply
TTL stands for Transistor-Transistor Logic. Encoder manufacturers commonly use it for a 5 V output class. The actual HIGH/LOW levels, load conditions and receiver thresholds come from the data sheet; HIGH does not have to be exactly 5.00 V. An encoder powered from 10–30 V can still provide a 5 V class TTL output. Supply voltage and output signal voltage are different specifications.
Many industrial TTL encoders use a line driver with an RS-422 interface. A differential output provides A+/A− and B+/B− pairs; the receiver evaluates the voltage difference within each pair. With suitable wiring and a matching receiver, this can offer strong noise immunity. The TTL label alone does not guarantee a differential output.
HTL: commonly used with 24 V industrial inputs
HTL means High Threshold Logic. It commonly appears with a push-pull output and model-specific operating ranges such as 10–30 V. In a typical 24 V application, HIGH is close to the supply voltage and LOW is close to zero. HTL does not always mean a fixed 24 V output. The totem-pole output topic also helps explain the principle of actively driving both logic levels.
A higher signal level can provide more noise margin at a suitable input. However, HTL is always better for long cables and TTL is fast while HTL is slow are unreliable rules. Usable frequency depends on the output driver, cable capacitance, load current and receiver.
| Criterion | TTL | HTL |
|---|---|---|
| Typical signal class | 5 V class; exact levels depend on the model. | HIGH is usually close to the supply; 24 V is common. |
| Common output circuit | RS-422 differential line driver; single-ended versions also exist. | Push-pull; complementary channels may be available. |
| Matching receiver | A suitable TTL or RS-422 encoder input. | A suitable HTL / 24 V encoder input. |
| Cable length and speed | Check the manufacturer's frequency, cable, load and wiring limits together. | |
What do the A, B and Z channels tell you?
Ideal quadrature signals on channels A and B are separated by 90 electrical degrees, or one quarter of a signal period. This does not mean the shaft rotates through 90 mechanical degrees. Which channel leads determines the counting direction. The manufacturer's shaft viewing convention determines how that sequence relates to physical clockwise rotation. Where provided, the Z / index channel typically produces one reference pulse per revolution.
Frequency example: a 1024 PPR encoder running at 1500 RPM produces 1024 × 1500 / 60 = 25,600 Hz on one channel. With x4 evaluation, a high-speed counter counts 4096 edges per revolution, or 102,400 edges per second. This does not change the encoder's PPR rating. When checking a counting frequency limit, establish whether the specification refers to channel frequency or total edge rate.
Simulation: signal level, direction and receiver compatibility
Select the TTL / HTL output and the example receiver input. Use Single step to inspect each transition; automatic playback is deliberately slowed down for teaching.
| Step | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| A | 0 | 1 | 1 | 0 |
| B | 0 | 0 | 1 | 1 |
Ideal HIGH level: 5 V · + direction: A leads
A=0 / B=0 · Ideal x4 edge counter: 0
The static table shows the + direction: 00 → 10 → 11 → 01 → 00. Reversing direction reverses the sequence. Both channels use the same 0–24 V scale, so the TTL waveform appears shorter. This does not indicate a speed difference.
This model compares ideal 0/5 V and 0/24 V signals. It does not calculate cable losses, noise, actual input thresholds or differential receiver behaviour. The edge counter follows the ideal signal; it does not represent the real count of an incompatible receiver.
Long cables: voltage is only part of the decision
Cable length can slow signal edges and increase exposure to interference. Differential A+/A− and B+/B− signals require suitable twisted pairs. Follow the manufacturer's instructions for shielding, signal reference, routing and any required termination. Do not add a 120 Ω resistor to every input by default. Routing an encoder cable alongside a motor power cable can cause problems even when the output type is correct.
When choosing a cable or connector, verify the pin assignment. Matching wire colours or connector shapes do not establish compatibility. On an output with complementary channels, A− and B− are signal conductors; they must not automatically be treated as 0 V or protective earth.
How to match an encoder to a PLC or drive
Start with the receiver's input voltage range, single-ended or differential circuit, maximum frequency and input filter. Then match the encoder supply, output and wiring diagram. Use a suitable HSC or encoder module for fast pulse trains instead of trying to count them through the ordinary PLC program scan.
Do not connect a 24 V HTL output directly to a 5 V TTL input. In the opposite mismatch, a 5 V signal may fail to reach a 24 V input's HIGH threshold. If required, use an interface converter rated for the signal frequency and channel arrangement. With a programmable encoder, check that the specific model actually supports changing the output interface; software cannot switch every encoder between TTL and HTL.
Can a multimeter reading identify the output type?
Not on its own. With a rotating encoder, a multimeter may display a value close to the average of the pulses. An ideal 50% duty-cycle 0–5 V signal can read about 2.5 V, while a 0–24 V signal can read about 12 V. These readings do not reveal the actual HIGH level. Examine the waveform with an oscilloscope using an appropriate probe and reference, and interpret it alongside the model code and data sheet.
Technical references: SICK electrical interface explanation · Beckhoff quadrature and x4 counting explanation.