AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Why an encoder fault output needs its own input check

Sensors, encoders and machine vision on the machine Published 8 min read By AutomateDirectUSA engineering team

Short answer

An encoder's fault output is a separate status wire, so correct pulse counting proves nothing about whether the fault line reaches the monitoring input's active level. Check the fault path on its own, add a pull-up only when the output is open collector and the input switches higher, and let the application logic act on the bit, because a displayed fault flag never invalidates the position value by itself.

On this page
  1. What does an encoder monitoring input actually report?
  2. Why can the pulses be perfect while the fault wire is dead?
  3. How do you check a fault output against a monitoring input?
  4. When is a pull-up resistor the right fix?
  5. What current and power does the pull-up add?
  6. Does the fault bit stop anything by itself?
  7. Questions asked

An incremental encoder's fault output is a separate status wire, not a property of its pulse train, and it needs its own voltage check against the receiving monitoring input. In one reported installation the counter read every TTL pulse correctly while the monitoring input would only switch at about 15 V, and a 1 kΩ pull-up to the encoder supply closed the gap. What follows is where that check belongs, what the pull-up costs in current and dissipation, and why the displayed fault bit stops nothing until the application logic acts on it.

What does an encoder monitoring input actually report? #

It reports the separate fault signal some encoders provide next to their pulses: a status line announcing that the feedback should not be trusted, wired to its own input and read as a bit, never as position data. An incremental encoder's real output is the A and B pulse pair, often with a zero pulse, from which a counter derives position and speed. The fault output, where the encoder provides one, is the encoder's own verdict on that signal, whether from dropped amplitude, a failing light source or contaminated optics, and many encoders omit it entirely. The datasheet of the exact encoder says whether it exists, which state means healthy, and what the line does when encoder power is removed.

The module that raised this question, an EM438-1 with six incremental channels on connector X2, dedicates monitoring inputs 1 through 6 to that purpose: each encoder channel's fault conductor lands on its own monitoring input. In the continuous function chart, the NAV block reads the position of the encoder it is addressed to and mirrors that channel's monitoring state on its QF output, a status made visible to the application and nothing more.

The most common fault-output circuit is open collector: a transistor pulls the line low and otherwise releases it, so the output cannot source current and needs a pull-up resistor or a receiving input that supplies one. That electrical detail decides every fix later in this article.

Why can the pulses be perfect while the fault wire is dead? #

Because the pulse channels and the fault line are different receivers with different thresholds: a counter that accepts every A and B transition proves nothing about whether the fault line reaches the monitoring input's active range. In the reported installation the pulse waves were TTL at 5 V, which the counter inputs accepted, while the monitoring inputs on the same module activated only when driven by a 15 V binary signal. The fault conductor was intact and the encoder's output toggled correctly, and the input never noticed, because the toggling never crossed its switching range.

Treat the reported activation level as an operating point, not a specification: the input module's hardware manual lists the guaranteed-on and guaranteed-off bands and the maximum permitted voltage, and those bands are what a reading is judged against. Anything between the bands is undefined and can be read either way.

The pulse channels carry the same threshold question and deserve their own check: converting a single-ended 5 V pulse pair for a differential counter input, covered in why a differential input rejects a single-ended 5 V encoder signal, succeeds or fails on the same physics as this fault line.

How do you check a fault output against a monitoring input? #

Measure the fault line at the monitoring-input terminal, relative to that input's common, in both defined states, and compare the readings with the guaranteed-on and guaranteed-off bands in the input module's manual. The usual symptom is a fault bit that never changes, or one that changes on a channel nobody expected. Work from the cheapest check to the dearest:

  • Pairing and polarity. Confirm which monitoring input belongs to the encoder channel (the NAV block's encoder address selects the monitoring input it mirrors) and what the encoder datasheet defines as healthy and as fault, including the line's state with encoder power removed. An open-collector line with no pull-up sits low in both states, so without the definition no reading can be called wrong.
  • Supply and reference. Verify the encoder supply at its rated value and that the input common ties to the reference the output switches against. A floating reference makes every later voltage reading meaningless.
  • Both states, measured at the input. Record the healthy reading, force the fault condition the encoder documentation describes, and record again. If neither reading enters the guaranteed-on band, the interface is at fault, not the encoder.
  • Only then, the encoder output itself. Measure at the encoder side and compare with its output specification. An unexpected reading there points to the encoder, its supply or its wiring, in that order.

Each step confirms or eliminates one cause; none assigns a cause from the dead bit alone.

When is a pull-up resistor the right fix? #

Only when the fault output is open collector: the resistor lifts the released line to a supply the monitoring input recognizes, and the output's transistor pulls that node low when it asserts, so an actively driven output must never be pulled above its own supply. Decide from the output circuit the encoder datasheet documents:

Fault output circuit Interface to a higher-voltage monitoring input Decision
Open collector, voltage and sink ratings adequate Resistor from the input terminal to the supply the input needs Pull-up, then verify both states
Open collector, ratings too small Transistor or optocoupler stage between output and input Add the stage
Actively driven (push-pull) An input that accepts the output's own level, or an active level converter Never a pull-up above its supply
No fault output provided Pulse-train plausibility checks in logic Design them in

Before accepting any pull-up, four findings from the two datasheets: the output's voltage rating covers the pull-up supply; its sink-current rating covers the resistor current plus the input's low-state loading; the loaded high level lands inside the input's guaranteed-on band; the asserted low level lands inside its guaranteed-off band. An open-collector status output with no pull-up anywhere reads nothing at all on the receiving side, the failure described in why a servo open collector status output reads nothing on a PLC.

In the reported installation the fix was one resistor from the monitoring-input terminal to the encoder-supply terminal on the interface's terminal block, with the encoder's fault output still connected to the same node.

What current and power does the pull-up add? #

With the reported values, a 1 kΩ resistor to the encoder supply, the output sinks 15 mA whenever it asserts and the resistor dissipates 0.225 W, both calculated from the chosen supply and resistance, not from any encoder rating. Calculated example, with the inputs taken from that fix: the pull-up voltage is the encoder supply, the resistance is the added resistor, and the node sits at approximately 0 V when pulled low.

  • Current the output sinks when it asserts: I = V ÷ R = 15 V ÷ 1000 Ω = 0.015 A, so 15 mA.
  • Dissipation in the resistor: P = V² ÷ R = (15 V)² ÷ 1000 Ω = 225 ÷ 1000 = 0.225 W.

Both are resistor-loading figures for these inputs. For the resistor itself, 0.225 W is 90% of a 0.25 W part and 45% of a 0.5 W part; running a resistor near half its rating inside a warm cabinet is a common derating rule of thumb, so the 0.5 W part is the comfortable pick here. The output must sink that 15 mA plus the input's low-state current, and its datasheet's sink rating decides whether it can.

Two checks close it out. Low state: the encoder datasheet states the output's low-state voltage at a given sink current, and that voltage, not the idealized 0 V of the example, is what the input must be guaranteed to read as off. High state: the input draws current to register, and that current drops voltage across the resistor; with an illustrative 3 mA input current the drop is 3 V and the node rests at 12 V, which must still lie inside the guaranteed-on band, so measure it under load. The same arithmetic, worked for a drive's fault output, is in pull-up resistor sizing for a servo drive fault output.

Does the fault bit stop anything by itself? #

No: on the interface in question the monitoring state is display-only, so the controller block mirrors it on an output for the application, and neither the position value nor the block is faulted when the encoder reports itself unusable. The position register keeps counting and the application keeps reading a number the encoder has just disowned. Every reaction, whether inhibiting a new move, rejecting a position-dependent step or running a defined fault response, must be written into the application logic, gated on the right bit and on the polarity the encoder datasheet documents. An unconnected monitoring input can also read as permanently healthy on some modules, so silence is not evidence of health; wiring the healthy state as a closed circuit, so a broken conductor reads as a fault, is the fail-safe choice.

One limit belongs here. Where encoder feedback feeds a safety function, such as safely limited speed or safe stop on a drive, a monitoring input plus ordinary application logic does not qualify. IEC 61800-5-2 defines the safety functions of drive systems and requires fault detection in the feedback path to be part of the validated function; that is proven through the machine's risk assessment and validation, and this article is an interface check, not one.

Questions asked

What can I check if the encoder has no fault output?

Then the pulse train is the only diagnostic source. Logic can flag a zero pulse missing at a known position, a direction that contradicts the commanded motion, or a speed the axis cannot physically reach, but those checks catch gross failures late. Internal degradation such as a fading light source erodes signal margin before pulses disappear, which is exactly what a dedicated fault wire reports earliest.

Can several encoder fault outputs share one monitoring input?

Yes, when all of them are open collector: wire the lines in parallel to one pull-up and any assertion pulls the shared node low, a wired-OR that says one of the encoders faulted without saying which. That fits a group inhibit that stops position-dependent motion on all of them, while per-channel diagnostics stay with the individual indications. Size the single pull-up from the shared input's needs, and note that a broken wire on one branch silences that encoder's fault.

Why does a fault show up on the wrong encoder's display?

Usually an addressing mismatch rather than a wiring fault on the fault line itself. On interfaces that pair channels by address, the block reading encoder 3 mirrors the monitoring input numbered 3; if the physical encoder is wired to a different channel, its fault appears on a neighbour. Compare the block's encoder address with the terminal assignment before measuring any voltage, or you will debug a correct signal on the wrong channel.

Does a missing zero pulse count as an encoder fault?

Not on its own. The zero, or index, pulse is a once-per-revolution position marker used for homing and marker checks; many counters can flag its absence, but that detects one failure mode and only after pulses are already compromised. The encoder's own fault output watches what the encoder sees internally, such as signal amplitude and light-source health, and normally warns first. Where both exist, wire the fault output and keep the zero-pulse check as a backup.

Keep reading

  • How-to

    Connecting a 5V Servo Encoder to 24V PLC Inputs

    No interface can raise the PLC input's own frequency limit, so a 20 kHz optocoupler board does not make a slower high-speed input faster. Compute f = RPM × pulses per revolution ÷ 60 first; if it exceeds the input's documented maximum, use a faster counter input. If it fits, translate the 0-5 V signal through an optocoupler whose LED current, output topology and switching times all check out.

    Sensors, encoders and machine vision on the machine

  • Explainer

    What it takes to read an absolute encoder into discrete PLC inputs

    Yes — a bit-parallel absolute encoder connects directly to discrete PLC inputs, with no special card, once four checks pass: output voltage matches the input card, one input is free for every bit, the logic converts Gray code to binary where needed, and the shaft stays under the scan-time speed limit. Networked Ethernet or Modbus encoders need documented protocol support in the PLC first.

    Sensors, encoders and machine vision on the machine

  • Selection guide

    Absolute encoder input card response time vs count rate

    Keep the 3-9 ms DC input card. Gray code changes one bit per count, so at a 10 ms count rate each input holds its level for two counts, 20 ms, against a 9 ms worst-case delay, and no transition is lost. The lag to budget is card delay plus PLC scan, about one to three encoder counts, which cam-switch replacement tolerates; the 0.8 ms card buys less than one count, so it is not worth a PLC family change.

    Sensors, encoders and machine vision on the machine